<commit_before><?php
use OuzoBreadcrumb\Breadcrumb;

class BreadcrumbHelperSample
{
    public static function showBreadcrumbs()
    {
        $breadcrumbs = '<ol class="breadcrumb">';
        $breadcrumbsMap = Breadcrumb::getBreadcrumbs();
        foreach ($breadcrumbsMap as $breadcrumb) {
            if (end($breadcrumbsMap) === $breadcrumb) {
                $attribute = 'class="active"';
            } else {
                $attribute = 'href="' . $breadcrumb->getPath() . '"';
            }
            $breadcrumbs .= '<li><a ' . $attribute . '>' . $breadcrumb->getName() . '</a></li>';
        }
        $breadcrumbs .= '</ol>';
        return $breadcrumbs;
    }
}<commit_msg>Fix sample to bootstrap<commit_after><?php
use OuzoBreadcrumb\Breadcrumb;

class BreadcrumbHelperSample
{
    public static function showBreadcrumbs()
    {
        $breadcrumbs = '<ol class="breadcrumb">';
        $breadcrumbsMap = Breadcrumb::getBreadcrumbs();
        foreach ($breadcrumbsMap as $breadcrumb) {
            $attributeHref = $breadcrumb->getName();
            $attribute = '';
            if (end($breadcrumbsMap) === $breadcrumb) {
                $attribute = 'class="active"';
            } else {
                $attributeHref = '<a href="' . $breadcrumb->getPath() . '">' . $breadcrumb->getName() . '</a>';
            }
            $breadcrumbs .= ' <li ' . $attribute . '>' . $attributeHref . '</li> ';
        }
        $breadcrumbs .= '</ol> ';
        return $breadcrumbs;
    }
}
{'fraction_non_alphanumeric': 0.16555407209612816, 'fraction_numerical': 0.0, 'mean_word_length': 2.142557651991614, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 20, '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': '343760', 'n_tokens_mistral': 473, 'n_tokens_neox': 480, 'n_words': 81}