<commit_before>//{{{
(function($) {

// override Scroller to ensure that the screen scrolls to a desired height
// in this case, we want it to scroll almost (but not quite) 1 entire screen
_Scroller = Scroller; // keep original, just in case...
Scroller = function(targetElement) {
	var offset = 50;
	var endPoint = ensureVisible(targetElement);
	var minScroll = $("#footer").offset().top - offset;
	if(endPoint < minScroll) {
		endPoint = minScroll;
	}
	// make sure the page has enough space to scroll into
	var tiddlerDisplay = $("#tiddlerDisplay");
	if($(tiddlerDisplay).height() < (screen.height - offset)) {
		$(tiddlerDisplay).height(screen.height - offset);
	}

	var p = [{ style: "-tw-vertScroll", start: findScrollY(), end: endPoint }];

	return new Morpher(targetElement, config.animDuration, p);
};

// add a macro to set the appropriate login form to open by default before
// loading the login tiddler
config.macros.TiddlySpaceLoginLoader = {
	handler: function(place, macro, params, wikifier, paramString, tiddler) {
		var cookie = "taggedTabs";
		createTiddlyButton(place, params[1], params[1], function() {
			var tabbedSignUp = $('.taggedTabs');
			if (tabbedSignUp.length) { // it is already visible
				console.log('in if');
				config.macros.tabs.switchTab(tabbedSignUp[0], params[1]);
			} else {
				console.log('in else');
				config.options[cookie] = params[1];
			}
			story.displayTiddler(place, params[0]);
		}, "tiddlyLinkExisting");
	}
};

})(jQuery);
//}}}<commit_msg>removed spurious console.log calls, fixed whitespace and quotes<commit_after>//{{{
(function($) {

// override Scroller to ensure that the screen scrolls to a desired height
// in this case, we want it to scroll almost (but not quite) 1 entire screen
_Scroller = Scroller; // keep original, just in case...
Scroller = function(targetElement) {
	var offset = 50;
	var endPoint = ensureVisible(targetElement);
	var minScroll = $("#footer").offset().top - offset;
	if(endPoint < minScroll) {
		endPoint = minScroll;
	}
	// make sure the page has enough space to scroll into
	var tiddlerDisplay = $("#tiddlerDisplay");
	if($(tiddlerDisplay).height() < (screen.height - offset)) {
		$(tiddlerDisplay).height(screen.height - offset);
	}

	var p = [{ style: "-tw-vertScroll", start: findScrollY(), end: endPoint }];

	return new Morpher(targetElement, config.animDuration, p);
};

// add a macro to set the appropriate login form to open by default before
// loading the login tiddler
config.macros.TiddlySpaceLoginLoader = {
	handler: function(place, macro, params, wikifier, paramString, tiddler) {
		var cookie = "taggedTabs";
		createTiddlyButton(place, params[1], params[1], function() {
			var tabbedSignUp = $(".taggedTabs");
			if(tabbedSignUp.length) { // it is already visible
				config.macros.tabs.switchTab(tabbedSignUp[0], params[1]);
			} else {
				config.options[cookie] = params[1];
			}
			story.displayTiddler(place, params[0]);
		}, "tiddlyLinkExisting");
	}
};

})(jQuery);
//}}}
{'fraction_non_alphanumeric': 0.14500501169395255, 'fraction_numerical': 0.006014032743067156, 'mean_word_length': 4.327402135231317, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2480483', 'n_tokens_mistral': 1007, 'n_tokens_neox': 941, 'n_words': 278}