<commit_before>#!/bin/bash

if [ "$1" == "development" ] || [ "$1" == "production" ] || [ "$1" == "test" ]
then
  echo "Compiling Desktop"
  # Compile the CSS
  cat ./server/client/css/base.less ./server/client/css/desktop/*.less > /tmp/io-reader.desktop.less 
  cat ./server/client/css/base.less ./server/client/css/phone/*.less > /tmp/io-reader.phone.less 
  cat ./server/client/css/base.less ./server/client/css/tablet/*.less > /tmp/io-reader.tablet.less 
  cat ./server/client/css/base.less ./server/client/css/tv/*.less > /tmp/io-reader.tv.less 
 
  (
    cd ./build/less 
    node lessc /tmp/io-reader.desktop.less > ../../server/client/css/desktop.css
    node lessc /tmp/io-reader.desktop.less > ../../server/client-min/css/desktop.css
  
    node lessc /tmp/io-reader.phone.less > ../../server/client/css/phone.css
    node lessc /tmp/io-reader.phone.less > ../../server/client-min/css/phone.css

    node lessc /tmp/io-reader.tablet.less > ../../server/client/css/tablet.css
    node lessc /tmp/io-reader.tablet.less > ../../server/client-min/css/tablet.css
  
    node lessc /tmp/io-reader.tv.less > ../../server/client/css/tv.css
    node lessc /tmp/io-reader.tv.less > ../../server/client-min/css/tv.css)
  pwd
  # Compress the JS

  export NODE_ENV=$1
  node server/server.js
else
  echo "Arguments must be: 'development', 'production' or 'test'. For example setmode.sh test"
fi


<commit_msg>Change the build script order a little<commit_after>#!/bin/bash

if [ "$1" == "development" ] || [ "$1" == "production" ] || [ "$1" == "test" ]
then
  echo "Compiling Desktop"
  # Compile the CSS
  cat ./server/client/css/base.less ./server/client/css/desktop/*.less > /tmp/io-reader.desktop.less 
  (
    cd ./build/less 
    node lessc /tmp/io-reader.desktop.less > ../../server/client/css/desktop.css
    node lessc /tmp/io-reader.desktop.less > ../../server/client-min/css/desktop.css
  ) 

  echo "Compiling Phone"
  cat ./server/client/css/base.less ./server/client/css/phone/*.less > /tmp/io-reader.phone.less 
  (
    cd ./build/less 
    node lessc /tmp/io-reader.phone.less > ../../server/client/css/phone.css
    node lessc /tmp/io-reader.phone.less > ../../server/client-min/css/phone.css
  ) 

  echo "Compiling Tablet"
  cat ./server/client/css/base.less ./server/client/css/tablet/*.less > /tmp/io-reader.tablet.less 
  (
    cd ./build/less 
    node lessc /tmp/io-reader.tablet.less > ../../server/client/css/tablet.css
    node lessc /tmp/io-reader.tablet.less > ../../server/client-min/css/tablet.css
  ) 

  echo "Compiling TV"
  cat ./server/client/css/base.less ./server/client/css/tv/*.less > /tmp/io-reader.tv.less 
  (
    cd ./build/less 
    node lessc /tmp/io-reader.tv.less > ../../server/client/css/tv.css
    node lessc /tmp/io-reader.tv.less > ../../server/client-min/css/tv.css
  ) 

  # Compress the JS

  export NODE_ENV=$1
  node server/server.js
else
  echo "Arguments must be: 'development', 'production' or 'test'. For example setmode.sh test"
fi



{'fraction_non_alphanumeric': 0.19065108514190318, 'fraction_numerical': 0.002671118530884808, 'mean_word_length': 2.4796747967479673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '5458466', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1062, 'n_words': 194}