<commit_before># @Author: <NAME> <vincent>
# @Date:   2017-06-09T19:18:51+02:00
# @Email:  <EMAIL>
# @Filename: proximus_logo.sh
# @Last modified by:   vincent
# @Last modified time: 2017-08-03T08:06:16+02:00



# Load the Proximus Animation into the persistent folder /date
# Source: GitHub repository : https://github.com/vidupont/ebu-medias

# Check if Env variables are present
# Then Get the files from GitHub when needed

if [ "$KIOSK_DATA" == "" ]; then echo "No data directory set ... exiting."; exit 1;
  else echo "Data directory is set to $KIOSK_DATA."
fi

if [ "$KIOSK_MEDIAS" == "" ]; then echo "No Medias directory set ... exiting."; exit 1;
  else echo "Medias directory is set to $KIOSK_MEDIAS."
fi

if [ "$KIOSK_MEDIAS_GIT" == "" ]; then echo "No Medias Repository set ... exiting."; exit 1;
  else echo "Medias repository is set to $KIOSK_MEDIAS_GIT."
fi

# Update Medias
if [ -d $KIOSK_MEDIAS ]; then
  cd $KIOSK_MEDIAS
  echo "Proximus Medias already present ... updating."
  git pull $KIOSK_MEDIAS_GIT
else
  cd $KIOSK_DATA
  echo "Proximus Medias not present ... getting them."
  git clone $KIOSK_MEDIAS_GIT
fi<commit_msg>Medias script update<commit_after># @Author: <NAME> <vincent>
# @Date:   2017-06-09T19:18:51+02:00
# @Email:  <EMAIL>
# @Filename: proximus_logo.sh
# @Last modified by:   vincent
# @Last modified time: 2017-08-04T17:32:51+02:00



# Load the Proximus Animation into the persistent folder /date
# Source: GitHub repository : https://github.com/vidupont/ebu-medias

# Check if Env variables are present
# Then Get the files from GitHub when needed

if [ "$KIOSK_DATA" == "" ]; then echo "No data directory set ... exiting."; exit 1;
  else echo "Data directory is set to $KIOSK_DATA."
fi

if [ "$KIOSK_MEDIAS" == "" ]; then echo "No Medias directory set ... exiting."; exit 1;
  else echo "Medias directory is set to $KIOSK_MEDIAS."
fi

if [ "$KIOSK_MEDIAS_GIT" == "" ]; then echo "No Medias Repository set ... exiting."; exit 1;
  else echo "Medias repository is set to $KIOSK_MEDIAS_GIT."
fi

# Check if local medias directory must be cleaned
if [ "$KIOSK_MEDIAS_CLEAN" == "1" ]; then echo "Deleting Medias directory.";
  rm -R $KIOSK_MEDIAS
  exit 1;
fi


# Update Medias
if [ -d $KIOSK_MEDIAS ]; then
  cd $KIOSK_MEDIAS
  echo "Proximus Medias already present ... updating."
  git pull origin master
else
  cd $KIOSK_DATA
  echo "Proximus Medias not present ... getting them."
  git clone $KIOSK_MEDIAS_GIT
fi
{'fraction_non_alphanumeric': 0.12260692464358453, 'fraction_numerical': 0.032586558044806514, 'mean_word_length': 3.8924302788844622, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3603962', 'n_tokens_mistral': 949, 'n_tokens_neox': 876, 'n_words': 296}