<commit_before>package at.ac.univie.isc.asio.jaxrs;

import javax.ws.rs.core.MediaType;

/**
 * Common request and response types supported in asio.
 */
public enum Mime {
  // request types
  QUERY_SQL(MediaType.valueOf("application/sql-query"))
  , QUERY_SPARQL(MediaType.valueOf("application/sparql-query"))
  , UPDATE_SQL(MediaType.valueOf("application/sql-update"))
  , UPDATE_SPARQL(MediaType.valueOf("application/sparql-update"))
  // response types
  , CSV(MediaType.valueOf("text/csv"))
  , XML(MediaType.APPLICATION_XML_TYPE)
  , JSON(MediaType.APPLICATION_JSON_TYPE)
  ;

  private final MediaType type;

  private Mime(final MediaType type) {
    this.type = type;
  }

  public MediaType type() {
    return type;
  }
}<commit_msg>[IMPR] Mime#toString() is now the media type value<commit_after>package at.ac.univie.isc.asio.jaxrs;

import javax.ws.rs.core.MediaType;

/**
 * Common request and response types supported in asio.
 */
public enum Mime {
  // request types
  QUERY_SQL(MediaType.valueOf("application/sql-query"))
  , QUERY_SPARQL(MediaType.valueOf("application/sparql-query"))
  , UPDATE_SQL(MediaType.valueOf("application/sql-update"))
  , UPDATE_SPARQL(MediaType.valueOf("application/sparql-update"))
  // response types
  , CSV(MediaType.valueOf("text/csv"))
  , XML(MediaType.APPLICATION_XML_TYPE)
  , JSON(MediaType.APPLICATION_JSON_TYPE)
  ;

  private final MediaType type;

  private Mime(final MediaType type) {
    this.type = type;
  }

  public MediaType type() {
    return type;
  }

  @Override
  public String toString() {
    return type.toString();
  }
}
{'fraction_non_alphanumeric': 0.13008130081300814, 'fraction_numerical': 0.0, 'mean_word_length': 4.298013245033113, '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': '2139129', 'n_tokens_mistral': 559, 'n_tokens_neox': 530, 'n_words': 95}