<commit_before>#!/bin/bash

# Check for Rubygems
gempath=$(which gem)
if [ ! -f "$gempath" ]; then
	echo "You need to install the Ruby `gem` package manager"
fi

# Check for Python virtualenv
venvpath=$(which virtualenv)
if [ ! -f "$venvpath" ]; then
	echo "You need to install Python 3 virtualenv tool"
fi

# Install gems
echo "Installing Ruby dependencies..."
#gem install --user-install compass sass zurb-foundation

# Create virtualenv
echo "Creating Python 3 virtualenv..."
if [ ! -d venv ]; then
	virtualenv --python=python3 venv
fi
source venv/bin/activate

# Installing Python dependencies in virtualenv
echo "Installing Python dependencies inside the virtualenv..."

pip install -r requirements.txt && echo "Successfully installed PDP dependencies!"<commit_msg>Make the gem installation work.<commit_after>#!/bin/bash

# Check for Rubygems
gempath=$(which gem)
if [ ! -f "$gempath" ]; then
	echo "You need to install the Ruby `gem` package manager"
fi

# Check for Python virtualenv
venvpath=$(which virtualenv)
if [ ! -f "$venvpath" ]; then
	echo "You need to install Python 3 virtualenv tool"
fi

# Install gems
echo "Installing Ruby dependencies..."
gem install --user-install compass sass zurb-foundation

# Create virtualenv
echo "Creating Python 3 virtualenv..."
if [ ! -d venv ]; then
	virtualenv --python=python3 venv
fi
source venv/bin/activate

# Installing Python dependencies in virtualenv
echo "Installing Python dependencies inside the virtualenv..."

pip install -r requirements.txt && echo "Successfully installed PDP dependencies!"
{'fraction_non_alphanumeric': 0.1014771997430957, 'fraction_numerical': 0.0038535645472061657, 'mean_word_length': 4.524822695035461, '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': '4002544', 'n_tokens_mistral': 458, 'n_tokens_neox': 443, 'n_words': 185}