<commit_before>FROM ubuntu:latest

RUN apt-get update -q
RUN apt-get install -qy curl --fix-missing
RUN apt-get install -qy git --fix-missing

RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
RUN curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -c -l 'source /etc/profile.d/rvm.sh'
RUN /bin/bash -c -l 'rvm requirements'
RUN /bin/bash -c -l 'rvm install 2.2.1'
RUN /bin/bash -c -l 'gem install bundler --no-ri --no-rdoc'
RUN /bin/bash -c -l 'gem install rails --no-ri --no-rdoc'
RUN /bin/bash -c -l  'gem install rake'
RUN apt-get install -qy pkg-config
RUN /bin/bash -c -l 'bundle config path "$HOME/bundler"'
RUN git clone https://github.com/mesalva/ranking_points
WORKDIR ranking_points
RUN git checkout develop
RUN /bin/bash -c -l 'bundle install --path vendor/cache'
EXPOSE 3000
CMD /bin/bash -c -l 'source /etc/profile.d/rvm.sh'
CMD /bin/bash -c -l 'git pull origin master' 
CMD /bin/bash -c -l 'HOME=/ranking_points bundle update'
CMD /bin/bash -c -l 'HOME=/ranking_points bundle install --path vendor/cache'
CMD /bin/bash -c -l 'HOME=/ranking_points rake test'
CMD /bin/bash -c -l 'HOME=/ranking_points rails s'<commit_msg>separate containers<commit_after>FROM ubuntu:latest

RUN apt-get update -q
RUN apt-get install -qy curl --fix-missing
RUN apt-get install -qy git --fix-missing

RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
RUN curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -c -l 'source /etc/profile.d/rvm.sh'
RUN /bin/bash -c -l 'rvm requirements'
RUN /bin/bash -c -l 'rvm install 2.2.1'
RUN /bin/bash -c -l 'gem install bundler --no-ri --no-rdoc'
RUN /bin/bash -c -l 'gem install rails --no-ri --no-rdoc'
RUN /bin/bash -c -l  'gem install rake'
RUN apt-get install -qy pkg-config
RUN /bin/bash -c -l 'bundle config path "$HOME/bundler"'
RUN git clone https://github.com/mesalva/ranking_points
WORKDIR ranking_points
RUN git checkout develop
RUN /bin/bash -c -l 'bundle install --path vendor/cache'
EXPOSE 3000
CMD /bin/bash -c -l 'source /etc/profile.d/rvm.sh && git pull origin master && HOME=/ranking_points bundle update && HOME=/ranking_points bundle install --path vendor/cache && HOME=/ranking_points rails s'
{'fraction_non_alphanumeric': 0.14364135407136322, 'fraction_numerical': 0.010064043915827997, 'mean_word_length': 3.165714285714286, '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': '1711756', 'n_tokens_mistral': 864, 'n_tokens_neox': 791, 'n_words': 281}