<commit_before>/*!
 * Ladda 0.2.0
 * http://lab.hakim.se/ladda
 * MIT licensed
 *
 * Copyright (C) 2013 <NAME>, http://hakim.se
 */
window.Ladda = (function() {

	/**
	 * Creates a new instance of Ladda which wraps the 
	 * target button element.
	 *
	 * @return An API object that can be used to control
	 * the loading animation state.
	 */
	function create( button ) {

		if( typeof button === 'undefined' ) {
			throw "Button target must be defined.";
		}

		return {

			start: function() {

				button.setAttribute( 'data-loading', '' );

				return this; // chain

			},

			stop: function( status ) {

				button.removeAttribute( 'data-loading' );
<commit_msg>use input disabled attribute while in loading state<commit_after>/*!
 * Ladda 0.2.0
 * http://lab.hakim.se/ladda
 * MIT licensed
 *
 * Copyright (C) 2013 <NAME>, http://hakim.se
 */
window.Ladda = (function() {

	/**
	 * Creates a new instance of Ladda which wraps the 
	 * target button element.
	 *
	 * @return An API object that can be used to control
	 * the loading animation state.
	 */
	function create( button ) {

		if( typeof button === 'undefined' ) {
			throw "Button target must be defined.";
		}

		return {

			start: function() {

				button.setAttribute( 'disabled', '' );
				button.setAttribute( 'data-loading', '' );

				return this; // chain

			},

			stop: function( status ) {

				button.removeAttribute( 'disabled', '' );
				button.removeAttribute( 'data-loading' );

{'fraction_non_alphanumeric': 0.14354066985645933, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 2.8125, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3974071', 'n_tokens_mistral': 533, 'n_tokens_neox': 439, 'n_words': 141}