<commit_before>package org.mwg.task;

import org.mwg.GraphBuilder;

public class Actions {

    private static GraphBuilder.InternalBuilder _internalBuilder = null;

    /**
     * To be called once all options have been set, to actually create a task instance.
     * @return The new task
     */
    /**
     * {@native ts
     * if (org.mwg.task.Actions._internalBuilder == null) {
     * org.mwg.task.Actions._internalBuilder = new org.mwg.core.Builder();
     * }
     * return org.mwg.task.Actions._internalBuilder.newTask();
     * }
     */
    public static Task newTask() {
        if (_internalBuilder == null) {
            try {
                _internalBuilder = (GraphBuilder.InternalBuilder) Actions.class.getClassLoader().loadClass("org.mwg.core.Builder").newInstance();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return _internalBuilder.newTask();
    }

    public static Task setWorld(String variableName) {
        return newTask().setWorld(variableName);
    }

    public static Task setTime(String variableName) {
        return newTask().setTime(variableName);
    }

    public static Task then(Action action) {
        return newTask().then(action);
    }

    public static Task inject(Object input) {
        return newTask().inject(input);
    }

    public static Task fromVar(String variableName) {
        return newTask().fromVar(variableName);
    }

    public static Task fromVarAt(String variableName, int index) {
        return newTask().fromVarAt(variableName, index);
    }

    public static Task fromIndexAll(String indexName) {
        return newTask().fromIndexAll(indexName);
    }

    public static Task fromIndex(String indexName, String query) {
        return newTask().fromIndex(indexName, query);
    }

    public static Task indexNode(String indexName, String flatKeyAttributes) {
        return newTask().indexNode(indexName, flatKeyAttributes);
    }

    public static Task unindexNode(String indexName, String flatKeyAttributes) {
        return newTask().unindexNode(indexName, flatKeyAttributes);
    }

    public static Task localIndex(String indexedRelation, String flatKeyAttributes, String varNodeToAdd) {
        return newTask().localIndex(indexedRelation, flatKeyAttributes, varNodeToAdd);
    }

    public static Task localUnindex(String indexedRelation, String flatKeyAttributes, String varNodeToAdd) {
        return newTask().localUnindex(indexedRelation, flatKeyAttributes, varNodeToAdd);
    }

    public static Task indexesNames() {
        return newTask().indexesNames();
    }

    public static Task parse(String flatTask) {
        return newTask().parse(flatTask);
    }

    public static Task asGlobalVar(String variableName) {
        return newTask().asGlobalVar(variableName);
    }

    public static Task addToGlobalVar(String variableName) {
        return newTask().addToGlobalVar(variableName);
    }

    public static Task asVar(String variableName) {
        return newTask().asGlobalVar(variableName);
    }

    public static Task defineVar(String variableName) {
        return newTask().defineVar(variableName);
    }

    public static Task addToVar(String variableName) {<commit_msg>fix localVars<commit_after>package org.mwg.task;

import org.mwg.GraphBuilder;

public class Actions {

    private static GraphBuilder.InternalBuilder _internalBuilder = null;

    /**
     * To be called once all options have been set, to actually create a task instance.
     * @return The new task
     */
    /**
     * {@native ts
     * if (org.mwg.task.Actions._internalBuilder == null) {
     * org.mwg.task.Actions._internalBuilder = new org.mwg.core.Builder();
     * }
     * return org.mwg.task.Actions._internalBuilder.newTask();
     * }
     */
    public static Task newTask() {
        if (_internalBuilder == null) {
            try {
                _internalBuilder = (GraphBuilder.InternalBuilder) Actions.class.getClassLoader().loadClass("org.mwg.core.Builder").newInstance();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return _internalBuilder.newTask();
    }

    public static Task setWorld(String variableName) {
        return newTask().setWorld(variableName);
    }

    public static Task setTime(String variableName) {
        return newTask().setTime(variableName);
    }

    public static Task then(Action action) {
        return newTask().then(action);
    }

    public static Task inject(Object input) {
        return newTask().inject(input);
    }

    public static Task fromVar(String variableName) {
        return newTask().fromVar(variableName);
    }

    public static Task fromVarAt(String variableName, int index) {
        return newTask().fromVarAt(variableName, index);
    }

    public static Task fromIndexAll(String indexName) {
        return newTask().fromIndexAll(indexName);
    }

    public static Task fromIndex(String indexName, String query) {
        return newTask().fromIndex(indexName, query);
    }

    public static Task indexNode(String indexName, String flatKeyAttributes) {
        return newTask().indexNode(indexName, flatKeyAttributes);
    }

    public static Task unindexNode(String indexName, String flatKeyAttributes) {
        return newTask().unindexNode(indexName, flatKeyAttributes);
    }

    public static Task localIndex(String indexedRelation, String flatKeyAttributes, String varNodeToAdd) {
        return newTask().localIndex(indexedRelation, flatKeyAttributes, varNodeToAdd);
    }

    public static Task localUnindex(String indexedRelation, String flatKeyAttributes, String varNodeToAdd) {
        return newTask().localUnindex(indexedRelation, flatKeyAttributes, varNodeToAdd);
    }

    public static Task indexesNames() {
        return newTask().indexesNames();
    }

    public static Task parse(String flatTask) {
        return newTask().parse(flatTask);
    }

    public static Task asGlobalVar(String variableName) {
        return newTask().asGlobalVar(variableName);
    }

    public static Task addToGlobalVar(String variableName) {
        return newTask().addToGlobalVar(variableName);
    }

    public static Task asVar(String variableName) {
        return newTask().asVar(variableName);
    }

    public static Task defineVar(String variableName) {
        return newTask().defineVar(variableName);
    }

    public static Task addToVar(String variableName) {
{'fraction_non_alphanumeric': 0.09519408502772643, 'fraction_numerical': 0.0, 'mean_word_length': 3.012978986402967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4658533', 'n_tokens_mistral': 1770, 'n_tokens_neox': 1702, 'n_words': 425}