<commit_before>package peergos.server.storage;

import static peergos.server.util.Logging.LOG;

import peergos.server.util.*;
import peergos.shared.crypto.hash.*;
import peergos.shared.io.ipfs.api.*;
import peergos.shared.io.ipfs.cid.*;
import peergos.shared.io.ipfs.multihash.*;
import peergos.shared.util.*;

import java.io.*;
import java.net.*;
import java.nio.file.*;
import java.util.*;
import java.util.stream.*;

/**
 * A Utility for installing IPFS and associated plugins.
 */
public class IpfsInstaller {

    public enum DownloadTarget {
        DARWIN_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/darwin-amd64/ipfs?raw=true",
                Cid.decode("QmYcT1heV5dXe93CBtEcHipAjCNisf6nwjF11UKaA2ZYur")),
        DARWIN_ARM64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/darwin-arm64/ipfs?raw=true",
                Cid.decode("QmbJ72NSgd8Rw52o4hdUZRaxycxsNFbQ4Gm9HHGAaoLD9C")),
        LINUX_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-amd64/ipfs?raw=true",
                Cid.decode("Qmbr9CXHDp7ZxHrNxkag5zJZ9rH8thy72tRmYv16UyTr6i")),
        LINUX_ARM("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-arm/ipfs?raw=true",
                Cid.decode("QmaVQo4sP17bZauW6VrfTb2rBTqd1ArnfjzrCuqkrZC4me")),
        LINUX_ARM64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-arm64/ipfs?raw=true",
                Cid.decode("QmP3Ktno1p6wfsym1PmXh6jCE5oZRAEW3XA7u2n7Nfgwmp")),
        WINDOWS_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/windows-amd64/ipfs.exe?raw=true",
                Cid.decode("QmXW9ZLrzeaZwV2Vt8zUe74KkQQMj9PcKZzmThxeboqzcc")),;

        public final String url;
        public final Multihash multihash;<commit_msg>Fix ipfs metrics config<commit_after>package peergos.server.storage;

import static peergos.server.util.Logging.LOG;

import peergos.server.util.*;
import peergos.shared.crypto.hash.*;
import peergos.shared.io.ipfs.api.*;
import peergos.shared.io.ipfs.cid.*;
import peergos.shared.io.ipfs.multihash.*;
import peergos.shared.util.*;

import java.io.*;
import java.net.*;
import java.nio.file.*;
import java.util.*;
import java.util.stream.*;

/**
 * A Utility for installing IPFS and associated plugins.
 */
public class IpfsInstaller {

    public enum DownloadTarget {
        DARWIN_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/darwin-amd64/ipfs?raw=true",
                Cid.decode("QmafVLGzFBnNjuqjrkZo5kAEyLAh7zWZCbkUSxsvLp5KEz")),
        DARWIN_ARM64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/darwin-arm64/ipfs?raw=true",
                Cid.decode("QmZDvowxWyec22hYSnPZmDw8Kcnu61XYDmwiYS7kUnoFYd")),
        LINUX_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-amd64/ipfs?raw=true",
                Cid.decode("QmZQpfRbnkntYLQvU1junjsUFpXjjoVUTPsMDdh4U5Lu9m")),
        LINUX_ARM("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-arm/ipfs?raw=true",
                Cid.decode("QmYdJT6ipK5Myt9Fr99wutk1SgD9a581vpPx5VEVqiWMZP")),
        LINUX_ARM64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/linux-arm64/ipfs?raw=true",
                Cid.decode("Qme71G5rV5MxATZBm8GMWdwbC3AxtRyU7XMbCLiN2RVSkQ")),
        WINDOWS_AMD64("https://github.com/peergos/ipfs-nucleus-releases/blob/main/v0.2.6/windows-amd64/ipfs.exe?raw=true",
                Cid.decode("QmVuufN9hFKGJkAz2LGk9pYmjXbNQhDCJbS3ZTvGjJwNRu")),;

        public final String url;
        public final Multihash multihash;
{'fraction_non_alphanumeric': 0.14175399889685603, 'fraction_numerical': 0.04467733039161611, 'mean_word_length': 3.7473821989528795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1206650', 'n_tokens_mistral': 1675, 'n_tokens_neox': 1536, 'n_words': 124}