<commit_before>#!/bin/bash
# On Mac, start docker daemon if not running
if docker-machine  > /dev/null 2>&1; then
    eval $(docker-machine env default)
fi
# Stop and/or remove existing opengrid-dev container, if any
if docker ps -a | grep -q opengrid-release; then
	echo "Stopping and/or removing existing opengrid-release container."
	docker stop opengrid-release > /dev/null
	docker rm opengrid-release > /dev/null
fi
# Start the docker, publish port 8888 to host 
# mount current folder to /usr/local/opengrid in the container
# for data persistence, mount ./data to the /data folder
# if you want to store the data in a different location, modify the command below
CID=$(docker run -d -p 8888:8888 -v $(pwd -P)/notebooks:/usr/local/opengrid/notebooks/User -v $(pwd -P)/data:/data --name opengrid-release opengrid/release:latest)

# Give it some time
sleep 1s 

URL=http://$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}):8888
echo "Opengrid notebook server running on $URL"
echo "We will attempt to open your browser on this page."
echo "If it fails, enter this in a browser to access the jupyter notebook server."

# open the browser
if which xdg-open > /dev/null
then
  xdg-open $URL/tree
elif which gnome-open > /dev/null
then
  gnome-open $URL/tree
fi<commit_msg>Try to make run docker work for all operatingsystems<commit_after>#!/bin/bash
# On Mac, start docker daemon if not running
if docker-machine  > /dev/null 2>&1; then
    docker-machine start
    docker-machine env
    eval $(docker-machine env default)
fi
# Stop and/or remove existing opengrid-release container, if any
if docker ps -a | grep -q opengrid-release; then
	echo "Stopping and/or removing existing opengrid-release container."
	docker stop opengrid-release > /dev/null
	docker rm opengrid-release > /dev/null
fi
# Start the docker, publish port 8888 to host 
# mount current folder to /usr/local/opengrid in the container
# for data persistence, mount ./data to the /data folder
# if you want to store the data in a different location, modify the command below
CID=$(docker run -d -p 8888:8888 -v $(pwd -P)/notebooks:/usr/local/opengrid/notebooks/User -v $(pwd -P)/data:/data --name opengrid-release opengrid/release:latest)

# Give it some time
sleep 1s 

URL=http://$(docker-machine ip default):8888
echo "Opengrid notebook server running on $URL"
echo "We will attempt to open your browser on this page."
echo "If it fails, enter this in a browser to access the jupyter notebook server."

# open the browser
command --search $start >/dev/null; and begin
    start $URL
end; or begin
    open $URL
end

{'fraction_non_alphanumeric': 0.09739263803680982, 'fraction_numerical': 0.014570552147239263, 'mean_word_length': 3.885767790262172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '5681866', 'n_tokens_mistral': 851, 'n_tokens_neox': 784, 'n_words': 342}