<commit_before>package com.tinkerpop.gremlin.groovy.engine;

import com.tinkerpop.gremlin.AbstractGremlinTest;
import com.tinkerpop.gremlin.LoadGraphWith;
import com.tinkerpop.gremlin.structure.Vertex;
import org.junit.Test;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public class GroovyTraversalScriptTest extends AbstractGremlinTest {

    // todo: review for other required features???

    @Test
    @LoadGraphWith(LoadGraphWith.GraphData.CLASSIC)
    public void shouldSubmitTraversalCorrectly() throws Exception {
        final List<String> names = GroovyTraversalScript.<Vertex, String>of("g.V().out().out().value('name')").over(g).using(g.compute()).traversal().get().toList();
        assertEquals(2, names.size());<commit_msg>Remove todo.<commit_after>package com.tinkerpop.gremlin.groovy.engine;

import com.tinkerpop.gremlin.AbstractGremlinTest;
import com.tinkerpop.gremlin.LoadGraphWith;
import com.tinkerpop.gremlin.structure.Vertex;
import org.junit.Test;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public class GroovyTraversalScriptTest extends AbstractGremlinTest {

    @Test
    @LoadGraphWith(LoadGraphWith.GraphData.CLASSIC)
    public void shouldSubmitTraversalCorrectly() throws Exception {
        final List<String> names = GroovyTraversalScript.<Vertex, String>of("g.V().out().out().value('name')").over(g).using(g.compute()).traversal().get().toList();
        assertEquals(2, names.size());
{'fraction_non_alphanumeric': 0.1372079089275015, 'fraction_numerical': 0.0011983223487118035, 'mean_word_length': 5.349809885931559, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1571451', 'n_tokens_mistral': 545, 'n_tokens_neox': 504, 'n_words': 86}