<commit_before>package org.verapdf.features;

import java.util.Calendar;

/**
 * Features data of an embedded file for feature extractor
 *
 * @author <NAME>
 */
public class EmbeddedFileFeaturesData extends FeaturesData {
	private final String name;
	private final String description;
	private final String subtype;
	private final Calendar creationDate;
	private final Calendar modDate;
	private final String checkSum;
	private final Integer size;

	private EmbeddedFileFeaturesData(byte[] stream, Integer size, String checkSum, Calendar modDate, Calendar creationDate, String subtype, String description, String name) {
		super(stream);
		this.size = size;
		this.checkSum = checkSum;
		this.modDate = (Calendar) modDate.clone();
		this.creationDate = (Calendar) creationDate.clone();
		this.subtype = subtype;
		this.description = description;
		this.name = name;
	}

	/**
	 * @return name of a file
	 */
	public String getName() {
		return name;
	}

	/**<commit_msg>Fixed null pointer exception in embedded file data constructor<commit_after>package org.verapdf.features;

import java.util.Calendar;

/**
 * Features data of an embedded file for feature extractor
 *
 * @author <NAME>
 */
public class EmbeddedFileFeaturesData extends FeaturesData {
	private final String name;
	private final String description;
	private final String subtype;
	private final Calendar creationDate;
	private final Calendar modDate;
	private final String checkSum;
	private final Integer size;

	private EmbeddedFileFeaturesData(byte[] stream, Integer size, String checkSum, Calendar modDate, Calendar creationDate, String subtype, String description, String name) {
		super(stream);
		this.size = size;
		this.checkSum = checkSum;
		this.modDate = modDate == null ? null : (Calendar) modDate.clone();
		this.creationDate = creationDate == null ? null : (Calendar) creationDate.clone();
		this.subtype = subtype;
		this.description = description;
		this.name = name;
	}

	/**
	 * @return name of a file
	 */
	public String getName() {
		return name;
	}

	/**
{'fraction_non_alphanumeric': 0.09197651663405088, 'fraction_numerical': 0.0, 'mean_word_length': 4.542005420054201, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '421997', 'n_tokens_mistral': 607, 'n_tokens_neox': 562, 'n_words': 198}