<commit_before>**Work in progress**

# devenv

Development environment MARK III

# How?

**for all commands below, you can ```s/alpha/concept/g```**

1. Bootstrap

```
./script/bootstrap alpha
```

2. Vagrant

```
vagrant up
vagrant ssh
fig -f up alpha/fig.yml
```

```workspace``` will contain clones of your projects, and you can make changes there.

# Hot reload

For now, the dev env won't pick up changes automatically. 

Change your code, then restart ```fig``` or do a "clean" with:

1. Ensure all containers are stop
2. Remove containers with ```docker rm $(docker ps --no-trunc -aq)```
3. Remove Land Registry images with ```docker rmi <uuid of image>```
4. Rebuild the images with ```fig -f alpha/fig.yml build```
5. Bring fig up with ```fig -f alpha/fig.yml up```

**(someone, please verify these for me)**<commit_msg>"more better" doc<commit_after>**Work in progress**

# devenv

Development environment MARK III

# How?

**for all commands below, you can ```s/alpha/concept/g```**

1. Bootstrap

```
./script/bootstrap 
```

## Need a subset?

You can copy any one of [alpha](alpha) or [concept](concept), modify it, and bootstrap it.

    cp -R alpha thingy
    # hack away, perhaps leave only Redis, ElasticSearch and PostgresQL, but run apps locally...
    ./script/bootstrap thingy

2. Vagrant

```
vagrant up
vagrant ssh
fig -f alpha/fig.yml up
```

```workspace``` will contain clones of your projects, and you can make changes there.

# Hot reload

For now, the dev env won't pick up changes automatically. 

Change your code, then restart ```fig``` or do a "clean" with:

1. Ensure all containers are stopped
2. Remove containers with

```
docker rm $(docker ps --no-trunc -aq)
```

3. Remove Land Registry images with
 
```
docker rmi <uuid of image>
```

Remove all images with

```
docker rmi $(docker images --no-trunc -q)
```

4. Rebuild the images with

```
fig -f alpha/fig.yml build
```

5. Bring fig up with

```
fig -f alpha/fig.yml up
```

**(someone, please verify these for me)**
{'fraction_non_alphanumeric': 0.13611525086934922, 'fraction_numerical': 0.006954793840039742, 'mean_word_length': 3.683720930232558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '34441', 'n_tokens_mistral': 706, 'n_tokens_neox': 635, 'n_words': 280}