<commit_before>// Description: Responsive Content jQuery plugin
// Author: <NAME>
// https://github.com/stephanfowler/responsive-content

// Forked from:
// jquery.pjax.js
// copyright <NAME>
// https://github.com/defunkt/jquery-pjax

(function($){

$.fn.responsiveContent = function( useropts ){ 

	if ( this.length === 0 )
		return;

	var 
		hasTouch = 'ontouchstart' in document.documentElement,
		pixelRatio = ( window.devicePixelRatio && window.devicePixelRatio > 1 ) ? window.devicePixelRatio : 1,
		widthCurrent, 
		nowLoading,
		target = this; 

	var opts = $.extend(
		{
			widths: [ 0, 481, 768, 1025 ],        // Screen width break-points.
			afterLoad: function(){ return this }, // Callback after each content load
			forceLoad: false,                     // Force an initial fragment load. Normally only does this when getMinWidth > widths[0]
			resizeLoad: false,                    // Reload fragment when window is resized beyond a width breakpoint.
			linkSelector: 'a'                     // The selector for which anchors to pjaxify. Must only select html A tags.
		}, 
		useropts 
	);

	// Add ajax, screen-width, and other device info to querystr params
	function resconParams() {
		return {
			_rescon_width: widthCurrent,
			_rescon_touch: hasTouch,
			_rescon_pixelratio: pixelRatio
		} 
	}

	// The lower bound of the width-range that we're in.
	function getMinWidth() {
		var width = opts.widths[ opts.widths.length - 1 ]; 
		var widthTrue = opts.resizeLoad ? $(window).width() : screen.width; // If resizable, we need the (variable) window width, not the (fixed) screen width
		for( var i=1; i<opts.widths.length; i++ ) {<commit_msg>Readability tweak.<commit_after>// Description: Responsive Content jQuery plugin
// Author: <NAME>owler
// https://github.com/stephanfowler/responsive-content

// Forked from:
// jquery.pjax.js
// copyright <NAME>
// https://github.com/defunkt/jquery-pjax

(function($){

$.fn.responsiveContent = function( useropts ){ 

	if ( this.length === 0 )
		return;

	var opts = $.extend(
		{
			widths: [ 0, 481, 768, 1025 ],        // Screen width break-points.
			afterLoad: function(){ return this }, // Callback after each content load
			forceLoad: false,                     // Force an initial fragment load. Normally only does this when getMinWidth > widths[0]
			resizeLoad: false,                    // Reload fragment when window is resized beyond a width breakpoint.
			linkSelector: 'a'                     // The selector for which anchors to pjaxify. Must only select html A tags.
		}, 
		useropts 
	);

	var 
		hasTouch = 'ontouchstart' in document.documentElement,
		pixelRatio = ( window.devicePixelRatio && window.devicePixelRatio > 1 ) ? window.devicePixelRatio : 1,
		widthCurrent, 
		nowLoading,
		target = this; 

	// Add ajax, screen-width, and other device info to querystr params
	function resconParams() {
		return {
			_rescon_width: widthCurrent,
			_rescon_touch: hasTouch,
			_rescon_pixelratio: pixelRatio
		} 
	}

	// The lower bound of the width-range that we're in.
	function getMinWidth() {
		var width = opts.widths[ opts.widths.length - 1 ]; 
		var widthTrue = opts.resizeLoad ? $(window).width() : screen.width; // If resizable, we need the (variable) window width, not the (fixed) screen width
		for( var i=1; i<opts.widths.length; i++ ) {
{'fraction_non_alphanumeric': 0.11494597839135655, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 2.963139120095125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '2240058', 'n_tokens_mistral': 1124, 'n_tokens_neox': 981, 'n_words': 317}