<commit_before>#!/bin/sh

if [ -z "$MIX_ENV" ]
then
  export MIX_ENV=prod
fi


UNAMESTR=$(UNAME)
KERNEL_DIR=""
KERNEL=ielixir

# Provide setup according to kernel-spec
# https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs
if [[ "$UNAMESTR" == 'linux' ]]; then
	KERNEL_DIR=~/.local/share/jupyter/kernels
elif [[ "$UNAMESTR" == 'Darwin' ]]; then
	KERNEL_DIR=~/Library/Jupyter/kernels
fi

TARGET_DIR=$KERNEL_DIR/$KERNEL
mkdir -p $TARGET_DIR

START_SCRIPT_PATH=$(cd `dirname "$0"` && pwd)/start_script.sh

# help links and language info is provided on connection
# by the client
CONTENT='{
   "argv": ["'${START_SCRIPT_PATH}'", "{connection_file}"],
   "display_name": "'${KERNEL}'",
   "language": "Elixir"
}'
echo $CONTENT | python -m json.tool > $TARGET_DIR/kernel.json

mix ecto.migrate -r IElixir.Repo<commit_msg>Fix typo in install detection for linux<commit_after>#!/bin/sh

if [ -z "$MIX_ENV" ]
then
  export MIX_ENV=prod
fi


UNAMESTR=$(UNAME)
KERNEL_DIR=""
KERNEL=ielixir

# Provide setup according to kernel-spec
# https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs
if [[ "$UNAMESTR" == 'Linux' ]]; then
	KERNEL_DIR=~/.local/share/jupyter/kernels
elif [[ "$UNAMESTR" == 'Darwin' ]]; then
	KERNEL_DIR=~/Library/Jupyter/kernels
fi

TARGET_DIR=$KERNEL_DIR/$KERNEL
mkdir -p $TARGET_DIR

START_SCRIPT_PATH=$(cd `dirname "$0"` && pwd)/start_script.sh

# help links and language info is provided on connection
# by the client
CONTENT='{
   "argv": ["'${START_SCRIPT_PATH}'", "{connection_file}"],
   "display_name": "'${KERNEL}'",
   "language": "Elixir"
}'
echo $CONTENT | python -m json.tool > $TARGET_DIR/kernel.json

mix ecto.migrate -r IElixir.Repo
{'fraction_non_alphanumeric': 0.1696113074204947, 'fraction_numerical': 0.001177856301531213, 'mean_word_length': 5.133574007220217, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4393934', 'n_tokens_mistral': 662, 'n_tokens_neox': 643, 'n_words': 137}