A repo for the Teddy tool.
- Elasticsearch 2.2.0
- Apache Maven 3.6.3 or higher
-
In
.\config\elasticsearch.yml
file of Elasticsearch folder, addindex.query.bool.max_clause_count: 20480
andaction.auto_create_index: .marvel-*
to the file. Save and close the file. -
Using
cmd
or PowerShell Go to.\bin
directory of your local Elasticsearch folder. -
Execute
.\elasticsearch
command to run an Elasticsearch instance.
-
Use
git clone
to make a local copy of this branch on your machine, or download this branch as a.zip
package and extract it. -
From
.\config\elasticsearch.yml
file in the Elasticsearch folder, check the value of the parametercluster.name
, then set the value of the propertycluster
inside.\webapp\config.properties
in SP2019-TEDDY folder to be the same name. -
In
config.properties
file, be sure to set the value of propertyindex
to 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=pretty
on a web browser). -
Using another
cmd
or PowerShell instance, go to.\webbapp
directory of SP2019-TEDDY folder -
Use the command
mvn spring-boot:run
to launch Spring-boot framework and run TEDDY -
On any web browser, go to
localhost:8080/search
to 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
pandas
library for Pythonbokeh
library for Pythongit
bash 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.sh
at~/detection-mode/
with the following order of arguments:.git
URL 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.html
will 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.