<commit_before>import Picker from '../../icon_picker/icon_picker';

frappe.ui.form.ControlIcon = class ControlIcon extends frappe.ui.form.ControlData {
	make_input() {
		this.df.placeholder = this.df.placeholder || __('Choose an icon');
		super.make_input();
		this.get_all_icons();
		this.make_icon_input();
	}

	get_all_icons() {
		frappe.symbols = [];
		$("#frappe-symbols > symbol[id]").each(function() {
			frappe.symbols.push(this.id.replace('icon-', ''));
		});
	}

	make_icon_input() {
		let picker_wrapper = $('<div>');
		this.picker = new Picker({
			parent: picker_wrapper,
			icon: this.get_icon(),<commit_msg>fix: exclude flags in icon picker<commit_after>import Picker from '../../icon_picker/icon_picker';

frappe.ui.form.ControlIcon = class ControlIcon extends frappe.ui.form.ControlData {
	make_input() {
		this.df.placeholder = this.df.placeholder || __('Choose an icon');
		super.make_input();
		this.get_all_icons();
		this.make_icon_input();
	}

	get_all_icons() {
		frappe.symbols = [];
		$("#frappe-symbols > symbol[id]").each(function() {
			this.id.includes('icon-') && frappe.symbols.push(this.id.replace('icon-', ''));
		});
	}

	make_icon_input() {
		let picker_wrapper = $('<div>');
		this.picker = new Picker({
			parent: picker_wrapper,
			icon: this.get_icon(),
{'fraction_non_alphanumeric': 0.1840680587780356, 'fraction_numerical': 0.0, 'mean_word_length': 4.369294605809128, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6430213', 'n_tokens_mistral': 494, 'n_tokens_neox': 471, 'n_words': 73}