<commit_before>/* Copyright 2017, <NAME> (Fraunhofer IOSB)

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 nato.ivct.commander;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

public class CmdListSuT implements Command {

    public static final String ID                  = "id";
    public static final String NAME                = "name";
    public static final String DESCRIPTION         = "description";
    public static final String VENDOR              = "vendor";
    public static final String VERSION             = "version";
    public static final String BADGE               = "badge";
    public static final String SETTINGS_DESIGNATOR = "settingsDesignator";
    public static final String FEDERATION_NAME     = "federationName";

    
	public HashMap<String, SutDescription> sutMap = new HashMap<String, SutDescription>();

	/**
	 * The CmdListSuT command reads the SuT conformance statement JSON files, and creates a hashMap <id,SutDescription>
	 * 
	 * The format of a conformance statement is expected as follows:
	 * 
	 * {
     *    "id"                 : "hw_iosb",
     *    "name"               : "HelloWorld",
     *    "description"        : "HelloWorld system under federate for IVCT demonstration",
     *    "vendor"             : "Fraunhofer IOSB",
     *    "version"            : "1.0",
     *    "badge"              : ["HLA-BASE-2017"],
     *    "settingsDesignator" : "crcAddress=localhost:8989",
     *    "federationName"     : "TheWorld"
     * }
     * 
	 */
	@Override<commit_msg>change comment to avoid doc generation errors<commit_after>/* Copyright 2017, <NAME> (Fraunhofer IOSB)

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 nato.ivct.commander;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

public class CmdListSuT implements Command {

    public static final String ID                  = "id";
    public static final String NAME                = "name";
    public static final String DESCRIPTION         = "description";
    public static final String VENDOR              = "vendor";
    public static final String VERSION             = "version";
    public static final String BADGE               = "badge";
    public static final String SETTINGS_DESIGNATOR = "settingsDesignator";
    public static final String FEDERATION_NAME     = "federationName";

    
	public HashMap<String, SutDescription> sutMap = new HashMap<String, SutDescription>();

	/**
	 * The CmdListSuT command reads the SuT conformance statement JSON files, and creates a 
	 * hashMap for (id,SutDescription)
	 * 
	 * The format of a conformance statement is expected as follows:
	 * 
	 * {
     *    "id"                 : "hw_iosb",
     *    "name"               : "HelloWorld",
     *    "description"        : "HelloWorld system under federate for IVCT demonstration",
     *    "vendor"             : "Fraunhofer IOSB",
     *    "version"            : "1.0",
     *    "badge"              : ["HLA-BASE-2017"],
     *    "settingsDesignator" : "crcAddress=localhost:8989",
     *    "federationName"     : "TheWorld"
     * }
     * 
	 */
	@Override
{'fraction_non_alphanumeric': 0.08665627088438405, 'fraction_numerical': 0.008019603475161506, 'mean_word_length': 2.7416666666666667, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '6740507', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1209, 'n_words': 428}