<commit_before>#!/usr/bin/env bash

# TODO: turn this back on once all the javadoc errors are fixed
#set -e

HERON_ROOT_DIR=$(git rev-parse --show-toplevel)
JAVADOC_OUTPUT_DIR=$HERON_ROOT_DIR/website/public/api
GEN_PROTO_DIR=$HERON_ROOT_DIR/bazel-bin/heron/proto/_javac

SRC_FILES=`find $HERON_ROOT_DIR -path "*/com/twitter/*" -name "*.java"`
GEN_FILES=`find $GEN_PROTO_DIR -name "*.java"`

rm -r $JAVADOC_OUTPUT_DIR
mkdir -p $JAVADOC_OUTPUT_DIR
javadoc -quiet -d $JAVADOC_OUTPUT_DIR $GEN_FILES $SRC_FILES<commit_msg>Error immediately when generating javadocs (#739)<commit_after>#!/usr/bin/env bash
set -e

HERON_ROOT_DIR=$(git rev-parse --show-toplevel)
JAVADOC_OUTPUT_DIR=$HERON_ROOT_DIR/website/public/api
GEN_PROTO_DIR=$HERON_ROOT_DIR/bazel-bin/heron/proto/_javac

SRC_FILES=`find $HERON_ROOT_DIR -path "*/com/twitter/*" -name "*.java"`
GEN_FILES=`find $GEN_PROTO_DIR -name "*.java"`

rm -r $JAVADOC_OUTPUT_DIR
mkdir -p $JAVADOC_OUTPUT_DIR
javadoc -quiet -d $JAVADOC_OUTPUT_DIR $GEN_FILES $SRC_FILES
{'fraction_non_alphanumeric': 0.13346613545816732, 'fraction_numerical': 0.00298804780876494, 'mean_word_length': 6.077464788732394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '896805', 'n_tokens_mistral': 433, 'n_tokens_neox': 399, 'n_words': 78}