<commit_before><?php

/*

Plugin Name: Castlegate IT WP Breadcrumb
Plugin URI: http://github.com/castlegateit/cgit-wp-breadcrumb
Description: Simple breadcrumb navigation for WordPress.
Version: 2.0
Author: <NAME>
Author URI: http://www.castlegateit.co.uk/
License: MIT

*/

include dirname(__FILE__) . '/breadcrumb.php';


/**
 * Function to return breadcrumb
 */
function cgit_breadcrumb($sep = ' / ', $home = false, $index = false) {
    $breadcrumb = new Cgit\Breadcrumb($sep, $home, $index);

    return $breadcrumb->render();
}

/**
 * Breadcrumb shortcode
 */
add_shortcode('breadcrumb', function($atts) {
    $defaults = array(
        'sep'   => ' / ',
        'home'  => FALSE,
        'index' => FALSE,
    );

    $atts = shortcode_atts($defaults, $atts);

    return new Cgit\Breadcrumb($atts['sep'], $atts['home'], $atts['index']);
});
<commit_msg>Fix shortcode<commit_after><?php

/*

Plugin Name: Castlegate IT WP Breadcrumb
Plugin URI: http://github.com/castlegateit/cgit-wp-breadcrumb
Description: Simple breadcrumb navigation for WordPress.
Version: 2.0
Author: <NAME>
Author URI: http://www.castlegateit.co.uk/
License: MIT

*/

include dirname(__FILE__) . '/breadcrumb.php';


/**
 * Function to return breadcrumb
 */
function cgit_breadcrumb($sep = ' / ', $home = false, $index = false) {
    $breadcrumb = new Cgit\Breadcrumb($sep, $home, $index);

    return $breadcrumb->render();
}

/**
 * Breadcrumb shortcode
 */
add_shortcode('breadcrumb', function($atts) {
    $defaults = array(
        'sep'   => ' / ',
        'home'  => FALSE,
        'index' => FALSE,
    );

    $atts = shortcode_atts($defaults, $atts);
    $breadcrumb = new Cgit\Breadcrumb($atts['sep'], $atts['home'], $atts['index']);

    return $breadcrumb->render();
});

{'fraction_non_alphanumeric': 0.1745042492917847, 'fraction_numerical': 0.0022662889518413596, 'mean_word_length': 3.5989583333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2934393', 'n_tokens_mistral': 617, 'n_tokens_neox': 598, 'n_words': 131}