<commit_before>FROM ruby:2.2.3

ENV HOME /home/rails/webapp

# Install PGsql dependencies and js engine
RUN apt-get -y update && apt-get install -y build-essential

WORKDIR $HOME

# Install gems
# Doing this before adding the code allows to benefits from the cache system
ADD Gemfile* $HOME/
RUN bundle install

# Add the app code<commit_msg>Create docker image from a slim Ruby image<commit_after>FROM ruby:2.2.3-slim

ENV HOME /home/rails/webapp

# Install PGsql dependencies and js engine
RUN apt-get -y update && apt-get install -y build-essential

WORKDIR $HOME

# Install gems
# Doing this before adding the code allows to benefit from the cache system
ADD Gemfile* $HOME/
RUN bundle install

# Add the app code
{'fraction_non_alphanumeric': 0.06834030683403068, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 4.092198581560283, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3451522', 'n_tokens_mistral': 224, 'n_tokens_neox': 210, 'n_words': 98}