<commit_before>import webnotes
def execute():
	from patches.april_2013.p05_update_file_data import update_file_list, get_single_doctypes
	
	singles = get_single_doctypes()
	for doctype in webnotes.conn.sql_list("""select table_name from `information_schema`.`columns`
		where table_schema=%s and column_name='file_list'""", webnotes.conn.cur_db_name):
			doctype = doctype[3:]
			
			if not webnotes.conn.exists("DocType", doctype): continue
			
			update_file_list(doctype, singles)
			
			webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'
				and parent=%s""", doctype)
			webnotes.conn.sql("""delete from `tabDocField` where fieldname='file_list'
				and parent=%s""", doctype)
	<commit_msg>[patches] [fix] fixed an old patch<commit_after>import webnotes
def execute():
	from patches.april_2013.p05_update_file_data import update_file_list, get_single_doctypes
	
	singles = get_single_doctypes()
	for doctype in webnotes.conn.sql_list("""select table_name from `information_schema`.`columns`
		where table_schema=%s and column_name='file_list'""", webnotes.conn.cur_db_name):
			doctype = doctype[3:]
			
			if not webnotes.conn.exists("DocType", doctype): continue
			
			update_file_list(doctype, singles)
			
			webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'
				and parent=%s""", doctype)
	
{'fraction_non_alphanumeric': 0.11782032400589101, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 5.694581280788177, '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': '3007738', 'n_tokens_mistral': 523, 'n_tokens_neox': 450, 'n_words': 95}