<commit_before>package org.unipop.query.mutation;

import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Element;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.unipop.query.StepDescriptor;
import org.unipop.query.UniQuery;
import org.unipop.query.controller.UniQueryController;

import java.util.Map;

public class AddEdgeQuery extends UniQuery{
    private final Vertex outVertex;
    private final Vertex inVertex;
    private final Map<String, Object> properties;

    public AddEdgeQuery(Vertex inVertex, Vertex outVertex, Map<String, Object> properties, StepDescriptor stepDescriptor) {
        super(stepDescriptor);
        this.outVertex = outVertex;
        this.inVertex = inVertex;
        this.properties = properties;
        if (properties.get("label") == null){
            throw Element.Exceptions.labelCanNotBeNull();
        }
    }

    public Vertex getInVertex() {
        return inVertex;
    }

    public Vertex getOutVertex() {
        return outVertex;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }


    public interface AddEdgeController extends UniQueryController {
        Edge addEdge(AddEdgeQuery uniQuery);
    }
}<commit_msg>Switched outVertex & inVertex parameter order.<commit_after>package org.unipop.query.mutation;

import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Element;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.unipop.query.StepDescriptor;
import org.unipop.query.UniQuery;
import org.unipop.query.controller.UniQueryController;

import java.util.Map;

public class AddEdgeQuery extends UniQuery{
    private final Vertex outVertex;
    private final Vertex inVertex;
    private final Map<String, Object> properties;

    public AddEdgeQuery(Vertex outVertex, Vertex inVertex, Map<String, Object> properties, StepDescriptor stepDescriptor) {
        super(stepDescriptor);
        this.outVertex = outVertex;
        this.inVertex = inVertex;
        this.properties = properties;
        if (properties.get("label") == null){
            throw Element.Exceptions.labelCanNotBeNull();
        }
    }

    public Vertex getInVertex() {
        return inVertex;
    }

    public Vertex getOutVertex() {
        return outVertex;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }


    public interface AddEdgeController extends UniQueryController {
        Edge addEdge(AddEdgeQuery uniQuery);
    }
}
{'fraction_non_alphanumeric': 0.08661724541552868, 'fraction_numerical': 0.0, 'mean_word_length': 3.4591304347826086, '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': '3630993', 'n_tokens_mistral': 743, 'n_tokens_neox': 711, 'n_words': 164}