JohnMelwin18 commited on
Commit
e38f8c0
1 Parent(s): 6d83b69

Upload modified_traceability_dataset.json

Browse files
Files changed (1) hide show
  1. modified_traceability_dataset.json +50 -0
modified_traceability_dataset.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "instruction": "Check if the requirement is linked to the method",
3
+ "input": "REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}",
4
+ "output": "Yes, the requirement is linked with the sqrt method."
5
+ }
6
+ {
7
+ "instruction": "Check if the requirement is linked to the method",
8
+ "input": "REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}",
9
+ "output": "Yes, the requirement is linked with the concat method."
10
+ }
11
+ {
12
+ "instruction": "Check if the requirement is linked to the method",
13
+ "input": "REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}",
14
+ "output": "Yes, the requirement is linked with the max method."
15
+ }
16
+ {
17
+ "instruction": "Check if the requirement is linked to the method",
18
+ "input": "REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}",
19
+ "output": "Yes, the requirement is linked with the sortArray method."
20
+ }
21
+ {
22
+ "instruction": "Check if the requirement is linked to the method",
23
+ "input": "REQUIREMENT: Convert temperature from Celsius to Fahrenheit METHOD: public double celsiusToFahrenheit(double celsius) {return (celsius * 9/5) + 32;}",
24
+ "output": "Yes, the requirement is linked with the celsiusToFahrenheit method."
25
+ }
26
+ {
27
+ "instruction": "Check if the requirement is linked to the method",
28
+ "input": "REQUIREMENT: Check if a number is prime METHOD: public boolean isPrime(int number) { /* Prime checking logic */ }",
29
+ "output": "Yes, the requirement is linked with the isPrime method."
30
+ }
31
+ {
32
+ "instruction": "Check if the requirement is linked to the method",
33
+ "input": "REQUIREMENT: Reverse a string METHOD: public String reverseString(String str) { /* Reversing logic */ }",
34
+ "output": "Yes, the requirement is linked with the reverseString method."
35
+ }
36
+ {
37
+ "instruction": "Check if the requirement is linked to the method",
38
+ "input": "REQUIREMENT: Calculate factorial METHOD: public int factorial(int n) { /* Factorial logic */ }",
39
+ "output": "Yes, the requirement is linked with the factorial method."
40
+ }
41
+ {
42
+ "instruction": "Check if the requirement is linked to the method",
43
+ "input": "REQUIREMENT: Convert miles to kilometers METHOD: public double milesToKilometers(double miles) {return miles * 1.60934;}",
44
+ "output": "Yes, the requirement is linked with the milesToKilometers method."
45
+ }
46
+ {
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
+ }