<commit_before>package peergos.server.tests;
import java.util.logging.*;

import peergos.server.*;
import peergos.server.tests.*;
import peergos.server.util.Args;
import peergos.server.util.Logging;

import org.junit.*;
import static org.junit.Assert.*;
import static java.util.UUID.*;

import peergos.shared.*;
import peergos.server.fuse.*;
import peergos.shared.user.*;
import peergos.shared.util.*;

import java.io.*;
import java.lang.*;
import java.nio.file.*;
import java.nio.file.attribute.FileTime;
import java.time.ZonedDateTime;
import java.util.*;
import java.util.stream.*;

public class FuseTests {
    private static final Logger LOG = Logging.LOG();
    public static int WEB_PORT = 8888;
    public static String username = "test02";
    public static String password = <PASSWORD>();
    public static Path mountPoint, home;
    public static FuseProcess fuseProcess;
    public static Random RANDOM = new Random(666);

    public static void setWebPort(int webPort) {
        WEB_PORT = webPort;
    }

    private static boolean isWindows() {
        return System.getProperty("os.name").toLowerCase().startsWith("windows");
    }

    @BeforeClass
    public static void init() throws Exception {
        if (isWindows())
            return;
        Args args = UserTests.buildArgs().with("useIPFS", "false");
        setWebPort(args.getInt("port"));
        LOG.info("Using web-port " + WEB_PORT);
        System.out.flush();

        Main.PKI_INIT.main(args);
        NetworkAccess network = Builder.buildLocalJavaNetworkAccess(WEB_PORT).get();
        UserContext userContext = PeergosNetworkUtils.ensureSignedUp(username, password, network, Main.initCrypto());

        Path mount = Files.createTempDirectory("peergos");
        String mountPath = args.getArg("mountPoint", mount.toString());

        mountPoint = PathUtil.get(mountPath);
        mountPoint = mountPoint.resolve(UUID.randomUUID().toString());
        mountPoint.toFile().mkdirs();
        home = mountPoint.resolve(username);<commit_msg>Disable FUSE tests on MacOS<commit_after>package peergos.server.tests;
import java.util.logging.*;

import peergos.server.*;
import peergos.server.tests.*;
import peergos.server.util.Args;
import peergos.server.util.Logging;

import org.junit.*;
import static org.junit.Assert.*;
import static java.util.UUID.*;

import peergos.shared.*;
import peergos.server.fuse.*;
import peergos.shared.user.*;
import peergos.shared.util.*;

import java.io.*;
import java.lang.*;
import java.nio.file.*;
import java.nio.file.attribute.FileTime;
import java.time.ZonedDateTime;
import java.util.*;
import java.util.stream.*;

public class FuseTests {
    private static final Logger LOG = Logging.LOG();
    public static int WEB_PORT = 8888;
    public static String username = "test02";
    public static String password = <PASSWORD>();
    public static Path mountPoint, home;
    public static FuseProcess fuseProcess;
    public static Random RANDOM = new Random(666);

    public static void setWebPort(int webPort) {
        WEB_PORT = webPort;
    }

    private static boolean isWindows() {
        return System.getProperty("os.name").toLowerCase().startsWith("windows");
    }
    private static boolean isMacos() {
        return System.getProperty("os.name").toLowerCase().startsWith("mac");
    }

    @BeforeClass
    public static void init() throws Exception {
        if (isWindows() || isMacos())
            return;
        Args args = UserTests.buildArgs().with("useIPFS", "false");
        setWebPort(args.getInt("port"));
        LOG.info("Using web-port " + WEB_PORT);
        System.out.flush();

        Main.PKI_INIT.main(args);
        NetworkAccess network = Builder.buildLocalJavaNetworkAccess(WEB_PORT).get();
        UserContext userContext = PeergosNetworkUtils.ensureSignedUp(username, password, network, Main.initCrypto());

        Path mount = Files.createTempDirectory("peergos");
        String mountPath = args.getArg("mountPoint", mount.toString());

        mountPoint = PathUtil.get(mountPath);
        mountPoint = mountPoint.resolve(UUID.randomUUID().toString());
        mountPoint.toFile().mkdirs();
        home = mountPoint.resolve(username);
{'fraction_non_alphanumeric': 0.1263082778306375, 'fraction_numerical': 0.004281636536631779, 'mean_word_length': 3.575625680087051, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '354508', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1204, 'n_words': 284}