<commit_before>package com.tinkerpop.rexster.protocol;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Manages the list of EngineHolder items for the current ScriptEngineManager.
 */
public class EngineController {
    private final ScriptEngineManager manager = new ScriptEngineManager();
    private final List<EngineHolder> engines = new ArrayList<EngineHolder>();

    /**
     * Add all flavors of gremlin to this list.
     */
    private final List<String> gremlinEngineNames = new ArrayList<String>(){{
       add("gremlin");
    }};

    private static EngineController engineController;

    private EngineController() {
        // for ruby
        System.setProperty("org.jruby.embed.localvariable.behavior", "persistent");
        for (ScriptEngineFactory factory : this.manager.getEngineFactories()) {
<commit_msg>Renamed gremlin lanaguage to gremlin-groovy<commit_after>package com.tinkerpop.rexster.protocol;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Manages the list of EngineHolder items for the current ScriptEngineManager.
 */
public class EngineController {
    private final ScriptEngineManager manager = new ScriptEngineManager();
    private final List<EngineHolder> engines = new ArrayList<EngineHolder>();

    /**
     * Add all flavors of gremlin to this list.
     */
    private final List<String> gremlinEngineNames = new ArrayList<String>(){{
       add("gremlin-groovy");
    }};

    private static EngineController engineController;

    private EngineController() {
        // for ruby
        System.setProperty("org.jruby.embed.localvariable.behavior", "persistent");
        for (ScriptEngineFactory factory : this.manager.getEngineFactories()) {

{'fraction_non_alphanumeric': 0.0966616841056303, 'fraction_numerical': 0.0, 'mean_word_length': 4.2155844155844155, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1373076', 'n_tokens_mistral': 537, 'n_tokens_neox': 509, 'n_words': 140}