<commit_before>import frappe

def execute():
	frappe.reload_doc("support", "doctype", "issue_priority")

	priorities = frappe.get_meta("Issue").get_field("priority").options.split("\n")

	for priority in priorities:
		if not frappe.db.exists("Issue Priority", priority):
			frappe.get_doc({
				"doctype": "Issue Priority",
				"name": priority
			}).insert(ignore_permissions=True)

	issue_priority = frappe.get_list("Issue", fields=["name", "priority"])

	service_level_priority = frappe.get_list("Service Level", fields=["name", "priority", "response_time", "response_time_period",
		"resolution_time", "resolution_time_period"])

	service_level_agreement_priority = frappe.get_list("Service Level Agreement", fields=["name", "priority", "response_time", "response_time_period",
		"resolution_time", "resolution_time_period"])

	frappe.reload_doc("support", "doctype", "issue")
	frappe.reload_doc("support", "doctype", "service_level_priority")
	frappe.reload_doc("support", "doctype", "service_level")
	frappe.reload_doc("support", "doctype", "service_level_agreement")

	for issue in issue_priority:
		frappe.db.set_value("Issue", issue.name, "priority", issue.priority)

	for service_level in service_level_priority:<commit_msg>patch: fixes<commit_after>import frappe

def execute():
	frappe.reload_doc("support", "doctype", "issue_priority")

	priorities = frappe.get_meta("Issue").get_field("priority").options.split("\n")

	for priority in priorities:
		if not frappe.db.exists("Issue Priority", priority):
			frappe.get_doc({
				"doctype": "Issue Priority",
				"name": priority
			}).insert(ignore_permissions=True)

	issue_priority = frappe.get_list("Issue", fields=["name", "priority"])

	service_level_priority = frappe.get_list("Service Level", fields=["name", "priority", "response_time", "response_time_period", \
		"resolution_time", "resolution_time_period"])

	service_level_agreement_priority = frappe.get_list("Service Level Agreement", fields=["name", "priority", "response_time",  \
		"response_time_period", "resolution_time", "resolution_time_period"])

	frappe.reload_doc("support", "doctype", "issue")
	frappe.reload_doc("support", "doctype", "service_level_priority")
	frappe.reload_doc("support", "doctype", "service_level")
	frappe.reload_doc("support", "doctype", "service_level_agreement")

	for issue in issue_priority:
		frappe.db.set_value("Issue", issue.name, "priority", issue.priority)

	for service_level in service_level_priority:
{'fraction_non_alphanumeric': 0.15493527508090615, 'fraction_numerical': 0.0, 'mean_word_length': 7.67719298245614, 'pattern_counts': {'":': 4, '<': 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': '2395866', 'n_tokens_mistral': 851, 'n_tokens_neox': 791, 'n_words': 144}