<commit_before>
    function frontendApp() {
        return akka.viz.frontend.FrontendApp()
    }

    var graph = Viva.Graph.graph();

    var nodeSize = 40;
    var idealLength = 5 * nodeSize;
    var layout = Viva.Graph.Layout.forceDirected(graph, {
        springLength: idealLength,
        springCoeff: 0.0008,
        dragCoeff: 0.02,
        gravity: -1.2
    });

    var graphics = Viva.Graph.View.svgGraphics();
    var highlightRelatedNodes = function (nodeId, isOn) {
        graph.forEachLinkedNode(nodeId, function (node, link) {
            var linkUI = graphics.getLinkUI(link.id);
            if (linkUI) {
                linkUI
                        .attr('stroke', isOn ? 'red' : 'gray')
                        .attr('marker-end', isOn ? 'url(#TriangleRed)' : 'url(#Triangle)');
            }
        });
    };

    graphics.node(function (node) {
        var ui = Viva.Graph.svg('g');
        var svgText = Viva.Graph.svg('text').attr('y', '-4px').text(node.id);
        if (!node.data) node.data = {}; // fixme refactor scala code to ensure this is created
        var imgLink = node.data.dead ? '/img/dead_actor.png' : '/img/actor.png'
        var img = Viva.Graph.svg('image')
                .attr('width', nodeSize)<commit_msg>make the graph less anemic<commit_after>
    function frontendApp() {
        return akka.viz.frontend.FrontendApp()
    }

    var graph = Viva.Graph.graph();

    var nodeSize = 40;
    var idealLength = 5.5 * nodeSize;
    var layout = Viva.Graph.Layout.forceDirected(graph, {
        springLength: idealLength,
        springCoeff: 0.001,
        dragCoeff: 0.09,
        gravity: -2.5,
        stableThreshold: 0.1
    });

    var graphics = Viva.Graph.View.svgGraphics();
    var highlightRelatedNodes = function (nodeId, isOn) {
        graph.forEachLinkedNode(nodeId, function (node, link) {
            var linkUI = graphics.getLinkUI(link.id);
            if (linkUI) {
                linkUI
                        .attr('stroke', isOn ? 'red' : 'gray')
                        .attr('marker-end', isOn ? 'url(#TriangleRed)' : 'url(#Triangle)');
            }
        });
    };

    graphics.node(function (node) {
        var ui = Viva.Graph.svg('g');
        var svgText = Viva.Graph.svg('text').attr('y', '-4px').text(node.id);
        if (!node.data) node.data = {}; // fixme refactor scala code to ensure this is created
        var imgLink = node.data.dead ? '/img/dead_actor.png' : '/img/actor.png'
        var img = Viva.Graph.svg('image')
                .attr('width', nodeSize)
{'fraction_non_alphanumeric': 0.14453125, 'fraction_numerical': 0.01171875, 'mean_word_length': 1.9953216374269005, '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': '3390750', 'n_tokens_mistral': 837, 'n_tokens_neox': 795, 'n_words': 171}