<commit_before>/**
 * Cowboy is a powerful extension to Mootools Framework
 * @namespace cowboy namespace
 */
var cowboy = {};

/**
 * Extension to the Mootools Options
 * @class cowboy.Options
 * @implements {Options}
 */
cowboy.Options = new Class({
	Implements: Options,

	/**
	 * Extension to setOptions to get parameters from the element
	 * @method setElementOptions
	 * @param  {Object} options Options of the class
	 * @param  {Element} element Element used by the class
	 */
	setElementOptions: function(options, element) {
		Object.keys(Object.clone(options)).each(function(property) {
			if(element.getProperty('data-' + property)) {
				options[property] = element.getProperty('data-' + property);
			}
		});
		this.setOptions(options);
	}
});

/**
 * Extension to Mootools Request to handle file upload
 * @class cowboy.Request
 * @extends {Request}
 * @link By mloberg : https://gist.github.com/mloberg/1342473
 */
cowboy.Request = new Class({

	Extends: Request,

	options: {
		emulation: false,
		urlEncoded: false
	},

	/**
	 * Constructor
	 * @constructor
	 * @param  {Object} options Options for the request
	 */
	initialize: function(options) {
		console.log(options);
		this.xhr = new Browser.Request();<commit_msg>Patch : delete a log<commit_after>/**
 * Cowboy is a powerful extension to Mootools Framework
 * @namespace cowboy namespace
 */
var cowboy = {};

/**
 * Extension to the Mootools Options
 * @class cowboy.Options
 * @implements {Options}
 */
cowboy.Options = new Class({
	Implements: Options,

	/**
	 * Extension to setOptions to get parameters from the element
	 * @method setElementOptions
	 * @param  {Object} options Options of the class
	 * @param  {Element} element Element used by the class
	 */
	setElementOptions: function(options, element) {
		Object.keys(Object.clone(options)).each(function(property) {
			if(element.getProperty('data-' + property)) {
				options[property] = element.getProperty('data-' + property);
			}
		});
		this.setOptions(options);
	}
});

/**
 * Extension to Mootools Request to handle file upload
 * @class cowboy.Request
 * @extends {Request}
 * @link By mloberg : https://gist.github.com/mloberg/1342473
 */
cowboy.Request = new Class({

	Extends: Request,

	options: {
		emulation: false,
		urlEncoded: false
	},

	/**
	 * Constructor
	 * @constructor
	 * @param  {Object} options Options for the request
	 */
	initialize: function(options) {
		this.xhr = new Browser.Request();
{'fraction_non_alphanumeric': 0.129938900203666, 'fraction_numerical': 0.005702647657841141, 'mean_word_length': 3.8827037773359843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1611445', 'n_tokens_mistral': 800, 'n_tokens_neox': 738, 'n_words': 211}