<commit_before>package org.psjava.ds.graph;

import org.psjava.util.DataConverter;

public class DirectedGraphFromUndirected {

	public static <V, E extends UndirectedEdge<V>> OldGraph<V, DirectedEdge<V>> wrap(final OldGraph<V, E> original) {
		return EdgeDoubledGraph.wrap(original, new DataConverter<E, DirectedEdge<V>>() {
			@Override
			public DirectedEdge<V> convert(E original) {
				return SimpleDirectedEdge.create(original.v1(), original.v2());
			}
		}, new DataConverter<E, DirectedEdge<V>>() {<commit_msg>introduce new graph to DirectedGraphFromUndirected<commit_after>package org.psjava.ds.graph;

import org.psjava.util.DataConverter;

public class DirectedGraphFromUndirected {

	public static <V, E extends UndirectedEdge<V>> Graph<V, DirectedEdge<V>> wrap(final Graph<V, E> original) {
		return EdgeDoubledGraph.wrap(original, new DataConverter<E, DirectedEdge<V>>() {
			@Override
			public DirectedEdge<V> convert(E original) {
				return SimpleDirectedEdge.create(original.v1(), original.v2());
			}
		}, new DataConverter<E, DirectedEdge<V>>() {
{'fraction_non_alphanumeric': 0.12558575445173384, 'fraction_numerical': 0.0037488284910965324, 'mean_word_length': 6.167785234899329, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3316020', 'n_tokens_mistral': 373, 'n_tokens_neox': 342, 'n_words': 74}