<commit_before><?php


/**
 * The configuration options for the Shoestrap Customizer
 */
function shoestrap_customizer_config() {

	$args = array(

		'logo_image'   => get_template_directory_uri() . '/assets/images/customizer-logo.png',
		'color_active' => '#1abc9c',
		'color_light'  => '#8cddcd',
		'color_select' => '#34495e',
		'color_accent' => '#FF5740',
		'color_back'   => '#222',
		'url_path'     => get_template_directory_uri() . '/lib/kirki/'

	);

	return $args;

}
add_filter( 'kirki/config', 'shoestrap_customizer_config' );

/**
 * Cache the customizer styles
 */
function shoestrap_customizer_styles_cache() {
	global $wp_customize;

	if ( ! isset( $wp_customize ) ) {

		$data = get_transient( 'shoestrap_customizer_styles' );

		if ( $data === false ) {
			$data = apply_filters( 'shoestrap/customizer/styles', null );
			set_transient( 'shoestrap_customizer_styles', $data, 3600 * 24 );
		}

	} else {

		$data = apply_filters( 'shoestrap/customizer/styles', null );

	}

	wp_add_inline_style( 'shoestrap_css', $data );
<commit_msg>add some more documentation on the customizer caching sunction<commit_after><?php


/**
 * The configuration options for the Shoestrap Customizer
 */
function shoestrap_customizer_config() {

	$args = array(

		'logo_image'   => get_template_directory_uri() . '/assets/images/customizer-logo.png',
		'color_active' => '#1abc9c',
		'color_light'  => '#8cddcd',
		'color_select' => '#34495e',
		'color_accent' => '#FF5740',
		'color_back'   => '#222',
		'url_path'     => get_template_directory_uri() . '/lib/kirki/'

	);

	return $args;

}
add_filter( 'kirki/config', 'shoestrap_customizer_config' );

/**
 * Cache the customizer styles
 */
function shoestrap_customizer_styles_cache() {
	global $wp_customize;

	// Check we're not on the Customizer.
	// If we're on the customizer then DO NOT cache the results.
	if ( ! isset( $wp_customize ) ) {

		// Get the transient from the database
		$data = get_transient( 'shoestrap_customizer_styles' );

		// If the transient does not exist, then create it.
		if ( $data === false ) {
			// We'll be adding our actual CSS using a filter
			$data = apply_filters( 'shoestrap/customizer/styles', null );
			// Set the transient for 24 hours.
			set_transient( 'shoestrap_customizer_styles', $data, 3600 * 24 );
		}

	// If we're on the customizer, get all the styles using our filter
	} else {

		$data = apply_filters( 'shoestrap/customizer/styles', null );

	}

	// Add the CSS inline.
	// Please note that you must first enqueue the actual 'my-styles' stylesheet.
	// See http://codex.wordpress.org/Function_Reference/wp_add_inline_style#Examples
	wp_add_inline_style( 'shoestrap_css', $data );

{'fraction_non_alphanumeric': 0.14232627276105536, 'fraction_numerical': 0.016350798959494612, 'mean_word_length': 4.079245283018868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '1830196', 'n_tokens_mistral': 1035, 'n_tokens_neox': 940, 'n_words': 218}