<commit_before>package de.stefanocke.japkit.gen

import de.stefanocke.japkit.activeannotations.FieldsFromInterface
import de.stefanocke.japkit.activeannotations.Required
import java.lang.annotation.Annotation
import java.util.Collections
import java.util.Comparator
import java.util.List
import java.util.Set
import javax.lang.model.element.AnnotationMirror
import javax.lang.model.element.Element
import javax.lang.model.element.ElementKind
import javax.lang.model.element.ElementVisitor
import javax.lang.model.element.Modifier
import javax.lang.model.element.Name

import static de.stefanocke.japkit.support.ElementsExtensions.*

@FieldsFromInterface
abstract class GenElement implements Element{
	
	@Required
	Name simpleName
	
	List<AnnotationMirror> annotationMirrors = newArrayList
	List<Element> enclosedElements = newArrayList
	Element enclosingElement
	Set<Modifier> modifiers = newHashSet
	var CharSequence comment
	
	override <R, P> accept(ElementVisitor<R,P> v, P p) {
		throw new UnsupportedOperationException("TODO: auto-generated method stub")
	}
	
	override asType() {
		throw new UnsupportedOperationException("TODO: auto-generated method stub")
	}<commit_msg>improved exception messages<commit_after>package de.stefanocke.japkit.gen

import de.stefanocke.japkit.activeannotations.FieldsFromInterface
import de.stefanocke.japkit.activeannotations.Required
import java.lang.annotation.Annotation
import java.util.Collections
import java.util.Comparator
import java.util.List
import java.util.Set
import javax.lang.model.element.AnnotationMirror
import javax.lang.model.element.Element
import javax.lang.model.element.ElementKind
import javax.lang.model.element.ElementVisitor
import javax.lang.model.element.Modifier
import javax.lang.model.element.Name

import static de.stefanocke.japkit.support.ElementsExtensions.*

@FieldsFromInterface
abstract class GenElement implements Element{
	
	@Required
	Name simpleName
	
	List<AnnotationMirror> annotationMirrors = newArrayList
	List<Element> enclosedElements = newArrayList
	Element enclosingElement
	Set<Modifier> modifiers = newHashSet
	var CharSequence comment
	
	override <R, P> accept(ElementVisitor<R,P> v, P p) {
		throw new UnsupportedOperationException("TODO: auto-generated method stub")
	}
	
	override asType() {
		throw new UnsupportedOperationException("asType() is not supported for "+this)
	}
{'fraction_non_alphanumeric': 0.07964601769911504, 'fraction_numerical': 0.0, 'mean_word_length': 6.327160493827161, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3144506', 'n_tokens_mistral': 698, 'n_tokens_neox': 671, 'n_words': 154}