<commit_before>/*
 * Copyright 2014 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.gradle.play.internal.routes;

import org.gradle.play.internal.PlayCompileSpec;

import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class RoutesCompileSpec implements PlayCompileSpec, Serializable {
    private final Iterable<File> sources;
    private final File destinationDir;
    private final List<String> additionalImports = new ArrayList<String>();
    private final boolean generateReverseRoute;
    private final boolean generateRefReverseRouter;
    private final boolean namespaceReverseRouter;

    public RoutesCompileSpec(Iterable<File> sources, File destinationDir, List<String> additionalImports) {
        this.sources = sources;
        this.destinationDir = destinationDir;
        this.additionalImports.addAll(additionalImports);
        generateReverseRoute = true;
        generateRefReverseRouter = true;
        namespaceReverseRouter = false;
    }

    public Iterable<File> getSources() {
        return sources;
    }

    public File getDestinationDir() {
        return destinationDir;
    }

    public List<String> getAdditionalImports() {
        return additionalImports;
    }

    public Boolean getGenerateReverseRoute() {
        return generateReverseRoute;
    }

    public boolean isGenerateRefReverseRouter() {
        return generateRefReverseRouter;
    }

    public boolean isNamespaceReverseRouter() {
        return namespaceReverseRouter;
    }
}<commit_msg>Fixes custom Play .routes files generation<commit_after>/*
 * Copyright 2014 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.gradle.play.internal.routes;

import org.gradle.play.internal.PlayCompileSpec;

import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class RoutesCompileSpec implements PlayCompileSpec, Serializable {
    private final Iterable<File> sources;
    private final File destinationDir;
    private final List<String> additionalImports = new ArrayList<String>();
    private final boolean generateReverseRoute;
    private final boolean generateRefReverseRouter;
    private final boolean namespaceReverseRouter;

    public RoutesCompileSpec(Iterable<File> sources, File destinationDir, List<String> additionalImports) {
        this.sources = sources;
        this.destinationDir = destinationDir;
        this.additionalImports.addAll(additionalImports);
        generateReverseRoute = true;
        generateRefReverseRouter = true;
        namespaceReverseRouter = true;
    }

    public Iterable<File> getSources() {
        return sources;
    }

    public File getDestinationDir() {
        return destinationDir;
    }

    public List<String> getAdditionalImports() {
        return additionalImports;
    }

    public Boolean getGenerateReverseRoute() {
        return generateReverseRoute;
    }

    public boolean isGenerateRefReverseRouter() {
        return generateRefReverseRouter;
    }

    public boolean isNamespaceReverseRouter() {
        return namespaceReverseRouter;
    }
}
{'fraction_non_alphanumeric': 0.06897363465160075, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 3.6437158469945357, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3638824', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1051, 'n_words': 361}