Pre-requisites:
-
Eclipse
-
xampp
Instructions:
-
Start xampp server
-
On phpmyadmin, create a new database designpatternrepo
-
Import the latest sql script to populate the designpatternrepo database
Building fact repository of mined and tagged design pattern instances per project:
- In eclipse, the MatrixFrame.java file in gr.uom.java.pattern.gui folder is the starting point which executes the design pattern detection utility and also the topic detection. It requires as input the path of the project source code. Once competed all info is updated in the designpatternrepo database.
Get recommendations for a user project
- The DemoJFileChooser.java file is located in /TopicExtractionUtility/src/cc/mallet/javaTotext/DemoJFileChooser.java It is the starting point of execution of the recommendations and matching heuristics. Upon running, it requires as input the path of the file or files or project of the user for which the design patterns are to be recommended based on matching domains or topics.
The database for SEWordSIM is the 444MB SEWordSim-r1.db file. It is not uploaded on this Github repository because of the 100MB file size limitation. It needs to be placed in the TopicExtractionUtility folder. It can be downloaded from the following link https://drive.google.com/folderview?id=0B8cuz9Ureg2bdEZRTlhTU0FmNmM&usp=sharing#