<commit_before># This script should be run on the namenode
set -e
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

sudo apt-get install    curl \
                        telnet \
                        dnsutils \
                        sed \
                        ack-grep

mkdir ~/.ssh
ssh-keygen -t rsa -P ""
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys

wget http://apache.mirrors.spacedump.net/hadoop/core/stable/hadoop-2.9.0.tar.gz
sudo mkdir /opt
sudo tar -xvzf hadoop-2.9.0.tar.gz -C /opt/
sudo mv /opt/hadoop-2.9.0 /opt/hadoop

JAVA_HOME_PATH=$(readlink -f /usr/bin/java | sed "s:bin/java::")
echo "" >> ~/.bashrc
echo "export JAVA_HOME=$JAVA_HOME_PATH" >> ~/.bashrc
echo 'export HADOOP_INSTALL=/opt/hadoop' >> ~/.bashrc
echo 'export PATH=$PATH:$HADOOP_INSTALL/bin' >> ~/.bashrc
echo 'export PATH=$PATH:$HADOOP_INSTALL/sbin' >> ~/.bashrc
echo 'export HADOOP_MAPRED_HOME=$HADOOP_INSTALL' >> ~/.bashrc
echo 'export HADOOP_COMMON_HOME=$HADOOP_INSTALL' >> ~/.bashrc<commit_msg>hadoop scripts: fix mkdir<commit_after># This script should be run on the namenode
set -e
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

sudo apt-get install    curl \
                        telnet \
                        dnsutils \
                        sed \
                        ack-grep

mkdir -p ~/.ssh
ssh-keygen -t rsa -P ""
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys

wget http://apache.mirrors.spacedump.net/hadoop/core/stable/hadoop-2.9.0.tar.gz
sudo mkdir -p /opt
sudo tar -xvzf hadoop-2.9.0.tar.gz -C /opt/
sudo mv /opt/hadoop-2.9.0 /opt/hadoop

JAVA_HOME_PATH=$(readlink -f /usr/bin/java | sed "s:bin/java::")
echo "" >> ~/.bashrc
echo "export JAVA_HOME=$JAVA_HOME_PATH" >> ~/.bashrc
echo 'export HADOOP_INSTALL=/opt/hadoop' >> ~/.bashrc
echo 'export PATH=$PATH:$HADOOP_INSTALL/bin' >> ~/.bashrc
echo 'export PATH=$PATH:$HADOOP_INSTALL/sbin' >> ~/.bashrc
echo 'export HADOOP_MAPRED_HOME=$HADOOP_INSTALL' >> ~/.bashrc
echo 'export HADOOP_COMMON_HOME=$HADOOP_INSTALL' >> ~/.bashrc
{'fraction_non_alphanumeric': 0.14522232734153265, 'fraction_numerical': 0.010406811731315043, 'mean_word_length': 2.710526315789474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '3808799', 'n_tokens_mistral': 860, 'n_tokens_neox': 775, 'n_words': 172}