<commit_before>FROM ruby:2.1.6

RUN mkdir -p /usr/src/app

COPY . /usr/src/app

WORKDIR /usr/src/app

RUN useradd -r -U docker
RUN chown -R docker:docker /usr/src/app

RUN bundle install
RUN chown -R docker:docker /usr/local/bundle/gems

USER docker<commit_msg>add db setup to dockerfile<commit_after>FROM ruby:2.1.6

RUN mkdir -p /usr/src/app

COPY . /usr/src/app

WORKDIR /usr/src/app

RUN useradd -r -U docker
RUN chown -R docker:docker /usr/src/app

RUN bundle install
RUN chown -R docker:docker /usr/local/bundle/gems

RUN bundle exec rake db:setup

USER docker
{'fraction_non_alphanumeric': 0.10777385159010601, 'fraction_numerical': 0.01060070671378092, 'mean_word_length': 3.3282442748091605, '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': '7672802', 'n_tokens_mistral': 235, 'n_tokens_neox': 215, 'n_words': 68}