JohnMelwin18 commited on
Commit
3341c09
1 Parent(s): e38f8c0

Update modified_traceability_dataset.json

Browse files
Files changed (1) hide show
  1. modified_traceability_dataset.json +22 -1
modified_traceability_dataset.json CHANGED
@@ -47,4 +47,25 @@
47
  "instruction": "Check if the requirement is linked to the method",
48
  "input": "REQUIREMENT: Generate random number METHOD: public int randomInt(int min, int max) { /* Random number generation logic */ }",
49
  "output": "Yes, the requirement is linked with the randomInt method."
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  "instruction": "Check if the requirement is linked to the method",
48
  "input": "REQUIREMENT: Generate random number METHOD: public int randomInt(int min, int max) { /* Random number generation logic */ }",
49
  "output": "Yes, the requirement is linked with the randomInt method."
50
+ }
51
+ {
52
+ "instruction": "Check if the requirement is linked to the method",
53
+ "input": "REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}",
54
+ "output": "Yes, the requirement is linked with the sqrt method."
55
+ }
56
+ {
57
+ "instruction": "Check if the requirement is linked to the method",
58
+ "input": "REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}",
59
+ "output": "Yes, the requirement is linked with the concat method."
60
+ }
61
+ {
62
+ "instruction": "Check if the requirement is linked to the method",
63
+ "input": "REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}",
64
+ "output": "Yes, the requirement is linked with the max method."
65
+ }
66
+ {
67
+ "instruction": "Check if the requirement is linked to the method",
68
+ "input": "REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}",
69
+ "output": "Yes, the requirement is linked with the sortArray method."
70
+ }
71
+