<commit_before>APP.components.stream = (function() {

    function init() {
        initEntryCreateForm();
        initCommentForm();
        initImgGallery();
        initLinkify();

        $('.show-all-comments-link').on("click", function() {
          $(this).parents(".post-comments").find(".comment-container").show();
          $(this).hide();
        });

    }

    function initEntryCreateForm() {

        var $parent = $('.entryCreate').not('.js-initialized');

        if($parent.find('.postTitle').exists()) {
            $parent.find('.postMessage').autogrow();
            $parent.addClass('js-initialized')
                .find('.postTitle, .postMessage')
                .on("focusin", function() {
                    $parent.addClass("is-focused");
                })
                .on("focusout", function() {
                    if(!$('.postTitle').val().length && !$('.postMessage').val().length ) {
                        $parent.removeClass("is-focused");
                    }
                });
        } else {
            initSingleTextarea($parent);
        }
    }

    function initLinkify() {
        $('.stream .entryInitialContent .txt').linkify({ target: "_blank"});
        $('.stream .post-comments .txt').linkify({ target: "_blank"});
    }

    function initCommentForm() {
        $('.entryCommentForm').not('.js-initialized').each(function() {
            var $parent = $(this);
            initSingleTextarea($parent);
        })
    }

    function initImgGallery() {
        $('.entryCreate').not('.js-initialized').featherlightGallery({
            openSpeed: 300
        }).addClass('js-initialized');
    }

    function initSingleTextarea($parent) {
        $parent
            .addClass('js-initialized')
            .find('textarea')
            .autogrow()
            .on("focusin touchstart", function(){
                (APP.utils.isLoggedIn()) ? $parent.addClass("is-focused") : injectFormBlocker($parent);
            });<commit_msg>mobilefix<commit_after>APP.components.stream = (function() {

    function init() {
        initEntryCreateForm();
        initCommentForm();
        initImgGallery();
        initLinkify();

        $('.show-all-comments-link').on("click", function() {
          $(this).parents(".post-comments").find(".comment-container").show();
          $(this).hide();
        });

    }

    function initEntryCreateForm() {

        var $parent = $('.entryCreate').not('.js-initialized');

        if($parent.find('.postTitle').exists()) {
            $parent.find('.postMessage').autogrow();
            $parent.addClass('js-initialized')
                .find('.postTitle, .postMessage')
                .on("focusin", function() {
                    $parent.addClass("is-focused");
                })
                .on("focusout", function() {
                    if(!$('.postTitle').val().length && !$('.postMessage').val().length ) {
                        $parent.removeClass("is-focused");
                    }
                });
        } else {
            initSingleTextarea($parent);
        }
    }

    function initLinkify() {
        $('.stream .entryInitialContent .txt').linkify({ target: "_blank"});
        $('.stream .post-comments .txt').linkify({ target: "_blank"});
    }

    function initCommentForm() {
        $('.entryCommentForm').not('.js-initialized').each(function() {
            var $parent = $(this);
            initSingleTextarea($parent);
        })
    }

    function initImgGallery() {
        $('.entryCreate').not('.js-initialized').featherlightGallery({
            openSpeed: 300
        }).addClass('js-initialized');
    }

    function initSingleTextarea($parent) {
        $parent
            .addClass('js-initialized')
            .find('textarea')
            .autogrow()
            .on("focusin touch", function(){
                (APP.utils.isLoggedIn()) ? $parent.addClass("is-focused") : injectFormBlocker($parent);
            });
{'fraction_non_alphanumeric': 0.17935192162773173, 'fraction_numerical': 0.0015071590052750565, 'mean_word_length': 1.8585786073223258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2223969', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1024, 'n_words': 138}