<commit_before>/*
* Copyright 2017 <NAME>
*
* 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 com.devsoap.plugin.configuration

import com.devsoap.plugin.MessageLogger
import com.devsoap.plugin.configuration.PluginConfiguration
import org.gradle.api.Project

/**
 * Configuration for Development Mode
 *
 * @author <NAME>
 */
@Deprecated
@PluginConfiguration
class DevelopmentModeConfiguration {

    @Deprecated
    transient Project project

    @Deprecated
    DevelopmentModeConfiguration(Project project) {
        this.project = project
    }

    /**
     * Should the internal server be used.
     */
    @Deprecated
    void noserver(boolean noserver) {
        project.vaadinSuperDevMode.noserver = noserver
        getNoserver()
    }
    @Deprecated
    void setNoserver(boolean noserver) {
        project.vaadinSuperDevMode.noserver = noserver
        getNoserver()
    }
    @Deprecated
    boolean getNoserver() {
        MessageLogger.nagUserOfDiscontinuedProperty('vaadin.devmode.noserver',
                'This property has been replaced by vaadinSuperDevMode.noserver.')
        project.vaadinSuperDevMode.noserver
    }

    /**
     * Should super devmode be available
     *
     * @deprecated
     */
    @Deprecated
    void setSuperDevMode(boolean sdm) {
        assert sdm
        isSuperDevMode()
    }
    @Deprecated
    void superDevMode(boolean sdm) {
        assert sdm
       isSuperDevMode()
    }
    @Deprecated
    boolean isSuperDevMode() {
        MessageLogger.nagUserOfDiscontinuedProperty('vaadin.devmode.superDevMode',
                'This property has been removed and will always be true.')
        true
    }

    /**
     * To what host or ip should development mode bind itself to. By default localhost.
     */
    @Deprecated
    void bindAddress(String address) {
        project.vaadinSuperDevMode.bindAddress = address
        getBindAddress()
    }
    @Deprecated
    void setBindAddress(String address) {
        project.vaadinSuperDevMode.bindAddress = address
        getBindAddress()
    }
    @Deprecated
    String getBindAddress() {
        MessageLogger.nagUserOfDiscontinuedProperty('vaadin.devmode.bindAddress',
                'This property has been replaced by vaadinSuperDevMode.bindAddress.')
        project.vaadinSuperDevMode.bindAddress
    }

    /**
     * To what port should development mode bind itself to.
     */<commit_msg>Remove SDM on/off toggle #127<commit_after>/*
* Copyright 2017 <NAME>
*
* 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 com.devsoap.plugin.configuration

import com.devsoap.plugin.MessageLogger
import com.devsoap.plugin.configuration.PluginConfiguration
import org.gradle.api.Project

/**
 * Configuration for Development Mode
 *
 * @author <NAME>
 */
@Deprecated
@PluginConfiguration
class DevelopmentModeConfiguration {

    @Deprecated
    transient Project project

    @Deprecated
    DevelopmentModeConfiguration(Project project) {
        this.project = project
    }

    /**
     * Should the internal server be used.
     */
    @Deprecated
    void noserver(boolean noserver) {
        project.vaadinSuperDevMode.noserver = noserver
        getNoserver()
    }
    @Deprecated
    void setNoserver(boolean noserver) {
        project.vaadinSuperDevMode.noserver = noserver
        getNoserver()
    }
    @Deprecated
    boolean getNoserver() {
        MessageLogger.nagUserOfDiscontinuedProperty('vaadin.devmode.noserver',
                'This property has been replaced by vaadinSuperDevMode.noserver.')
        project.vaadinSuperDevMode.noserver
    }

    /**
     * To what host or ip should development mode bind itself to. By default localhost.
     */
    @Deprecated
    void bindAddress(String address) {
        project.vaadinSuperDevMode.bindAddress = address
        getBindAddress()
    }
    @Deprecated
    void setBindAddress(String address) {
        project.vaadinSuperDevMode.bindAddress = address
        getBindAddress()
    }
    @Deprecated
    String getBindAddress() {
        MessageLogger.nagUserOfDiscontinuedProperty('vaadin.devmode.bindAddress',
                'This property has been replaced by vaadinSuperDevMode.bindAddress.')
        project.vaadinSuperDevMode.bindAddress
    }

    /**
     * To what port should development mode bind itself to.
     */
{'fraction_non_alphanumeric': 0.07580887885628292, 'fraction_numerical': 0.0035741158765989467, 'mean_word_length': 2.9619970193740683, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3876796', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1388, 'n_words': 419}