<commit_before><?php

namespace {{ theme.namespace }}\Setup;

/*
|-----------------------------------------------------------
| Theme Sidebars
|-----------------------------------------------------------
|
| This file is for registering your theme sidebars,
| Creates widgetized areas, which an administrator
| of the site can customize and assign widgets.
|
*/

use function {{ theme.namespace }}\config;

/**
 * Registers the widget areas.
 *
 * @return void
 */
function register_widget_areas()
{
    register_sidebar([
        'name' => __('Sidebar', config('textdomain')),
        'description' => __('Website sidebar', config('textdomain')),
    ]);
}
add_action('widgets_init', '{{ theme.namespace }}\Setup\register_widget_areas');<commit_msg>Adds id argument to the sidebar register function<commit_after><?php

namespace {{ theme.namespace }}\Setup;

/*
|-----------------------------------------------------------
| Theme Sidebars
|-----------------------------------------------------------
|
| This file is for registering your theme sidebars,
| Creates widgetized areas, which an administrator
| of the site can customize and assign widgets.
|
*/

use function {{ theme.namespace }}\config;

/**
 * Registers the widget areas.
 *
 * @return void
 */
function register_widget_areas()
{
    register_sidebar([
        'id' => 'sidebar',
        'name' => __('Sidebar', config('textdomain')),
        'description' => __('Website sidebar', config('textdomain')),
    ]);
}
add_action('widgets_init', '{{ theme.namespace }}\Setup\register_widget_areas');
{'fraction_non_alphanumeric': 0.2783109404990403, 'fraction_numerical': 0.0, 'mean_word_length': 2.185336048879837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7283273', 'n_tokens_mistral': 405, 'n_tokens_neox': 391, 'n_words': 110}