<commit_before>FROM ubuntu
MAINTAINER <NAME> <<EMAIL>>
RUN apt-get update
RUN apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install git build-essential libssl-dev libcurl4-openssl-dev autoconf bison libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev rbenv openjdk-6-jdk solr-jetty nodejs
RUN echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
RUN echo 'eval "$(rbenv init -)"' >> ~/.bashrc
RUN exec $SHELL
RUN mkdir -p ~/.rbenv/plugins
RUN cd ~/.rbenv/plugins
RUN git clone https://github.com/sstephenson/ruby-build.git
RUN cd -
# Until Ruby 2.1.2 w/patched readline6.3 comes out, see: http://stackoverflow.com/a/23155490/1232820
RUN curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1
RUN rbenv global 2.1.1
RUN rbenv rehash
RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
RUN gem install bundler
RUN rbenv rehash
RUN gem install rails
RUN gem install therubyracer
RUN rbenv rehash
RUN rails new blacklightapp
RUN cd blacklightapp
RUN echo "gem 'blacklight', '>= 5.3.0'" >> Gemfile
RUN bundle install
RUN rails generate blacklight:install --jettywrapper
RUN rake db:migrate
RUN rails server
EXPOSE 3000<commit_msg>Cleaning up references to home dir<commit_after>FROM ubuntu
MAINTAINER <NAME> <<EMAIL>>
RUN apt-get update
RUN apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install git build-essential libssl-dev libcurl4-openssl-dev autoconf bison libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev rbenv openjdk-6-jdk solr-jetty nodejs
RUN echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
RUN echo 'eval "$(rbenv init -)"' >> ~/.bashrc
RUN exec $SHELL
RUN mkdir -p $HOME/.rbenv/plugins
RUN cd $HOME/.rbenv/plugins && git clone https://github.com/sstephenson/ruby-build.git
# Until Ruby 2.1.2 w/patched readline6.3 comes out, see: http://stackoverflow.com/a/23155490/1232820
RUN curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1
RUN rbenv global 2.1.1
RUN rbenv rehash
RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
RUN gem install bundler
RUN rbenv rehash
RUN gem install rails
RUN gem install therubyracer
RUN rbenv rehash
RUN rails new blacklightapp
RUN cd $HOME/blacklightapp
RUN echo "gem 'blacklight', '>= 5.3.0'" >> Gemfile
RUN bundle install
RUN rails generate blacklight:install --jettywrapper
RUN rake db:migrate
RUN rails server
EXPOSE 3000
{'fraction_non_alphanumeric': 0.11258828417116742, 'fraction_numerical': 0.04071458246780224, 'mean_word_length': 4.485193621867881, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, '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': '161627', 'n_tokens_mistral': 949, 'n_tokens_neox': 878, 'n_words': 273}