<commit_before>#!/bin/sh

## got the information from http://cran.rstudio.com/bin/linux/ubuntu/README.html

## add a repository
echo 'deb http://ftp5.gwdg.de/pub/misc/cran//bin/linux/ubuntu trusty/' | sudo tee /etc/apt/sources.list.d/cran.list

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

sudo apt-get update
sudo apt-get --assume-yes install r-base r-base-dev
 <commit_msg>R-repositories are added based on Ubuntu release<commit_after>#!/bin/sh

## got the information from http://cran.rstudio.com/bin/linux/ubuntu/README.html

# check for the current Ubuntu release code name
UBUNTU_RELEASE=$(lsb_release -c | sed 's/^.*:[[:space:]]*//g')
echo "Identified Ubuntu release $UBUNTU_RELEASE"

## add the corresponding repository
echo 'deb http://ftp5.gwdg.de/pub/misc/cran//bin/linux/ubuntu '"$UBUNTU_RELEASE"'/' | sudo tee /etc/apt/sources.list.d/cran.list

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

sudo apt-get update
sudo apt-get --assume-yes install r-base r-base-dev
 
{'fraction_non_alphanumeric': 0.1480804387568556, 'fraction_numerical': 0.016453382084095063, 'mean_word_length': 3.8026315789473686, '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': '411382', 'n_tokens_mistral': 451, 'n_tokens_neox': 397, 'n_words': 98}