<commit_before>/*
 * Copyright (C) 2006-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.codehaus.gmaven.runtime.v2_0;

import groovy.lang.GroovySystem;
import org.codehaus.gmaven.feature.Feature;
import org.codehaus.gmaven.feature.Version;
import org.codehaus.gmaven.feature.support.ProviderSupport;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Provides support for Groovy 1.9.
 *
 * @version $Id: ProviderImpl.java -1M 2011-09-23 02:21:23Z (local) $
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class ProviderImpl
    extends ProviderSupport
{
    public static final String KEY = "2.0";

    public ProviderImpl() {
        super(KEY);
    }

    @Override
    protected Map detectFeatures() {
        Feature[] features = {
            new ClassFactoryFeature(),
            new ScriptExecutorFeature(),
            new ClassCompilerFeature(),
            new StubCompilerFeature(),
            new ConsoleFeature(),
            new ShellFeature(),
            new TraceSanitizerFeature(),
        };

        Map<String,Feature> map = new LinkedHashMap<String,Feature>();

        for (Feature feature : features) {
            map.put(feature.key(), feature);
        }

        return map;
    }

    @Override
    protected Version detectVersion() {
        return new Version(1, 8, 2);
    }

    @Override
    public String name() {
        return "Groovy v" + GroovySystem.getVersion();
    }
}<commit_msg>Fixed javadoc and version def<commit_after>/*
 * Copyright (C) 2006-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.codehaus.gmaven.runtime.v2_0;

import groovy.lang.GroovySystem;
import org.codehaus.gmaven.feature.Feature;
import org.codehaus.gmaven.feature.Version;
import org.codehaus.gmaven.feature.support.ProviderSupport;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Provides support for Groovy 2.0.
 *
 * @version $Id: ProviderImpl.java -1M 2011-09-23 02:21:23Z (local) $
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class ProviderImpl
    extends ProviderSupport
{
    public static final String KEY = "2.0";

    public ProviderImpl() {
        super(KEY);
    }

    @Override
    protected Map detectFeatures() {
        Feature[] features = {
            new ClassFactoryFeature(),
            new ScriptExecutorFeature(),
            new ClassCompilerFeature(),
            new StubCompilerFeature(),
            new ConsoleFeature(),
            new ShellFeature(),
            new TraceSanitizerFeature(),
        };

        Map<String,Feature> map = new LinkedHashMap<String,Feature>();

        for (Feature feature : features) {
            map.put(feature.key(), feature);
        }

        return map;
    }

    @Override
    protected Version detectVersion() {
        return new Version(2, 0, 0, "beta-1");
    }

    @Override
    public String name() {
        return "Groovy v" + GroovySystem.getVersion();
    }
}
{'fraction_non_alphanumeric': 0.10326086956521739, 'fraction_numerical': 0.018033596837944664, 'mean_word_length': 2.837914691943128, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7064769', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1097, 'n_words': 363}