<commit_before>(function($) {

    /** Carousel **/
    $('.registration-prev, .register').hide();

    $('#carousel-register').carousel({
        interval: false,
        wrap: false
    });

    $('#carousel-register').on('slid.bs.carousel', function(e) {
        checkButtons($('#carousel-register .item.active'));
    });

    $('.registration-next').click(function(e) {
        validateForm(e);	
    });

    // Disable continue button on click
    $('.registration-next').click(function() {
        $(this).attr('disabled', 'disabled');
    });

    $('.register').click(function() {
        $('#status').fadeIn();
        $('#preloader').fadeIn('slow');
    });

    $('form').on('keyup', function() {
        $('.registration-next').removeAttr('disabled');
    });

    $(document).on('touchend', 'form button', function (e) {
        validateForm(e);
    });

    function validateForm(e) {
        var idx = $('.item.active').index();
        $('#register').parsley()
            .asyncValidate('block' + idx)
            .done(function() {
                // Group validation was successful
                $('#carousel-register').carousel('next');
            }); 
        $(this).attr('disabled', 'disabled');
    }

    function checkButtons(obj) {
        $('.registration-next').removeAttr('disabled');

        var idx = $('.item.active').index();

        if (idx > 0) {
            $('.registration-prev').show();
        } else {
            $('.registration-prev').hide();
        }<commit_msg>bug fix in click handler<commit_after>(function($) {

    /** Carousel **/
    $('.registration-prev, .register').hide();

    $('#carousel-register').carousel({
        interval: false,
        wrap: false
    });

    $('#carousel-register').on('slid.bs.carousel', function(e) {
        checkButtons($('#carousel-register .item.active'));
    });

    $('.registration-next').click(function(e) {
        validateForm(e);	
    });

    // Disable continue button on click
    $('.registration-next').click(function() {
        $(this).attr('disabled', 'disabled');
    });

    $('.register').click(function() {
        $('#status').fadeIn();
        $('#preloader').fadeIn('slow');
    });

    $('form').on('keyup', function() {
        $('.registration-next').removeAttr('disabled');
    });

    $(document).on('touchend', 'form button', function (e) {
        $(e.target).click();
    });

    function validateForm(e) {
        var idx = $('.item.active').index();
        $('#register').parsley()
            .asyncValidate('block' + idx)
            .done(function() {
                // Group validation was successful
                $('#carousel-register').carousel('next');
            }); 
        $(this).attr('disabled', 'disabled');
    }

    function checkButtons(obj) {
        $('.registration-next').removeAttr('disabled');

        var idx = $('.item.active').index();

        if (idx > 0) {
            $('.registration-prev').show();
        } else {
            $('.registration-prev').hide();
        }
{'fraction_non_alphanumeric': 0.21839080459770116, 'fraction_numerical': 0.0006568144499178982, 'mean_word_length': 2.209694415173867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5435189', 'n_tokens_mistral': 887, 'n_tokens_neox': 849, 'n_words': 130}