<commit_before>Overview
========

The code in this directory is intended to answer
[this question](https://stackoverflow.com/q/24021214).

The script `fdisk.sh` automates repartitioning, reboot, and file system resizing
to enable using arbitrarily-sized disks with VM images that by default expand to
only 10GB of space when instantiated.

The script `gcutil.sh` automates VM instance creation, running commands across
all instances, and bringing them all down. It uses the `gcutil` command which is
part of the [Google Cloud SDK](https://developers.google.com/cloud/sdk/) so be
sure to have it installed prior to using these scripts.

Usage
-----

To bring up several instances on GCE, run:

```bash
make INSTANCE_SIZES="10 15 30" create
```

After you wait for them to boot, repartition, reboot, and resize the
filesystems, you can verify their new sizes by running `df` on all of them via:

```bash
make INSTANCE_SIZES="10 15 30" df
```<commit_msg>Added instructions to follow before deploying any instances.<commit_after>Overview
========

The code in this directory is intended to answer
[this question](https://stackoverflow.com/q/24021214).

The script `fdisk.sh` automates repartitioning, reboot, and file system resizing
to enable using arbitrarily-sized disks with VM images that by default expand to
only 10GB of space when instantiated.

The script `gcutil.sh` automates VM instance creation, running commands across
all instances, and bringing them all down. It uses the `gcutil` command which is
part of the [Google Cloud SDK](https://developers.google.com/cloud/sdk/) so be
sure to have it installed prior to using these scripts.

Usage
-----

Before trying out any of the examples below, be sure to modify `settings.sh` to
point to a project that you have access to, and which is enabled to create new
GCE VM instances.

To bring up several instances on GCE, run:

```bash
make INSTANCE_SIZES="10 15 30" create
```

After you wait for them to boot, repartition, reboot, and resize the
filesystems, you can verify their new sizes by running `df` on all of them via:

```bash
make INSTANCE_SIZES="10 15 30" df
```
{'fraction_non_alphanumeric': 0.08039492242595205, 'fraction_numerical': 0.020686412787964268, 'mean_word_length': 4.644562334217507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4101428', 'n_tokens_mistral': 648, 'n_tokens_neox': 588, 'n_words': 302}