<commit_before># Tellina

Tellina uses natural language processing (NLP) to translate an English sentence, such as "Find text file in the current folder", into a bash command, such as `find . -name "*.txt"`.

You can try it now at http://tellina.rocks .
Or, you can install it locally; this document tells you how.

### Install Tensorflow:

Tellina uses Tensorflow r0.12. (We are upgrading to r1.1 soon!) 

Follow the instructions on the [Tensorflow website](https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html). The simplest way is to install using [`pip3`](https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#pip-installation).

### Install other dependencies:

```
pip3 install -r requirements.txt
```

### Set up tellina_learning_module submodule:

```
git submodule update --init --remote
git submodule foreach git pull origin master
```
To update the tellina_learning_module in the future, run:
```
git submodule update --remote
```

### Set up databases:

```
python3 manage.py makemigrations
python3 manage.py migrate
```

### Run webapp:

```
make run
```
Visit http://127.0.0.1:8000 in your browser.
<commit_msg>Update commands for set up database and git<commit_after># Tellina

Tellina uses natural language processing (NLP) to translate an English sentence, such as "Find text file in the current folder", into a bash command, such as `find . -name "*.txt"`.

You can try it now at http://tellina.rocks .
Or, you can install it locally; this document tells you how.

### Install Tensorflow:

Tellina uses Tensorflow r0.12. (We are upgrading to r1.1 soon!) 

Follow the instructions on the [Tensorflow website](https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html). The simplest way is to install using [`pip3`](https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#pip-installation).

### Install other dependencies:

```
pip3 install -r requirements.txt
```

### Set up tellina_learning_module submodule:

```
git submodule update --init --remote
git submodule foreach git pull origin master
```
To update the tellina_learning_module in the future, run:
```
make git
```

### Set up databases:

```
make db
```

### Run webapp:

```
make run
```
Visit http://127.0.0.1:8000 in your browser.

{'fraction_non_alphanumeric': 0.12180052956751986, 'fraction_numerical': 0.02118270079435128, 'mean_word_length': 4.397619047619048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '437621', 'n_tokens_mistral': 746, 'n_tokens_neox': 681, 'n_words': 259}