<commit_before>#!/bin/bash
# TODO - fixes
set -v
export CPPFLAGS="-Wno-error=deprecated-declarations"
export JUPYTER_DATA_DIR=/usr/share/jupyter

gem install --no-ri --no-rdoc ffi-rzmq -n /usr/bin -i /usr/share/gems

#disable Werror
gem install --no-ri --no-rdoc iruby -n /usr/bin -i /usr/share/gems --pre
gem install --no-ri --no-rdoc pry awesome_print gnuplot rubyvis nyaplot pry-doc -n /usr/bin -i /usr/share/gems
iruby register --force
#mv /root/.ipython/kernels/ruby /usr/share/jupyter/kernels

# remember to link libzmq.so.5 to libzmq.so<commit_msg>fix ruby build for 2.7.0<commit_after>#!/bin/bash
# TODO - fixes
set -v
export CPPFLAGS="-Wno-error=deprecated-declarations"
export JUPYTER_DATA_DIR=/usr/share/jupyter

gem install --no-document ffi -n /usr/bin -i /usr/share/gems -- --with-ldflags="-pthread -ldl"
gem install --no-document ffi-rzmq -n /usr/bin -i /usr/share/gems

#disable Werror
gem install --no-document iruby -n /usr/bin -i /usr/share/gems --pre
gem install --no-document pry awesome_print gnuplot rubyvis nyaplot pry-doc -n /usr/bin -i /usr/share/gems
iruby register --force
#mv /root/.ipython/kernels/ruby /usr/share/jupyter/kernels

# remember to link libzmq.so.5 to libzmq.so
{'fraction_non_alphanumeric': 0.14534883720930233, 'fraction_numerical': 0.004152823920265781, 'mean_word_length': 3.3189964157706093, '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': '911087', 'n_tokens_mistral': 495, 'n_tokens_neox': 475, 'n_words': 122}