<commit_before>"""
Defines a couple of default settings dictionaries for importing into a kaplot object.
They are user overwritable, by passing a custom dictionary (or list of of dicts) to the kaplot `__init__` function.
Any parameters not specified by the user will come from the `default` settings dictionary.

If it exists, import any user-defined settings from ~/.kaplotdefaults.rc
"""

from imp import load_source
from os.path import expanduser

default = {
	'PLOT_SETTINGS' 	:	{	'tight_layout'	:	False 		, \
								'xkcd'			:	False		, \
								'x_label_sep_l'	:	' , '		, \
								'x_label_sep_r'	:	''			, \
								'y_label_sep_l'	:	' , '		, \
								'y_label_sep_r'	:	''			, \
								'color_map'		:	'gist_rainbow'},

	'SAVEFIG_SETTINGS' 	:	{	'dpi'			:	100		, \
							  	'transparent'	:	False	, \
							  	'width'			:	8	, \
							  	'height'		:	6},

	'_LOCATION_TIGHT'	:	{	'upper left'	:	[0.18,0.595,0.25,0.25] , \
								'upper right'	:	[0.70,0.595,0.25,0.25] , \
								'lower right'	:	[0.70,0.195,0.25,0.25] , \
								'lower left'	:	[0.18,0.195,0.25,0.25]},

	'_LOCATION'			:	{	'upper left'	:	[0.22,0.595,0.25,0.25] , \
								'upper right'	:	[0.63,0.595,0.25,0.25] , \
								'lower right'	:	[0.63,0.180,0.25,0.25] , \
								'lower left'	:	[0.22,0.180,0.25,0.25]},

	'_FONT_TITLE'		:	{	'family'	: 	'Auto' 		, \
								'weight'	:	'Auto'		, \
								'size'		:	'Auto'		, \
								'color'		:	'Auto'		, \
								'alpha'		:	'Auto'		, \
								'va'		:	'Auto'		, \
								'ha'		:	'Auto'		, \
								'rotation'	:	'Auto'},

	'_FONT_XLABEL'		:	{	'family'	: 	'Auto' 		, \
								'weight'	:	'Auto'		, \
								'size'		:	'Auto'		, \
								'color'		:	'Auto'		, \<commit_msg>no message<commit_after>"""
Defines a couple of default settings dictionaries for importing into a kaplot object.
They are user overwritable, by passing a custom dictionary (or list of of dicts) to the kaplot `__init__` function.
Any parameters not specified by the user will come from the `default` settings dictionary.

If it exists, import any user-defined settings from ~/.kaplotdefaults.rc
"""

from imp import load_source
from os.path import expanduser

default = {
	'PLOT_SETTINGS' 	:	{	'tight_layout'	:	False 		, \
								'xkcd'			:	False		, \
								'x_label_sep_l'	:	' , '		, \
								'x_label_sep_r'	:	''			, \
								'y_label_sep_l'	:	' , '		, \
								'y_label_sep_r'	:	''			, \
								'color_map'		:	'gist_rainbow'},

	'SAVEFIG_SETTINGS' 	:	{	'dpi'			:	100		, \
							  	'transparent'	:	False	, \
							  	'width'			:	8		, \
							  	'height'		:	6},

	'_LOCATION_TIGHT'	:	{	'upper left'	:	[0.18,0.595,0.25,0.25] , \
								'upper right'	:	[0.70,0.595,0.25,0.25] , \
								'lower right'	:	[0.70,0.195,0.25,0.25] , \
								'lower left'	:	[0.18,0.195,0.25,0.25]},

	'_LOCATION'			:	{	'upper left'	:	[0.22,0.595,0.25,0.25] , \
								'upper right'	:	[0.63,0.595,0.25,0.25] , \
								'lower right'	:	[0.63,0.180,0.25,0.25] , \
								'lower left'	:	[0.22,0.180,0.25,0.25]},

	'_FONT_TITLE'		:	{	'family'	: 	'Auto' 		, \
								'weight'	:	'Auto'		, \
								'size'		:	'Auto'		, \
								'color'		:	'Auto'		, \
								'alpha'		:	'Auto'		, \
								'va'		:	'Auto'		, \
								'ha'		:	'Auto'		, \
								'rotation'	:	'Auto'},

	'_FONT_XLABEL'		:	{	'family'	: 	'Auto' 		, \
								'weight'	:	'Auto'		, \
								'size'		:	'Auto'		, \
								'color'		:	'Auto'		, \
{'fraction_non_alphanumeric': 0.18584070796460178, 'fraction_numerical': 0.06430678466076696, 'mean_word_length': 1.946133796698523, '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': '721773', 'n_tokens_mistral': 2047, 'n_tokens_neox': 1573, 'n_words': 275}