<commit_before>/*
* jQuery Mobile Framework : sample plugin for making button-like links
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* Note: Code is in draft form and is subject to change 
*/ 
(function($){

$.fn.buttonMarkup = function( options ){
	return this.each( function() {
		var el = $( this ),
		    o = $.extend( {}, {
				theme: (function(){
					//if data-theme attr is present
					if(el.is('[data-theme]')){
						return el.attr('data-theme');
					}
					//if not, find closest theme container
					if(el.parents('body').length){
						var themedParent = el.closest('[class*=ui-bar-],[class*=ui-body-],[class*=ui-list-]'); 
						return themedParent.length ? themedParent.attr('class').match(/ui-(bar|body|list)-([a-z])/)[2] : 'c';
					}
					else {<commit_msg>cleaned up theme inheritance logic a bit<commit_after>/*
* jQuery Mobile Framework : sample plugin for making button-like links
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* Note: Code is in draft form and is subject to change 
*/ 
(function($){

$.fn.buttonMarkup = function( options ){
	return this.each( function() {
		var el = $( this ),
		    o = $.extend( {}, {
				theme: (function(){
					//if data-theme attr is present
					if(el.is('[data-theme]')){
						return el.attr('data-theme');
					}
					//if not, try to find closest theme container
					else if( el.parents('body').length ) {
						var themedParent = el.closest('[class*=ui-bar-],[class*=ui-body-]'); 
						return themedParent.length ? themedParent.attr('class').match(/ui-(bar|body)-([a-z])/)[2] : 'c';
					}
					else{
{'fraction_non_alphanumeric': 0.17269544924154026, 'fraction_numerical': 0.0011668611435239206, 'mean_word_length': 3.182926829268293, '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': '2468656', 'n_tokens_mistral': 656, 'n_tokens_neox': 542, 'n_words': 154}