<commit_before>/*
 * Copyright 2016 <NAME>, <NAME> and the IzPack team.
 *
 * 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.izforge.izpack.api.data;


import com.izforge.izpack.api.data.binding.Help;
import com.izforge.izpack.api.data.binding.OsModel;
import com.izforge.izpack.api.handler.DefaultConfigurationHandler;

import java.io.Serializable;
import java.util.*;

/**
 * @author <NAME>
 * @author <NAME>, <<EMAIL>>
 */
public class Panel extends DefaultConfigurationHandler implements Serializable
{
    static final long serialVersionUID = 8886445274940938809L;

    /**
     * The panel classname.
     */
    private String className;

    /**
     * The target operation system of this panel
     */
    private List<OsModel> osConstraints = Collections.emptyList();

    /**
     * the unique id of this panel
     */
    private String panelId;

    /**
     * condition for this panel
     */
    private String condition;

    /**
     * Whether the panel including all fields is read-only if otherwise hidden.
     */
    private boolean displayHidden = false;

    /**
     * Condition whether the panel should be shown read-only in otherwise hidden.
     */
    private String displayHiddenCondition;

    /**
     * Whether the panel including all fields is read-only as a whole.
     */
    private boolean readonly = false;

    /**
     * Condition whether the panel should be shown read-only.
     */
    private String readonlyCondition;

    /**
     * The list of validators for this panel
     */
    private final List<String> validators = new ArrayList<String>();

    /**
     * Set affected variable names that might be changed on this panel
     */
    private Set<String> affectedVariableNames;

    /**
     * The map of validator conditions for this panel depending on the validator
     * Condition whether the validator has to be asked for validation.
     */
    private final Map<Integer, String> validatorConditionIds = new HashMap<Integer, String>();

    /**
     * The map of validator configuration options for this panel depending on the validator<commit_msg>IZPACK-1536: Fix NPE in Panel#toString due to uninitialized member 'affectedVariableNames'<commit_after>/*
 * Copyright 2016 <NAME>, <NAME> and the IzPack team.
 *
 * 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.izforge.izpack.api.data;


import com.izforge.izpack.api.data.binding.Help;
import com.izforge.izpack.api.data.binding.OsModel;
import com.izforge.izpack.api.handler.DefaultConfigurationHandler;

import java.io.Serializable;
import java.util.*;

/**
 * @author <NAME>
 * @author <NAME>, <<EMAIL>>
 */
public class Panel extends DefaultConfigurationHandler implements Serializable
{
    static final long serialVersionUID = 8886445274940938809L;

    /**
     * The panel classname.
     */
    private String className;

    /**
     * The target operation system of this panel
     */
    private List<OsModel> osConstraints = Collections.emptyList();

    /**
     * the unique id of this panel
     */
    private String panelId;

    /**
     * condition for this panel
     */
    private String condition;

    /**
     * Whether the panel including all fields is read-only if otherwise hidden.
     */
    private boolean displayHidden = false;

    /**
     * Condition whether the panel should be shown read-only in otherwise hidden.
     */
    private String displayHiddenCondition;

    /**
     * Whether the panel including all fields is read-only as a whole.
     */
    private boolean readonly = false;

    /**
     * Condition whether the panel should be shown read-only.
     */
    private String readonlyCondition;

    /**
     * The list of validators for this panel
     */
    private final List<String> validators = new ArrayList<String>();

    /**
     * Set affected variable names that might be changed on this panel
     */
    private Set<String> affectedVariableNames = new HashSet<String>();

    /**
     * The map of validator conditions for this panel depending on the validator
     * Condition whether the validator has to be asked for validation.
     */
    private final Map<Integer, String> validatorConditionIds = new HashMap<Integer, String>();

    /**
     * The map of validator configuration options for this panel depending on the validator
{'fraction_non_alphanumeric': 0.08443863254249953, 'fraction_numerical': 0.010835045768727816, 'mean_word_length': 2.9895678092399405, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '4332137', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1347, 'n_words': 558}