<commit_before>#!/bin/bash
rm -rf $1/*
mkdir $1/lib
epydoc --graph umlclasstree ovs.lib -o $1/lib -v --no-sourcecode --no-private --parse-only > /dev/null
mkdir $1/dal
epydoc --graph umlclasstree ovs.dal -o $1/dal -v --no-sourcecode --no-private > /dev/null
mkdir $1/extensions
epydoc --graph umlclasstree ovs.extensions -o $1/extensions -v --no-sourcecode --no-private > /dev/null
mkdir $1/hypervisor
epydoc --graph umlclasstree ovs.hypervisor -o $1/hypervisor -v --no-sourcecode --no-private --parse-only > /dev/null<commit_msg>Change generate docs script to prevent it from wiping / when no parameters are given<commit_after>#!/bin/bash
DIR=${1%/}
if [ "$(ls -A $DIR/)" ]; then
     echo "Directory $DIR/ must be empty"
     exit 1
fi
mkdir $DIR/lib
epydoc --graph umlclasstree ovs.lib -o $DIR/lib -v --no-sourcecode --no-private --parse-only > /dev/null
mkdir $DIR/dal
epydoc --graph umlclasstree ovs.dal -o $DIR/dal -v --no-sourcecode --no-private > /dev/null
mkdir $DIR/extensions
epydoc --graph umlclasstree ovs.extensions -o $DIR/extensions -v --no-sourcecode --no-private > /dev/null
mkdir $DIR/hypervisor
epydoc --graph umlclasstree ovs.hypervisor -o $DIR/hypervisor -v --no-sourcecode --no-private --parse-only > /dev/null
{'fraction_non_alphanumeric': 0.15896188158961883, 'fraction_numerical': 0.008921330089213302, 'mean_word_length': 3.168918918918919, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7561495', 'n_tokens_mistral': 476, 'n_tokens_neox': 459, 'n_words': 132}