LucianoPrd1 commited on
Commit
db349df
·
verified ·
1 Parent(s): 160d671

Upload java_code_dataset.csv

Browse files
Files changed (1) hide show
  1. java_code_dataset.csv +11 -0
java_code_dataset.csv ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ java_6_code,java_8_code,description
2
+ boolean function() { return isParsed; },public boolean function() { return isParsed(); },"Check if details are parsed, returning a boolean value."
3
+ File function() { return libraryFile; },public File function() { return libraryFile(); },Return the file representing the library.
4
+ void method(Collection c) { List l = new ArrayList(); },void method(Collection<?> c) { List<?> l = new ArrayList<>(); },Demonstrates the use of generics in Java 8 syntax.
5
+ int getSize() { return size; },public int getSize() { return size; },Get the size value as an integer.
6
+ void printMessage(String msg) { System.out.println(msg); },public void printMessage(String msg) { System.out.println(msg); },Print a message to the system output.
7
+ String getName() { return name; },public String getName() { return name; },Retrieve the name as a string value.
8
+ "void addElement(Collection c, Object o) { c.add(o); }","public void addElement(Collection<?> c, Object o) { c.add(o); }",Add an element to a collection.
9
+ double calculateArea(double radius) { return Math.PI * radius * radius; },public double calculateArea(double radius) { return Math.PI * radius * radius; },Calculate the area of a circle given the radius.
10
+ boolean checkStatus() { return status; },public boolean checkStatus() { return status; },Check and return the status as a boolean.
11
+ Date getCurrentDate() { return new Date(); },public Date getCurrentDate() { return new Date(); },Get the current date.