Skip to content

Commit e4524d5

Browse files
Rangeet PanRangeet Pan
authored andcommitted
small changes
1 parent f01075d commit e4524d5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cldk/analysis/java/codeanalyzer/codeanalyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def __call_graph_using_symbol_table(self,
770770
def __raw_call_graph_using_symbol_table(self,
771771
qualified_class_name: str,
772772
method_signature: str,
773-
cg: list[JGraphEdges] = []) -> list[JGraphEdgesST]:
773+
cg: list[JGraphEdgesST] = []) -> list[JGraphEdgesST]:
774774
"""
775775
Generates call graph using symbol table information
776776
Args:
@@ -779,7 +779,7 @@ def __raw_call_graph_using_symbol_table(self,
779779
cg: call graph
780780
781781
Returns:
782-
list[JGraphEdges]: list of call edges
782+
list[JGraphEdgesST]: list of call edges
783783
"""
784784
source_method_details = self.get_method(qualified_class_name=qualified_class_name,
785785
method_signature=method_signature)

docs/examples/java/generate_unit_tests.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
{
44
"cell_type": "markdown",
55
"source": [
6-
"Generating unit tests for code is a very tedious task and often takes a significant effort from the developers to write good test cases. There are various tools that are available for automated test generation, such as, EvoSuite, which uses evolutionary algorithm to generate test cases. However, the test cases that are being generated are not natural and often developers do not prefer to add them to their test suite. Whereas, Large Language Models (LLM) being trained with developer-written code, it has better affinity towards generating more natural code--more readable, maintainable code. In this excercise, we will show we can leverage LLMs to generate test cases with the help of CLDK. \n",
6+
"Generating unit tests for code is a very tedious task and often takes a significant effort from the developers to write good test cases. There are various tools that are available for automated test generation, such as EvoSuite, which uses evolutionary algorithms to generate test cases. However, the test cases that are being generated are not natural and often developers do not prefer to add them to their test suite. Whereas Large Language Models (LLM) being trained with developer-written code it has a better affinity towards generating more natural code--more readable, maintainable code. In this excercise, we will show we can leverage LLMs to generate test cases with the help of CLDK. \n",
77
"\n",
8-
"For simplicity, we will cover certain aspects of test generation and provide some context information to LLM for better quality of test cases. In this excercise, we will generate unit test for non-private method from a Java class and provide the focal method body and the signature of all the constructors of the class so that LLM can understand how to create object of the focal class during the setup phase of the tests. Also, we will ask LLMs to generate ```N``` number of test cases, where ```N``` is the cyclomatic complexity of the focal method. The intuition is that one test may not be sufficient for covering fairly complex method and cyclomatic complexity score can provide some guidance towards that. \n",
8+
"For simplicity, we will cover certain aspects of test generation and provide some context information to LLM for better quality of test cases. In this exercise, we will generate a unit test for a non-private method from a Java class and provide the focal method body and the signature of all the constructors of the class so that LLM can understand how to create an object of the focal class during the setup phase of the tests. Also, we will ask LLMs to generate ```N``` number of test cases, where ```N``` is the cyclomatic complexity of the focal method. The intuition is that one test may not be sufficient for covering fairly complex methods, and a cyclomatic complexity score can provide some guidance towards that. \n",
99
"\n",
10-
"(Step 1) First, we will import all the neccessary libraries"
10+
"(Step 1) First, we will import all the necessary libraries"
1111
],
1212
"metadata": {
1313
"collapsed": false

0 commit comments

Comments
 (0)