-
Notifications
You must be signed in to change notification settings - Fork 1
Integration of features extraction, generation and algorithms evaluation #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… returns a list of methods and not a map.
…oaded into features-extraction
…hout number of calls.
…ss and add javadoc for it.
… in order to get rid of confusion with MoveMethodFeaturesExtractor.
…PsiMethod and apply filters to it.
…chitectureReloaded into integration2
| @@ -0,0 +1,9 @@ | |||
| if [ $# -ne "3" ]; then | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shebang missing
| return; | ||
| } | ||
|
|
||
| System.out.println("Found " + refactorings.size() + " refactorings: "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use log?
…ureReloaded into integration2
…rchitectureReloaded into smartPsiElementPointer_integration # Conflicts: # core/src/main/java/org/jetbrains/research/groups/ml_methods/algorithm/AlgorithmsRepository.java # core/src/main/java/org/jetbrains/research/groups/ml_methods/algorithm/RefactoringExecutionContext.java # core/src/main/java/org/jetbrains/research/groups/ml_methods/utils/PsiSearchUtil.java # core/src/test/java/org/jetbrains/research/groups/ml_methods/algorithm/AlgorithmAbstractTest.java # src/main/java/org/jetbrains/research/groups/ml_methods/intention/RefactoringAnnotator.java # src/main/java/org/jetbrains/research/groups/ml_methods/ui/AlgorithmsSelectionPanel.java # src/main/java/org/jetbrains/research/groups/ml_methods/ui/ClassRefactoringPanel.java
…rchitectureReloaded into smartPsiElementPointer_integration # Conflicts: # core/src/main/java/org/jetbrains/research/groups/ml_methods/algorithm/AlgorithmsRepository.java # core/src/main/java/org/jetbrains/research/groups/ml_methods/algorithm/RefactoringExecutionContext.java # core/src/main/java/org/jetbrains/research/groups/ml_methods/utils/PsiSearchUtil.java # core/src/test/java/org/jetbrains/research/groups/ml_methods/algorithm/AlgorithmAbstractTest.java # src/main/java/org/jetbrains/research/groups/ml_methods/intention/RefactoringAnnotator.java # src/main/java/org/jetbrains/research/groups/ml_methods/ui/AlgorithmsSelectionPanel.java # src/main/java/org/jetbrains/research/groups/ml_methods/ui/ClassRefactoringPanel.java
…_integration Migration to SmartPsiElementPointer and erasing name-based search and identification.
| public static String extractMethodDeclaration(final @NotNull PsiMethod method) { | ||
| String code = method.getText(); | ||
|
|
||
| code = Pattern.compile("/\\*.*?\\*/", Pattern.DOTALL).matcher(code).replaceAll(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно тут хотя бы комменты добавить про эти регэкспы?
…ting features for them in advance.
…where necessary (same with getTarget).
This PR continues integration and adds new modules to current system.
Contains commits from #94 and thus fixes #71