<commit_before># -*- coding: utf-8 -*-
"""See log bayes factors which led to modality categorization"""
import locale

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns

from .names import NEAR_ZERO, NEAR_HALF, NEAR_ONE, BIMODAL, \
    NULL_MODEL


locale.setlocale(locale.LC_ALL, 'en_US')

darkblue, green, red, purple, yellow, lightblue = sns.color_palette('deep')
MODALITY_ORDER = [NEAR_ZERO, BIMODAL, NEAR_ONE, NEAR_HALF, NULL_MODEL]

MODALITY_TO_COLOR = {NEAR_ZERO: lightblue, NEAR_HALF: yellow, NEAR_ONE: red,
                     BIMODAL: purple, NULL_MODEL: 'lightgrey'}
MODALITY_PALETTE = [MODALITY_TO_COLOR[m] for m in MODALITY_ORDER]

MODALITY_TO_CMAP = {
    NEAR_ZERO: sns.light_palette(MODALITY_TO_COLOR[NEAR_ZERO], as_cmap=True),
    NEAR_HALF: sns.light_palette(MODALITY_TO_COLOR[NEAR_HALF], as_cmap=True),
    NEAR_ONE: sns.light_palette(MODALITY_TO_COLOR[NEAR_ONE], as_cmap=True),
    BIMODAL: sns.light_palette(MODALITY_TO_COLOR[BIMODAL], as_cmap=True),
    NULL_MODEL: mpl.cm.Greys}

MODALITY_FACTORPLOT_KWS = dict(hue_order=MODALITY_ORDER,
                               palette=MODALITY_PALETTE)


def violinplot(x=None, y=None, data=None, bw=0.2, scale='width',<commit_msg>Remove locale setting because I'm trying to fix Travis-CI tests<commit_after># -*- coding: utf-8 -*-
"""See log bayes factors which led to modality categorization"""
import locale

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns

from .names import NEAR_ZERO, NEAR_HALF, NEAR_ONE, BIMODAL, \
    NULL_MODEL


darkblue, green, red, purple, yellow, lightblue = sns.color_palette('deep')
MODALITY_ORDER = [NEAR_ZERO, BIMODAL, NEAR_ONE, NEAR_HALF, NULL_MODEL]

MODALITY_TO_COLOR = {NEAR_ZERO: lightblue, NEAR_HALF: yellow, NEAR_ONE: red,
                     BIMODAL: purple, NULL_MODEL: 'lightgrey'}
MODALITY_PALETTE = [MODALITY_TO_COLOR[m] for m in MODALITY_ORDER]

MODALITY_TO_CMAP = {
    NEAR_ZERO: sns.light_palette(MODALITY_TO_COLOR[NEAR_ZERO], as_cmap=True),
    NEAR_HALF: sns.light_palette(MODALITY_TO_COLOR[NEAR_HALF], as_cmap=True),
    NEAR_ONE: sns.light_palette(MODALITY_TO_COLOR[NEAR_ONE], as_cmap=True),
    BIMODAL: sns.light_palette(MODALITY_TO_COLOR[BIMODAL], as_cmap=True),
    NULL_MODEL: mpl.cm.Greys}

MODALITY_FACTORPLOT_KWS = dict(hue_order=MODALITY_ORDER,
                               palette=MODALITY_PALETTE)


def violinplot(x=None, y=None, data=None, bw=0.2, scale='width',
{'fraction_non_alphanumeric': 0.10134069400630914, 'fraction_numerical': 0.002365930599369085, 'mean_word_length': 4.927570093457944, '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': '6136578', 'n_tokens_mistral': 1019, 'n_tokens_neox': 1014, 'n_words': 202}