<commit_before>package foam.nanos.fs;

import foam.util.SafetyUtil;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.DirectoryStream;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;

import static java.nio.file.StandardOpenOption.APPEND;
import static java.nio.file.StandardOpenOption.CREATE;

public abstract class AbstractStorage implements Storage {

  protected abstract FileSystem getFS();

  protected abstract Path getRootPath();

  protected abstract Path getPath(String name);<commit_msg>Add copyright header.<commit_after>/**
 * @license
 * Copyright 2019 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.nanos.fs;

import foam.util.SafetyUtil;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.DirectoryStream;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;
import static java.nio.file.StandardOpenOption.APPEND;
import static java.nio.file.StandardOpenOption.CREATE;

public abstract class AbstractStorage
  implements Storage
{

  protected abstract FileSystem getFS();

  protected abstract Path getRootPath();

  protected abstract Path getPath(String name);
{'fraction_non_alphanumeric': 0.09943582510578279, 'fraction_numerical': 0.004231311706629055, 'mean_word_length': 5.334821428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6945481', 'n_tokens_mistral': 419, 'n_tokens_neox': 407, 'n_words': 106}