<commit_before>// Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

/// Coordinating compiler operations - configuration, loading initial context, reporting errors etc.
module internal Microsoft.FSharp.Compiler.ReferenceLoading.PaketHandler

type ReferenceLoadingResult =
| Solved of loadingScript: string
| PackageManagerNotFound of implicitIncludeDir: string * userProfile: string
| PackageResolutionFailed of toolPath: string * workingDir: string * msg : string

module Internals =
    open System
    open System.IO
    let PM_EXE = "paket.exe"
    let PM_DIR = ".paket"
    let PM_SPEC_FILE = "paket.dependencies"
    let PM_LOCK_FILE = "paket.lock"
    let PM_COMMAND = "install --generate-load-scripts"
    let PM_LOADSCRIPT = PM_DIR + "/load/main.group.fsx"

    let userProfile = 
        let res = Environment.GetEnvironmentVariable("USERPROFILE")
        if System.String.IsNullOrEmpty res then
            Environment.GetEnvironmentVariable("HOME")<commit_msg>Only generate F# load scripts<commit_after>// Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

/// Coordinating compiler operations - configuration, loading initial context, reporting errors etc.
module internal Microsoft.FSharp.Compiler.ReferenceLoading.PaketHandler

type ReferenceLoadingResult =
| Solved of loadingScript: string
| PackageManagerNotFound of implicitIncludeDir: string * userProfile: string
| PackageResolutionFailed of toolPath: string * workingDir: string * msg : string

module Internals =
    open System
    open System.IO
    let PM_EXE = "paket.exe"
    let PM_DIR = ".paket"
    let PM_SPEC_FILE = "paket.dependencies"
    let PM_LOCK_FILE = "paket.lock"
    let PM_COMMAND = "install --generate-load-scripts load-script-type fsx"
    let PM_LOADSCRIPT = PM_DIR + "/load/main.group.fsx"

    let userProfile = 
        let res = Environment.GetEnvironmentVariable("USERPROFILE")
        if System.String.IsNullOrEmpty res then
            Environment.GetEnvironmentVariable("HOME")
{'fraction_non_alphanumeric': 0.07782276203328835, 'fraction_numerical': 0.001799370220422852, 'mean_word_length': 3.997752808988764, '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': '3822457', 'n_tokens_mistral': 609, 'n_tokens_neox': 596, 'n_words': 191}