<commit_before>
	/**
	 * prototype gallery funciton
	 */
	jQuery.fn.unitegallery = function(options){
		var element = jQuery(this);
		var galleryID = "#" + element.attr("id");
		
		if(!options)
			var options = {};
				
		var objGallery = new UniteGalleryMain();
		objGallery.run(galleryID, options);
		
		var api = new UG_API(objGallery);
		
		return(api);
	}

	<commit_msg>Added support reading configuration from attribute «data-ug»<commit_after>
	/**
	 * prototype gallery funciton
	 */
	jQuery.fn.unitegallery = function(options){
		var element = jQuery(this);
		var galleryID = "#" + element.attr("id");
		
		if(!options)
			options = {};

		var ug_options = jQuery(galleryID).data("ug");
		if ((typeof ug_options != "undefined") && (ug_options != null) && (typeof ug_options == "object"))
			options = jQuery.extend(ug_options, options);

		var objGallery = new UniteGalleryMain();
		objGallery.run(galleryID, options);
		
		var api = new UG_API(objGallery);
		
		return(api);
	}

	
{'fraction_non_alphanumeric': 0.14964610717896865, 'fraction_numerical': 0.0, 'mean_word_length': 3.8292682926829267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3382012', 'n_tokens_mistral': 377, 'n_tokens_neox': 315, 'n_words': 75}