<commit_before>import webnotes
def execute():
	web_cache_perms()
	stock_perms()
	project_perms()
	account_perms()
	
def web_cache_perms():
	webnotes.conn.sql("""update `tabDocPerm`
		set role='Guest' where parent='Web Cache' and role='All' and permlevel=0""")
		
def project_perms():
	webnotes.conn.sql("""delete from `tabDocPerm`
		where parent in ('Task', 'Project Activity') and role='All'""")

def stock_perms():
	webnotes.conn.sql("""delete from `tabDocPerm`
		where parent in ('Landed Cost Master', 'Landed Cost Wizard', 
		'Sales and Purchase Return Tool') and role='All' and permlevel=0""")
		
def account_perms():
	webnotes.conn.sql("""delete from tabDocPerm where parent='TDS Detail'""")<commit_msg>fix in permissions of role 'All'. Fix in Credit Days and Credit Limit permissions in Customer form<commit_after>import webnotes
def execute():
	web_cache_perms()
	stock_perms()
	project_perms()
	account_perms()
	
def web_cache_perms():
	webnotes.conn.sql("""update `tabDocPerm`
		set role='Guest' where parent='Web Cache' and role='All' and permlevel=0""")
		
def project_perms():
	webnotes.conn.sql("""delete from `tabDocPerm`
		where parent in ('Task', 'Project Activity') and role='All'""")

def stock_perms():
	webnotes.conn.sql("""delete from `tabDocPerm`
		where parent in ('Landed Cost Master', 'Landed Cost Wizard', 
		'Sales and Purchase Return Tool') and role='All' and permlevel=0""")
		
def account_perms():
	# since it is a child doctype, it does not need permissions
	webnotes.conn.sql("""delete from tabDocPerm where parent='TDS Detail'""")
{'fraction_non_alphanumeric': 0.1425831202046036, 'fraction_numerical': 0.0025575447570332483, 'mean_word_length': 5.894273127753304, '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': '10340', 'n_tokens_mistral': 537, 'n_tokens_neox': 506, 'n_words': 156}