<commit_before>FROM ubuntu:14.04

RUN sudo apt-get update
RUN sudo apt-get install -y curl autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libpq-dev postgresql-server-dev-all
RUN cd /tmp && curl ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz | tar xz
RUN cd /tmp/ruby-2.1.4 && ./configure --disable-install-rdoc && make && sudo make install
RUN rm -rf /tmp/ruby-2.1.4
RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
RUN sudo gem install bundler --no-ri --no-rdoc
ADD . /app
RUN cd /app && bundle install

WORKDIR /app

ENV DATABASE_URL postgres://duse_api:password1@localhost/duse_api_test
EXPOSE 5000
CMD ["sudo foreman start"]<commit_msg>upgrade ruby version in dockerfile<commit_after>FROM ubuntu:14.04

RUN sudo apt-get update
RUN sudo apt-get install -y curl autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libpq-dev postgresql-server-dev-all
RUN cd /tmp && curl ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz | tar xz
RUN cd /tmp/ruby-2.1.5 && ./configure --disable-install-rdoc && make && sudo make install
RUN rm -rf /tmp/ruby-2.1.5
RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
RUN sudo gem install bundler --no-ri --no-rdoc
ADD . /app
RUN cd /app && bundle install

WORKDIR /app

ENV DATABASE_URL postgres://duse_api:password1@localhost/duse_api_test
EXPOSE 5000
CMD ["sudo foreman start"]
{'fraction_non_alphanumeric': 0.1372965322009908, 'fraction_numerical': 0.03255484784147204, 'mean_word_length': 3.6058631921824102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3887524', 'n_tokens_mistral': 573, 'n_tokens_neox': 525, 'n_words': 149}