<commit_before>package org.jgrapht.alg;

import static org.junit.Assert.*;

import java.util.Collections;
import java.util.List;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import junit.framework.TestCase;

import org.jgrapht.DirectedGraph;
import org.jgrapht.Graphs;
import org.jgrapht.graph.DefaultDirectedWeightedGraph;
import org.jgrapht.graph.DefaultWeightedEdge;
import org.junit.Test;

public class MinSourceSinkCutTest extends TestCase{

	/**
	 * Constructs a small realistic graph and computes the min s-t cut
	 */
	public void testRealGraph() {
		DirectedGraph<Integer, DefaultWeightedEdge> graph=new DefaultDirectedWeightedGraph <Integer, DefaultWeightedEdge>(DefaultWeightedEdge.class);
		Integer[] vertices={0,1,2,3,4,5,6};
		for(Integer i: vertices)
			graph.addVertex(i);
		
		DefaultWeightedEdge e01=Graphs.addEdge(graph, 0, 1, 2);
		DefaultWeightedEdge e02=Graphs.addEdge(graph, 0, 2, 6);
		DefaultWeightedEdge e03=Graphs.addEdge(graph, 0, 3, 3);
		DefaultWeightedEdge e12=Graphs.addEdge(graph, 1, 2, 4);
		DefaultWeightedEdge e32=Graphs.addEdge(graph, 3, 2, 2);
		DefaultWeightedEdge e14=Graphs.addEdge(graph, 1, 4, 1);
		DefaultWeightedEdge e35=Graphs.addEdge(graph, 3, 5, 6);
		DefaultWeightedEdge e24=Graphs.addEdge(graph, 2, 4, 2);
		DefaultWeightedEdge e26=Graphs.addEdge(graph, 2, 6, 1);<commit_msg>Added author and short class description.<commit_after>package org.jgrapht.alg;

import static org.junit.Assert.*;

import java.util.Collections;
import java.util.List;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import junit.framework.TestCase;

import org.jgrapht.DirectedGraph;
import org.jgrapht.Graphs;
import org.jgrapht.graph.DefaultDirectedWeightedGraph;
import org.jgrapht.graph.DefaultWeightedEdge;
import org.junit.Test;

/**
 * Test class for the MinSourceSinkCut class.
 * @author <NAME>
 *
 */
public class MinSourceSinkCutTest extends TestCase{

	/**
	 * Constructs a small realistic graph and computes the min s-t cut
	 */
	public void testRealGraph() {
		DirectedGraph<Integer, DefaultWeightedEdge> graph=new DefaultDirectedWeightedGraph <Integer, DefaultWeightedEdge>(DefaultWeightedEdge.class);
		Integer[] vertices={0,1,2,3,4,5,6};
		for(Integer i: vertices)
			graph.addVertex(i);
		
		DefaultWeightedEdge e01=Graphs.addEdge(graph, 0, 1, 2);
		DefaultWeightedEdge e02=Graphs.addEdge(graph, 0, 2, 6);
		DefaultWeightedEdge e03=Graphs.addEdge(graph, 0, 3, 3);
		DefaultWeightedEdge e12=Graphs.addEdge(graph, 1, 2, 4);
		DefaultWeightedEdge e32=Graphs.addEdge(graph, 3, 2, 2);
		DefaultWeightedEdge e14=Graphs.addEdge(graph, 1, 4, 1);
		DefaultWeightedEdge e35=Graphs.addEdge(graph, 3, 5, 6);
		DefaultWeightedEdge e24=Graphs.addEdge(graph, 2, 4, 2);
		DefaultWeightedEdge e26=Graphs.addEdge(graph, 2, 6, 1);
{'fraction_non_alphanumeric': 0.11783552865788537, 'fraction_numerical': 0.037023851904592384, 'mean_word_length': 5.87041564792176, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6000728', 'n_tokens_mistral': 1091, 'n_tokens_neox': 981, 'n_words': 218}