<commit_before>#!/bin/sh

set -e

# Initialize gerrit & reindex the site if the directory doesn't exist
if [ ! -d "$GERRIT_HOME/site" ]; then

  mkdir -p site/plugins
  
  echo ">> Site doesn't exist. We will start gerrit to generate it"
  java -jar ${GERRIT_HOME}/$GERRIT_WAR init --install-plugin=replication --batch -d ${GERRIT_HOME}/site
  java -jar ${GERRIT_HOME}/$GERRIT_WAR reindex -d ${GERRIT_HOME}/site
  
  # Download Gerrit plugin
  echo ">> Download gerrit plugins - delete project <<"
  curl -sSL https://ci.gerritforge.com/view/Plugins-stable-2.11/job/Plugin_delete-project_stable-2.11/lastSuccessfulBuild/artifact/target/delete-project-2.11.jar -o ${GERRIT_HOME}/site/plugins/delete-project.jar
<commit_msg>Add missing plugin command. #1<commit_after>#!/bin/sh

set -e

# Initialize gerrit & reindex the site if the directory doesn't exist
if [ ! -d "$GERRIT_HOME/site" ]; then

  mkdir -p site/plugins
  
  echo ">> Site doesn't exist. We will start gerrit to generate it"
  java -jar ${GERRIT_HOME}/$GERRIT_WAR init --install-plugin=replication --install-plugin=download-commands --batch -d ${GERRIT_HOME}/site
  java -jar ${GERRIT_HOME}/$GERRIT_WAR reindex -d ${GERRIT_HOME}/site
  
  # Download Gerrit plugin
  echo ">> Download gerrit plugins - delete project <<"
  curl -sSL https://ci.gerritforge.com/view/Plugins-stable-2.11/job/Plugin_delete-project_stable-2.11/lastSuccessfulBuild/artifact/target/delete-project-2.11.jar -o ${GERRIT_HOME}/site/plugins/delete-project.jar

{'fraction_non_alphanumeric': 0.13435828877005349, 'fraction_numerical': 0.01270053475935829, 'mean_word_length': 4.040404040404041, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6508431', 'n_tokens_mistral': 545, 'n_tokens_neox': 518, 'n_words': 123}