<commit_before>#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

# Wrapper script around docker-compose

set -e

for i in "$@" ; do
  if [[ "$i" == "up" ]]; then
    # Check for required environment variables on startup
    if [ -z ${GITHUB_CLIENT_ID:+x} ]; then
      echo "ERROR: Must set GITHUB_CLIENT_ID environment variable"; exit 1;
    fi
    if [ -z ${GITHUB_CLIENT_SECRET:+x} ]; then
      echo "ERROR: Must set GITHUB_CLIENT_SECRET environment variable"; exit 1;
    fi
    if [ -z ${OAUTH_CALLBACK_URL:+x} ]; then
      echo "ERROR: Must set OAUTH_CALLBACK_URL environment variable"; exit 1;
    fi

    # Set DOCKER_HOST to daemon of target machine
    DOCKER_MACHINE_URL=$(docker-machine url $(docker-machine active))
    # Strip the protocol from the url
    DOCKER_HOST="${DOCKER_MACHINE_URL#*//*}"
  fi
done

exec docker-compose "$@"<commit_msg>Do not strip protocol from DOCKER_HOST.<commit_after>#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

# Wrapper script around docker-compose

set -e

for i in "$@" ; do
  if [[ "$i" == "up" ]]; then
    # Check for required environment variables on startup
    if [ -z ${GITHUB_CLIENT_ID:+x} ]; then
      echo "ERROR: Must set GITHUB_CLIENT_ID environment variable"; exit 1;
    fi
    if [ -z ${GITHUB_CLIENT_SECRET:+x} ]; then
      echo "ERROR: Must set GITHUB_CLIENT_SECRET environment variable"; exit 1;
    fi
    if [ -z ${OAUTH_CALLBACK_URL:+x} ]; then
      echo "ERROR: Must set OAUTH_CALLBACK_URL environment variable"; exit 1;
    fi

    # Set DOCKER_HOST to daemon of target machine
    DOCKER_HOST=$(docker-machine url $(docker-machine active))
  fi
done

exec docker-compose "$@"
{'fraction_non_alphanumeric': 0.10918253079507279, 'fraction_numerical': 0.0033594624860022394, 'mean_word_length': 3.5470737913486006, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5761089', 'n_tokens_mistral': 614, 'n_tokens_neox': 592, 'n_words': 198}