<commit_before>(function($) {
	$.fn.firebase = function(extractor) {
		extractor = extractor || function() { return $(this).data('firebase') || this.id; };
		var url = '';
		var addPath = function() {
			if(!(/^http/i.test(url))) {
				var value = extractor.call(this);
				if(value) url = (url.length ? (value + '/' + url) : value);
			}
		};
		addPath.call(this);
		$(this).parents('[data-firebase]').each(addPath);
		return url.length ? new Firebase(url) : null;
	};

	$(function() {
		$('[data-firebase-value]').each(function() {
			var $this = $(this);
			var firebase = $this.firebase(function() {
				return $(this).data('firebase-value') || $(this).data('firebase') || this.id;
			});
			if(firebase) {
				firebase.on('value', function(snapshot) {
					$this.html(snapshot.val());
				});
			}
		});
	});
})(jQuery);<commit_msg>Remove optional 'extractor' parameter. Now matches for any data-firebase* attribute and optionally accepts child paths as arguments. Remove automatic binding of data-firebase-value.<commit_after>(function($) {
	$.fn.firebase = function() {
		var url = '';
		var addPath = function() {
			if(!(/^http/i.test(url))) {
				var data = $(this).data();
				var key = _.find(_.keys(data), function(value) { return /^firebase/i.test(value); });
				if(key) {
					var value = data[key] || this.id;
					if(value) {
						url = (url.length ? (value + '/' + url) : value);
					}
				}
			}
		};
		addPath.call(this);
		$(this).parents().each(addPath);
		return url.length ? (arguments.length ? Firebase.prototype.child.call(new Firebase(url), Array.prototype.slice.call(arguments, 0).join('/')) : new Firebase(url)) : null;
	};
})(jQuery);
{'fraction_non_alphanumeric': 0.21235752849430115, 'fraction_numerical': 0.0005998800239952009, 'mean_word_length': 3.56986301369863, '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': '5242452', 'n_tokens_mistral': 654, 'n_tokens_neox': 569, 'n_words': 110}