<commit_before>#!/usr/bin/env bash
#
pushd `dirname $0` > /dev/null; SCRIPTPATH=`pwd`; popd > /dev/null;
declare PROJECT_ROOT=${SCRIPTPATH%/.scripts};

declare E2E=${PROJECT_ROOT}/.e2e_tests;
declare E2E_FEATURES=".e2e_tests/features";
declare E2E_FEATURES_PATH="/dev/null";

declare GITIG_PREFIX="gitignored_";

declare TRANSIENT_FEATURES_PREFIX=5;
declare WILDCARD="${TRANSIENT_FEATURES_PREFIX}*";

echo -e "PROJECT_ROOT=${PROJECT_ROOT}";
echo -e "Acceptance test dir : ${E2E}";
${PROJECT_ROOT}/.scripts/free.sh;

declare PKG_EXCLUSIONS="package_exclusions.json";
declare PKG_EXCL_PATH="../.pkgs/${PKG_EXCLUSIONS}";

declare CORE_EXCLUSIONS="[]";
declare CONTAINER_EXCLUSIONS="[]";

if [[ -f ${PKG_EXCL_PATH} ]]; then
  CORE_EXCLUSIONS=$(jq -r .packages_excluded_from_core ${PKG_EXCL_PATH});
  CONTAINER_EXCLUSIONS=$(jq -r .packages_excluded_from_wrapper ${PKG_EXCL_PATH});
fi;
<commit_msg>Enhance (e2e) : Packages excluded more flexibly<commit_after>#!/usr/bin/env bash
#
pushd `dirname $0` > /dev/null; SCRIPTPATH=`pwd`; popd > /dev/null;
declare PROJECT_ROOT=${SCRIPTPATH%/.scripts};

declare E2E=${PROJECT_ROOT}/.e2e_tests;
declare E2E_FEATURES=".e2e_tests/features";
declare E2E_FEATURES_PATH="/dev/null";

declare GITIG_PREFIX="gitignored_";

declare TRANSIENT_FEATURES_PREFIX=5;
declare WILDCARD="${TRANSIENT_FEATURES_PREFIX}*";

echo -e "PROJECT_ROOT=${PROJECT_ROOT}";
echo -e "Acceptance test dir : ${E2E}";
${PROJECT_ROOT}/.scripts/free.sh;

declare PKG_EXCL_PATH="${PACKAGE_EXCLUSIONS:-../.pkgs/package_exclusions.json}";

declare CORE_EXCLUSIONS="[]";
declare CONTAINER_EXCLUSIONS="[]";

if [[ -f ${PKG_EXCL_PATH} ]]; then
  CORE_EXCLUSIONS=$(jq -r .packages_excluded_from_core ${PKG_EXCL_PATH});
  CONTAINER_EXCLUSIONS=$(jq -r .packages_excluded_from_wrapper ${PKG_EXCL_PATH});
fi;

{'fraction_non_alphanumeric': 0.1652754590984975, 'fraction_numerical': 0.009460211463550361, 'mean_word_length': 7.481132075471698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2244977', 'n_tokens_mistral': 780, 'n_tokens_neox': 725, 'n_words': 111}