<commit_before>package com.github.davidmoten.graph;

import java.awt.Dimension;

import edu.uci.ics.jung.algorithms.layout.FRLayout;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.SparseMultigraph;
import edu.uci.ics.jung.graph.util.EdgeType;

public class Main {

    public static void main(String[] args) {
        // Graph<V, E> where V is the type of the vertices
        // and E is the type of the edges
        {
            Graph<Integer, String> g2 = new SparseMultigraph<Integer, String>();
            g2.addVertex(1);
            g2.addVertex(2);
            g2.addVertex(3);
            g2.addEdge("Edge-A", 1, 3);
            g2.addEdge("Edge-B", 2, 3, EdgeType.DIRECTED);
            g2.addEdge("Edge-C", 3, 2, EdgeType.DIRECTED);
            g2.addEdge("Edge-P", 2, 3); // A parallel edge
            System.out.println("The graph g2 = " + g2.toString());
        }

        // Graph<String, Number> g = TestGraphs.getOneComponentGraph();
        Graph<String, String> g = createTestGraph();

        System.out.println(g);
        FRLayout<String, String> layout = new FRLayout<String, String>(g);
        layout.initialize();
        layout.setSize(new Dimension(600, 600));

        displayLayout(layout);
        while (!layout.done()) {
            layout.step();
        }
        displayLayout(layout);
        System.out.println(g);

    }
<commit_msg>initial commit<commit_after>package com.github.davidmoten.graph;

import java.awt.Dimension;

import edu.uci.ics.jung.algorithms.layout.FRLayout;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.SparseMultigraph;
import edu.uci.ics.jung.graph.util.EdgeType;

public class Main {

    public static void main(String[] args) {
        // Graph<String, Number> g = TestGraphs.getOneComponentGraph();
        Graph<String, String> g = createTestGraph();

        System.out.println(g);
        FRLayout<String, String> layout = new FRLayout<String, String>(g);
        layout.initialize();
        layout.setSize(new Dimension(600, 600));

        displayLayout(layout);
        while (!layout.done()) {
            layout.step();
        }
        displayLayout(layout);
        System.out.println(g);

    }

{'fraction_non_alphanumeric': 0.1364250337685727, 'fraction_numerical': 0.014858171994597028, 'mean_word_length': 2.493710691823899, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4258670', 'n_tokens_mistral': 733, 'n_tokens_neox': 710, 'n_words': 139}