<commit_before>FROM davidbarratt/drupal:8

ENV COMPOSER_ALLOW_SUPERUSER 1

# Dependencies
RUN apt-get update && apt-get install -y \
		  unzip \
			git \
			sqlite3 \
    --no-install-recommends && rm -r /var/lib/apt/lists/*

COPY --from=composer:1.7 /usr/bin/composer /usr/bin/composer

COPY ./ /var/www

RUN composer --no-dev install -d /var/www

ENV PATH="/var/www/vendor/bin:${PATH}"

RUN mkdir -p /var/www/tmp \
  && mkdir -p /var/www/config \
  && mkdir -p /var/www/html/sites/default/files

# Set the permissions.
RUN chown -R www-data:www-data /var/www/html/sites/default/files \
  && chown -R www-data:www-data /var/www/config \
  && chown -R www-data:www-data /var/www/tmp
<commit_msg>Remove the default Drupal site<commit_after>FROM davidbarratt/drupal:8

ENV COMPOSER_ALLOW_SUPERUSER 1

# Dependencies
RUN apt-get update && apt-get install -y \
		  unzip \
			git \
			sqlite3 \
    --no-install-recommends && rm -r /var/lib/apt/lists/*

COPY --from=composer:1.7 /usr/bin/composer /usr/bin/composer

# Remove the default Drupal site.
RUN rm -rf /var/www/html

COPY ./ /var/www

RUN composer --no-dev install -d /var/www

ENV PATH="/var/www/vendor/bin:${PATH}"

RUN mkdir -p /var/www/tmp \
  && mkdir -p /var/www/config \
  && mkdir -p /var/www/html/sites/default/files

# Set the permissions.
RUN chown -R www-data:www-data /var/www/html/sites/default/files \
  && chown -R www-data:www-data /var/www/config \
  && chown -R www-data:www-data /var/www/tmp

{'fraction_non_alphanumeric': 0.158145875937287, 'fraction_numerical': 0.006816632583503749, 'mean_word_length': 2.697732997481108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 27, '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': '280255', 'n_tokens_mistral': 605, 'n_tokens_neox': 580, 'n_words': 131}