<commit_before>
	// content()
	// Description:
	// Collecting all inside html content from given object
	plug.content = function( content ) {
		 // checks to see is object undefinded
		if(typeof(content) === "undefined") {
			// if there is array of objects it loops and set their values
			if(object_in_buffer.length > 1) { 
				// loops through objects and returns their values
				// **** it will return content just of first element that is encountered
				for(var i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].innerHTML;
				}

			} else {

				return object_in_buffer.innerHTML;	

			}

		} else { // if there is some content in argument that means we want to set some content to given object
				// checks to see if array of object exists and how much elements is in array
			if(object_in_buffer.length > 1) { 
				// loops through all objects and sets their contents equal to given argument
				for(var i = 0; i < object_in_buffer.length; i++) {
					object_in_buffer[i].innerHTML = content;
				}
			// if there is just 1 object then set it's content to given argument
			} else {
				object_in_buffer.innerHTML = content;	
			}

		}
		// end of function
	}



	/*	

	<!-- prependTo -->
	<div>
	<!-- prepend -->
	foo
	<!-- append -->
	</div>
	<!-- appendTo -->

	*/

	plug.prependTo = function( html ) {
		object_in_buffer.insertAdjacentHTML("beforebegin", html);
	}

	plug.prepend = function( html ) {
		object_in_buffer.insertAdjacentHTML("afterbegin", html);
	}

	plug.append = function( html ) {
		object_in_buffer.insertAdjacentHTML("beforeend", html);
	}

	plug.appendTo = function( html ) {
		object_in_buffer.insertAdjacentHTML("afterend", html);
	}


	// attr();
	// Description:
	// Collecting choosen attributes
	plug.attr = function( attr, value  ) { 
		// checking for argument value, if is undefined then users checking initial 
		// value of some object attribute
		if(typeof value == "undefined") {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].getAttribute(attr);
				}
		
			} else {
				return object_in_buffer.getAttribute(attr);

			}
		// if value argument has some value in it then we want to 
		// set some attribute to optional value
		} else {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					object_in_buffer[i].setAttribute(attr, value);
				}
		
			} else {
				object_in_buffer.setAttribute(attr, value);

			}
		}

	}

	// returns value of element
	plug.value = function() {
		return object_in_buffer.value;
	}

	// changing data attributes
	plug.data = function( attr, value ) {
		if(typeof value == "undefined") {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].getAttribute("data-" + attr);
				}
		
			} else {<commit_msg>Adding .value method ability to get and set value on value attribute<commit_after>
	// content()
	// Description:
	// Collecting all inside html content from given object
	plug.content = function( content ) {
		 // checks to see is object undefinded
		if(typeof(content) === "undefined") {
			// if there is array of objects it loops and set their values
			if(object_in_buffer.length > 1) { 
				// loops through objects and returns their values
				// **** it will return content just of first element that is encountered
				for(var i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].innerHTML;
				}

			} else {

				return object_in_buffer.innerHTML;	

			}

		} else { // if there is some content in argument that means we want to set some content to given object
				// checks to see if array of object exists and how much elements is in array
			if(object_in_buffer.length > 1) { 
				// loops through all objects and sets their contents equal to given argument
				for(var i = 0; i < object_in_buffer.length; i++) {
					object_in_buffer[i].innerHTML = content;
				}
			// if there is just 1 object then set it's content to given argument
			} else {
				object_in_buffer.innerHTML = content;	
			}

		}
		// end of function
	}



	/*	

	<!-- prependTo -->
	<div>
	<!-- prepend -->
	foo
	<!-- append -->
	</div>
	<!-- appendTo -->

	*/

	plug.prependTo = function( html ) {
		object_in_buffer.insertAdjacentHTML("beforebegin", html);
	}

	plug.prepend = function( html ) {
		object_in_buffer.insertAdjacentHTML("afterbegin", html);
	}

	plug.append = function( html ) {
		object_in_buffer.insertAdjacentHTML("beforeend", html);
	}

	plug.appendTo = function( html ) {
		object_in_buffer.insertAdjacentHTML("afterend", html);
	}


	// attr();
	// Description:
	// Collecting choosen attributes
	plug.attr = function( attr, value  ) { 
		// checking for argument value, if is undefined then users checking initial 
		// value of some object attribute
		if(typeof value == "undefined") {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].getAttribute(attr);
				}
		
			} else {
				return object_in_buffer.getAttribute(attr);

			}
		// if value argument has some value in it then we want to 
		// set some attribute to optional value
		} else {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					object_in_buffer[i].setAttribute(attr, value);
				}
		
			} else {
				object_in_buffer.setAttribute(attr, value);

			}
		}

	}

	// returns value of element
	plug.value = function( value ) {
		if(typeof(value) == "undefined") {
			return object_in_buffer.value;
		} else {
			object_in_buffer.value = value;
		}
	}

	// changing data attributes
	plug.data = function( attr, value ) {
		if(typeof value == "undefined") {
			if(object_in_buffer.length > 1) {
				for(i = 0; i < object_in_buffer.length; i++) {
					return object_in_buffer[i].getAttribute("data-" + attr);
				}
		
			} else {
{'fraction_non_alphanumeric': 0.11891891891891893, 'fraction_numerical': 0.0037162162162162164, 'mean_word_length': 2.9342192691029902, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3350149', 'n_tokens_mistral': 2191, 'n_tokens_neox': 1855, 'n_words': 551}