<commit_before>function AreaChart(selection) {

    var margin = {
            top: 20,
            right: 50,
            bottom: 50,
            left: 50
        },
        width = 800 - margin.left - margin.right,
        height = 300 - margin.top - margin.bottom;

    var x = d3.time.scale()
        .range([0, width]);

    var y = d3.scale.linear()
        .range([height, 0]);

    var color = d3.scale.category20();

    var xAxis = d3.svg.axis()
        .scale(x)
        .orient("bottom");

    var yAxis = d3.svg.axis()
        .scale(y)
        .orient("left");
<commit_msg>width, heigth as chart parameters<commit_after>function AreaChart(selection, width, height) {

    var margin = {
            top: 20,
            right: 50,
            bottom: 50,
            left: 50
        },
        width = (width || 800) - margin.left - margin.right,
        height = (height || 300) - margin.top - margin.bottom;

    var x = d3.time.scale()
        .range([0, width]);

    var y = d3.scale.linear()
        .range([height, 0]);

    var color = d3.scale.category20();

    var xAxis = d3.svg.axis()
        .scale(x)
        .orient("bottom");

    var yAxis = d3.svg.axis()
        .scale(y)
        .orient("left");

{'fraction_non_alphanumeric': 0.15016233766233766, 'fraction_numerical': 0.037337662337662336, 'mean_word_length': 1.5957894736842104, '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': '6067636', 'n_tokens_mistral': 434, 'n_tokens_neox': 389, 'n_words': 94}