<commit_before>import { assign } from "lodash";

// *
// * Colors
// *
const yellow200 = "#FFF59D";
const deepOrange600 = "#F4511E";
const lime300 = "#DCE775";
const lightGreen500 = "#8BC34A";
const teal700 = "#00796B";
const cyan900 = "#006064";
const colors = [
    deepOrange600,
    yellow200,
    lime300,
    lightGreen500,
    teal700,
    cyan900
];
const blueGrey50 = "#ECEFF1";
const blueGrey300 = "#90A4AE";
const blueGrey700 = "#455A64";
const grey900 = "#212121";
// *
// * Typography
// *
const sansSerif = "Arial, Helvetica";
const letterSpacing = "normal";
const fontSize = 13;
// *
// * Layout
// *
const padding = 8;
const baseProps = {
    fontFamily: sansSerif,
    width: 350,
    height: 350,
    padding: 50
};
// *
// * Labels
// *
export const baseLabelStyles = {
    fontFamily: sansSerif,
    fontSize,
    letterSpacing,
    padding,
    stroke: "transparent",
    strokeWidth: 0
};



const centeredLabelStyles = assign({ textAnchor: "middle" }, baseLabelStyles);

export const axisLabelStyles = assign({}, baseLabelStyles, { fontSize:13, padding })
export const axisTickLabelStyles = assign({}, baseLabelStyles, {
    fill: "black",
    padding:2
});

// *
// * Strokes
// *
const strokeDasharray = "10, 5";
const strokeLinecap = "round";
const strokeLinejoin = "round";

const CBIOPORTAL_VICTORY_THEME = {
    area: assign({
        style: {
            data: {
                fill: grey900
            },
            labels: centeredLabelStyles
        }
    }, baseProps),
    axis: assign({
        style: {
            axis: {
                fill: "transparent",
                stroke: "black",
                strokeWidth: 1,
                strokeLinecap,
                strokeLinejoin
            },
            axisLabel: assign({}, centeredLabelStyles, axisLabelStyles),
            grid: {
                fill: "none",
                stroke: blueGrey50,
                strokeDasharray,
                strokeLinecap,
                strokeLinejoin,
                pointerEvents: "visible"
            },
            ticks: {
                fill: "transparent",
                size: 4,
                stroke: "black",
                strokeWidth: 1,
                strokeLinecap,
                strokeLinejoin
            },
            tickLabels: axisTickLabelStyles
        }
    }, baseProps),
    bar: assign({
        style: {
            data: {
                fill: blueGrey700,
                padding,
                strokeWidth: 0
            },
            labels: baseLabelStyles
        }
    }, baseProps),
    boxplot: assign({
        style: {
            max: { padding, stroke: blueGrey700, strokeWidth: 1 },
            maxLabels: baseLabelStyles,<commit_msg>Automated master to rc merge<commit_after>import { assign } from "lodash";

// *
// * Colors
// *
const yellow200 = "#FFF59D";
const deepOrange600 = "#F4511E";
const lime300 = "#DCE775";
const lightGreen500 = "#8BC34A";
const teal700 = "#00796B";
const cyan900 = "#006064";
const colors = [
    deepOrange600,
    yellow200,
    lime300,
    lightGreen500,
    teal700,
    cyan900
];
const blueGrey50 = "#ECEFF1";
const blueGrey300 = "#90A4AE";
const blueGrey700 = "#455A64";
const grey900 = "#212121";
// *
// * Typography
// *
const sansSerif = "Arial, Helvetica";
const letterSpacing = "normal";
const fontSize = 13;
// *
// * Layout
// *
const padding = 8;
const baseProps = {
    fontFamily: sansSerif,
    width: 350,
    height: 350,
    padding: 50
};
// *
// * Labels
// *
export const baseLabelStyles = {
    fontFamily: sansSerif,
    fontSize,
    letterSpacing,
    padding,
    stroke: "transparent",
    strokeWidth: 0
};



const centeredLabelStyles = assign({ textAnchor: "middle" }, baseLabelStyles);

export const axisLabelStyles = assign({}, baseLabelStyles, { fontSize:13, padding })
export const axisTickLabelStyles = assign({}, baseLabelStyles, {
    fill: "black",
    padding:2
});

// *
// * Strokes
// *
const strokeDasharray = "10, 5";
const strokeLinecap = "round";
const strokeLinejoin = "round";

const CBIOPORTAL_VICTORY_THEME = {
    area: assign({
        style: {
            data: {
                fill: grey900
            },
            labels: centeredLabelStyles
        }
    }, baseProps),
    axis: assign({
        style: {
            axis: {
                fill: "transparent",
                stroke: "black",
                strokeWidth: 1,
                strokeLinecap,
                strokeLinejoin
            },
            axisLabel: assign({}, centeredLabelStyles, axisLabelStyles),
            grid: {
                fill: "none",
                stroke: blueGrey50,
                strokeOpacity: (t:number)=>(t === 0 ? 0 : 1),
                strokeDasharray,
                strokeLinecap,
                strokeLinejoin,
                pointerEvents: "visible"
            },
            ticks: {
                fill: "transparent",
                size: 4,
                stroke: "black",
                strokeWidth: 1,
                strokeLinecap,
                strokeLinejoin
            },
            tickLabels: axisTickLabelStyles
        }
    }, baseProps),
    bar: assign({
        style: {
            data: {
                fill: blueGrey700,
                padding,
                strokeWidth: 0
            },
            labels: baseLabelStyles
        }
    }, baseProps),
    boxplot: assign({
        style: {
            max: { padding, stroke: blueGrey700, strokeWidth: 1 },
            maxLabels: baseLabelStyles,
{'fraction_non_alphanumeric': 0.11722272317403065, 'fraction_numerical': 0.04346257889990983, 'mean_word_length': 1.7414730598121602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5610062', 'n_tokens_mistral': 1814, 'n_tokens_neox': 1621, 'n_words': 382}