<commit_before>/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package net.localizethat.model;

import java.text.ParseException;
import java.util.List;

/**
 *
 * @author rpalomares
 */
public interface ParseableFile {

    /**
     * Parses a text file (like a DTD file, a Properties file, etc.)
     * @return a list of LocaleContent objects
     * @throws ParseException in case the parsing fails
     */
    List<LocaleContent> parse() throws ParseException;

    // LTLicense getLicense();
    LocaleContent getLicense();

    // List<LObject> getLObjectCollection();
    List<LocaleContent> getLObjectCollection();

}<commit_msg>Every class implementing ParseableFile must also be a LocaleNode to be used in practice, so we better make it explicit on code.<commit_after>/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package net.localizethat.model;

import java.text.ParseException;
import java.util.List;

/**
 *
 * @author rpalomares
 */
public interface ParseableFile extends LocaleNode {

    /**
     * Parses a text file (like a DTD file, a Properties file, etc.)
     * @return a list of LocaleContent objects
     * @throws ParseException in case the parsing fails
     */
    List<LocaleContent> parse() throws ParseException;

    // LTLicense getLicense();
    LocaleContent getLicense();

    // List<LObject> getLObjectCollection();
    List<LocaleContent> getLObjectCollection();

}
{'fraction_non_alphanumeric': 0.09739130434782609, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 3.391857506361323, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5386830', 'n_tokens_mistral': 505, 'n_tokens_neox': 485, 'n_words': 189}