<commit_before>FROM ruby:2.4.1

ENV RAILS_ENV production
ENV NODE_ENV production
ENV NPM_CONFIG_PRODUCTION false

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get update -qq && apt-get install -y nodejs yarn python-dev python-pip
RUN pip install awscli
RUN mkdir /app
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install --without development test
ADD . /app
RUN yarn install
RUN yarn run build
RUN bundle exec rake assets:precompile DATABASE_URL=nulldb SECRET_KEY_BASE=secret_key_base
RUN rm /app/config/database.yml

ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]<commit_msg>Fix not found<commit_after>FROM ruby:2.4.1

ENV RAILS_ENV production
ENV NODE_ENV production
ENV NPM_CONFIG_PRODUCTION false

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get update -qq && apt-get install -y nodejs yarn python-dev python-pip
RUN pip install awscli
RUN mkdir /app
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install --without development test
ADD . /app
RUN yarn install
RUN yarn run build
RUN bundle exec rake assets:precompile DATABASE_URL=nulldb SECRET_KEY_BASE=secret_key_base
RUN rm /app/config/database.yml

ENTRYPOINT ["./docker-entrypoint.sh"]
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]
{'fraction_non_alphanumeric': 0.11581422692533803, 'fraction_numerical': 0.004703115814226925, 'mean_word_length': 4.285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4953006', 'n_tokens_mistral': 632, 'n_tokens_neox': 603, 'n_words': 179}