<commit_before>/*
Copyright 2006 <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 org.gavrog.systre;

/**
 * Exceptions thrown by Systre's methods.
 * 
 * @author <NAME>
 * @version $Id: SystreException.java,v 1.2 2006/04/10 23:07:34 odf Exp $
 */
public class SystreException extends RuntimeException {
    public static class Type {
        final private String text;
        
        /**
         * Constructor is private, so only the instances below will exist.
         * @param text
         */
        private Type(final String text) {
            this.text = text;
        }
        public String toString() {
            return text;
        }
    }
    
    final public static Type MISC = new Type("MISC");
    final public static Type INTERNAL = new Type("INTERNAL");
    final public static Type FILE = new Type("FILE");
    final public static Type INPUT = new Type("INPUT");
    final public static Type STRUCTURE = new Type("STRUCTURE");
    
    final private Type type;
    
    public SystreException() {<commit_msg>New exception type FATAL.<commit_after>/*
Copyright 2006 <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 org.gavrog.systre;

/**
 * Exceptions thrown by Systre's methods.
 * 
 * @author <NAME>
 * @version $Id: SystreException.java,v 1.3 2006/04/18 23:49:26 odf Exp $
 */
public class SystreException extends RuntimeException {
    public static class Type {
        final private String text;
        
        /**
         * Constructor is private, so only the instances below will exist.
         * @param text
         */
        private Type(final String text) {
            this.text = text;
        }
        public String toString() {
            return text;
        }
    }
    
    final public static Type FATAL = new Type("FATAL");
    final public static Type INTERNAL = new Type("INTERNAL");
    final public static Type MISC = new Type("MISC");
    final public static Type FILE = new Type("FILE");
    final public static Type INPUT = new Type("INPUT");
    final public static Type STRUCTURE = new Type("STRUCTURE");
    
    final private Type type;
    
    public SystreException() {
{'fraction_non_alphanumeric': 0.07960358056265984, 'fraction_numerical': 0.015345268542199489, 'mean_word_length': 2.811205846528624, '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': '241230', 'n_tokens_mistral': 873, 'n_tokens_neox': 814, 'n_words': 362}