<commit_before>#!/bin/bash

# Discussion, issues and change requests at:
#   https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 4.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
# curl -sL https://deb.nodesource.com/setup_4.x | bash -
#   or
# wget -qO- https://deb.nodesource.com/setup_4.x | bash -
#

export DEBIAN_FRONTEND=noninteractive

print_status() {
    echo
    echo "## $1"
    echo
}

bail() {
    echo 'Error executing command, exiting'
    exit 1
}

exec_cmd_nobail() {
    echo "+ $1"
    bash -c "$1"
}

exec_cmd() {
    exec_cmd_nobail "$1" || bail
}


print_status "Installing the NodeSource Node.js 4.x repo..."


PRE_INSTALL_PKGS=""
<commit_msg>enforce to be with root privileges<commit_after>#!/bin/bash

# Discussion, issues and change requests at:
#   https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 4.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
# curl -sL https://deb.nodesource.com/setup_4.x | bash -
#   or
# wget -qO- https://deb.nodesource.com/setup_4.x | bash -
#

export DEBIAN_FRONTEND=noninteractive

# enforce to be with root privileges
if (( $EUID != 0 )); then
    echo "Please run this script with root privileges"
    exit 1
fi

print_status() {
    echo
    echo "## $1"
    echo
}

bail() {
    echo 'Error executing command, exiting'
    exit 1
}

exec_cmd_nobail() {
    echo "+ $1"
    bash -c "$1"
}

exec_cmd() {
    exec_cmd_nobail "$1" || bail
}


print_status "Installing the NodeSource Node.js 4.x repo..."


PRE_INSTALL_PKGS=""

{'fraction_non_alphanumeric': 0.1337772397094431, 'fraction_numerical': 0.012106537530266344, 'mean_word_length': 3.1325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2073518', 'n_tokens_mistral': 646, 'n_tokens_neox': 594, 'n_words': 172}