<commit_before>package jcrush.model;

public class CrushedFile {
    private String file;
    private String type;
    private FileType fileType;

    private CrushedFile() {}

    public CrushedFile(String file, String type) {
        this.type = type;
        this.file = file;
        this.fileType = FileType.toFileType(type);
    }

    public String getFile() {
        return file;
    }

    public FileType getFileType() {
        if (fileType == null)
            fileType = FileType.toFileType(type);
        return fileType;
    }

    @Override
    public String toString() {
        return "File: " + file + "\n" +
                "Type: " + type + "\n";
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof CrushedFile) {
            CrushedFile file = (CrushedFile)obj;
            return file.file.equals(this.file) && file.fileType.equals(fileType);
        }
        return false;
    }
}<commit_msg>Added getURL to CrushedFile<commit_after>package jcrush.model;

import java.net.MalformedURLException;
import java.net.URL;

public class CrushedFile {
    private String file;
    private String type;
    private FileType fileType;
    private String url;

    private CrushedFile() {}

    public CrushedFile(String file, String type) {
        this.type = type;
        this.file = file;
        this.fileType = FileType.toFileType(type);
    }

    public String getFile() {
        return file;
    }

    public URL getURL() {
        try {
            return new URL(url);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getURLAsString() {
        return url;
    }

    public FileType getFileType() {
        if (fileType == null)
            fileType = FileType.toFileType(type);
        return fileType;
    }

    @Override
    public String toString() {
        return "File: " + file + "\n" +
                "Type: " + type + "\n";
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof CrushedFile) {
            CrushedFile file = (CrushedFile)obj;
            return file.file.equals(this.file) && file.fileType.equals(fileType);
        }
        return false;
    }
}
{'fraction_non_alphanumeric': 0.10092961487383798, 'fraction_numerical': 0.0, 'mean_word_length': 1.9854689564068693, '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': '3215238', 'n_tokens_mistral': 664, 'n_tokens_neox': 642, 'n_words': 168}