<commit_before>﻿// --------------------------------------------------------------------------------------
// Test that the documentation is generated correctly withtout F# errors 
// --------------------------------------------------------------------------------------
namespace FSharp.Data.Tests.Documentation

open FsUnit
open NUnit.Framework
open System
open System.IO
open System.Reflection
open FSharp.Literate
open FSharp.CodeFormat

module DocumentationTests = 

  // Initialization of the test - lookup the documentation files,
  // create temp folder for the output and load the F# compiler DLL
  let template = Path.Combine(__SOURCE_DIRECTORY__, "../../tools/template.html")
  let sources = Path.Combine(__SOURCE_DIRECTORY__, "../../samples")
  let output = Path.Combine(Path.GetTempPath(), "FSharp.Data.Docs")
  if Directory.Exists(output) then Directory.Delete(output, true)
  Directory.CreateDirectory(output) |> ignore

  // Lookup compiler DLL
  let locations = 
    [ "%ProgramFiles%\\Microsoft SDKs\\F#\\3.0\\Framework\\v4.0\\FSharp.Compiler.dll"<commit_msg>alow tests that access the network to work when you're behind a proxy<commit_after>﻿// --------------------------------------------------------------------------------------
// Test that the documentation is generated correctly withtout F# errors 
// --------------------------------------------------------------------------------------
namespace FSharp.Data.Tests.Documentation

open FsUnit
open NUnit.Framework
open System
open System.IO
open System.Net
open System.Reflection
open FSharp.Literate
open FSharp.CodeFormat

module DocumentationTests = 

  //alow tests that access the network to work when you're behind a proxy
  WebRequest.DefaultWebProxy.Credentials <- CredentialCache.DefaultNetworkCredentials

  // Initialization of the test - lookup the documentation files,
  // create temp folder for the output and load the F# compiler DLL
  let template = Path.Combine(__SOURCE_DIRECTORY__, "../../tools/template.html")
  let sources = Path.Combine(__SOURCE_DIRECTORY__, "../../samples")
  let output = Path.Combine(Path.GetTempPath(), "FSharp.Data.Docs")
  if Directory.Exists(output) then Directory.Delete(output, true)
  Directory.CreateDirectory(output) |> ignore

  // Lookup compiler DLL
  let locations = 
    [ "%ProgramFiles%\\Microsoft SDKs\\F#\\3.0\\Framework\\v4.0\\FSharp.Compiler.dll"
{'fraction_non_alphanumeric': 0.23563941299790356, 'fraction_numerical': 0.0033542976939203353, 'mean_word_length': 2.2113055181695827, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7319354', 'n_tokens_mistral': 609, 'n_tokens_neox': 575, 'n_words': 178}