<commit_before>#!/bin/bash

function start_msg {
  echo -e "\n\e[32mStarting $1\n---------------------------------------------------------------\e[0m"
}

function start_sshd {
  service sshd start
}

function start_zookeeper {
  start_msg "ZooKeeper"
  /opt/zookeeper/bin/zkServer.sh start
}

function start_hadoop {
  start_msg "Hadoop"
  sed s/HOSTNAME/$HOSTNAME/ /opt/hadoop/etc/hadoop/core-site.xml.template > /opt/hadoop/etc/hadoop/core-site.xml
  mkdir -p /var/log/hadoop<commit_msg>configure sshd pam module as optional<commit_after>#!/bin/bash

function start_msg {
  echo -e "\n\e[32mStarting $1\n---------------------------------------------------------------\e[0m"
}

function start_sshd {
  # from https://github.com/docker/docker/issues/5663
  sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' /etc/pam.d/sshd
  service sshd start
}

function start_zookeeper {
  start_msg "ZooKeeper"
  /opt/zookeeper/bin/zkServer.sh start
}

function start_hadoop {
  start_msg "Hadoop"
  sed s/HOSTNAME/$HOSTNAME/ /opt/hadoop/etc/hadoop/core-site.xml.template > /opt/hadoop/etc/hadoop/core-site.xml
  mkdir -p /var/log/hadoop
{'fraction_non_alphanumeric': 0.23037100949094047, 'fraction_numerical': 0.010353753235547885, 'mean_word_length': 2.411764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6844277', 'n_tokens_mistral': 430, 'n_tokens_neox': 404, 'n_words': 70}