<commit_before>#!/usr/bin/env bash

# Create the swarm master
docker-machine create \
  -d virtualbox \
  --swarm --swarm-image="swarm" --swarm-master \
  --swarm-discovery="consul://$(docker-machine ip mh-keystore):8500" \
  --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" \
  --engine-opt="cluster-advertise=eth1:2376" \
  swarm-master

# Create 3 swarm slaves
for i in {1..3}
do
  docker-machine create \
    -d virtualbox \
    --swarm --swarm-image="swarm:latest" \
    --swarm-discovery="consul://$(docker-machine ip mh-keystore):8500" \
    --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" \
    --engine-opt="cluster-advertise=eth1:2376" \
    swarm-node-$i
done

# Digital Ocean setup
#  docker-machine create \
#    --driver digitalocean \
#    --digitalocean-access-token $DO_ACCESS_TOKEN \
#    --digitalocean-image "ubuntu-15-04-x64" \
#    --digitalocean-region "fra1" \
#    --digitalocean-size "2gb" \
#    --digitalocean-private-networking \
#    --swarm \
#    --swarm-master \
#    --swarm-discovery token://$SWARM_TOKEN \
#    swarm-master

#  for i in $(seq 1 $NUMBER_OF_NODES); do
#  docker-machine create \
#    --driver digitalocean \
#    --digitalocean-access-token $DO_ACCESS_TOKEN \
#    --digitalocean-image "ubuntu-15-04-x64" \
#    --digitalocean-region "fra1" \
#    --digitalocean-size "2gb" \
#    --digitalocean-private-networking \
#    --swarm \
#    --swarm-discovery token://$SWARM_TOKEN \
#    swarm-node-$i;
#  done;
<commit_msg>Increase machine load to 2 cores and 2GB of memory<commit_after>#!/usr/bin/env bash

# Create the swarm master
docker-machine create \
  -d virtualbox \
  --virtualbox-memory "2048" \
  --virtualbox-cpu-count "2" \
  --swarm --swarm-image="swarm" --swarm-master \
  --swarm-discovery="consul://$(docker-machine ip mh-keystore):8500" \
  --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" \
  --engine-opt="cluster-advertise=eth1:2376" \
  swarm-master

# Create 3 swarm slaves
for i in {1..3}
do
  docker-machine create \
    -d virtualbox \
    --virtualbox-memory "2048" \
    --virtualbox-cpu-count "2" \
    --swarm --swarm-image="swarm:latest" \
    --swarm-discovery="consul://$(docker-machine ip mh-keystore):8500" \
    --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" \
    --engine-opt="cluster-advertise=eth1:2376" \
    swarm-node-$i
done

# Digital Ocean setup
#  docker-machine create \
#    --driver digitalocean \
#    --digitalocean-access-token $DO_ACCESS_TOKEN \
#    --digitalocean-image "ubuntu-15-04-x64" \
#    --digitalocean-region "fra1" \
#    --digitalocean-size "2gb" \
#    --digitalocean-private-networking \
#    --swarm \
#    --swarm-master \
#    --swarm-discovery token://$SWARM_TOKEN \
#    swarm-master

#  for i in $(seq 1 $NUMBER_OF_NODES); do
#  docker-machine create \
#    --driver digitalocean \
#    --digitalocean-access-token $DO_ACCESS_TOKEN \
#    --digitalocean-image "ubuntu-15-04-x64" \
#    --digitalocean-region "fra1" \
#    --digitalocean-size "2gb" \
#    --digitalocean-private-networking \
#    --swarm \
#    --swarm-discovery token://$SWARM_TOKEN \
#    swarm-node-$i;
#  done;

{'fraction_non_alphanumeric': 0.17667185069984448, 'fraction_numerical': 0.03234836702954899, 'mean_word_length': 2.679633867276888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '902457', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1203, 'n_words': 199}