<commit_before>package com.tinkerpop.blueprints;

import com.tinkerpop.blueprints.query.VertexQuery;

import java.util.Map;
import java.util.Set;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public interface Vertex extends Element {

    public default Set<String> getPropertyKeys() {
        return this.getProperties().keySet();
    }

    public Map<String, Iterable<Property<?, Vertex>>> getProperties();

    public <V> Iterable<Property<V, Vertex>> getProperties(String key);

    public <V> Property<V, Vertex> getProperty(String key);

    public <V> Property<V, Vertex> setProperty(String key, V value);

    public <V> Property<V, Vertex> addProperty(String key, V value);

    public VertexQuery query();

    public Edge addEdge(String label, Vertex inVertex, Property... properties);

    public static Vertex.Features getFeatures() {
        return new Features() {
        };
    }

    public interface Features extends com.tinkerpop.blueprints.Features {
        public default boolean supportsUserSuppliedIds() {
            return true;
        }

        public static IllegalArgumentException propertyKeyReferencesMultipleProperties(final String key) {
            return new IllegalArgumentException("Provided property key references multiple properties: " + key);
        }
    }
}<commit_msg>added getValues() for multi-property value getting.<commit_after>package com.tinkerpop.blueprints;

import com.tinkerpop.blueprints.query.VertexQuery;
import com.tinkerpop.blueprints.util.StreamFactory;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public interface Vertex extends Element {

    public default Set<String> getPropertyKeys() {
        return this.getProperties().keySet();
    }

    public Map<String, Iterable<Property<?, Vertex>>> getProperties();

    public <V> Iterable<Property<V, Vertex>> getProperties(String key);

    public default <V> Iterable<V> getValues(String key) {
        return new Iterable<V>() {
            @Override
            public Iterator<V> iterator() {
                return StreamFactory.stream((Iterable<Property<V, Vertex>>) getProperties(key)).filter(p -> p.isPresent()).map(p -> p.getValue()).iterator();
            }
        };
    }

    public <V> Property<V, Vertex> getProperty(String key);

    public <V> Property<V, Vertex> setProperty(String key, V value);

    public <V> Property<V, Vertex> addProperty(String key, V value);

    public VertexQuery query();

    public Edge addEdge(String label, Vertex inVertex, Property... properties);

    public static Vertex.Features getFeatures() {
        return new Features() {
        };
    }

    public interface Features extends com.tinkerpop.blueprints.Features {
        public default boolean supportsUserSuppliedIds() {
            return true;
        }

        public static IllegalArgumentException propertyKeyReferencesMultipleProperties(final String key) {
            return new IllegalArgumentException("Provided property key references multiple properties: " + key);
        }
    }
}
{'fraction_non_alphanumeric': 0.1090092978518756, 'fraction_numerical': 0.0, 'mean_word_length': 3.406779661016949, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '2146438', 'n_tokens_mistral': 859, 'n_tokens_neox': 822, 'n_words': 226}