File size: 3,867 Bytes
e38f8c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3341c09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}",
    "output": "Yes, the requirement is linked with the sqrt method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}",
    "output": "Yes, the requirement is linked with the concat method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}",
    "output": "Yes, the requirement is linked with the max method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}",
    "output": "Yes, the requirement is linked with the sortArray method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Convert temperature from Celsius to Fahrenheit METHOD: public double celsiusToFahrenheit(double celsius) {return (celsius * 9/5) + 32;}",
    "output": "Yes, the requirement is linked with the celsiusToFahrenheit method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Check if a number is prime METHOD: public boolean isPrime(int number) { /* Prime checking logic */ }",
    "output": "Yes, the requirement is linked with the isPrime method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Reverse a string METHOD: public String reverseString(String str) { /* Reversing logic */ }",
    "output": "Yes, the requirement is linked with the reverseString method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Calculate factorial METHOD: public int factorial(int n) { /* Factorial logic */ }",
    "output": "Yes, the requirement is linked with the factorial method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Convert miles to kilometers METHOD: public double milesToKilometers(double miles) {return miles * 1.60934;}",
    "output": "Yes, the requirement is linked with the milesToKilometers method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Generate random number METHOD: public int randomInt(int min, int max) { /* Random number generation logic */ }",
    "output": "Yes, the requirement is linked with the randomInt method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}",
    "output": "Yes, the requirement is linked with the sqrt method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}",
    "output": "Yes, the requirement is linked with the concat method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}",
    "output": "Yes, the requirement is linked with the max method."
}
{
    "instruction": "Check if the requirement is linked to the method",
    "input": "REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}",
    "output": "Yes, the requirement is linked with the sortArray method."
}