<commit_before><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
</head>

<body>
    <div>
        pca scree plot
        <div id="scree_plot" style="width:700px;height:600px;"></div>
    </div>
</body>
<script type="text/javascript" src="{{ url_for('js', filename='plotly/plotly.min.js') }}"></script>
<script type="text/javascript">
js_data = { { js_data | safe } }


let { x_coord, y_coord } = js_data["scree_data"]

const layout = {

    title: {
        text: "<b>Scree Plot</b>",
        font: {
            "size": 24,
            "family": "Arial",
            "color": "#FF0000"
        }
    },

    yaxis: {
        title: {
            text: "Percent of total variance %",
            font: {
                "size": 18,
                "color": ""

            }
        }
    },

    xaxis: {
        title: {
            text: "PCA components",
            font: {
                "size": 18,
                "color": ""

            }
        }
    },

}

const data = [{
    x: x_coord,
    y: y_coord,
    marker: {

        color: 'rgb(17, 157, 255)',
        size: 5,
        line: {
            color: 'rgb(255, 0, 0)',
            width: 3
        }

    }
}]
</script>

</html><commit_msg>add custom configs for scree plot<commit_after><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
</head>

<body>
    <div>
        pca scree plot
        <div id="scree_plot" style="width:700px;height:600px;"></div>
    </div>
</body>
<script type="text/javascript" src="{{ url_for('js', filename='plotly/plotly.min.js') }}"></script>
<script type="text/javascript">
js_data = { { js_data | safe } }


let { x_coord, y_coord } = js_data["scree_data"]

const layout = {

    title: {
        text: "<b>Scree Plot</b>",
        font: {
            "size": 24,
            "family": "Arial",
            "color": "#FF0000"
        }
    },

    yaxis: {
        title: {
            text: "Percent of total variance %",
            font: {
                "size": 18,
                "color": ""

            }
        }
    },

    xaxis: {
        title: {
            text: "PCA components",
            font: {
                "size": 18,
                "color": ""

            }
        }
    },

}

const data = [{
    x: x_coord,
    y: y_coord,
    marker: {

        color: 'rgb(17, 157, 255)',
        size: 5,
        line: {
            color: 'rgb(255, 0, 0)',
            width: 3
        }

    }
}]


let custom_configs = (filename, format, modebar = true) => {

    return {
        displayModeBar: modebar,
        scrollZoom: false,
        toImageButtonOptions: {
            format, 
            filename,
            height: 600,
            width: 700,
            scale: 1
        }
    }

}
</script>

</html>
{'fraction_non_alphanumeric': 0.16559212758737699, 'fraction_numerical': 0.02477095351204615, 'mean_word_length': 1.494077834179357, 'pattern_counts': {'":': 14, '<': 45, '<?xml version=': 0, '>': 46, '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': '2393268', 'n_tokens_mistral': 1061, 'n_tokens_neox': 965, 'n_words': 208}