<commit_before>app_name = "erpnext"
app_title = "ERPNext"
app_publisher = "Web Notes Technologies Pvt. Ltd. and Contributors"
app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations"
app_icon = "icon-th"
app_color = "#e74c3c"
app_version = "4.3.0"

error_report_email = "<EMAIL>"

app_include_js = ["assets/js/erpnext.min.js","assets/js/charts.js","assets/js/bjqs-1.3.js","assets/js/bjqs-1.3.min.js","assets/js/cropper.js",
					"assets/lib/jquery.ui.core.1.10.3.min.js",
				   "assets/lib/jquery.ui.widget.1.10.3.min.js",
				   "assets/lib/jquery.ui.mouse.1.10.3.min.js",
				    "assets/lib/jquery.ui.draggable.1.10.3.min.js",
				    "assets/lib/wColorPicker.min.js",
				    "assets/lib/wPaint.min.js",
				    "assets/lib/wPaint.js",
				    "assets/lib/wPaint.utils.js",
				   "assets/plugins/main/wPaint.menu.main.min.js",
				   "assets/plugins/text/wPaint.menu.text.min.js",
				   "assets/plugins/shapes/wPaint.menu.main.shapes.min.js",
     			   "assets/plugins/file/wPaint.menu.main.file.min.js"  
					]
app_include_css = ["assets/css/erpnext.css","assets/css/bjqs.css","assets/css/demo.css","assets/css/cropper.css",
					"assets/lib/wColorPicker.min.css",
				   "assets/lib/wPaint.min.css",
				   "assets/lib/wPaint.css"
					]
web_include_js = "assets/js/erpnext-web.min.js"

after_install = "erpnext.setup.install.after_install"

boot_session = "erpnext.startup.boot.boot_session"
notification_config = "erpnext.startup.notifications.get_notification_config"

dump_report_map = "erpnext.startup.report_data_map.data_map"
update_website_context = "erpnext.startup.webutils.update_website_context"

on_session_creation = "erpnext.startup.event_handlers.on_session_creation"
before_tests = "erpnext.setup.utils.before_tests"

website_generators = ["Item Group", "Item", "Sales Partner"]

standard_queries = "Customer:erpnext.selling.doctype.customer.customer.get_customer_list"

permission_query_conditions = {
		"Feed": "erpnext.home.doctype.feed.feed.get_permission_query_conditions",
		"Note": "erpnext.utilities.doctype.note.note.get_permission_query_conditions"
	}

has_permission = {
		"Feed": "erpnext.home.doctype.feed.feed.has_permission",
		"Note": "erpnext.utilities.doctype.note.note.has_permission"
	}


doc_events = {
	"*": {
		"on_update": "erpnext.home.update_feed",
		"on_submit": "erpnext.home.update_feed"
	},
	"Comment": {
		"on_update": "erpnext.home.make_comment_feed"
	},
	"Stock Entry": {
		"validate":["erpnext.stock.stock_custom_methods.my_random_string","erpnext.stock.stock_custom_methods.stock_qrcode"],
		"on_submit": ["erpnext.stock.doctype.material_request.material_request.update_completed_qty","erpnext.stock.stock_custom_methods.stock_out_entry","erpnext.stock.stock_custom_methods.in_stock_entry"],
		"on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_qty"
	},
	"Delivery Note":{
		# "on_submit": ["erpnext.stock.stock_custom_methods.validate_serial_no_status","erpnext.accounts.accounts_custom_methods.update_serial_no","erpnext.stock.stock_custom_methods.check_hooks"]
		"on_submit": ["erpnext.stock.stock_custom_methods.validate_serial_no_status"]

	},
	"Serial No":{
		"validate":["erpnext.stock.stock_custom_methods.serial_barcode","erpnext.stock.stock_custom_methods.serial_qrcode"],
	},
	"Work Order":{
		"validate":["erpnext.stock.stock_custom_methods.work_barcode","erpnext.stock.stock_custom_methods.work_qrcode"],
	},
	"User": {
		"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
		"on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
	},
	"User": {
		"validate": [
		"erpnext.hr.doctype.employee.employee.validate_employee_role",
		"erpnext.setup.doctype.site_master.site_master.validate_validity",
		"erpnext.stock.stock_custom_methods.update_user_permissions_for_user"
		],
		"on_update":[ 
		"erpnext.hr.doctype.employee.employee.update_user_permissions",
		"erpnext.setup.doctype.site_master.site_master.update_users"
		],
	},
	"Branch": {
		"validate" : "tools.tools_management.custom_methods.branch_methods"

	},
	"Sales Invoice": {
		"on_update" : ["erpnext.accounts.accounts_custom_methods.create_serial_no"],#"tools.tools_management.custom_methods.update_work_order","tools.tools_management.custom_methods.create_se_or_mr"],
		"validate"  : ["erpnext.accounts.accounts_custom_methods.add_data_in_work_order_assignment", "tools.tools_management.custom_methods.validate_reserve_fabric", "tools.tools_management.custom_methods.merge_tailoring_items", "erpnext.accounts.accounts_custom_methods.invoice_validation_method"],
		# "on_submit" : ["erpnext.accounts.accounts_custom_methods.create_production_process","tools.tools_management.custom_methods.sales_invoice_on_submit_methods","erpnext.accounts.accounts_custom_methods.validate_sales_invoice","tools.tools_management.custom_methods.create_se_or_mr", "mreq.mreq.page.sales_dashboard.sales_dashboard.create_swatch_item_po", "erpnext.accounts.accounts_custom_methods.update_WoCount","erpnext.accounts.accounts_custom_methods.update_serial_no_for_gift_voucher"],
		"on_submit" : ["erpnext.accounts.accounts_custom_methods.create_production_process","tools.tools_management.custom_methods.sales_invoice_on_submit_methods","erpnext.accounts.accounts_custom_methods.validate_sales_invoice","tools.tools_management.custom_methods.create_se_or_mr", "mreq.mreq.page.sales_dashboard.sales_dashboard.create_swatch_item_po", "erpnext.accounts.accounts_custom_methods.update_WoCount"],
		"on_cancel" : ["tools.tools_management.custom_methods.delete_project_aginst_si", "erpnext.accounts.accounts_custom_methods.delete_production_process"]
	},
	"Item":{
		"validate" : ["erpnext.stock.stock_custom_methods.custom_validateItem_methods","erpnext.stock.stock_custom_methods.work_qrcode","erpnext.stock.stock_custom_methods.validate_quality_inspection_for_child_table","erpnext.stock.stock_custom_methods.validate_quality_inspection","erpnext.stock.stock_custom_methods.validate_for_gift_voucher"],
		"on_update": "erpnext.stock.stock_custom_methods.item_validate_methods"

	},
	"Employee":{
		"validate": "erpnext.stock.stock_custom_methods.update_user_permissions_for_emp"
	},
	"Quality Inspection":{
		"on_update" : "erpnext.accounts.accounts_custom_methods.update_QI_status",
		"on_submit" : "erpnext.accounts.accounts_custom_methods.make_stock_entry_against_qc"
	},
	"Customer":{
		"on_update": [
			"loyalty_point_engine.loyalty_point_engine.hooks_call_handler.create_acc_payable_head",
			"loyalty_point_engine.loyalty_point_engine.hooks_call_handler.referral_management"
		]
	},
	"Journal Voucher":{
		"on_update": "loyalty_point_engine.loyalty_point_engine.hooks_call_handler.grab_jv_and_invoice_details"
	}
}

scheduler_events = {
	"all": [
		"erpnext.hr.doctype.job_applicant.get_job_applications.get_job_applications",
		"erpnext.selling.doctype.lead.get_leads.get_leads",
		"erpnext.accounts.custom_notification_events.welcome_notification",
		"erpnext.accounts.custom_notification_events.thank_you",
	],
	"daily": [
		"erpnext.controllers.recurring_document.create_recurring_documents",
		"erpnext.stock.utils.reorder_item",
		"erpnext.setup.doctype.email_digest.email_digest.send",
		"erpnext.support.doctype.support_ticket.support_ticket.auto_close_tickets",
		"erpnext.accounts.custom_notification_events.outstanding_amount",
		"erpnext.accounts.custom_notification_events.late_delivery",
		"erpnext.support.page.report_scheduler.delete_report_folder",
	],
	"daily_long": [
		"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_daily"
	],
	"weekly_long": [
		"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_weekly"
	]
}<commit_msg>hooks changes<commit_after>app_name = "erpnext"
app_title = "ERPNext"
app_publisher = "Web Notes Technologies Pvt. Ltd. and Contributors"
app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations"
app_icon = "icon-th"
app_color = "#e74c3c"
app_version = "4.3.0"

error_report_email = "<EMAIL>"

app_include_js = ["assets/js/erpnext.min.js","assets/js/charts.js","assets/js/bjqs-1.3.js","assets/js/bjqs-1.3.min.js","assets/js/cropper.js",
					"assets/lib/jquery.ui.core.1.10.3.min.js",
				   "assets/lib/jquery.ui.widget.1.10.3.min.js",
				   "assets/lib/jquery.ui.mouse.1.10.3.min.js",
				    "assets/lib/jquery.ui.draggable.1.10.3.min.js",
				    "assets/lib/wColorPicker.min.js",
				    "assets/lib/wPaint.min.js",
				    "assets/lib/wPaint.js",
				    "assets/lib/wPaint.utils.js",
				   "assets/plugins/main/wPaint.menu.main.min.js",
				   "assets/plugins/text/wPaint.menu.text.min.js",
				   "assets/plugins/shapes/wPaint.menu.main.shapes.min.js",
     			   "assets/plugins/file/wPaint.menu.main.file.min.js"  
					]
app_include_css = ["assets/css/erpnext.css","assets/css/bjqs.css","assets/css/demo.css","assets/css/cropper.css",
					"assets/lib/wColorPicker.min.css",
				   "assets/lib/wPaint.min.css",
				   "assets/lib/wPaint.css"
					]
web_include_js = "assets/js/erpnext-web.min.js"

after_install = "erpnext.setup.install.after_install"

boot_session = "erpnext.startup.boot.boot_session"
notification_config = "erpnext.startup.notifications.get_notification_config"

dump_report_map = "erpnext.startup.report_data_map.data_map"
update_website_context = "erpnext.startup.webutils.update_website_context"

on_session_creation = "erpnext.startup.event_handlers.on_session_creation"
before_tests = "erpnext.setup.utils.before_tests"

website_generators = ["Item Group", "Item", "Sales Partner"]

standard_queries = "Customer:erpnext.selling.doctype.customer.customer.get_customer_list"

permission_query_conditions = {
		"Feed": "erpnext.home.doctype.feed.feed.get_permission_query_conditions",
		"Note": "erpnext.utilities.doctype.note.note.get_permission_query_conditions"
	}

has_permission = {
		"Feed": "erpnext.home.doctype.feed.feed.has_permission",
		"Note": "erpnext.utilities.doctype.note.note.has_permission"
	}


doc_events = {
	"*": {
		"on_update": "erpnext.home.update_feed",
		"on_submit": "erpnext.home.update_feed"
	},
	"Comment": {
		"on_update": "erpnext.home.make_comment_feed"
	},
	"Stock Entry": {
		"validate":["erpnext.stock.stock_custom_methods.my_random_string","erpnext.stock.stock_custom_methods.stock_qrcode"],
		"on_submit": ["erpnext.stock.doctype.material_request.material_request.update_completed_qty","erpnext.stock.stock_custom_methods.stock_out_entry","erpnext.stock.stock_custom_methods.in_stock_entry"],
		"on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_qty"
	},
	"Delivery Note":{
		# "on_submit": ["erpnext.stock.stock_custom_methods.validate_serial_no_status","erpnext.accounts.accounts_custom_methods.update_serial_no","erpnext.stock.stock_custom_methods.check_hooks"]
		"on_submit": ["erpnext.stock.stock_custom_methods.validate_serial_no_status"]

	},
	"Serial No":{
		"validate":["erpnext.stock.stock_custom_methods.serial_barcode","erpnext.stock.stock_custom_methods.serial_qrcode"],
	},
	"Work Order":{
		"validate":["erpnext.stock.stock_custom_methods.work_barcode","erpnext.stock.stock_custom_methods.work_qrcode"],
	},
	"User": {
		"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
		"on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
	},
	"User": {
		"validate": [
		"erpnext.hr.doctype.employee.employee.validate_employee_role",
		"erpnext.setup.doctype.site_master.site_master.validate_validity",
		"erpnext.stock.stock_custom_methods.update_user_permissions_for_user"
		],
		"on_update":[ 
		"erpnext.hr.doctype.employee.employee.update_user_permissions",
		"erpnext.setup.doctype.site_master.site_master.update_users"
		],
	},
	"Branch": {
		"validate" : "tools.tools_management.custom_methods.branch_methods"

	},
	"Sales Invoice": {
		"on_update" : ["erpnext.accounts.accounts_custom_methods.create_serial_no"],#"tools.tools_management.custom_methods.update_work_order","tools.tools_management.custom_methods.create_se_or_mr"],
		"validate"  : ["erpnext.accounts.accounts_custom_methods.add_data_in_work_order_assignment", "tools.tools_management.custom_methods.validate_reserve_fabric", "tools.tools_management.custom_methods.merge_tailoring_items", "erpnext.accounts.accounts_custom_methods.invoice_validation_method"],
		# "on_submit" : ["erpnext.accounts.accounts_custom_methods.create_production_process","tools.tools_management.custom_methods.sales_invoice_on_submit_methods","erpnext.accounts.accounts_custom_methods.validate_sales_invoice","tools.tools_management.custom_methods.create_se_or_mr", "mreq.mreq.page.sales_dashboard.sales_dashboard.create_swatch_item_po", "erpnext.accounts.accounts_custom_methods.update_WoCount","erpnext.accounts.accounts_custom_methods.update_serial_no_for_gift_voucher"],
		"on_submit" : ["erpnext.accounts.accounts_custom_methods.create_production_process","tools.tools_management.custom_methods.sales_invoice_on_submit_methods","erpnext.accounts.accounts_custom_methods.validate_sales_invoice","tools.tools_management.custom_methods.create_se_or_mr", "mreq.mreq.page.sales_dashboard.sales_dashboard.create_swatch_item_po", "erpnext.accounts.accounts_custom_methods.update_WoCount"],
		"on_cancel" : ["tools.tools_management.custom_methods.delete_project_aginst_si", "erpnext.accounts.accounts_custom_methods.delete_production_process"]
	},
	"Item":{
		"validate" : ["erpnext.stock.stock_custom_methods.custom_validateItem_methods","erpnext.stock.stock_custom_methods.work_qrcode","erpnext.stock.stock_custom_methods.validate_quality_inspection_for_child_table","erpnext.stock.stock_custom_methods.validate_quality_inspection"],
		# "validate" : ["erpnext.stock.stock_custom_methods.custom_validateItem_methods","erpnext.stock.stock_custom_methods.work_qrcode","erpnext.stock.stock_custom_methods.validate_quality_inspection_for_child_table","erpnext.stock.stock_custom_methods.validate_quality_inspection","erpnext.stock.stock_custom_methods.validate_for_gift_voucher"],
		"on_update": "erpnext.stock.stock_custom_methods.item_validate_methods"

	},
	"Employee":{
		"validate": "erpnext.stock.stock_custom_methods.update_user_permissions_for_emp"
	},
	"Quality Inspection":{
		"on_update" : "erpnext.accounts.accounts_custom_methods.update_QI_status",
		"on_submit" : "erpnext.accounts.accounts_custom_methods.make_stock_entry_against_qc"
	},
	"Customer":{
		"on_update": [
			"loyalty_point_engine.loyalty_point_engine.hooks_call_handler.create_acc_payable_head",
			"loyalty_point_engine.loyalty_point_engine.hooks_call_handler.referral_management"
		]
	},
	"Journal Voucher":{
		"on_update": "loyalty_point_engine.loyalty_point_engine.hooks_call_handler.grab_jv_and_invoice_details"
	}
}

scheduler_events = {
	"all": [
		"erpnext.hr.doctype.job_applicant.get_job_applications.get_job_applications",
		"erpnext.selling.doctype.lead.get_leads.get_leads",
		"erpnext.accounts.custom_notification_events.welcome_notification",
		"erpnext.accounts.custom_notification_events.thank_you",
	],
	"daily": [
		"erpnext.controllers.recurring_document.create_recurring_documents",
		"erpnext.stock.utils.reorder_item",
		"erpnext.setup.doctype.email_digest.email_digest.send",
		"erpnext.support.doctype.support_ticket.support_ticket.auto_close_tickets",
		"erpnext.accounts.custom_notification_events.outstanding_amount",
		"erpnext.accounts.custom_notification_events.late_delivery",
		"erpnext.support.page.report_scheduler.delete_report_folder",
	],
	"daily_long": [
		"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_daily"
	],
	"weekly_long": [
		"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_weekly"
	]
}
{'fraction_non_alphanumeric': 0.13365580448065173, 'fraction_numerical': 0.003309572301425662, 'mean_word_length': 6.903923541247485, 'pattern_counts': {'":': 82, '<': 5, '<?xml version=': 0, '>': 5, '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': '5783952', 'n_tokens_mistral': 6116, 'n_tokens_neox': 5543, 'n_words': 377}