<commit_before># Use the Ruby 2.5.8 image from Docker Hub
# as the base image (https://hub.docker.com/_/ruby)
FROM ruby:2.5.8

# Install additional package i.e Yarn.
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn

# Use a directory called /code in which to store
# this application's files. (The directory name
# is arbitrary and could have been anything.)
WORKDIR /code

# Copy all the application's files into the /code
# directory.
COPY . /code

# Run bundle install to install the Ruby dependencies.
RUN bundle install

# Run yarn install to install JavaScript dependencies.
# RUN yarn install --check-files
<commit_msg>Make sure we install the right version of bundler<commit_after># Use the Ruby 2.5.8 image from Docker Hub
# as the base image (https://hub.docker.com/_/ruby)
FROM ruby:2.5.8

# Install additional package i.e Yarn.
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn

# Use a directory called /code in which to store
# this application's files. (The directory name
# is arbitrary and could have been anything.)
WORKDIR /code

# Copy all the application's files into the /code
# directory.
COPY . /code

# Run bundle install to install the Ruby dependencies.
RUN gem install bundler:"$(tail -n 1 Gemfile.lock)"
RUN bundle install

# Run yarn install to install JavaScript dependencies.
# RUN yarn install --check-files

{'fraction_non_alphanumeric': 0.10179640718562874, 'fraction_numerical': 0.007784431137724551, 'mean_word_length': 3.6675977653631286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5055566', 'n_tokens_mistral': 536, 'n_tokens_neox': 502, 'n_words': 213}