<commit_before>function Graph(json) {

    var w = 800,
        h = 450,
        fill = d3.scale.category20();

    var xScale = d3.scale.linear()
        .domain([0,w]);
    var yScale = d3.scale.linear()
        .domain([0,h]);

    function setSize() {
        var svgStyles = window.getComputedStyle(svg.node());
        var svgW = parseInt(svgStyles["width"]);
        var svgH = parseInt(svgStyles["height"]);
        console.log("setting size", svgW, svgH)

            //Set the output range of the scales
            xScale.range([0, svgW]);
        yScale.range([0, svgH]);

        //re-attach the scales to the zoom behaviour
        zoomer.x(xScale)
            .y(yScale);

        //resize the background
        rect.attr("width", svgW)
            .attr("height", svgH);

        //console.log(xScale.range(), yScale.range());
        //redraw();
    }<commit_msg>reset size to original value<commit_after>function Graph(json) {

    var w = 800,
        h = 600,
        fill = d3.scale.category20();

    var xScale = d3.scale.linear()
        .domain([0,w]);
    var yScale = d3.scale.linear()
        .domain([0,h]);

    function setSize() {
        var svgStyles = window.getComputedStyle(svg.node());
        var svgW = parseInt(svgStyles["width"]);
        var svgH = parseInt(svgStyles["height"]);
        console.log("setting size", svgW, svgH)

            //Set the output range of the scales
            xScale.range([0, svgW]);
        yScale.range([0, svgH]);

        //re-attach the scales to the zoom behaviour
        zoomer.x(xScale)
            .y(yScale);

        //resize the background
        rect.attr("width", svgW)
            .attr("height", svgH);

        //console.log(xScale.range(), yScale.range());
        //redraw();
    }
{'fraction_non_alphanumeric': 0.15081598199212154, 'fraction_numerical': 0.016882386043894203, 'mean_word_length': 1.9584026622296173, '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': '1293646', 'n_tokens_mistral': 585, 'n_tokens_neox': 565, 'n_words': 128}