<commit_before>package ca.edchipman.silverstripepdt.validation;

import java.util.Locale;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;

import org.eclipse.wst.html.internal.validation.HTMLValidator;
import org.eclipse.wst.validation.ValidationResult;
import org.eclipse.wst.validation.ValidationState;
import org.eclipse.wst.validation.ValidatorMessage;
import org.eclipse.wst.validation.internal.core.Message;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.eclipse.wst.validation.internal.provisional.core.IReporter;
import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;

public class SSTemplateValidator extends HTMLValidator {
    protected class LocalizedMessage extends Message {
        private String _message = null;
        public LocalizedMessage(int severity, String messageText) {
            this(severity, messageText, null);
        }
        
        public LocalizedMessage(int severity, String messageText, IResource targetObject) {
            this(severity, messageText, (Object) targetObject);
        }
        
        public LocalizedMessage(int severity, String messageText, Object targetObject) {
            super(null, severity, null);
            setLocalizedMessage(messageText);
            setTargetObject(targetObject);
        }
        
        public void setLocalizedMessage(String message) {
            _message = message;
        }
        
        public String getLocalizedMessage() {
            return _message;
        }
        
        public String getText() {
            return getLocalizedMessage();
        }
        
        public String getText(ClassLoader cl) {
            return getLocalizedMessage();
        }
        
        public String getText(Locale l) {
            return getLocalizedMessage();
        }
        
        public String getText(Locale l, ClassLoader cl) {
            return getLocalizedMessage();
        }
    }
    
    
    IDocument fDocument=null;
    
    @Override
    public void connect(IDocument document) {
        fDocument = document;
        super.connect(document);
    }

    @Override
    public void disconnect(IDocument document) {
        fDocument = null;
        super.disconnect(document);
    }
}<commit_msg>cleaned up more of a bridging class anyways<commit_after>package ca.edchipman.silverstripepdt.validation;

import org.eclipse.wst.html.internal.validation.HTMLValidator;

public class SSTemplateValidator extends HTMLValidator {
    
}
{'fraction_non_alphanumeric': 0.07943578322197475, 'fraction_numerical': 0.0, 'mean_word_length': 2.806497175141243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1919122', 'n_tokens_mistral': 715, 'n_tokens_neox': 706, 'n_words': 145}