<commit_before>package jwebform.element.structure;

public interface ElementRenderer {

  String renderInput(
      String type,
      ProducerInfos pi,
      OneFieldDecoration decoration,
      String additional);

  String renderInputComplex(
      String tagname,
      String inBetweenHtml,
      ProducerInfos pi,
      OneFieldDecoration decoration);

  String renderInputFree(
      String free,
      ProducerInfos pi,
      OneFieldDecoration decoration,
      InputVariant variant);


  String renderAriaDescribedBy(ProducerInfos pi, OneFieldDecoration decoration);

  String renderValue(String value);

  // This may be used, to render label for radio-inputs. No error-highlighting, no required
  // highlighting!
  String renderSimpleLabel(String forAttribute, String label);
<commit_msg>add documentation<commit_after>package jwebform.element.structure;

public interface ElementRenderer {

  // Renders a single input-element including label and help
  String renderInput(
      String type,
      ProducerInfos pi,
      OneFieldDecoration decoration,
      String additional);

  // renders an input value, that is not a typical input (for example TextArea)
  String renderInputComplex(
      String tagname,
      String inBetweenHtml,
      ProducerInfos pi,
      OneFieldDecoration decoration);

  // just renders label and help, provide the input-element yourself
  String renderInputFree(
      String free,
      ProducerInfos pi,
      OneFieldDecoration decoration,
      InputVariant variant);

  // render the aria attribute
  String renderAriaDescribedBy(ProducerInfos pi, OneFieldDecoration decoration);

  // render the value attribute
  String renderValue(String value);

  // This may be used, to render label for radio-inputs. No error-highlighting, no required
  // highlighting!
  String renderSimpleLabel(String forAttribute, String label);

{'fraction_non_alphanumeric': 0.05750798722044728, 'fraction_numerical': 0.0, 'mean_word_length': 3.62807881773399, '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': '3434538', 'n_tokens_mistral': 496, 'n_tokens_neox': 468, 'n_words': 163}