<commit_before>import frappe

def execute():
	for cost in frappe.db.get_list("Activity Cost", filters = {"employee": ""},
		fields = ("name", "activity_type", "costing_rate", "billing_rate")):
		activity_type = frappe.get_doc("Activity Type", cost.activity_type)
		activity_type.costing_rate = cost.costing_rate
		activity_type.billing_rate = cost.billing_rate
		activity_type.save()

		frappe.delete_doc("Activity Cost", cost.name)<commit_msg>[minor] [patch] reload activity cost in default_activity_rate<commit_after>import frappe

def execute():
	frappe.reload_doc("projects", "doctype", "activity_cost")

	for cost in frappe.db.get_list("Activity Cost", filters = {"employee": ""},
		fields = ("name", "activity_type", "costing_rate", "billing_rate")):
		activity_type = frappe.get_doc("Activity Type", cost.activity_type)
		activity_type.costing_rate = cost.costing_rate
		activity_type.billing_rate = cost.billing_rate
		activity_type.save()

		frappe.delete_doc("Activity Cost", cost.name)
{'fraction_non_alphanumeric': 0.13755020080321284, 'fraction_numerical': 0.0, 'mean_word_length': 6.6106870229007635, 'pattern_counts': {'":': 2, '<': 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': '5554325', 'n_tokens_mistral': 345, 'n_tokens_neox': 331, 'n_words': 64}