<commit_before>package org.whitesource.agent.dependency.resolver.dotNet;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whitesource.agent.api.model.AgentProjectInfo;
import org.whitesource.agent.api.model.DependencyInfo;
import org.whitesource.agent.api.model.DependencyType;
import org.whitesource.agent.dependency.resolver.DependencyCollector;
import org.whitesource.agent.dependency.resolver.npm.NpmLsJsonDependencyCollector;
import org.whitesource.agent.hash.ChecksumUtils;
import org.whitesource.agent.utils.CommandLineProcess;
import org.whitesource.agent.utils.FilesUtils;

import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author raz.nitzan
 */
public class DotNetRestoreCollector extends DependencyCollector {

    /* --- Statics Members --- */

    private static final Logger logger = LoggerFactory.getLogger(NpmLsJsonDependencyCollector.class);

    public static final String DOTNET_RESTORE_TMP_DIRECTORY = Paths.get(System.getProperty("java.io.tmpdir"), "WhiteSource-DotnetRestore").toString();
    public static final String DOTNET_COMMAND = "dotnet";
    public static final String RESTORE = "restore";
    public static final String PACKAGES = "--packages";
    public static final String DOT_NET_RESTORE_WS = "DotNetRestoreWS";
    public static final String EMPTY_STRING = "";
    public static final String NUPKG = ".nupkg";
    public static final String BACK_SLASH = "\\";
    public static final String DOT = ".";
    private static String[] includes = {"**/*" + NUPKG};
    private static String[] excludes = {};

    /* --- Members --- */

    private int serialNumber = 0;
    private Collection<String> pathsToScan = new LinkedList<>();

    /* --- Constructors --- */

    public DotNetRestoreCollector() {
    }

    /* --- Public methods --- */<commit_msg>WSE-266 - Add Back slash to linux<commit_after>package org.whitesource.agent.dependency.resolver.dotNet;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whitesource.agent.api.model.AgentProjectInfo;
import org.whitesource.agent.api.model.DependencyInfo;
import org.whitesource.agent.api.model.DependencyType;
import org.whitesource.agent.dependency.resolver.DependencyCollector;
import org.whitesource.agent.dependency.resolver.npm.NpmLsJsonDependencyCollector;
import org.whitesource.agent.hash.ChecksumUtils;
import org.whitesource.agent.utils.CommandLineProcess;
import org.whitesource.agent.utils.FilesUtils;

import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author raz.nitzan
 */
public class DotNetRestoreCollector extends DependencyCollector {

    /* --- Statics Members --- */

    private static final Logger logger = LoggerFactory.getLogger(NpmLsJsonDependencyCollector.class);

    public static final String DOTNET_RESTORE_TMP_DIRECTORY = Paths.get(System.getProperty("java.io.tmpdir"), "WhiteSource-DotnetRestore").toString();
    public static final String DOTNET_COMMAND = "dotnet";
    public static final String RESTORE = "restore";
    public static final String PACKAGES = "--packages";
    public static final String DOT_NET_RESTORE_WS = "DotNetRestoreWS";
    public static final String EMPTY_STRING = "";
    public static final String NUPKG = ".nupkg";
    public static final String BACK_SLASH = isWindows() ? "\\" : "/";
    public static final String DOT = ".";
    private static String[] includes = {"**/*" + NUPKG};
    private static String[] excludes = {};

    /* --- Members --- */

    private int serialNumber = 0;
    private Collection<String> pathsToScan = new LinkedList<>();

    /* --- Constructors --- */

    public DotNetRestoreCollector() {
    }

    /* --- Public methods --- */
{'fraction_non_alphanumeric': 0.11935318275154004, 'fraction_numerical': 0.0023100616016427105, 'mean_word_length': 4.154761904761905, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '835055', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1130, 'n_words': 256}