<commit_before>$(function () {
    $('a[href^="#"]').click(function () {
        var speed = 400;
        var href = $(this).attr('href');
        var target = $(href == '#' || href == '' ? 'html' : href);
        var position = target.offset().top;
        $('body,html').animate({
            scrollTop: position
        }, speed, 'swing');
        return false;
    });
});

$(".page__hero--overlay h1.page__title").text(
    $.trim(
        $("h1.page__title").text()
    )
).lettering();

$.fn.autoKana('#name', '#kana');

autosize($('textarea'));
<commit_msg>open external link with target _blank<commit_after>$(function () {
    $('a[href^="#"]').click(function () {
        var speed = 400;
        var href = $(this).attr('href');
        var target = $(href == '#' || href == '' ? 'html' : href);
        var position = target.offset().top;
        $('body,html').animate({
            scrollTop: position
        }, speed, 'swing');
        return false;
    });
});

// https://blog.kaffeekantate.xyz/set-target-blank/
$(function() {
	var links = document.links;
	for (var i = 0; i < links.length; i++) {
		if (links[i].hostname != window.location.hostname) {
			links[i].target = '_blank';
		}
	}
});

$(".page__hero--overlay h1.page__title").text(
    $.trim(
        $("h1.page__title").text()
    )
).lettering();

$.fn.autoKana('#name', '#kana');

autosize($('textarea'));

{'fraction_non_alphanumeric': 0.23381294964028776, 'fraction_numerical': 0.007913669064748202, 'mean_word_length': 2.6036269430051813, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2837869', 'n_tokens_mistral': 477, 'n_tokens_neox': 461, 'n_words': 86}