<commit_before>/**
 * 
 */
package org.carcv.core.impl.input;

import static org.junit.Assert.*;

import java.io.IOException;
import java.io.InputStream;
import java.nio.file.FileVisitResult;
import java.nio.file.FileVisitor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileAttribute;
import java.nio.file.attribute.PosixFilePermission;
import java.nio.file.attribute.PosixFilePermissions;
import java.util.Set;
import java.util.TreeSet;

import org.carcv.core.model.file.FileCarImage;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

/**
 * @author oskopek
 * 
 */
@Ignore
public class DirectoryWatcherTest { //TODO 1 Make into DirectoryWatcher and Loader test 

    Path rootPath;
    /*
    private FileDiscoverer fileDiscoverer;

    private FileImageQueue queue;
     */
    private FileAttribute<Set<PosixFilePermission>> permissions;

    /**
     * @throws java.lang.Exception
     */
    /*
    @Before
    public void setUp() throws Exception {
        queue = new FileImageQueue();

        rootPath = Files.createTempDirectory("fileDiscovererTestDir");

        fileDiscoverer = new FileDiscoverer(rootPath, queue);

        TreeSet<PosixFilePermission> permissions = new TreeSet<>();
        PosixFilePermission[] perms = PosixFilePermission.values();

        for (PosixFilePermission p : perms) {<commit_msg>Removed warnings<commit_after>/**
 * 
 */
package org.carcv.core.impl.input;

import static org.junit.Assert.*;

import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.FileVisitor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileAttribute;
import java.nio.file.attribute.PosixFilePermission;
import java.util.Set;

import org.junit.After;
import org.junit.Ignore;

/**
 * @author oskopek
 * 
 */
@Ignore
public class DirectoryWatcherTest { //TODO 1 Make into DirectoryWatcher and Loader test 

    Path rootPath;
    /*
    private FileDiscoverer fileDiscoverer;

    private FileImageQueue queue;
     */
    @SuppressWarnings("unused")
    private FileAttribute<Set<PosixFilePermission>> permissions;

    /**
     * @throws java.lang.Exception
     */
    /*
    @Before
    public void setUp() throws Exception {
        queue = new FileImageQueue();

        rootPath = Files.createTempDirectory("fileDiscovererTestDir");

        fileDiscoverer = new FileDiscoverer(rootPath, queue);

        TreeSet<PosixFilePermission> permissions = new TreeSet<>();
        PosixFilePermission[] perms = PosixFilePermission.values();

        for (PosixFilePermission p : perms) {
{'fraction_non_alphanumeric': 0.10849909584086799, 'fraction_numerical': 0.0007233273056057866, 'mean_word_length': 3.752577319587629, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3753411', 'n_tokens_mistral': 839, 'n_tokens_neox': 814, 'n_words': 176}