<commit_before>"""
Defines global matplotlib styles and DataViews specific style options.

For setting a style see set_style.
"""

import matplotlib.pyplot as plt

from .options import options, Cycle, StyleOpts

# Default Styles
options.Style = StyleOpts()
options.Contours = StyleOpts()
options.SheetView = StyleOpts(cmap='gray', interpolation='nearest')
options.Matrix = StyleOpts(cmap='jet', interpolation='nearest')
options.HeatMap = StyleOpts(cmap='jet', interpolation='nearest')
# Color cycles can be removed once default style set and test data updated
options.Curve = StyleOpts(color=Cycle(['b', 'g', 'r', 'c', 'm', 'y', 'k']), linewidth=2)
options.Scatter = StyleOpts(color=Cycle(['b', 'g', 'r', 'c', 'm', 'y', 'k']), linewidth=2)
options.Annotation = StyleOpts()
options.Histogram = StyleOpts(ec='k', fc='w')
options.Table = StyleOpts()
options.Points = StyleOpts(color='r', marker='x')

# Defining the most common style options for dataviews
GrayNearest = StyleOpts(cmap='gray', interpolation='nearest')
<commit_msg>Set default Contour style to black (fixes tests)<commit_after>"""
Defines global matplotlib styles and DataViews specific style options.

For setting a style see set_style.
"""

import matplotlib.pyplot as plt

from .options import options, Cycle, StyleOpts

# Default Styles
options.Style = StyleOpts()
options.Contours = StyleOpts(color='k')
options.SheetView = StyleOpts(cmap='gray', interpolation='nearest')
options.Matrix = StyleOpts(cmap='jet', interpolation='nearest')
options.HeatMap = StyleOpts(cmap='jet', interpolation='nearest')
# Color cycles can be removed once default style set and test data updated
options.Curve = StyleOpts(color=Cycle(['b', 'g', 'r', 'c', 'm', 'y', 'k']), linewidth=2)
options.Scatter = StyleOpts(color=Cycle(['b', 'g', 'r', 'c', 'm', 'y', 'k']), linewidth=2)
options.Annotation = StyleOpts()
options.Histogram = StyleOpts(ec='k', fc='w')
options.Table = StyleOpts()
options.Points = StyleOpts(color='r', marker='x')

# Defining the most common style options for dataviews
GrayNearest = StyleOpts(cmap='gray', interpolation='nearest')

{'fraction_non_alphanumeric': 0.15586272640610105, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 6.890977443609023, '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': '4183618', 'n_tokens_mistral': 664, 'n_tokens_neox': 678, 'n_words': 193}