<commit_before><!-- pulsar::includes.js.check_slug -->
<script type="text/javascript">
    $.checkSlug = function() {
        $.ajax({
            dataType:   'json',
            type:       'POST',
            url:        '{{ route($route) }}',
            data:       {
                slug:   $('[name=slug]').val(),
                id:     $('[name=id]').val()
            },
            headers:  {
                'X-CSRF-TOKEN': '{{ csrf_token() }}'
            },
            success:  function(data)
            {
                $("[name=slug]").val(data.slug);
            }
        });
    }
</script>
<!-- /pulsar::includes.js.check_slug --><commit_msg>add id lang to check slug<commit_after><!-- pulsar::includes.js.check_slug -->
<script>
    $.checkSlug = function() {
        $.ajax({
            dataType:   'json',
            type:       'POST',
            url:        '{{ route($route) }}',
            data:       {
                // if need lang to check slug
                @if(isset($lang))lang:   '{{ $lang }}',@endif
                slug:   $('[name=slug]').val(),
                id:     $('[name=id]').val()
            },
            headers:  {
                'X-CSRF-TOKEN': '{{ csrf_token() }}'
            },
            success:  function(data)
            {
                $("[name=slug]").val(data.slug);
            }
        });
    }
</script>
<!-- ./pulsar::includes.js.check_slug -->
{'fraction_non_alphanumeric': 0.1951048951048951, 'fraction_numerical': 0.0, 'mean_word_length': 1.1814024390243902, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6428173', 'n_tokens_mistral': 436, 'n_tokens_neox': 439, 'n_words': 65}