<commit_before>import os

import numpy as np
import pandas as pd
import seaborn as sn

import matplotlib.pyplot as plt

from matplotlib import rcParams

# Formats the axes using seabron so they will be white, and have ticks
# on the bottom of the axes.
sn.set_style('ticks', {'axes.facecolor': 'none'})

# Sets up plotting parameters so that the default setting is use to Helvetica
# in plots
rcParams['font.family'] = 'sans-serif'
rcParams['font.sans-serif'] = ['Helvetica', 'Arial']
rcParams['text.usetex'] = True


__author__ = "<NAME>"
__copyright__ = "Copyright 2015"
__credits__ = ["<NAME>"]
__license__ = "BSD"
__version__ = "0.0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"


def plot_alpha(sample, alpha_map, alpha_field, group_field='SIMPLE_BODY_SITE',
               output_dir=None, xlabel=None, debug=False):
    """Generates a distrbution plot for the data<commit_msg>removes an import for later<commit_after>import seaborn as sn

import matplotlib.pyplot as plt

from matplotlib import rcParams

# Formats the axes using seabron so they will be white, and have ticks
# on the bottom of the axes.
sn.set_style('ticks', {'axes.facecolor': 'none'})

# Sets up plotting parameters so that the default setting is use to Helvetica
# in plots
rcParams['font.family'] = 'sans-serif'
rcParams['font.sans-serif'] = ['Helvetica', 'Arial']
rcParams['text.usetex'] = True


__author__ = "<NAME>"
__copyright__ = "Copyright 2015"
__credits__ = ["<NAME>"]
__license__ = "BSD"
__version__ = "0.0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"


def plot_alpha(sample, alpha_map, alpha_field, group_field='SIMPLE_BODY_SITE',
               output_dir=None, xlabel=None, debug=False):
    """Generates a distrbution plot for the data
{'fraction_non_alphanumeric': 0.11954022988505747, 'fraction_numerical': 0.008045977011494253, 'mean_word_length': 5.003448275862069, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4416477', 'n_tokens_mistral': 617, 'n_tokens_neox': 581, 'n_words': 185}