<commit_before>#!/bin/bash

REGEX=$(echo "$STATIC_FOLDERS_REGEX" | sed -e 's/[\/&]/\\&/g')

sed -i "s/STATIC_FOLDERS_REGEX/$REGEX/" /etc/nginx/conf.d/app.conf

# Replace environment variables in the build of the frontend
PREFIX="EMBER_"
ENV_VARIABLES=$(env | grep "${PREFIX}")

while IFS= read -r line; do
  ENV_VARIABLE=$(echo "$line" | sed -e "s/^$PREFIX//" | cut -f1 -d"=")
  VALUE=$(echo "$line" | cut -d"=" -f2-)
  sed -i "s/%7B%7B$ENV_VARIABLE%7D%7D/$VALUE/g" /app/index.html
done <<< "$ENV_VARIABLES"

nginx -g "daemon off;"<commit_msg>Add a sed rule with unserialized {}<commit_after>#!/bin/bash

REGEX=$(echo "$STATIC_FOLDERS_REGEX" | sed -e 's/[\/&]/\\&/g')

sed -i "s/STATIC_FOLDERS_REGEX/$REGEX/" /etc/nginx/conf.d/app.conf

# Replace environment variables in the build of the frontend
PREFIX="EMBER_"
ENV_VARIABLES=$(env | grep "${PREFIX}")

while IFS= read -r line; do
  ENV_VARIABLE=$(echo "$line" | sed -e "s/^$PREFIX//" | cut -f1 -d"=")
  VALUE=$(echo "$line" | cut -d"=" -f2-)
  sed -i "s/%7B%7B$ENV_VARIABLE%7D%7D/$VALUE/g" /app/index.html
  sed -i "s/{{$ENV_VARIABLE}}/$VALUE/g" /app/index.html
done <<< "$ENV_VARIABLES"

nginx -g "daemon off;"
{'fraction_non_alphanumeric': 0.22079037800687284, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 3.9786324786324787, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '773813', 'n_tokens_mistral': 522, 'n_tokens_neox': 505, 'n_words': 113}