<commit_before>import tmrm = require('azure-pipelines-task-lib/mock-run');

import {VersionInfo} from '../pe-parser/VersionResource'
import { isRegExp } from 'util';
	
export function registerNugetToolGetterMock(tmr: tmrm.TaskMockRunner) {
    tmr.registerMock('packaging-common/nuget/NuGetToolGetter', {
        getNuGet: function(versionSpec) {
            return "c:\\from\\tool\\installer\\nuget.exe";
        },
        cacheBundledNuGet: function(version, path){
            return version;
        },
        FORCE_NUGET_4_0_0: 'FORCE_NUGET_4_0_0',
        NUGET_VERSION_4_0_0: '4.0.0',
        NUGET_VERSION_4_0_0_PATH_SUFFIX: 'NuGet/4.0.0/',
        DEFAULT_NUGET_VERSION: '4.1.0',
        DEFAULT_NUGET_PATH_SUFFIX: 'NuGet/4.1.0/',
        NUGET_EXE_TOOL_PATH_ENV_VAR: "NuGetExeToolPath"
    } )
}

export function registerNugetToolGetterMockUnix(tmr: tmrm.TaskMockRunner) {
    tmr.registerMock('packaging-common/nuget/NuGetToolGetter', {
        getNuGet: function(versionSpec) {
            return '~/myagent/_work/_tasks/NuGet/nuget.exe';
        },
        cacheBundledNuGet: function(version, path){
            return version;
        },<commit_msg>removed unused require<commit_after>import tmrm = require('azure-pipelines-task-lib/mock-run');

import {VersionInfo} from '../pe-parser/VersionResource'
	
export function registerNugetToolGetterMock(tmr: tmrm.TaskMockRunner) {
    tmr.registerMock('packaging-common/nuget/NuGetToolGetter', {
        getNuGet: function(versionSpec) {
            return "c:\\from\\tool\\installer\\nuget.exe";
        },
        cacheBundledNuGet: function(version, path){
            return version;
        },
        FORCE_NUGET_4_0_0: 'FORCE_NUGET_4_0_0',
        NUGET_VERSION_4_0_0: '4.0.0',
        NUGET_VERSION_4_0_0_PATH_SUFFIX: 'NuGet/4.0.0/',
        DEFAULT_NUGET_VERSION: '4.1.0',
        DEFAULT_NUGET_PATH_SUFFIX: 'NuGet/4.1.0/',
        NUGET_EXE_TOOL_PATH_ENV_VAR: "NuGetExeToolPath"
    } )
}

export function registerNugetToolGetterMockUnix(tmr: tmrm.TaskMockRunner) {
    tmr.registerMock('packaging-common/nuget/NuGetToolGetter', {
        getNuGet: function(versionSpec) {
            return '~/myagent/_work/_tasks/NuGet/nuget.exe';
        },
        cacheBundledNuGet: function(version, path){
            return version;
        },
{'fraction_non_alphanumeric': 0.12348353552859619, 'fraction_numerical': 0.02079722703639515, 'mean_word_length': 3.0156521739130433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5522600', 'n_tokens_mistral': 846, 'n_tokens_neox': 818, 'n_words': 100}