From 2d9d38b69a997ffd4ca39773b5256ae5f924cda1 Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:05:49 +0800 Subject: [PATCH] Patched /private/var/folders/19/08z9_xys69v3f1xfqtyn9jyw0000gn/T/tmp9f5t66d9/tests/cicd/generate_docstring/java_test_file.java --- tests/cicd/generate_docstring/java_test_file.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/cicd/generate_docstring/java_test_file.java b/tests/cicd/generate_docstring/java_test_file.java index 51a073a3..a199568c 100644 --- a/tests/cicd/generate_docstring/java_test_file.java +++ b/tests/cicd/generate_docstring/java_test_file.java @@ -1,8 +1,23 @@ class Test { + /** + * Adds two integers together. + * + * @param a The first integer to be added + * @param b The second integer to be added + * @return The sum of the two input integers + */ public static int a_plus_b(Integer a, Integer b) { return a + b; } + /** + * Compares two objects using a provided key mapping function. + * + * @param keymap A function that maps objects to Comparable values for comparison + * @param a The first object to compare + * @param b The second object to compare + * @return -1 if a is less than b, 1 if a is greater than b, 0 if they are equal + */ public static int a_plus_b(Function keymap, object a, Object b) { if (keymap(a) < keymap(b)) { return -1;