<commit_before>package gov.nih.nci.iso21090;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * Represents the iso ED type.
 *
 * TODO Add Invariants checks.
. Either reference, data, value or xml must be provided if not null
  Only one of reference, data, value or xml may be specified
  An integrityCheckAlgorithm must be provided if an integrityCheck is provided
  if a thumbnail is provided, it must not use a reference
  if a thumbnail is provided, it must not have a thumbnail
  Compression can only be specified if data is provided as a binary
  mediaType cannot be null
  if value is used, the mediaType is plain text
  a character set must not be asserted for plain text or xml content (for plain text refer
to 6.7.4, and implicitly derived for the XML content)
  translations may not contain translations
 *
 * @author lpower, <NAME>
 */
public class Ed extends Any implements Cloneable {

    private static final long serialVersionUID = 1L;

    private Compression compression;
    private byte[] data;
    //This has been commented out to be consistent with ISO xsd
    //private St description;
    private String value;
    private String mediaType;


    /**

    /**
     * @return the mediaType
     */
    public String getMediaType() {
        return mediaType;
    }

    /**
     * @param mediaType the mediaType to set
     */
    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;<commit_msg>added default constructor,which sets default mediatype value<commit_after>package gov.nih.nci.iso21090;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * Represents the iso ED type.
 *
 * TODO Add Invariants checks.
. Either reference, data, value or xml must be provided if not null
  Only one of reference, data, value or xml may be specified
  An integrityCheckAlgorithm must be provided if an integrityCheck is provided
  if a thumbnail is provided, it must not use a reference
  if a thumbnail is provided, it must not have a thumbnail
  Compression can only be specified if data is provided as a binary
  mediaType cannot be null
  if value is used, the mediaType is plain text
  a character set must not be asserted for plain text or xml content (for plain text refer
to 6.7.4, and implicitly derived for the XML content)
  translations may not contain translations
 *
 * @author lpower, <NAME>
 */
public class Ed extends Any implements Cloneable {

    private static final long serialVersionUID = 1L;

    private Compression compression;
    private byte[] data;
    //This has been commented out to be consistent with ISO xsd
    //private St description;
    private String value;
    private String mediaType;

    public Ed() {
		setMediaType("text/plain");
	}
    /**

    /**
     * @return the mediaType
     */
    public String getMediaType() {
        return mediaType;
    }

    /**
     * @param mediaType the mediaType to set
     */
    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;
{'fraction_non_alphanumeric': 0.0639929224417576, 'fraction_numerical': 0.005308168681804777, 'mean_word_length': 3.3994811932555122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6741831', 'n_tokens_mistral': 930, 'n_tokens_neox': 898, 'n_words': 402}