<commit_before>(function($, _) {
	var s        = $('script'),
	    script   = s[s.length - 1],
	    baseURI  = script.getAttribute('data-gittip-base')
	            || script.src.replace(/^((https?:)?\/\/[^\/]+).*$/, '$1'),
	    username = script.getAttribute('data-gittip-username'),
	    widget, receiving, number;

	// include css
	$('head')[0].appendChild(
		_.ml(['link', {
			rel: 'stylesheet',
			href: script.src.replace('.js', '.css').replace(/\?.+/, '')
		}])
	);

	// set up widget
	script.parentNode.insertBefore(_.ml(
		['div', { 'class': 'gittip-widget gittip-0002' },
			[ 'div', { 'class': 'gittip-inner' },
				number = _.ml(['span']), ' receive ', ['br'],
				['a', { href: baseURI + '/' + username + '/' },
					[ 'b', '$', receiving = _.ml(['span', '0.00'])] , ' / wk'<commit_msg>Allow widget to work when dynamically inserted into middle of DOM<commit_after>(function($, _) {
	var s = $('script');
	var script;
	for (var i = s.length - 1; i >= 0; i--) {
		if (s[i].getAttribute('data-gittip-username')) {
			script = s[i];
			break;
		}
	}
	var baseURI  = script.getAttribute('data-gittip-base')
	            || script.src.replace(/^((https?:)?\/\/[^\/]+).*$/, '$1'),
	    username = script.getAttribute('data-gittip-username'),
	    widget, receiving, number;

	// include css
	$('head')[0].appendChild(
		_.ml(['link', {
			rel: 'stylesheet',
			href: script.src.replace('.js', '.css').replace(/\?.+/, '')
		}])
	);

	// set up widget
	script.parentNode.insertBefore(_.ml(
		['div', { 'class': 'gittip-widget gittip-0002' },
			[ 'div', { 'class': 'gittip-inner' },
				number = _.ml(['span']), ' receive ', ['br'],
				['a', { href: baseURI + '/' + username + '/' },
					[ 'b', '$', receiving = _.ml(['span', '0.00'])] , ' / wk'
{'fraction_non_alphanumeric': 0.2659817351598174, 'fraction_numerical': 0.011986301369863013, 'mean_word_length': 2.930493273542601, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5365842', 'n_tokens_mistral': 702, 'n_tokens_neox': 635, 'n_words': 120}