A repo for the Teddy tool.
- Elasticsearch 2.2.0
- Apache Maven 3.6.3 or higher
-
In
.\config\elasticsearch.ymlfile of Elasticsearch folder, addindex.query.bool.max_clause_count: 20480andaction.auto_create_index: .marvel-*to the file. Save and close the file. -
Using
cmdor PowerShell Go to.\bindirectory of your local Elasticsearch folder. -
Execute
.\elasticsearchcommand to run an Elasticsearch instance.
-
Use
git cloneto make a local copy of this branch on your machine, or download this branch as a.zippackage and extract it. -
From
.\config\elasticsearch.ymlfile in the Elasticsearch folder, check the value of the parametercluster.name, then set the value of the propertyclusterinside.\webapp\config.propertiesin SP2019-TEDDY folder to be the same name. -
In
config.propertiesfile, be sure to set the value of propertyindexto be the name of an existing index in your local Elasticsearch. (To see the list of index in your Elasticsearch, go tolocalhost:9200/_cat/indices?v=prettyon a web browser). -
Using another
cmdor PowerShell instance, go to.\webbappdirectory of SP2019-TEDDY folder -
Use the command
mvn spring-boot:runto launch Spring-boot framework and run TEDDY -
On any web browser, go to
localhost:8080/searchto start using TEDDY (Google Chrome is recommended).
** DON - Please work on this part **
**WARNING: These steps have only been tested on Linux **
DO NOT REMOVE ANY OF THE FILES IN THIS FOLDER
- Needed dependencies and library before start using:
- Java JDK 1.8 or above
- Python 3.X.X
pandaslibrary for Pythonbokehlibrary for Pythongitbash for Linux
- Open a terminal and turn on Elasticsearch server (
./elasticsearch) at~/elasticsearch-2.2.0-linux/bin - Make sure there is no any folder located in the directory
~/detection-mode/ - Open another terminal and execute
AutoRun.shat~/detection-mode/with the following order of arguments:.gitURL of a GitHub repository- directory for the result CSV files from Siamese to be saved, NOT within THE REPO (absolute path recommended)
- name for the Elasticsearch index of the repo (no whitespace allowed)
- Example:
$ ./AutoRun https://github.com/pallets/flask.git /home/flask-results flask
- Finally, a file named
myplot.htmlwill be created here. This is the final visualization of detection mode. Move it to wherever you like. Use a web browswer (Google Chrome is recommended) to view the file. - NOTE: Detection mode takes a considerable amount of time to complete depending on the repository's size and number of commits present.