<commit_before>(function(jQuery) {
	jQuery.widget("ui.combobox", {
		_create: function() {
			var self = this;
			var select = this.element.hide();
			var input = jQuery("<input>")
				.insertAfter(select)
				.attr('value', jQuery.merge(select.children("option[selected]"), select.children('optgroup').children('option[selected]')).html())
				.autocomplete({
					source: function(request, response) {
						var matcher = new RegExp(request.term, "i");
						response(jQuery.merge(select.children("option"), select.children("optgroup").children("option")).map(function() {
							var text = jQuery(this).text();
							if (this.value && (!request.term || matcher.test(text)))
								return {
									id: this.value,
									label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + jQuery.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
									value: text
								};
						}));
					},
					delay: 0,
					select: function(event, ui) {
						if (!ui.item) {
							// remove invalid value, as it didn't match anything
							jQuery(this).val("");
							return false;
						}
						select.val(ui.item.id);
						self._trigger("selected", event, {
							item: select.find("[value='" + ui.item.id + "']")
						});<commit_msg>Small UI fix on autocomplete menu<commit_after>(function(jQuery) {
	jQuery.widget("ui.combobox", {
		_create: function() {
			var self = this;
      var select = this.element.hide();
			var input = jQuery("<input>")
				.insertAfter(select)
				.attr('value', jQuery.merge(select.children("option[selected]"), select.children('optgroup').children('option[selected]')).html())
				.autocomplete({
					source: function(request, response) {
						var matcher = new RegExp(request.term, "i");
						response(jQuery.merge(
						  select.children("option"), select.children("optgroup").children("option")).map(function() {
						    console.log(jQuery(this).parent());
						    var text = jQuery(this).text();
						    if (jQuery(this).parent().attr('tagName') == "OPTGROUP") {
						      var label = jQuery(this).text()+" @ "+this.parentElement.label;
						    } else {
                  var label = text;
						    }
  							if (this.value && this.value != 0 && (!request.term || matcher.test(label))) {
  								return {
  									id: this.value,
  									label: label.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + jQuery.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
  									value: text
  								};
								}
  						})
					  );
					},
					delay: 0,
					select: function(event, ui) {
						if (!ui.item) {
							// remove invalid value, as it didn't match anything
							jQuery(this).val("");
							return false;
						}
						select.val(ui.item.id);
						self._trigger("selected", event, {
							item: select.find("[value='" + ui.item.id + "']")
						});
{'fraction_non_alphanumeric': 0.20876112251882273, 'fraction_numerical': 0.0017111567419575632, 'mean_word_length': 2.7330779054916987, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7551031', 'n_tokens_mistral': 1254, 'n_tokens_neox': 913, 'n_words': 160}