<commit_before>def execute():
	import webnotes
	webnotes.reload_doc("hr", "doctype", "leave_application")
	
	webnotes.conn.sql("""update `tabLeave Application`, `tabEmployee` set
		`tabLeave Application`.company = `tabEmployee`.company where
		`tabLeave Application`.employee = `tabEmployee`.name""")
		
	company = webnotes.conn.get_default("company")
	webnotes.conn.sql("""update `tabLeave Application`
		set company = %s where ifnull(company,'')=''""", company)<commit_msg>fixes in patch<commit_after>def execute():
	import webnotes
	webnotes.reload_doc("hr", "doctype", "leave_application")
	
	webnotes.conn.sql("""update `tabLeave Application`, `tabEmployee` set
		`tabLeave Application`.company = `tabEmployee`.company where
		`tabLeave Application`.employee = `tabEmployee`.name""")
		
	company = webnotes.conn.get_default("company")
	if company:
		webnotes.conn.sql("""update `tabLeave Application`
			set company = %s where ifnull(company,'')=''""", company)
{'fraction_non_alphanumeric': 0.15838509316770186, 'fraction_numerical': 0.0, 'mean_word_length': 6.5546875, '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': '415544', 'n_tokens_mistral': 315, 'n_tokens_neox': 287, 'n_words': 63}