Skip to content

Commit

Permalink
Remove "python" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkovtsev committed Nov 30, 2017
1 parent d355f7b commit 3eac434
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 47 deletions.
3 changes: 3 additions & 0 deletions python/.gitignore → .gitignore
@@ -1,3 +1,6 @@
bundle
*.asdf

#Mac OS
*.DS_Store

Expand Down
File renamed without changes.
46 changes: 44 additions & 2 deletions README.md
@@ -1,3 +1,45 @@
# Apollo
Apollo
======

Reference implementation of the [src-d/gemini](https://github.com/src-d/src-d/gemini) application in Python, used for research.
### Installation

```
mount -o bind /path/to/sourced-ml bundle/ml
mount -o bind /path/to/spark-2.2.0-bin-hadoop2.7 bundle/spark
mount -o bind /path/to/sourced-engine bundle/engine
docker build -t srcd/apollo .
docker run --name scylla -p 9042:9042 -v /var/lib/scylla:/var/lib/scylla -d scylladb/scylla --developer-mode=1
docker run -it --rm --link scylla srcd/apollo resetdb --cassandra scylla:9042
docker run -d --name bblfshd --privileged -p 9432:9432 -v /var/lib/bblfshd:/var/lib/bblfshd bblfsh/bblfshd
docker exec -it bblfshd bblfshctl driver install --all
```

### Bags

```
docker run -it --rm -v /path/to/io:/io --link bblfshd --link scylla srcd/apollo bags -r /io/siva --batches /io/batches --docfreq /io/docfreq.asdf -f id -l Java -s 'local[*]' --min-docfreq 5 --bblfsh bblfshd --cassandra scylla:9042 --persist MEMORY_ONLY
```

### Hash

```
docker run -it --rm -v /path/to/io:/io --link scylla srcd/apollo hash /io/batches -p /io/params.asdf -t 0.9 --cassandra scylla:9042
```

### Query sha1

```
docker run -it --rm -v /path/to/io:/io --link scylla srcd/apollo query -i ef8b407d95028e94ada6fe18badeb44c9d1bfe22 --precise --docfreq /io/docfreq.asdf -t 0.9 --cassandra scylla:9042
```

### Query file

```
docker run -it --rm -v /path/to/io:/io -v .:/q --link bblfshd --link scylla srcd/apollo query -f /q/myfile.java --bblfsh bblfshd --cassandra scylla:9042 --precise --docfreq /io/docfreq.asdf --params /io/params.asdf -t 0.9
```

### Dump hash graph

```
docker run -it --rm --link scylla srcd/apollo hashgraph --cassandra scylla:9042 | sort | uniq > graph.txt
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 0 additions & 45 deletions python/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3eac434

Please sign in to comment.