<commit_before>package imcode.server.document.textdocument;

import com.fasterxml.jackson.annotation.JsonIgnore;
import imcode.util.image.ImageInfo;
import imcode.util.io.EmptyInputStreamSource;
import imcode.util.io.InputStreamSource;
import lombok.EqualsAndHashCode;

import java.util.Date;

public class NullImageSource extends ImageSource {
    private static final long serialVersionUID = -7330157356707491656L;

    @JsonIgnore
    public InputStreamSource getInputStreamSource() {
        return new EmptyInputStreamSource();
    }

    public String getUrlPathRelativeToContextPath() {
        return "";
    }

    public String toStorageString() {
        return "";
    }

    @Override
    public boolean isEmpty() {
        return true;
    }

    public int getTypeId() {
        return ImageSource.IMAGE_TYPE_ID__NULL;
    }

    public Date getModifiedDatetime() {
        return null;
    }

    @Override
    public String getName() {
        return "";
    }

    @Override
    public ImageInfo getImageInfo() {
        return new ImageInfo();
    }

    @Override
    public boolean equals(Object obj) {
        return (obj instanceof NullImageSource);
    }
}<commit_msg>IMCMS-300 - New design to superadmin-pages: - Cleanup.<commit_after>package imcode.server.document.textdocument;

import com.fasterxml.jackson.annotation.JsonIgnore;
import imcode.util.image.ImageInfo;
import imcode.util.io.EmptyInputStreamSource;
import imcode.util.io.InputStreamSource;

import java.util.Date;

public class NullImageSource extends ImageSource {
    private static final long serialVersionUID = -7330157356707491656L;

    @JsonIgnore
    public InputStreamSource getInputStreamSource() {
        return new EmptyInputStreamSource();
    }

    public String getUrlPathRelativeToContextPath() {
        return "";
    }

    public String toStorageString() {
        return "";
    }

    @Override
    public boolean isEmpty() {
        return true;
    }

    public int getTypeId() {
        return ImageSource.IMAGE_TYPE_ID__NULL;
    }

    public Date getModifiedDatetime() {
        return null;
    }

    @Override
    public String getName() {
        return "";
    }

    @Override
    public ImageInfo getImageInfo() {
        return new ImageInfo();
    }

    @Override
    public boolean equals(Object obj) {
        return (obj instanceof NullImageSource);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
{'fraction_non_alphanumeric': 0.08367016976556184, 'fraction_numerical': 0.016572352465642683, 'mean_word_length': 2.8551401869158877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '140287', 'n_tokens_mistral': 722, 'n_tokens_neox': 670, 'n_words': 163}