underbless / pp1-dp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hguisel/pp1-dp
This project forked from hguisel/pp1-dp
public void testCLAMIWithApacheProjectToFindBestCutoffForPrecision() {
// TASK5 TODO Use this method to find the best cutoff
String bestCutoff = "80g";
String[] args = {"-f","data/Apache.arff","-l","isDefective","-p", "TRUE", "-m", "-c", bestCutoff};
CLAMI.main(args);
}
@Test
public void testCLAMIWithApacheProjectToFindBestCutoffForFmeasure() {
// TASK6 TODO Use this method to find the best cutoff for f-measure
String bestCutoff = "80";
String[] args = {"-f","data/Apache.arff","-l","isDefective","-p", "TRUE", "-m", "-c", bestCutoff};
CLAMI.main(args);
}
public void testCLAMIWithYourSelectedProject() {
// TASK3: Conduct defect prediction by using CLAMI models
// complete this test case for the generated arff files from Task 2
String[] args = {"-f","data/PP1-DP.arff","-l","label","-p", "buggy", "-m"};
CLAMI.main(args);
}
private int computeNumOfMethodInvocations(JavaASTParser codeAST) {
// TASK1 TODO codeAST에서 매소드 호출된 개수를 가져온다.
return codeAST.getMethodInvocations().size();
}
private int computeNumOfForLoops(JavaASTParser codeAST) {
// TASK1 TODO codeAST에서 for loop의 개수를 가져온다.
return codeAST.getForStatements().size();
}
private int computeNumOfIfStatements(JavaASTParser codeAST) {
// TASK1 TODO codeAST에서 if문의 개수를 가져온다.
return codeAST.getIfStatements().size();
}
public void testForTasks2() {
// TASK2 TODO GitHub에서 작은 규모의 자바 프로젝트를 2개를 찾아, arff파일을 생성하시오. 파일이름은 [project이름].arff data디렉터리에 저장되게 하고
// 생성이 된 후 commit/push해야 함.
// 위 test main을 참고하여 실행하면 됨.
String[] args = {"/Users/minseok/dropbox/project1/bigdata/Java", "data/Java.arff"}; // for mac users
assertEquals(args.length,2);
Main.main(args);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.