<commit_before>#!/bin/sh
#
#

cleanup()
{
  apc capsule delete mysql-client --batch || true
  apc capsule delete mysql-client-reader --batch || true
}

# process common options
source ./setup-mysql-common.sh

# --- main ----

# 1. Create the capsule
apc capsule create mysql-client --package mysql-snapshot --allow-egress --batch

# 4. Bind to the service
apc service bind mysql-ha -j mysql-client --batch

# 3. Create the capsule for the reader
apc capsule create mysql-client-reader --package mysql-snapshot --batch

# 4. Bind to the service
apc service bind mysql-ha -j mysql-client-reader --batch<commit_msg>stop client before binding<commit_after>#!/bin/sh
#
#

cleanup()
{
  apc capsule delete mysql-client --batch || true
  apc capsule delete mysql-client-reader --batch || true
}

# process common options
source ./setup-mysql-common.sh

# --- main ----

# 1. Create the capsule
apc capsule create mysql-client --package mysql-snapshot --allow-egress --batch

# 2. Stop it
apc capsule stop mysql-client

# 3. Bind to the service
apc service bind mysql-ha -j mysql-client --batch

# 4. Create the capsule for the reader
apc capsule create mysql-client-reader --package mysql-snapshot --batch

# 5. Stop it
apc capsule stop mysql-client-reader

# 6. Bind to the service
apc service bind mysql-ha -j mysql-client-reader --batch

# 7. start both capsules
apc capsule start mysql-client
apc capsule start mysql-client-reader
{'fraction_non_alphanumeric': 0.1107217939733707, 'fraction_numerical': 0.007708479327259986, 'mean_word_length': 3.2373887240356085, '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': '5191981', 'n_tokens_mistral': 460, 'n_tokens_neox': 431, 'n_words': 168}