<commit_before>﻿module canopy.classic.configuration

open canopy.classic.reporters
open canopy.types
open System

//location of drivers depending on OS
let folderByOSType =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX
    | PlatformID.Unix -> @"/usr/local/bin/"
    | _ -> @"c:\"

let folderByOSTypeChromium =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX
    | PlatformID.Unix -> @"/usr/lib/chromium-browser"
    | _ -> @"c:\"

let firefoxByOSType =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX -> @"/Applications/Firefox.app"
    | PlatformID.Unix -> @"/usr/lib/firefox-1.0" //unsure
    | _ -> @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    
//runner related
(* documented/configuration *)
let failFast = ref false
(* documented/configuration *)
let mutable failScreenshotPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\canopy\"
(* documented/configuration *)
let mutable failScreenshotFileName = fun (test : canopy.types.Test) (suite: canopy.types.suite) -> DateTime.Now.ToString("MMM-d_HH-mm-ss-fff")

(* documented/configuration *)
let mutable chromeDir = folderByOSType
(* documented/configuration *)
let mutable chromiumDir = folderByOSTypeChromium
(* documented/configuration *)
let mutable ieDir = folderByOSType
(* documented/configuration *)
let mutable safariDir = folderByOSType
(* documented/configuration *)
let mutable edgeDir = @"C:\Program Files (x86)\Microsoft Web Driver\"
(* documented/configuration *)
let mutable hideCommandPromptWindow = false<commit_msg>canopy2 - fix firefox on osx<commit_after>﻿module canopy.classic.configuration

open canopy.classic.reporters
open canopy.types
open System

//location of drivers depending on OS
let folderByOSType =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX
    | PlatformID.Unix -> @"/usr/local/bin/"
    | _ -> @"c:\"

let folderByOSTypeChromium =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX
    | PlatformID.Unix -> @"/usr/lib/chromium-browser"
    | _ -> @"c:\"

let firefoxByOSType =
    match System.Environment.OSVersion.Platform with
    | PlatformID.MacOSX
    | PlatformID.Unix ->
        if System.IO.File.Exists(@"/Applications/Firefox.app/Contents/MacOS/firefox-bin")
        then @"/Applications/Firefox.app/Contents/MacOS/firefox-bin" //osx
        else @"/usr/lib/firefox-2.0" //linux, unsure of correct path
    | _ -> @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"

//runner related
(* documented/configuration *)
let failFast = ref false
(* documented/configuration *)
let mutable failScreenshotPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\canopy\"
(* documented/configuration *)
let mutable failScreenshotFileName = fun (test : canopy.types.Test) (suite: canopy.types.suite) -> DateTime.Now.ToString("MMM-d_HH-mm-ss-fff")

(* documented/configuration *)
let mutable chromeDir = folderByOSType
(* documented/configuration *)
let mutable chromiumDir = folderByOSTypeChromium
(* documented/configuration *)
let mutable ieDir = folderByOSType
(* documented/configuration *)
let mutable safariDir = folderByOSType
(* documented/configuration *)
let mutable edgeDir = @"C:\Program Files (x86)\Microsoft Web Driver\"
(* documented/configuration *)
let mutable hideCommandPromptWindow = false
{'fraction_non_alphanumeric': 0.12317144528964306, 'fraction_numerical': 0.0038033937975424223, 'mean_word_length': 4.3421875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '7121084', 'n_tokens_mistral': 1057, 'n_tokens_neox': 1002, 'n_words': 218}