<commit_before><?php
/*
 * Snack Wp - Funções
 *
 * @package Snack WP
 * @since 2.0
 */

/**
 *  Setup theme.
 */
if ( ! function_exists( 'snack_setup' ) ):

    function snack_setup() {

        //  Add support for multiple languages.

            load_theme_textdomain( 'snack-wp', get_template_directory() . '/languages' );

        //  Habilita o editor visual

            add_editor_style();

        //  Habilitar/Desabilitar barra de admin dos site

            if ( is_user_logged_in() ){
                show_admin_bar(true);
            }

        //  Habilita Imagens e Thumbs Customizáveis

            add_theme_support('post-thumbnails');

        //  Habilita RSS feeds no <head>

            add_theme_support( 'automatic-feed-links' );

        //  Tag <title>

            add_theme_support( 'title-tag' );

        //  Alterar tags padrão de formulário de busca, formulário de comentários,
        //  e comentários, para tags HTML5

            add_theme_support(
                'html5',
                array(
                    'search-form',
                    'comment-form',
                    'comment-list',
                    'gallery',
                    'caption'
                )
            );

        //  Post Formats

            // add_theme_support( 'post-formats', array(
            //    'aside',
            //    'gallery',
            //    'link',
            //    'image',
            //    'quote',
            //    'status',
            //    'video',
            //    'audio',
            //    'chat'
            // ) );*/

        //  Remove itens da função wp_head();

            remove_action('wp_head', 'rsd_link');
            remove_action('wp_head', 'wlwmanifest_link');
            remove_action('wp_head', 'index_rel_link');
            remove_action('wp_head', 'parent_post_rel_link');
            remove_action('wp_head', 'start_post_rel_link');
            remove_action('wp_head', 'adjacent_posts_rel_link');
            remove_action('wp_head', 'check_and_publish_future_post');
            remove_action('wp_head', 'wp_print_styles');
            remove_action('wp_head', 'wp_generator');
            remove_action('wp_head', 'rel_canonical');
            remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
            remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
            remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
            remove_action( 'wp_print_styles', 'print_emoji_styles' );
            remove_action( 'admin_print_styles', 'print_emoji_styles' );

        //  Novos formatos de thumbnaills

            if ( function_exists( 'add_image_size' ) ) {
                //Adicionar aqui os novos formatos:
                //Ex: add_image_size('thumb-780x350', 780, 350, true);
                add_image_size('thumb-700x480', 700, 480, true);
                add_image_size('thumb-700x320', 700, 320, true);
                add_image_size('thumb-140x120', 140, 120, true);
            }

        //  Resumo nas páginas

            add_post_type_support( 'page', 'excerpt' );

        //  Register Nav Menus

            register_nav_menus( array(
                'primary' => __( 'Navegação Principal', 'snack-wp' )
                //adicionar novos menus aqui
            ));
<commit_msg>Remove an obsolete image cropper size<commit_after><?php
/*
 * Snack Wp - Funções
 *
 * @package Snack WP
 * @since 2.0
 */

/**
 *  Setup theme.
 */
if ( ! function_exists( 'snack_setup' ) ):

    function snack_setup() {

        //  Add support for multiple languages.

            load_theme_textdomain( 'snack-wp', get_template_directory() . '/languages' );

        //  Habilita o editor visual

            add_editor_style();

        //  Habilitar/Desabilitar barra de admin dos site

            if ( is_user_logged_in() ){
                show_admin_bar(true);
            }

        //  Habilita Imagens e Thumbs Customizáveis

            add_theme_support('post-thumbnails');

        //  Habilita RSS feeds no <head>

            add_theme_support( 'automatic-feed-links' );

        //  Tag <title>

            add_theme_support( 'title-tag' );

        //  Alterar tags padrão de formulário de busca, formulário de comentários,
        //  e comentários, para tags HTML5

            add_theme_support(
                'html5',
                array(
                    'search-form',
                    'comment-form',
                    'comment-list',
                    'gallery',
                    'caption'
                )
            );

        //  Post Formats

            // add_theme_support( 'post-formats', array(
            //    'aside',
            //    'gallery',
            //    'link',
            //    'image',
            //    'quote',
            //    'status',
            //    'video',
            //    'audio',
            //    'chat'
            // ) );*/

        //  Remove itens da função wp_head();

            remove_action('wp_head', 'rsd_link');
            remove_action('wp_head', 'wlwmanifest_link');
            remove_action('wp_head', 'index_rel_link');
            remove_action('wp_head', 'parent_post_rel_link');
            remove_action('wp_head', 'start_post_rel_link');
            remove_action('wp_head', 'adjacent_posts_rel_link');
            remove_action('wp_head', 'check_and_publish_future_post');
            remove_action('wp_head', 'wp_print_styles');
            remove_action('wp_head', 'wp_generator');
            remove_action('wp_head', 'rel_canonical');
            remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
            remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
            remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
            remove_action( 'wp_print_styles', 'print_emoji_styles' );
            remove_action( 'admin_print_styles', 'print_emoji_styles' );

        //  Novos formatos de thumbnaills

            if ( function_exists( 'add_image_size' ) ) {
                //Adicionar aqui os novos formatos:
                //Ex: add_image_size('thumb-780x350', 780, 350, true);
                add_image_size('thumb-700x480', 700, 480, true);
                add_image_size('thumb-140x120', 140, 120, true);
            }

        //  Resumo nas páginas

            add_post_type_support( 'page', 'excerpt' );

        //  Register Nav Menus

            register_nav_menus( array(
                'primary' => __( 'Navegação Principal', 'snack-wp' )
                //adicionar novos menus aqui
            ));

{'fraction_non_alphanumeric': 0.11948169353623625, 'fraction_numerical': 0.015067048365225252, 'mean_word_length': 1.6372665872069925, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3655143', 'n_tokens_mistral': 2115, 'n_tokens_neox': 1924, 'n_words': 367}