<commit_before>#!/bin/bash

usuario=$(./app/utils/UsuarioLogado.sh)

if [[ ! -d "/home/$usuario/docker/docker-compose.yml" ]]; then
	mkdir /home/$usuario/docker

	wget https://gist.githubusercontent.com/matheus-souza/a888eea8902159f690b53aae2005343b/raw/346ac1bff8e9559c4b84abbaaef4378e2c2a4484/docker-compose.yml -O /home/$usuario/docker/docker-compose.yml
fi

InstalacaoTrusty() {
	sudo apt-get install python-pip -y
	sudo pip install -U docker-compose
	sudo chmod +x /usr/local/bin/docker-compose
}

InstalacaoXenial() {
	sudo apt-get install docker-compose
}

case $(lsb_release -cs) in
	"trusty") InstalacaoTrusty ;;
	"xenial") InstalacaoXenial ;;
esac

chmod 777 /home/$usuario/docker -R

cd /home/$usuario/docker/

sudo docker-compose up -d<commit_msg>Ajustando script<commit_after>#!/bin/bash

usuario=$(./app/utils/UsuarioLogado.sh)
Portainer() {
	if [[ ! -d "/home/$usuario/portainer/docker-compose.yml" ]]; then
		mkdir /home/$usuario/docker

		wget https://gist.githubusercontent.com/matheus-souza/a888eea8902159f690b53aae2005343b/raw/346ac1bff8e9559c4b84abbaaef4378e2c2a4484/docker-compose.yml -O /home/$usuario/docker/docker-compose.yml
	fi

	chmod 777 /home/$usuario/docker -R

	cd /home/$usuario/docker/

	sudo docker-compose up -d	
}

Docker() {
	sudo ./app/desenvolvedor/docker-ce.sh
}

docker=$(./app/utils/VerificaInstalacaoDocker.sh)

if [[ $docker != "true" ]]; then
	Docker
	Portainer
else
	Portainer
fi
{'fraction_non_alphanumeric': 0.14446002805049088, 'fraction_numerical': 0.06591865357643759, 'mean_word_length': 4.425855513307985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5299557', 'n_tokens_mistral': 703, 'n_tokens_neox': 605, 'n_words': 89}