<commit_before>package org.wyona.yanel.impl.resources;

import org.apache.log4j.Category;

/**
 *
 */
public class JSPDataPath implements DataPath {

    private static Category log = Category.getInstance(JSPDataPath.class);

    /*
     *
     */
    public String getDataPath(String path) {
        String dataPath = null;
        if (path.indexOf(".html") > 0) {
            dataPath = path.substring(0, path.lastIndexOf(".html")) + ".txt";
        } else {
            dataPath = path + ".txt";
        }
        return dataPath;<commit_msg>map root to Main.txt<commit_after>package org.wyona.yanel.impl.resources;

import org.apache.log4j.Category;

/**
 *
 */
public class JSPDataPath implements DataPath {

    private static Category log = Category.getInstance(JSPDataPath.class);

    /*
     *
     */
    public String getDataPath(String path) {
        String dataPath = null;
        if (path.indexOf(".html") > 0) {
            dataPath = path.substring(0, path.lastIndexOf(".html")) + ".txt";
        } else if (path.equals("/")) {
            dataPath = "/Main.txt";
        } else {
            dataPath = path + ".txt";
        }
        return dataPath;
{'fraction_non_alphanumeric': 0.1356655290102389, 'fraction_numerical': 0.005119453924914676, 'mean_word_length': 2.213698630136986, 'pattern_counts': {'":': 0, '<': 3, '<?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': '685672', 'n_tokens_mistral': 354, 'n_tokens_neox': 346, 'n_words': 75}