<commit_before>package com.example.filelist;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;

import java.io.InputStream;

/**
 * @author innokenty
 */
class FtpFileListEntry implements FileListEntry {

    private final FTPClient client;

    private final FTPFile delegate;

    public FtpFileListEntry(FTPClient client, FTPFile delegate) {
        this.client = client;
        this.delegate = delegate;
    }

    @Override
    public boolean isDirectory() {
        return delegate.isDirectory();
    }

    @Override
    public String getName() {
        return delegate.getName();
    }

    @Override
    public InputStream getInputStream() throws Exception {
        InputStream stream = client.retrieveFileStream(delegate.getName());
        if (!client.completePendingCommand()) {
            throw new FtpClientException("File transfer failed!");
        }
        return stream;
    }
}
<commit_msg>imp - delete FTPFile delegate field from FtpFileListEntry<commit_after>package com.example.filelist;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;

import java.io.InputStream;

/**
 * @author innokenty
 */
class FtpFileListEntry implements FileListEntry {

    private final FTPClient client;

    private final boolean isDirectory;

    private final String name;

    public FtpFileListEntry(FTPClient client, FTPFile delegate) {
        this.client = client;
        isDirectory = delegate.isDirectory();
        name = delegate.getName();
    }

    @Override
    public boolean isDirectory() {
        return isDirectory;
    }

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

    @Override
    public InputStream getInputStream() throws Exception {
        InputStream stream = client.retrieveFileStream(getName());
        if (!client.completePendingCommand()) {
            throw new FtpClientException("File transfer failed!");
        }
        return stream;
    }
}

{'fraction_non_alphanumeric': 0.09009009009009009, 'fraction_numerical': 0.0, 'mean_word_length': 2.927308447937132, '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': '3311837', 'n_tokens_mistral': 549, 'n_tokens_neox': 531, 'n_words': 134}