<commit_before>var Fuse = require('fuse.js');
var mocks = require('../../build/test_dashboard_mocks.json');


// Our gracious testing object
var Tabs = {

    // Return the specified plot container (or default one)
    getGraph: function(id) {
        id = id || 'graph';
        return document.getElementById(id);
    },

    // Create a new plot container
    fresh: function(id) {
        id = id || 'graph';

        var graphDiv = Tabs.getGraph(id);

        if(graphDiv) {
            graphDiv.remove();
        }
<commit_msg>put d3 in test dashboard global scope<commit_after>var Fuse = require('fuse.js');
var mocks = require('../../build/test_dashboard_mocks.json');

// put d3 in window scope
var d3 = window.d3 = Plotly.d3;

// Our gracious testing object
var Tabs = {

    // Return the specified plot container (or default one)
    getGraph: function(id) {
        id = id || 'graph';
        return document.getElementById(id);
    },

    // Create a new plot container
    fresh: function(id) {
        id = id || 'graph';

        var graphDiv = Tabs.getGraph(id);

        if(graphDiv) {
            graphDiv.remove();
        }

{'fraction_non_alphanumeric': 0.1332752613240418, 'fraction_numerical': 0.004355400696864111, 'mean_word_length': 2.292263610315186, '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': '5306377', 'n_tokens_mistral': 353, 'n_tokens_neox': 342, 'n_words': 99}