<commit_before>#!/bin/bash

# Use a cached version of phpDocumentor for now since there is no release yet
# and the github actions artifacts might disappear
# This phar is downloaded from https://github.com/phpDocumentor/phpDocumentor/actions/runs/221599704

wget https://bitgrid.net/~jus/phpDocumentor.phar

mkdir -p api/

php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API (`git rev-parse --abbrev-ref HEAD`)"<commit_msg>Use proper branch name in phpdoc builds<commit_after>#!/bin/bash

# Use a cached version of phpDocumentor for now since there is no release yet
# and the github actions artifacts might disappear
# This phar is downloaded from https://github.com/phpDocumentor/phpDocumentor/actions/runs/221599704

wget https://bitgrid.net/~jus/phpDocumentor.phar

mkdir -p api/

php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API ($BRANCH)"
{'fraction_non_alphanumeric': 0.11563876651982379, 'fraction_numerical': 0.024229074889867842, 'mean_word_length': 4.347058823529411, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '78327', 'n_tokens_mistral': 318, 'n_tokens_neox': 285, 'n_words': 94}