<commit_before><?php

use Sami\RemoteRepository\GitHubRemoteRepository;
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('config')
    ->in($dir = 'src');

$versions = GitVersionCollection::create($dir)
    ->addFromTags('2.0.*')
    ->addFromTags('2.1.*')
    ->add('master', 'master branch')
;

return new Sami($iterator, array(
    'versions'             => $versions,
    'build_dir'            => __DIR__.'/../docs/api/%version%',
    'cache_dir'            => __DIR__.'/../cache/%version%',<commit_msg>update sami config to include current branch<commit_after><?php

use Sami\RemoteRepository\GitHubRemoteRepository;
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('config')
    ->in($dir = 'src');

$versions = GitVersionCollection::create($dir)
    ->addFromTags('2.0.*')
    ->addFromTags('2.1.*')
    ->add('master', 'master branch')
    ->add('29-widen-range-of-api-methods', 'next')
;

return new Sami($iterator, array(
    'versions'             => $versions,
    'build_dir'            => __DIR__.'/../docs/api/%version%',
    'cache_dir'            => __DIR__.'/../cache/%version%',
{'fraction_non_alphanumeric': 0.19880418535127056, 'fraction_numerical': 0.007473841554559043, 'mean_word_length': 3.197492163009404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '579680', 'n_tokens_mistral': 448, 'n_tokens_neox': 448, 'n_words': 73}