<commit_before>/**
 * Logspace
 * Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
 * This program and the accompanying materials are made available under the terms of
 * the Eclipse Public License Version 1.0, which accompanies this distribution and
 * is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package io.logspace.agent.api.event;

import java.util.NoSuchElementException;

/**
 * A Java 7 implementation of Optional that can be replaced by the Java 8 equivalent.
 *
 * @see http://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
 */
public final class Optional<T> {

    private static final Optional<?> EMPTY = new Optional<Object>();

    private final T value;

    private Optional() {<commit_msg>Added missing quotes for URL in javadoc<commit_after>/**
 * Logspace
 * Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
 * This program and the accompanying materials are made available under the terms of
 * the Eclipse Public License Version 1.0, which accompanies this distribution and
 * is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package io.logspace.agent.api.event;

import java.util.NoSuchElementException;

/**
 * A Java 7 implementation of Optional that can be replaced by the Java 8 equivalent.
 *
 * @see "http://docs.oracle.com/javase/8/docs/api/java/util/Optional.html"
 */
public final class Optional<T> {

    private static final Optional<?> EMPTY = new Optional<Object>();

    private final T value;

    private Optional() {
{'fraction_non_alphanumeric': 0.09846547314578005, 'fraction_numerical': 0.014066496163682864, 'mean_word_length': 3.9369085173501577, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4443691', 'n_tokens_mistral': 458, 'n_tokens_neox': 423, 'n_words': 166}