<commit_before>package org.terems.webz.internals;

import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;

import org.terems.webz.WebzException;
import org.terems.webz.WebzFile;
import org.terems.webz.WebzFileDownloader;
import org.terems.webz.WebzMetadata;
import org.terems.webz.WebzPathnameException;

public class WebzFileNotAccessible implements WebzFile {

	// TODO refactor WebzFileNotAccessible into something else

	private WebzFile file;
	private Throwable cause = null;

	public WebzFileNotAccessible(WebzFile file) {
		this.file = file;
	}

	public WebzFileNotAccessible(WebzFile file, Throwable cause) {
		this(file);
		this.cause = cause;
	}

	@Override
	public String getPathname() {
		return file.getPathname();
	}

	@Override
	public boolean isPathnameInvalid() {
		return file.isPathnameInvalid();
	}

	@Override
	public WebzFile getParent() throws WebzPathnameException {
		return file.getParent();
	}

	@Override
	public WebzFile getDescendant(String relativePathname) throws WebzPathnameException {
		return file.getDescendant(relativePathname);
	}

	@Override
	public boolean belongsToSubtree(WebzFile subtree) throws WebzPathnameException {
		return file.belongsToSubtree(subtree);
	}

	@Override
	public boolean belongsToSubtree(String subtreePath) throws WebzPathnameException {
		return file.belongsToSubtree(subtreePath);
	}

	@Override
	public void inflate() throws IOException, WebzException {
	}

	@Override
	public WebzMetadata getMetadata() throws IOException, WebzException {
		return null;
	}

	@Override
	public WebzFileDownloader getFileDownloader() throws IOException, WebzException {<commit_msg>WebzFileSystem refactoring<commit_after>package org.terems.webz.internals;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collection;

import org.terems.webz.WebzException;
import org.terems.webz.WebzFile;
import org.terems.webz.WebzFileDownloader;
import org.terems.webz.WebzMetadata;
import org.terems.webz.WebzMetadata.FileSpecific;
import org.terems.webz.WebzPathnameException;
import org.terems.webz.WebzReadException;
import org.terems.webz.WebzWriteException;

public class WebzFileNotAccessible implements WebzFile {

	// TODO refactor WebzFileNotAccessible into something else

	private WebzFile file;
	private Throwable cause = null;

	public WebzFileNotAccessible(WebzFile file) {
		this.file = file;
	}

	public WebzFileNotAccessible(WebzFile file, Throwable cause) {
		this(file);
		this.cause = cause;
	}

	@Override
	public String getPathname() {
		return file.getPathname();
	}

	@Override
	public boolean isPathnameInvalid() {
		return file.isPathnameInvalid();
	}

	@Override
	public WebzFile getParent() throws WebzPathnameException {
		return file.getParent();
	}

	@Override
	public WebzFile getDescendant(String relativePathname) throws WebzPathnameException {
		return file.getDescendant(relativePathname);
	}

	@Override
	public boolean belongsToSubtree(WebzFile subtree) throws WebzPathnameException {
		return file.belongsToSubtree(subtree);
	}

	@Override
	public boolean belongsToSubtree(String subtreePath) throws WebzPathnameException {
		return file.belongsToSubtree(subtreePath);
	}

	@Override
	public void inflate() throws IOException, WebzException {
	}

	@Override
	public WebzMetadata getMetadata() throws IOException, WebzException {
		return null;
	}

	@Override
	public WebzFileDownloader getFileDownloader() throws IOException, WebzException {
		return null;
	}

	@Override
	public FileSpecific copyContentToOutputStream(OutputStream out) throws IOException, WebzReadException, WebzWriteException,
			WebzException {
{'fraction_non_alphanumeric': 0.07861806311207835, 'fraction_numerical': 0.0, 'mean_word_length': 5.821892393320964, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '984853', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1150, 'n_words': 259}