<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")/../" && pwd )"
BaseV1=$DIR/src/protected/application/themes/BaseV1/assets

if [ $1 ]; then
	DOMAIN=$1
        echo $DOMAIN
else
	DOMAIN=localhost
fi

if [ $2 ]; then
	CONFIG=$2
else
	CONFIG=config.php
fi

CDIR=$( pwd )
cd $DIR/src/protected/tools/

ASSETS_FOLDER=$(MAPASCULTURAIS_CONFIG_FILE=$CONFIG HTTP_HOST=$DOMAIN REQUEST_METHOD='CLI' REMOTE_ADDR='127.0.0.1' REQUEST_URI='/' SERVER_NAME=127.0.0.1 SERVER_PORT="8000" php get-theme-assets-path.php)

echo "compilando main.css do tema BaseV1"
sass $BaseV1/css/sass/main.scss:$BaseV1/css/main.css -E "UTF-8"

#echo "aplicando o autoprefixer no main.css do tema BaseV1"
#autoprefixer-cli $BaseV1/css/main.css

if [ -f $ASSETS_FOLDER/css/sass/main.scss ]; then
  echo "compilando main.css do tema ativo $ASSETS_FOLDER/"
  sass $ASSETS_FOLDER/css/sass/main.scss:$ASSETS_FOLDER/css/main.css -E "UTF-8"

#  echo "aplicando o autoprefixer no main.css do tema ativo $ASSETS_FOLDER/"
#  autoprefixer-cli $ASSETS_FOLDER/css/main.css
fi

cd $CDIR;<commit_msg>fix compile-saas.sh script<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")/../" && pwd )"
BaseV1=$DIR/src/protected/application/themes/BaseV1/assets

if [ $1 ]; then
	DOMAIN=$1
        echo $DOMAIN
else
	DOMAIN=localhost
fi

if [ $2 ]; then
	CONFIG=$2
else
	CONFIG=config.php
fi

CDIR=$( pwd )
cd $DIR/src/protected/tools/

ASSETS_FOLDER=$(MAPASCULTURAIS_CONFIG_FILE=$CONFIG HTTP_HOST=$DOMAIN REQUEST_METHOD='CLI' REMOTE_ADDR='127.0.0.1' REQUEST_URI='/' SERVER_NAME=127.0.0.1 SERVER_PORT="8000" php get-theme-assets-path.php)

echo "compilando main.css do tema BaseV1"
sass $BaseV1/css/sass/main.scss $BaseV1/css/main.css -E "UTF-8"

#echo "aplicando o autoprefixer no main.css do tema BaseV1"
#autoprefixer-cli $BaseV1/css/main.css

if [ -f $ASSETS_FOLDER/css/sass/main.scss ]; then
  echo "compilando main.css do tema ativo $ASSETS_FOLDER/"
  sass $ASSETS_FOLDER/css/sass/main.scss $ASSETS_FOLDER/css/main.css -E "UTF-8"

#  echo "aplicando o autoprefixer no main.css do tema ativo $ASSETS_FOLDER/"
#  autoprefixer-cli $ASSETS_FOLDER/css/main.css
fi

cd $CDIR;
{'fraction_non_alphanumeric': 0.1531322505800464, 'fraction_numerical': 0.027842227378190254, 'mean_word_length': 4.5424164524421595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6577276', 'n_tokens_mistral': 976, 'n_tokens_neox': 930, 'n_words': 177}