<commit_before>/*
 * Copyright 2007-2016 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 net.ymate.framework.core;

/**
 * Framework框架可选参数常量定义
 *
 * @author 刘镇 (<EMAIL>) on 14-7-20
 * @version 1.0
 */
public class Optional {

    public static final Integer BOOL_TRUE = 1;

    public static final Integer BOOL_FALSE = 0;

    public static final String REDIRECT_URL = "redirect_url";

    public static final String OBSERVE_SILENCE = "observe_silence";

    /**
     * 国际化资源文件参数名称
     */
    public static final String I18N_RESOURCE_NAME = "webmvc.i18n_resource_name";

    /**
     * 国际化语言切换参数名称
     */
    public static final String I18N_LANGUAGE_KEY = "webmvc.i18n_language_key";

    /**
     * 异常信息视图文件参数名称
     */
    public static final String ERROR_VIEW = "webmvc.error_view";

    /**
     * 系统异常分析是否关闭参数名称
     */
    public static final String SYSTEM_EXCEPTION_ANALYSIS_DISABLED = "webmvc.exception_analysis_disabled";

    /**
     * 系统错误消息是否指定ContentType响应头
     */
    public static final String SYSTEM_ERROR_WITH_CONTENT_TYPE = "webmvc.error_with_content_type";

    /**
     * 系统默认国际化错误消息KEY
     */
    public static final String SYSTEM_ERROR_DEFAULT_I18N_KEY = "webmvc.error_default_i18n_key";

    /**
     * 会话过期消息KEY
     */
    public static final String SYSTEM_SESSION_TIMEOUT_KEY = "webmvc.session_timeout_key";

    /**
     * 请求参数验证无效消息KEY
     */
    public static final String SYSTEM_PARAMS_VALIDATION_INVALID_KEY = "webmvc.params_validation_invalid_key";

    /**
     * 会话已授权(登录)KEY
     */
    public static final String SYSTEM_SESSION_AUTHORIZED_KEY = "webmvc.session_authorized_key";

    /**
     * 会话处理器类
     */
    public static final String SYSTEM_USER_SESSION_HANDLER_CLASS = "webmvc.user_session_handler_class";

    /**
     * 会话安全确认处理器类
     */
    public static final String SYSTEM_USER_SESSION_CONFIRM_HANDLER_CLASS = "webmvc.user_session_confirm_handler_class";

    /**
     * 会话安全确认重定向URL地址, 默认值: "confirm?redirect_url=${redirect_url}"
     */
    public static final String CONFIRM_REDIRECT_URL = "webmvc.confirm_redirect_url";

    /**
     * 会话安全确认超时时间(分钟), 默认值: 30
     */
    public static final String CONFIRM_TIMEOUT = "webmvc.confirm_timeout";

    /**
     * 控制器请求URL后缀参数名称
     */
    public static final String REQUEST_SUFFIX = "webmvc.request_suffix";

    /**
     * 重定向登录URL地址参数名称, 默认值: "login?redirect_url=${redirect_url}"
     */
    public static final String REDIRECT_LOGIN_URL = "webmvc.redirect_login_url";

    /**
     * 重定向主页URL地址参数名称, 默认值: ""
     */
    public static final String REDIRECT_HOME_URL = "webmvc.redirect_home_url";

    /**
     * 允许上传的文件类型验证参数名称
     */
    public static final String VALIDATION_ALLOW_UPLOAD_CONTENT_TYPES = "webmvc.validation_allow_upload_content_types";

    /**
     * 验证结果消息模板参数名称, 默认值: "${items}"
     */
    public static final String VALIDATION_TEMPLATE_ELEMENT = "webmvc.validation_template_element";

    /**
     * 验证结果消息项模板参数名称, 默认值: "${message}<br>"
     */
    public static final String VALIDATION_TEMPLATE_ITEM = "webmvc.validation_template_item";

    /**
     * 是否开启跨域拦截
     */
    public static final String ALLOW_CROSS_DOMAIN = "webmvc.allow_cross_domain";

    /**
     * 允许跨域的原始主机
     */
    public static final String ALLOW_ORIGIN_HOSTS = "webmvc.allow_origin_hosts";

    /**
     * 是否允许跨域请求带有验证信息
     */
    public static final String NOT_ALLOW_CREDENTIALS = "not_allow_credentials";
}
<commit_msg>增加一些常量定义<commit_after>/*
 * Copyright 2007-2016 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 net.ymate.framework.core;

/**
 * Framework框架可选参数常量定义
 *
 * @author 刘镇 (<EMAIL>) on 14-7-20
 * @version 1.0
 */
public class Optional {

    public static final Integer BOOL_TRUE = 1;

    public static final Integer BOOL_FALSE = 0;

    public static final String REDIRECT_URL = "redirect_url";

    public static final String OBSERVE_SILENCE = "observe_silence";

    /**
     * 国际化资源文件参数名称
     */
    public static final String I18N_RESOURCE_NAME = "webmvc.i18n_resource_name";

    /**
     * 国际化语言切换参数名称
     */
    public static final String I18N_LANGUAGE_KEY = "webmvc.i18n_language_key";

    /**
     * 异常信息视图文件参数名称
     */
    public static final String ERROR_VIEW = "webmvc.error_view";

    /**
     * 系统异常分析是否关闭参数名称
     */
    public static final String SYSTEM_EXCEPTION_ANALYSIS_DISABLED = "webmvc.exception_analysis_disabled";

    /**
     * 系统错误消息是否指定ContentType响应头
     */
    public static final String SYSTEM_ERROR_WITH_CONTENT_TYPE = "webmvc.error_with_content_type";

    /**
     * 系统默认国际化错误消息KEY
     */
    public static final String SYSTEM_ERROR_DEFAULT_I18N_KEY = "webmvc.error_default_i18n_key";

    /**
     * 会话过期消息KEY
     */
    public static final String SYSTEM_SESSION_TIMEOUT_KEY = "webmvc.session_timeout_key";

    /**
     * 请求参数验证无效消息KEY
     */
    public static final String SYSTEM_PARAMS_VALIDATION_INVALID_KEY = "webmvc.params_validation_invalid_key";

    /**
     * 会话已授权(登录)KEY
     */
    public static final String SYSTEM_SESSION_AUTHORIZED_KEY = "webmvc.session_authorized_key";

    /**
     * 请求的资源未授权或无权限KEY
     */
    public static final String SYSTEM_REQUEST_RESOURCE_UNAUTHORIZED_KEY = "webmvc.request_resource_unauthorized_key";

    /**
     * 请求的操作被禁止KEY
     */
    public static final String SYSTEM_REQUEST_OPERATION_FORBIDDEN_KEY = "webmvc.request_operation_forbidden_key";

    /**
     * 访问的资源未找到或不存在KEY
     */
    public static final String SYSTEM_RESOURCE_NOT_FOUND_OR_NOT_EXIST_KEY = "webmvc.resource_not_found_or_not_exist_key";

    /**
     * 请求方法不支持或不正确KEY
     */
    public static final String SYSTEM_REQUEST_METHOD_NOT_ALLOWED_KEY = "webmvc.request_method_not_allowed_key";

    /**
     * 据版本不匹配KEY
     */
    public static final String SYSTEM_DATA_VERSION_NOT_MATCH_KEY = "webmvc.data_version_not_match_key";

    /**
     * 会话处理器类
     */
    public static final String SYSTEM_USER_SESSION_HANDLER_CLASS = "webmvc.user_session_handler_class";

    /**
     * 会话安全确认处理器类
     */
    public static final String SYSTEM_USER_SESSION_CONFIRM_HANDLER_CLASS = "webmvc.user_session_confirm_handler_class";

    /**
     * 会话安全确认重定向URL地址, 默认值: "confirm?redirect_url=${redirect_url}"
     */
    public static final String CONFIRM_REDIRECT_URL = "webmvc.confirm_redirect_url";

    /**
     * 会话安全确认超时时间(分钟), 默认值: 30
     */
    public static final String CONFIRM_TIMEOUT = "webmvc.confirm_timeout";

    /**
     * 控制器请求URL后缀参数名称
     */
    public static final String REQUEST_SUFFIX = "webmvc.request_suffix";

    /**
     * 重定向登录URL地址参数名称, 默认值: "login?redirect_url=${redirect_url}"
     */
    public static final String REDIRECT_LOGIN_URL = "webmvc.redirect_login_url";

    /**
     * 重定向主页URL地址参数名称, 默认值: ""
     */
    public static final String REDIRECT_HOME_URL = "webmvc.redirect_home_url";

    /**
     * 允许上传的文件类型验证参数名称
     */
    public static final String VALIDATION_ALLOW_UPLOAD_CONTENT_TYPES = "webmvc.validation_allow_upload_content_types";

    /**
     * 验证结果消息模板参数名称, 默认值: "${items}"
     */
    public static final String VALIDATION_TEMPLATE_ELEMENT = "webmvc.validation_template_element";

    /**
     * 验证结果消息项模板参数名称, 默认值: "${message}<br>"
     */
    public static final String VALIDATION_TEMPLATE_ITEM = "webmvc.validation_template_item";

    /**
     * 是否开启跨域拦截
     */
    public static final String ALLOW_CROSS_DOMAIN = "webmvc.allow_cross_domain";

    /**
     * 允许跨域的原始主机
     */
    public static final String ALLOW_ORIGIN_HOSTS = "webmvc.allow_origin_hosts";

    /**
     * 是否允许跨域请求带有验证信息
     */
    public static final String NOT_ALLOW_CREDENTIALS = "not_allow_credentials";
}

{'fraction_non_alphanumeric': 0.0903987167736022, 'fraction_numerical': 0.008020164986251146, 'mean_word_length': 3.2047206165703277, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1567432', 'n_tokens_mistral': 3303, 'n_tokens_neox': 3426, 'n_words': 611}