<commit_before># Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

def execute():
	import webnotes, os
	
	webnotes.delete_doc('Page', 'stock-ledger')
	webnotes.delete_doc('Page', 'stock-ageing')
	webnotes.delete_doc('Page', 'stock-level')
	webnotes.delete_doc('Page', 'general-ledger')
	
	os.system("rm -rf app/stock/page/stock_ledger")
	os.system("rm -rf app/stock/page/stock_ageing")
	os.system("rm -rf app/stock/page/stock_level")
	os.system("rm -rf app/accounts/page/general_ledger")<commit_msg>[reports] [minor] patch to delete old report files<commit_after># Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

def execute():
	import webnotes, os, shutil
	from webnotes.utils import get_base_path
	
	webnotes.delete_doc('Page', 'stock-ledger')
	webnotes.delete_doc('Page', 'stock-ageing')
	webnotes.delete_doc('Page', 'stock-level')
	webnotes.delete_doc('Page', 'general-ledger')
	
	for d in [["stock", "stock_ledger"], ["stock", "stock_ageing"],
		 	["stock", "stock_level"], ["accounts", "general_ledger"]]:
		path = os.path.join(get_base_path(), "app", d[0], "page", d[1])
		if os.path.exists(path):
			shutil.rmtree(path)
{'fraction_non_alphanumeric': 0.1623931623931624, 'fraction_numerical': 0.009324009324009324, 'mean_word_length': 5.538071065989848, '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': '5553786', 'n_tokens_mistral': 471, 'n_tokens_neox': 442, 'n_words': 107}