<commit_before># Meteor on Google Compute Engine
Install scripts to run Meteor on Google Compute Engine.


## Usage
1. Create a new project on GCE:  
   https://console.developers.google.com/

2. Download the gcloud tool:  
   https://developers.google.com/cloud/sdk/

3. Authenticate to Google Cloud Platform:  
   `gcloud auth login`

4. Configure gcloud to use your new project by default:  
   `gcloud config set project <YOUR_PROJECT_ID>`

5. Create a bucket in Google Cloud Storage (it needs to be unique) for example:  
   `gsutil mb gs://iloveq42`

6. Edit startup.sh to use your bucket. For example:  
   `export BUCKET='iloveq42'`

7. Copy startup.sh (replace 'iloveq42' with your bucket name):  
   `gsutil cp startup.sh gs://iloveq42`

8. Bundle your Meteor app:  
   `meteor bundle ../app0.0.1.tar.gz`

9. Copy your app to your bucket (replace 'iloveq42' with your bucket name):  
   `gsutil cp ../app0.0.1.tar.gz gs://iloveq42/versions/default.tar.gz`

10. Create a new persistent disk for MongoDB:  
    `gcloud compute disks create "mongo-data" --size "200" --zone "europe-west1-a" --type "pd-standard"`

11. Create a compute engine instance (replace 'iloveq42' with your bucket name):  
    `gcloud compute instances create "meteor" --zone "europe-west1-a" --tags "http-server" --scopes storage-ro --metadata startup-script-url=gs://iloveq42/startup.sh --disk "name=mongo-data" "mode=rw" "boot=no"`

This will output something like this:

    NAME   ZONE           MACHINE_TYPE  INTERNAL_IP   EXTERNAL_IP   STATUS
    meteor europe-west1-a n1-standard-1 10.240.134.93 192.168.127.12 RUNNING

At this point your site should be reachable on the external IP (http://192.168.127.12 in this case).<commit_msg>miiiiiiiinor elaboration<commit_after># Meteor on Google Compute Engine
Install scripts to run Meteor on Google Compute Engine.


## Usage
1. Create a new project on GCE:  
   https://console.developers.google.com/

2. Download the gcloud tool:  
   https://developers.google.com/cloud/sdk/

3. Authenticate to Google Cloud Platform:  
   `gcloud auth login`

4. Configure gcloud to use your new project by default:  
   `gcloud config set project <YOUR_PROJECT_ID>`

5. Create a bucket in Google Cloud Storage (it needs to be unique) for example:  
   `gsutil mb gs://iloveq42`

6. Edit startup.sh to use your bucket. For example:  
   `export BUCKET='iloveq42'`

7. Copy startup.sh (replace 'iloveq42' with your bucket name):  
   `gsutil cp startup.sh gs://iloveq42`

8. Bundle your Meteor app:  
   `meteor bundle ../app0.0.1.tar.gz`

9. Copy your app to your bucket (replace 'iloveq42' with your bucket name):  
   `gsutil cp ../app0.0.1.tar.gz gs://iloveq42/versions/default.tar.gz`

10. Create a new persistent disk for MongoDB:  
    `gcloud compute disks create "mongo-data" --size "200" --zone "europe-west1-a" --type "pd-standard"`

11. Create a compute engine instance using the startup.sh script (replace 'iloveq42' with your bucket name):  
    `gcloud compute instances create "meteor" --zone "europe-west1-a" --tags "http-server" --scopes storage-ro --metadata startup-script-url=gs://iloveq42/startup.sh --disk "name=mongo-data" "mode=rw" "boot=no"`

This will output something like this:

    NAME   ZONE           MACHINE_TYPE  INTERNAL_IP   EXTERNAL_IP   STATUS
    meteor europe-west1-a n1-standard-1 10.240.134.93 192.168.127.12 RUNNING

Done! At this point your site should be reachable on the external IP (http://192.168.127.12 in this case).
{'fraction_non_alphanumeric': 0.10840263837109262, 'fraction_numerical': 0.04301691998852882, 'mean_word_length': 3.3168316831683167, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 1, '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': '1708695', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1163, 'n_words': 411}