<commit_before>#!/bin/bash

# Make sure this script is not run with sudo
if [ $(id -u) -eq 0 ]
then
  echo 'ERROR: This script should not be run as sudo or root.'
  exit
fi

# Update and upgrade
apt-get -yq update

# Install useful stuff
apt-get -yq install git-core zsh zip unzip expect locate ntp

# adds support for add-apt-repository
apt-get -yq install python-software-properties
add-apt-repository ppa:chris-lea/node.js

# Update and upgrade
apt-get -yq update

apt-get -yq install nodejs

updatedb

# Install oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh<commit_msg>add sudo for some commands<commit_after>#!/bin/bash

# Make sure this script is not run with sudo
if [ $(id -u) -eq 0 ]
then
  echo 'ERROR: This script should not be run as sudo or root.'
  exit
fi

# Update and upgrade
sudo apt-get -yq update

# Install useful stuff
sudo apt-get -yq install git-core zsh zip unzip expect locate ntp

# adds support for add-apt-repository
sudo apt-get -yq install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js

# Update and upgrade
sudo apt-get -yq update

sudo apt-get -yq install nodejs

sudo updatedb

# Install oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
{'fraction_non_alphanumeric': 0.09752321981424149, 'fraction_numerical': 0.0015479876160990713, 'mean_word_length': 3.4895833333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6359975', 'n_tokens_mistral': 468, 'n_tokens_neox': 447, 'n_words': 162}