commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
358b52560bb365db7913da2c612f5a6b40503421 | src/Canopy.Mobile/Selectors.fs | src/Canopy.Mobile/Selectors.fs | [<AutoOpen>]
module canopy.mobile.selectors
/// Using conventions convert a string representing a selector to a Selenium By
//todo there are probably many more examples to expand on
let toBy (selector : string) =
if selector.StartsWith("#") then
OpenQA.Selenium.By.Id(selector.Replace("#", "android:id/"))... | [<AutoOpen>]
module canopy.mobile.selectors
/// Selector Conventions that determine if a selector matches a pattern and if it does what the resulting By is
let mutable selectorConventions =
[
fun (selector : string) -> if selector.StartsWith("#") then Some (OpenQA.Selenium.By.Id(selector.Replace("#", "and... | Clean up the implementation of selectors and make it extensible | Clean up the implementation of selectors and make it extensible
| F# | mit | fsprojects/Canopy.Mobile |
5bcaf3f47932564594703b963cb2bd5a11a50050 | src/Bson/BsonSerializer.fs | src/Bson/BsonSerializer.fs | (* Copyright (c) 2015 Max Hirschhorn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | (* Copyright (c) 2015 Max Hirschhorn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Use a more correct Serialize() implementation. | Use a more correct Serialize() implementation.
| F# | apache-2.0 | visemet/FSharp.Data.Bson |
5787ab72f7b45b729f2bab75261ad6b02245c4ad | Roll/Roller.fs | Roll/Roller.fs | module Roller
open Statements
let r = System.Random()
let rec ResolveBase spec outputFunc =
match spec with
| Roll(dice, size, plus) ->
[for _ in 1..dice -> 1 + r.Next(size)] |> Seq.sum |> (+) plus
| Sum rolls ->
let rolls = [for roll in rolls -> ResolveBase roll outpu... | module Roller
open Statements
let r = System.Random()
let rec ResolveBase spec outputFunc =
match spec with
| Roll(dice, size, plus) ->
[for _ in 1..dice -> 1 + r.Next(size)] |> Seq.sum |> (+) plus
| Sum rolls ->
let rolls = [for roll in rolls -> ResolveBase roll outpu... | Make repeat not print the crit values in output | Make repeat not print the crit values in output
| F# | mit | MaxWilson/Roll |
0084f7aca5b5fd3281e68af008adc086c39507eb | IntelliFactory.WebSharper.JQueryUI/Dependencies.fs | IntelliFactory.WebSharper.JQueryUI/Dependencies.fs | // $begin{copyright}
//
// This file is confidential and proprietary.
//
// Copyright (c) IntelliFactory, 2004-2009.
//
// All rights reserved. Reproduction or use in whole or in part is
// prohibited without the written consent of the copyright holder.
//--------------------------------------------------------------... | // $begin{copyright}
//
// This file is confidential and proprietary.
//
// Copyright (c) IntelliFactory, 2004-2009.
//
// All rights reserved. Reproduction or use in whole or in part is
// prohibited without the written consent of the copyright holder.
//--------------------------------------------------------------... | Fix library version to 1.10.3 and change CDN url. | Fix library version to 1.10.3 and change CDN url.
| F# | apache-2.0 | intellifactory/websharper.jqueryui,endeavour/websharper.jqueryui |
650df341c4a1316b9089660d5788a23e8ff687a9 | tests/fsharpqa/Source/TypeProviders/Arrays/E_ArrayRank02.fsx | tests/fsharpqa/Source/TypeProviders/Arrays/E_ArrayRank02.fsx | // #Regression #TypeProvider #Arrays
// This is regression test for DevDiv:213995
// TP limit array rank to 4
//<Expects status="error" span="(6,6-6,7)" id="FS3138">F# supports a maximum array rank of 4$</Expects>
type X = N.T<"System.String", 5>
let _ = typeof<X>
exit 0
| // #Regression #TypeProvider #Arrays
// This is regression test for DevDiv:213995
//<Expects status="error" span="(5,10-5,34)" id="FS3033">System\.String\[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\].*has too many dimensions</Expects>
type X = N.T<"System.String", 35>
let _ = typeof<X>
exit 0
| Patch TP test covering array ranks | Patch TP test covering array ranks
| F# | mit | dsyme/fsharp,ncave/FSharp.Compiler.Service,forki/fsharp,dsyme/FSharp.Compiler.Service,BillHally/FSharp.Compiler.Service,matthid/FSharp.Compiler.Service,Heather/fsharp,alexischr/fsharp,dsyme/fsharp,vasily-kirichenko/FSharp.Compiler.Service,In2TheWild/fsharp,rojepp/FSharp.Compiler.Service,forki/FSharp.Compiler.Service,cl... |
d59bdddf3a65bca51f4e141a7009a71e3a309380 | build-zafir.fsx | build-zafir.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("Zafir.Google.Maps.MarkerClusterer")
.VersionFrom("Zafir")
.WithFSharpVersion(FSharpVersion.FSharp30)
.WithFramework(fun fw -> fw.Net40)
.References(fun r ->
[
r.Assembly ... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("Zafir.Google.Maps.MarkerClusterer")
.VersionFrom("Zafir")
.WithFSharpVersion(FSharpVersion.FSharp30)
.WithFramework(fun fw -> fw.Net40)
.References(fun r ->
[
r.Assembly ... | Add latest flag to build | Add latest flag to build
| F# | apache-2.0 | intellifactory/websharper.google.maps.markerclusterer |
1829c733d9f00551522d7b8115bce71af37b0cb9 | Rezoom.SQL/Backend.fs | Rezoom.SQL/Backend.fs | namespace Rezoom.SQL
open System
open System.Data
open System.Data.Common
open System.Collections.Generic
open Rezoom.SQL.Mapping
open Rezoom.SQL
open FSharp.Quotations
type IParameterIndexer =
abstract member ParameterIndex : parameter : BindParameter -> int
type ParameterTransform =
{ ParameterType : DbT... | namespace Rezoom.SQL
open System
open System.Data
open System.Data.Common
open System.Collections.Generic
open Rezoom.SQL.Mapping
open Rezoom.SQL
open FSharp.Quotations
type IParameterIndexer =
abstract member ParameterIndex : parameter : BindParameter -> int
type ParameterTransform =
{ ParameterType : DbT... | Fix backend bug generating code accepting optional parameters. | Fix backend bug generating code accepting optional parameters.
| F# | mit | rspeele/Rezoom.SQL |
a8960bf27220ccddd1fc1d15dc8f182a584773ab | src/src/Markify.Document/DocumentHelper.fs | src/src/Markify.Document/DocumentHelper.fs | namespace Markify.Document
open System
open System.IO
open Markify.Models.Documents
open Markify.Models.Definitions
module DocumentHelper =
let convertNameToPath (fullname : string) =
let parts = fullname.Split ('.')
let path = String.Join ("\\", parts, 0, parts.Length - 1)
sprintf @"%s\... | namespace Markify.Document
open System
open System.IO
open Markify.Models.Documents
open Markify.Models.Definitions
module DocumentHelper =
let convertNameToPath (fullname : string) =
let parts = fullname.Split ('.')
match parts.Length with
| 1 -> String.Empty
| _ -> sprintf @"%s... | Fix wrong folder page when a file is at the root directory of a project | Fix wrong folder page when a file is at the root directory of a project
| F# | mit | Julien-Pires/Markify |
80b860773e3a0a47144f7f687f2eb4fc57cc7eb3 | build.fsx | build.fsx | #r "packages/FAKE/tools/FakeLib.dll"
#load "Shared.fsx"
#load "TS.fsx"
open Fake
open TS
open System
open System.IO
Target "Run" (fun _ ->
// For typescript only generate for Dom
TS.EmitDomWeb()
TS.EmitDomWorker()
)
let testFile file =
let baseline = File.ReadAllText("./baselines/" + file)
let ne... | #r "packages/FAKE/tools/FakeLib.dll"
#load "Shared.fsx"
#load "TS.fsx"
open Fake
open TS
open System
open System.IO
Target "Run" (fun _ ->
// For typescript only generate for Dom
TS.EmitDomWeb()
TS.EmitDomWorker()
)
let testFile file =
let baseline = File.ReadAllText("./baselines/" + file).Replace("\... | Fix line ending in test | Fix line ending in test
| F# | apache-2.0 | Microsoft/TSJS-lib-generator,Microsoft/TSJS-lib-generator |
9fa8573fb4f5e58cddb02fa41932c50626625237 | build.fsx | build.fsx | #load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.DotNet.NuGet
open Fake.IO
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
Target.create "Clean" (fun _ ->
!! "src/**/bin"
++ "src/**/obj"
++ "Tests/**/bin"
++ "Tests/**/obj... | #load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.DotNet.NuGet
open Fake.IO
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
Target.create "Clean" (fun _ ->
!! "src/**/bin"
++ "src/**/obj"
++ "Tests/**/bin"
++ "Tests/**/obj... | Build script: added a few spaces... | Build script: added a few spaces...
| F# | bsd-2-clause | danm-de/Fractions,danm-de/Fractions |
a94dbf2add70fa2981f327b869d5f08baee97adc | build-helpers.fsx | build-helpers.fsx | module BuildHelpers
open Fake
open Fake.XamarinHelper
open System
open System.IO
open System.Linq
let Exec command args =
let result = Shell.Exec(command, args)
if result <> 0 then failwithf "%s exited with error %d" command result
let RestorePackages solutionFile =
printfn "~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | module BuildHelpers
open Fake
open Fake.XamarinHelper
open System
open System.IO
open System.Linq
let Exec command args =
let result = Shell.Exec(command, args)
if result <> 0 then failwithf "%s exited with error %d" command result
let RestorePackages solutionFile =
printfn "~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Build counter for build procdure | Build counter for build procdure
| F# | apache-2.0 | arst/PilQ |
93541f5cfa7663b2dd35dce81f5a508573481202 | src/app/AssemblyInfo.Common.fs | src/app/AssemblyInfo.Common.fs | module AssemblyInfo
open System.Reflection
let [<Literal>] private Version = "0.9.0.0"
[<assembly: AssemblyProductAttribute ("Slumber")>]
[<assembly: AssemblyVersion (Version)>]
[<assembly: AssemblyFileVersion (Version)>]
do () | module AssemblyInfo
open System.Reflection
let [<Literal>] private Version = "0.9.0.1"
[<assembly: AssemblyProductAttribute ("Slumber")>]
[<assembly: AssemblyVersion (Version)>]
[<assembly: AssemblyFileVersion (Version)>]
do () | Update assembly versions to 0.9.0.1. | Update assembly versions to 0.9.0.1.
| F# | mit | wattsm/slumber |
df0f14bf861366651f10d4bccef06039ae1c2da4 | src/Providers.fs | src/Providers.fs | namespace global
open System.Runtime.CompilerServices
[<assembly:InternalsVisibleToAttribute("FSharp.Data.Tests.DesignTime")>]
[<assembly:InternalsVisibleToAttribute("FSharp.Data.Experimental")>]
do()
| namespace global
open System.Runtime.CompilerServices
[<assembly:InternalsVisibleToAttribute("FSharp.Data.Experimental")>]
do()
| Update ns to reflect NameUtils assembly move | Update ns to reflect NameUtils assembly move | F# | apache-2.0 | tpetricek/FSharp.Data,taylorwood/FSharp.Data,AtwooTM/FSharp.Data,scrwtp/FSharp.Data,olgierdd/FSharp.Data,ImaginaryDevelopment/FSharp.Data,NaseUkolyCZ/ApiaryProvider,tpetricek/FSharp.Data,AtwooTM/FSharp.Data,AtwooTM/FSharp.Data,scrwtp/FSharp.Data,ImaginaryDevelopment/FSharp.Data,ImaginaryDevelopment/FSharp.Data,taylorwo... |
dc5548fd5235f2b3ec585487709883104dc55f6f | Rezoom.SQL/DefaultBackend.fs | Rezoom.SQL/DefaultBackend.fs | namespace Rezoom.SQL
open System
open System.Data
open System.Collections.Generic
open System.Globalization
open Rezoom.SQL
open Rezoom.SQL.Mapping
open Rezoom.SQL.BackendUtilities
open Rezoom.SQL.Translators
type DefaultBackend() =
static let initialModel =
let main, temp = Name("main"), Name("temp")
... | namespace Rezoom.SQL
open System
open System.Data
open System.Collections.Generic
open System.Globalization
open Rezoom.SQL
open Rezoom.SQL.Mapping
open Rezoom.SQL.BackendUtilities
open Rezoom.SQL.Translators
type DefaultBackend() =
static let initialModel =
let main, temp = Name("main"), Name("temp")
... | Use default functions in default backend. | Use default functions in default backend.
| F# | mit | rspeele/Rezoom.SQL |
e00d27f58f5f87dc7e128efd921efcdf34c5135e | sum-of-multiples/SumOfMultiplesTest.fs | sum-of-multiples/SumOfMultiplesTest.fs | module SumOfMultiplesTest
open NUnit.Framework
open SumOfMultiples
[<TestFixture>]
type SumOfMultiplesTest() =
let mutable sumOfMultiples = SumOfMultiples()
[<Test>]
member tc.Sum_to_1() =
Assert.That(sumOfMultiples.To(0), Is.EqualTo(0))
[<Test>]
[<Ignore>]
member tc.Sum_to_3() ... | module SumOfMultiplesTest
open NUnit.Framework
open SumOfMultiples
[<TestFixture>]
type SumOfMultiplesTest() =
[<Test>]
member tc.Sum_to_1() =
Assert.That(SumOfMultiples().To(0), Is.EqualTo(0))
[<Test>]
[<Ignore>]
member tc.Sum_to_3() =
Assert.That(SumOfMultiples().To(3), Is.Equal... | Remove immutable value from test file | Remove immutable value from test file
| F# | mit | ErikSchierboom/xfsharp,ErikSchierboom/fsharp,exercism/xfsharp |
2e3856cdce602a8402bf96c28a9bc7ffe2ac755e | A-vs-An/ConvertToInlineDict.fsx | A-vs-An/ConvertToInlineDict.fsx | #r @"WikipediaAvsAnTrieExtractor\bin\Release\WikipediaAvsAnTrieExtractor.exe"
#r @"WikipediaAvsAnTrieExtractor\bin\Release\AvsAn.dll"
#r @"WikipediaAvsAnTrieExtractor\bin\Release\ExpressionToCodeLib.dll"
open System.IO
open System
open System.Text
open WikipediaAvsAnTrieExtractor
open AvsAnLib
open AvsAnLib.... | #r @"WikipediaAvsAnTrieExtractor\bin\Release\WikipediaAvsAnTrieExtractor.exe"
#r @"WikipediaAvsAnTrieExtractor\bin\Release\AvsAn.dll"
#r @"WikipediaAvsAnTrieExtractor\bin\Release\ExpressionToCodeLib.dll"
open System.IO
open System
open System.Text
open WikipediaAvsAnTrieExtractor
open AvsAnLib
open AvsAnLib.... | Update script to latest API | Update script to latest API
| F# | apache-2.0 | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an |
d4e0ee0e53dde39f699e33796bb9f55a866e09d1 | src/app/FakeLib/Git/Staging.fs | src/app/FakeLib/Git/Staging.fs | [<AutoOpen>]
/// Contains helper functions which allow to deal with git's staging area.
module Fake.Git.Staging
/// Adds a file to the staging area
let StageFile repositoryDir file =
file
|> fixPath
|> sprintf "update-index --add \"%s\""
|> runGitCommand repositoryDir | [<AutoOpen>]
/// Contains helper functions which allow to deal with git's staging area.
module Fake.Git.Staging
open Fake
/// Adds a file to the staging area
let StageFile repositoryDir file =
file
|> fixPath
|> sprintf "update-index --add \"%s\""
|> runGitCommand repositoryDir
/// Adds all files t... | Allow to stage all files in git | Allow to stage all files in git
| F# | apache-2.0 | neoeinstein/FAKE,xavierzwirtz/FAKE,hitesh97/FAKE,featuresnap/FAKE,JonCanning/FAKE,brianary/FAKE,ArturDorochowicz/FAKE,Kazark/FAKE,gareth-evans/FAKE,RMCKirby/FAKE,Kazark/FAKE,ArturDorochowicz/FAKE,beeker/FAKE,gareth-evans/FAKE,JonCanning/FAKE,rflechner/FAKE,molinch/FAKE,yonglehou/FAKE,ilkerde/FAKE,pacificIT/FAKE,warnerg... |
a2a218ba0c7e2e86ea045a528b3697bde4ce4f8c | src/ProtoTypes.Tests/ProtoTypesTests.fs | src/ProtoTypes.Tests/ProtoTypesTests.fs | [<NUnit.Framework.TestFixture>]
module ProtoTypes.Tests
open System
open NUnit.Framework
open FsUnit
type Proto = ProtoTypes.ProtocolBuffersTypeProvider<"proto/person.proto">
type Sample = Proto.ProtoTypes.Sample
[<Test>]
let ``Person test``() =
let address = Sample.Person.Address("Street", 12, [1... | [<NUnit.Framework.TestFixture>]
module ProtoTypes.Tests
open System
open NUnit.Framework
open FsUnit
open Froto.Core
type Proto = ProtoTypes.ProtocolBuffersTypeProvider<"proto/person.proto">
type Sample = Proto.ProtoTypes.Sample
[<Test>]
let ``Person test``() =
let address = Sample.Person.Addre... | Add simple test to check that serialization doesn't fail | Add simple test to check that serialization doesn't fail
| F# | mit | takemyoxygen/ProtoTypes |
c4ec7a7083950ef2a9c8adebdc62c17bb5a91a19 | docs/content/fun.fsx | docs/content/fun.fsx | (*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use
// it to define helpers that you do not want to show in the documentation.
#I "../../bin"
#r "Pfarah.dll"
open Pfarah
open Pfarah.Operators
open System
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
let data = ParaValue.Lo... | (*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use
// it to define helpers that you do not want to show in the documentation.
#I "../../bin"
#r "Pfarah.dll"
open Pfarah
open Pfarah.Operators
open System
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
let data = ParaValue.Lo... | Add analysis of possible starting tags | Add analysis of possible starting tags
| F# | mit | nickbabcock/Pfarah,nickbabcock/Pfarah |
c02cf7604252f166a8e161362abe0adc2de9a2ec | board-qemu/slof/archsupport.fs | board-qemu/slof/archsupport.fs | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | Increase temporary buffer size of ibm,client-architecture-support call | Increase temporary buffer size of ibm,client-architecture-support call
The buffer size that we currently use for the client-architecture-
support call currently only works if there is not more than 1 TiB
of hot-pluggable RAM for the guest. This will likely not be enough
in the near future, so increase the buffer size ... | F# | bsd-3-clause | stefanberger/SLOF-tpm,aik/SLOF,aik/SLOF,open-power-host-os/slof,open-power-host-os/slof,stefanberger/SLOF-tpm,qemu/SLOF,qemu/SLOF,aik/SLOF,stefanberger/SLOF-tpm,qemu/SLOF,open-power-host-os/slof,open-power-host-os/slof |
0e464942a40a6e839a8402e4b789ee82d8d8d1e1 | src/app/FAKE/CommandlineParams.fs | src/app/FAKE/CommandlineParams.fs | module CommandlineParams
open Fake
let printAllParams() = printfn "FAKE.exe [buildScript] [Target] Variable1=Value1 Variable2=Value2 ... "
let parseArgs cmdArgs =
let splitter = [|'='|]
cmdArgs
|> Seq.skip 1
|> Seq.mapi (fun (i:int) (arg:string) ->
if arg.Contains "=" then
... | module CommandlineParams
open Fake
let printAllParams() = printfn "FAKE.exe [buildScript]"
let parseArgs cmdArgs =
let splitter = [|'='|]
cmdArgs
|> Seq.skip 1
|> Seq.map (fun (a:string) ->
if a.Contains "=" then
let s = a.Split splitter
... | Revert "assume second argument is "Target" if no key=value supplied" | Revert "assume second argument is "Target" if no key=value supplied"
This reverts commit 7ca79e5e17b730d91a14518be1d8ffca46350d26.
| F# | apache-2.0 | hitesh97/FAKE,pmcvtm/FAKE,wooga/FAKE,rflechner/FAKE,naveensrinivasan/FAKE,mfalda/FAKE,MichalDepta/FAKE,neoeinstein/FAKE,ovu/FAKE,philipcpresley/FAKE,modulexcite/FAKE,dmorgan3405/FAKE,gareth-evans/FAKE,neoeinstein/FAKE,molinch/FAKE,jayp33/FAKE,MichalDepta/FAKE,MiloszKrajewski/FAKE,RMCKirby/FAKE,darrelmiller/FAKE,warnerg... |
c4ef7da8d942f76b765a915b45dc797c7f98f5fb | Tests/AdHocTests/BuilderTests.fs | Tests/AdHocTests/BuilderTests.fs | // Copyright (C) by Vesa Karvonen
module BuilderTests
open Hopac
open System
open System.Threading.Tasks
// This is a compile only test.
let testSyntax (xT: Task<IDisposable>)
(t: Task)
(xA: Async<int>)
(xs: seq<float>)
(uJ: Job<unit>) = job {
let! _ = x... | // Copyright (C) by Vesa Karvonen
module BuilderTests
open Hopac
open System
open System.Threading.Tasks
// This is a compile only test.
let testSyntax (xT: Task<IDisposable>)
(xE: IEvent<int>)
(xO: IObservable<float>)
(t: Task)
(xA: Async<int>)
... | Test that events and observables can be bound. | Test that events and observables can be bound.
| F# | mit | Hopac/Hopac,Hopac/Hopac,jacqueline-homan/Hopac,panesofglass/Hopac,jacqueline-homan/Hopac,panesofglass/Hopac |
ef12903f8e42bdc78233cd5e94805557328c66cf | 3/src/mf/mf.fs | 3/src/mf/mf.fs | S" pass1.fs" included
| S" pass1.fs" included
\ The new colon compiler starts here. It's technically part of
\ pass 1 implementation, but ; drives subsequent passes as well.
host definitions
: :0 buf0 fi0 ni0 label0 ;
: :, :0 bl word drop ;
: ;, rfs, ;
target definitions
:: : :, ;;
:: ; ;, ;;
host definitions
| Fix spurious DROP at start of each colon def | Fix spurious DROP at start of each colon def
| F# | mpl-2.0 | KestrelComputer/kestrel,8l/kestrel,KestrelComputer/kestrel,8l/kestrel,8l/kestrel,8l/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,8l/kestrel,sam-falvo/kestrel,8l/kestrel,KestrelComputer/kestrel |
6ac00b2ff825a1c9511a68e3e47737dd0477be8b | src/Bson/BsonDocumentRegistry.fs | src/Bson/BsonDocumentRegistry.fs | namespace BsonProvider.Runtime
open System.Collections.Generic
open MongoDB.Bson
[<RequireQualifiedAccess>]
module DocumentRegistry =
let private dict = Dictionary<string, seq<BsonDocument>>()
let Add = dict.Add
let Remove = dict.Remove
let Clear = dict.Clear
let GetValue key = dict.[key]
... | namespace BsonProvider.Runtime
open System.Collections.Generic
open MongoDB.Bson
[<RequireQualifiedAccess>]
module DocumentRegistry =
let private dict = Dictionary<string, seq<BsonDocument>>()
let Add key samples = dict.Add(key, samples)
let Remove key = dict.Remove key
let Clear() = dict.Clear()
... | Fix type signatures of document registry. | Fix type signatures of document registry.
| F# | apache-2.0 | visemet/FSharp.Data.Bson |
f309abf8c697739a4d3944b787c0dc14ef88c795 | src/CustomTargets.fsx | src/CustomTargets.fsx | open Fake
Target "Dotnet Restore" (fun _ ->
DotNetCli.Restore(fun p ->
{ p with
Project = ".\\SFA.DAS.UrlHelper" })
) | open Fake
Target "Dotnet Restore" (fun _ ->
DotNetCli.Restore(fun p ->
{ p with
Project = ".\\SFA.DAS.UrlHelper" })
DotNetCli.Restore(fun p ->
{ p with
Project = ".\\SFA.DAS.ProviderUrlHelperTests" })
) | Add nuget restore to the URL helper test project | Add nuget restore to the URL helper test project
| F# | mit | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice |
c3aabaaffaa636d461db9d8ead200e569b1de086 | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("IntelliFactory.WebSharper.JQuery.Mobile", "2.5").References(fun r ->
[
r.Assembly "System.Runtime.Serialization"
r.Assembly "System.ServiceModel.Web"
r.Assembly "System.Web"
... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.JQuery.Mobile", "2.5").References(fun r ->
[
r.Assembly "System.Runtime.Serialization"
r.Assembly "System.ServiceModel.Web"
r.Assembly "System.Web"
r.Asse... | Remove IntelliFactory prefix from package name. | Remove IntelliFactory prefix from package name.
| F# | apache-2.0 | intellifactory/websharper.jquerymobile,intellifactory/websharper.jquerymobile |
dabc152ba9e9bab126165955612b5a2f0349a8b7 | grnline.fs/Program.fs | grnline.fs/Program.fs | open System.IO
open System.Text
open Type
open CommandLineParser
open Process
let validate_environment config =
if not <| check_groonga(config) then
"Groonga does not exist specified path: " + config.Path |> printfn "%s"
exit 1
if not <| check_dbpath(config) then
"Groonga database doe... | open System.IO
open System.Text
open Type
open CommandLineParser
open Process
let validate_environment config =
if not <| check_groonga(config) then
"Groonga does not exist specified path: " + config.Path |> printfn "%s"
exit 1
if not <| check_dbpath(config) then
"Groonga database doe... | Use ex.Message to print help and usage | Use ex.Message to print help and usage
ex.Message contains error information which is very useful!!
| F# | mit | cosmo0920/grnline.fs |
5e1ab45c6dc2091f0c4ee6e2eb1ad8ba1247f2b5 | src/build/WebSharper.Build/Config.fs | src/build/WebSharper.Build/Config.fs | // $begin{copyright}
//
// This file is part of WebSharper
//
// Copyright (c) 2008-2014 IntelliFactory
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License. You may
// obtain a copy of the License at
//
// http://www.apache.org/li... | // $begin{copyright}
//
// This file is part of WebSharper
//
// Copyright (c) 2008-2014 IntelliFactory
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License. You may
// obtain a copy of the License at
//
// http://www.apache.org/li... | Set package version to rc1 | Set package version to rc1
| F# | apache-2.0 | intellifactory/websharper,intellifactory/websharper,Tarmil/websharper,Tarmil/websharper,Tarmil/websharper,intellifactory/websharper,Tarmil/websharper,intellifactory/websharper |
ddf78cea88fa8fcd647e8daeec282c7cc35dddc5 | TreasureHunt/Fitness.fs | TreasureHunt/Fitness.fs | module Fitness
type Position = Position of int * int
type Content = Empty | Treasure | Wall
type Site = Position * Content
type Situation = {current:Site; north:Site; south:Site; west:Site; east:Site}
type ActionOutcome = {fitness:int; nextPosition:Position}
type Action = Pick | StayPut | ... | module Fitness
type Position = Position of int * int
type Content = Empty | Treasure | Wall
type Site = Position * Content
type Situation = {current:Site; north:Site; south:Site; west:Site; east:Site}
type ActionOutcome = {fitness:int; nextPosition:Position}
type Action = Pick | StayPut | ... | Simplify match expression on fitness | Simplify match expression on fitness
| F# | mit | pedromsantos/TreasureHuntKata |
16d36704dc8d168f6590a847c1e8f244f1a45843 | Libs/FsOptics/Array.fs | Libs/FsOptics/Array.fs | namespace FsOptics
module Array =
let valuesT U = sequenceI Array.length Array.iter id U
let inline insertL op U (xs: 'a []) =
U (None: option<'a>) </> fun xO -> op xs ^ Option.toArray xO
let appendL U = insertL Array.append U
let prependL U = insertL (flip Array.append) U
let indexL i U xs =
... | namespace FsOptics
module Array =
let valuesT U = sequenceI Array.length Array.iter id U
let inline insertL op U (xs: 'a []) =
U (None: option<'a>) </> fun xO -> op xs ^ Option.toArray xO
let appendL U = insertL Array.append U
let prependL U = insertL (flip Array.append) U
let indexL i U xs =
... | Fix to match semantics with List.indexL | Fix to match semantics with List.indexL
| F# | mit | polytypic/FsOptics |
2231fc3b3c21192a2f8b5ee328217d83df4cd684 | src/example/Slumber.Example/App.fs | src/example/Slumber.Example/App.fs | namespace Slumber.Example
open System
open System.Web
open System.IO
open log4net
open log4net.Config
open Slumber.Logging
type App () =
inherit HttpApplication ()
let [<Literal>] LogName = "Slumber.log"
do
XmlConfigurator.Configure (
new FileInfo (
Path.Combine (
... | namespace Slumber.Example
open System
open System.Web
open System.IO
open log4net
open log4net.Config
open Slumber.Logging
type App () =
inherit HttpApplication ()
let [<Literal>] LogName = "Slumber.log"
static let mutable _initialised = false
member this.Application_BeginRequest (_ : obj, _ : Ev... | Tweak sample app to prevent multiple initialisations. | Tweak sample app to prevent multiple initialisations.
| F# | mit | wattsm/slumber |
72a24b94eb4b3ffabe41663def721642c5a285bb | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("Zafir.Forms")
.VersionFrom("Zafir")
.WithFSharpVersion(FSharpVersion.FSharp30)
.WithFramework(fun fw -> fw.Net40)
let main =
bt.Zafir.Library("WebSharper.Forms")
.SourcesFromProject()
... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.Forms")
.VersionFrom("WebSharper")
.WithFSharpVersion(FSharpVersion.FSharp30)
.WithFramework(fun fw -> fw.Net40)
let main =
bt.WebSharper4.Library("WebSharper.Forms")
.SourcesFromPr... | Rename Zafir packages to WebSharper | Rename Zafir packages to WebSharper
| F# | apache-2.0 | intellifactory/websharper.ui.next.piglets,intellifactory/websharper.forms,intellifactory/websharper.ui.next.piglets,intellifactory/websharper.forms |
15a3960958afe38c364dc33acc54c0925f1b923d | fsharp-refactor-tests/RenameTests.fs | fsharp-refactor-tests/RenameTests.fs | namespace FSharpRefactor.Tests.RenameTests
open NUnit.Framework
open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings.Rename
[<TestFixture>]
type ScopeTreeModule() =
[<Test>]
member this.``Creates a scope tree for a simple let statement``() =
let source = "let a = 1 in a"
let rootNo... | namespace FSharpRefactor.Tests.RenameTests
open NUnit.Framework
open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings.Rename
[<TestFixture>]
type ScopeTreeModule() =
[<Test>]
member this.``Creates a scope tree for a simple let statement``() =
let source = "let a = 1 in a"
let rootNo... | Print the actual scope tree for easier debugging | Print the actual scope tree for easier debugging
| F# | apache-2.0 | Lewix/fsharp-refactor,Lewix/fsharp-refactor |
48d9e57be8eaf83bd9d5165727062866945127fb | samples/MBrace.SampleRuntime/Config.fs | samples/MBrace.SampleRuntime/Config.fs | module internal Nessos.MBrace.SampleRuntime.Config
open System
open System.Reflection
open System.Threading
open Nessos.Thespian
open Nessos.Thespian.Serialization
open Nessos.Thespian.Remote
open Nessos.Thespian.Remote.TcpProtocol
open Nessos.Vagrant
open Nessos.MBrace.Runtime
let private runOnce (f : unit -> 'T... | module internal Nessos.MBrace.SampleRuntime.Config
open System
open System.Reflection
open System.Threading
open Nessos.Thespian
open Nessos.Thespian.Serialization
open Nessos.Thespian.Remote
open Nessos.Thespian.Remote.TcpProtocol
open Nessos.Vagrant
open Nessos.MBrace.Runtime
let private runOnce (f : unit -> 'T... | Remove Timeout in Thespian configuration | Remove Timeout in Thespian configuration | F# | apache-2.0 | npmurphy/MBrace.Core,krontogiannis/MBrace.Core,mbraceproject/MBrace.Core,npmurphy/MBrace.Core,krontogiannis/MBrace.Core,dsyme/MBrace.Core,palladin/MBrace.Core,palladin/MBrace.Core,dsyme/MBrace.Core,mbraceproject/MBrace.Core |
a1361da910e99049c5ddaa1342fd6064bc0826dd | src/Giraffe/ComputationExpressions.fs | src/Giraffe/ComputationExpressions.fs | /// ** Description **
/// A collection of F# computation expressions:
/// - `opt {}`: Enables control flow and binding of Option<'T> objects
/// - `res {}`: Enables control flow and binding of Result<'T, 'TError> objects
module Giraffe.ComputationExpressions
type OptionBuilder() =
member __.Bind(v, f) = Op... | /// ** Description **
/// A collection of F# computation expressions:
/// - `opt {}`: Enables control flow and binding of Option<'T> objects
/// - `res {}`: Enables control flow and binding of Result<'T, 'TError> objects
module Giraffe.ComputationExpressions
type OptionBuilder() =
member __.Bind(v, f) = ... | Enable return! in opt { } computation expressions | Enable return! in opt { } computation expressions | F# | apache-2.0 | dustinmoris/AspNetCore.Lambda,dustinmoris/Giraffe,dustinmoris/Giraffe,dustinmoris/Giraffe |
90777ea84b4b7923f4192e1ed9f09a0c01dda9e7 | src/FSharpVSPowerTools.Core/Rename.fs | src/FSharpVSPowerTools.Core/Rename.fs | module FSharpVSPowerTools.Rename.Checks
open Microsoft.FSharp.Compiler.PrettyNaming
let private isDoubleBacktickIdent (s: string) =
if s.StartsWith("``") && s.EndsWith("``") && s.Length > 4 then
let inner = s.Substring("``".Length, s.Length - "````".Length)
not (inner.Contains("``"))
else fal... | module FSharpVSPowerTools.Rename.Checks
open Microsoft.FSharp.Compiler.PrettyNaming
let private delimiter = "``"
let private isDoubleBacktickIdent (s: string) =
if s.StartsWith(delimiter) && s.EndsWith(delimiter) && s.Length > 4 then
let inner = s.Substring(delimiter.Length, s.Length - (2 * delimiter.Le... | Make sure to always use the same backtick delimiter | Make sure to always use the same backtick delimiter
| F# | apache-2.0 | yever/VisualFSharpPowerTools,bleis-tift/FSharpVSPowerTools,dungpa/PowerTools,enricosada/VisualFSharpPowerTools,bentayloruk/FSharpVSPowerTools,0x53A/VisualFSharpPowerTools,bleis-tift/FSharpVSPowerTools,ovatsus/VisualFSharpPowerTools,xperiandri/VisualFSharpPowerTools,vasily-kirichenko/FSharpVSPowerTools,fsprojects/Visual... |
4d669436d006bf0a646f85ab552083e7cc5d2eb2 | Rezoom.SQL.Test/TestVendorStatements.fs | Rezoom.SQL.Test/TestVendorStatements.fs | module Rezoom.SQL.Test.TestVendorStatements
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
let vendor (sql : string) =
let userModel = userModel1()
let parsed = CommandEffect.OfSQL(userModel.Model, "anonymous", sql)
let indexer = dispenserParameterIndexer()
let fr... | module Rezoom.SQL.Test.TestVendorStatements
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
let vendor (sql : string) expected =
let userModel = userModel1()
let parsed = CommandEffect.OfSQL(userModel.Model, "anonymous", sql)
let indexer = dispenserParameterIndexer()
... | Add tests for the fragments generated by vendor statements. | Add tests for the fragments generated by vendor statements.
| F# | mit | rspeele/Rezoom.SQL |
6c946f9bcf0bfaf91193e1d5fa8075875cd8ab55 | src/FlexSearch.Core/Helpers/Constants.fs | src/FlexSearch.Core/Helpers/Constants.fs | // ----------------------------------------------------------------------------
// (c) Seemant Rajvanshi, 2013
//
// This source code is subject to terms and conditions of the Apache License, Version 2.0. A
// copy of the license can be found in the License.txt file at the root of this distribution.
// By using this... | // ----------------------------------------------------------------------------
// (c) Seemant Rajvanshi, 2013
//
// This source code is subject to terms and conditions of the Apache License, Version 2.0. A
// copy of the license can be found in the License.txt file at the root of this distribution.
// By using this... | Remove global lucene version constant | Remove global lucene version constant
| F# | apache-2.0 | FlexSearch/FlexSearch,FlexSearch/FlexSearch,FlexSearch/FlexSearch,FlexSearch/FlexSearch |
d3e29ec0dcb9e4c42e2f0f279ab7b6a0e93e5b05 | Rezoom.SQL.Test/TestTSQL.fs | Rezoom.SQL.Test/TestTSQL.fs | module Rezoom.SQL.Test.TestTSQL
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
let translate (sql : string) (expectedTSQL : string) =
let userModel =
let userModel = userModel1()
let backend = TSQL.TSQLBackend() :> IBackend
{ userModel with
... | module Rezoom.SQL.Test.TestTSQL
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
let translate (sql : string) (expectedTSQL : string) =
let userModel =
let userModel = userModel1()
let backend = TSQL.TSQLBackend() :> IBackend
{ userModel with
... | Add tests for TSQL boolean translation handling. | Add tests for TSQL boolean translation handling.
| F# | mit | rspeele/Rezoom.SQL |
a731b9db4a19324d0e8dd9e8e19966a4832e4600 | fsharp-refactor/astfetch.fs | fsharp-refactor/astfetch.fs | namespace FSharpRefactor.Engine
open System
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Ast
module ASTFetcher =
let checker = InteractiveChecker.Create(NotifyFileTypeCheckStateIsDirty(fun _ -> ()))
let filename = "/home/lewis/test.fs"
let options source = checker.GetC... | namespace FSharpRefactor.Engine
open System
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Ast
module ASTFetcher =
let checker = InteractiveChecker.Create(NotifyFileTypeCheckStateIsDirty(fun _ -> ()))
let filename = "/home/lewis/test.fs"
let options source = checker.GetC... | Implement an, incomplete, Height function | Implement an, incomplete, Height function
| F# | apache-2.0 | Lewix/fsharp-refactor,Lewix/fsharp-refactor |
87ad9cd5af0b2ec2101f868a0c8d4649d5523cec | src/App.fs | src/App.fs | module FablePlaypen
open Fable.Core
open Fable.Import
open Elmish
// MODEL
type Msg =
| Increment
| Decrement
let init () = (0, Cmd.none)
// UPDATE
let update (msg:Msg) count =
match msg with
| Increment -> (count + 1, Cmd.none)
| Decrement -> (count - 1, Cmd.none)
// Subscriptions
let subscriptions st... | module FablePlaypen
open Fable.Core
open Fable.Import
open Elmish
// MODEL
type State = {
count: int
}
type Msg =
| Increment
| Decrement
let init () = ({ count = 0 }, Cmd.none)
// UPDATE
let update msg state =
let { count = currentCount } = state
match msg with
| Increment -> ({ state with count = c... | Update state to be a record | Update state to be a record
| F# | mit | fruitraccoon/fable-playpen,fruitraccoon/fable-playpen |
96db6e8fd3d7ee1e29ed4b868f872375a3d9eee3 | robot-name/RobotNameTest.fs | robot-name/RobotNameTest.fs | module RobotNameTest
open NUnit.Framework
open RobotName
[<TestFixture>]
type RobotNameTest() =
let robot = RobotName()
[<Test>]
member tests.Robot_has_a_name() =
StringAssert.IsMatch(@"\w{2}\d{3}", robot.Name)
[<Test>]
[<Ignore>]
member tests.Name_is_the_same_each_ti... | module RobotNameTest
open NUnit.Framework
open RobotName
[<TestFixture>]
type RobotNameTest() =
let robot = RobotName()
[<Test>]
member tests.``Robot has a name``() =
StringAssert.IsMatch(@"\w{2}\d{3}", robot.Name)
[<Test>]
[<Ignore>]
member tests.``Name is the same e... | Update robot name exercise tests | Update robot name exercise tests
| F# | mit | ErikSchierboom/fsharp,exercism/xfsharp,ErikSchierboom/xfsharp |
9d71eafdc889ad97e8d8bb208e4799a4aa3f2742 | src/CustomTargets.fsx | src/CustomTargets.fsx | open Fake
let testDirectory = getBuildParamOrDefault "buildMode" "Debug"
let nUnitRunner = "nunit3-console.exe"
let mutable nUnitToolPath = @"tools\NUnit.ConsoleRunner\"
let acceptanceTestPlayList = getBuildParamOrDefault "playList" ""
let nunitTestFormat = getBuildParamOrDefault "nunitTestFormat" "nunit2"
Target "Do... | open Fake
let testDirectory = getBuildParamOrDefault "buildMode" "Debug"
let nUnitRunner = "nunit3-console.exe"
let mutable nUnitToolPath = @"tools\NUnit.ConsoleRunner\"
let acceptanceTestPlayList = getBuildParamOrDefault "playList" ""
let nunitTestFormat = getBuildParamOrDefault "nunitTestFormat" "nunit2"
Target "Do... | Add .net restore for the EF Core tester | Add .net restore for the EF Core tester
| F# | mit | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments |
72928ff345b65f9cd44ca0dc7a9d09effea178c3 | Core/EntityId.fs | Core/EntityId.fs | namespace Morgemil.Core
type EntityId =
| EntityId of int
member this.Value =
match this with
| EntityId(id) -> id
static member IsDefault(x : EntityId) = x.Value < 0
type EntityType =
| Person
| Door
| Stairs
| Object
| Spell
| namespace Morgemil.Core
[<Struct>]
type EntityId =
| EntityId of int
member this.Value =
match this with
| EntityId(id) -> id
static member IsDefault(x : EntityId) = x.Value < 0
type EntityType =
| Person
| Door
| Stairs
| Object
| Spell
| Change entity ID to int struct | Change entity ID to int struct
| F# | mit | DanielOliver/Morgemil |
92c842ddcdfd1e5c865d2bf837673f28f79bf77d | src/FSharping.Website/App.fs | src/FSharping.Website/App.fs | module FSharping.Website.App
open Suave
open Suave.Http
open Suave.Web
open Shaver.Localization
open Suave.Filters
open Suave.Operators
open System.Net
open Suave.Writers
let mimeTypes =
defaultMimeTypesMap
@@ (function | ".woff2" -> mkMimeType "application/font-woff2" false | _ -> None)
// change default bin... | module FSharping.Website.App
open Suave
open Suave.Http
open Suave.Web
open Shaver.Localization
open Suave.Filters
open Suave.Operators
open System.Net
open Suave.Writers
let mimeTypes =
defaultMimeTypesMap
@@ (function | ".woff2" -> mkMimeType "application/font-woff2" false | _ -> None)
// change default bin... | Correct mime type for RSS | Correct mime type for RSS
| F# | apache-2.0 | fsharping/Website,fsharping/Website,fsharping/Website |
9eb33b493a7ba1837cfec28ab122095d1b01cb0c | src/evaluator/Evaluator.fs | src/evaluator/Evaluator.fs | module FSharpRefactor.Evaluator.Evaluator
open System
open System.IO
open FSharpRefactor.Evaluator.CodeGenerator
open FSharpRefactor.Evaluator.GenerationState
open FSharpRefactor.Evaluator.BehaviourChecker
open FSharpRefactor.Evaluator.CodeRefactorer
let last ls = List.reduceBack (fun _ l -> l) ls
let evaluateRename... | module FSharpRefactor.Evaluator.Evaluator
open System
open System.IO
open FSharpRefactor.Evaluator.CodeGenerator
open FSharpRefactor.Evaluator.GenerationState
open FSharpRefactor.Evaluator.BehaviourChecker
open FSharpRefactor.Evaluator.CodeRefactorer
let last ls = List.reduceBack (fun _ l -> l) ls
let randomIdent (r... | Add extract function and add argument to evaluator | Add extract function and add argument to evaluator
| F# | apache-2.0 | Lewix/fsharp-refactor,Lewix/fsharp-refactor |
948b3a7f99aaf613507a4f03a5d39f32971f5389 | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.VisualStudio", "2.5-alpha")
let templates =
bt.FSharp.Library("IntelliFactory.WebSharper.Templates")
.SourcesFromProject()
.References(fun r ->
[
r.Assembly("S... | #load "tools/includes.fsx"
open IntelliFactory.Build
open System.IO
let bt =
BuildTool().PackageId("WebSharper.VisualStudio", "2.5-alpha")
let templates =
bt.FSharp.Library("IntelliFactory.WebSharper.Templates")
.SourcesFromProject()
.References(fun r ->
[
... | Add WebSharper.Templates nuget package output | Add WebSharper.Templates nuget package output
| F# | apache-2.0 | intellifactory/websharper.visualstudio |
63cde499ca8ea4ec09d803feba937f5ccd9f3dea | ._fake/config.fsx | ._fake/config.fsx | namespace datNET.Fake.Config
#r @"./packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.EnvironmentHelper
open System.IO
module Common =
let RootDir = Directory.GetCurrentDirectory()
module Source =
open Common
let SolutionFile = !! (Path.Combine(RootDir, "*.sln"))
module Build =
let TestAssemblies = !! ... | namespace datNET.Fake.Config
#r @"./packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.EnvironmentHelper
open System.IO
module Common =
let RootDir = Directory.GetCurrentDirectory()
module Source =
open Common
let SolutionFile = !! (Path.Combine(RootDir, "*.sln"))
module Build =
let TestAssemblies = !! ... | Put built nupkgs in `bin` | Put built nupkgs in `bin`
| F# | mit | datNET/fs-fake-targets |
820270e567e28a8e6f3595ade98a8a6fb942ad93 | ForneverMind/Posts.fs | ForneverMind/Posts.fs | module ForneverMind.Posts
open System.IO
open Freya.Core
open Freya.Router.Lenses
open ForneverMind.Models
let postFileName =
let htmlExtension = ".html"
freya {
let! maybeName = Route.Atom_ "name" |> Freya.Lens.getPartial
let fileName = maybeName |> Option.orElse ""
let name = Path... | module ForneverMind.Posts
open System.IO
open Freya.Core
open Freya.Router
open ForneverMind.Models
let postFileName =
let htmlExtension = ".html"
freya {
let! maybeName = Route.Atom_ "name" |> Freya.Lens.getPartial
let fileName = maybeName |> Option.orElse ""
let name = Path.GetFil... | Replace module import to make it more future-proof. | Replace module import to make it more future-proof.
| F# | mit | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me |
8f063af4bf64bfc74295c061512c29b21eecfb2b | src/Paket.Core/VSIntegration.fs | src/Paket.Core/VSIntegration.fs | module Paket.VSIntegration
open System.IO
open Logging
open System
open Chessie.ErrorHandling
open Domain
open Releases
open InstallProcess
/// Deactivates the Visual Studio NuGet autorestore feature in all projects
let TurnOffAutoRestore environment =
let exeDir = Path.Combine(environment.RootDirectory.FullNam... | module Paket.VSIntegration
open System.IO
open Logging
open System
open Chessie.ErrorHandling
open Domain
open Releases
open InstallProcess
/// Deactivates the Visual Studio NuGet autorestore feature in all projects
let TurnOffAutoRestore environment =
let exeDir = Path.Combine(environment.RootDirectory.FullNam... | Remove call to TurnOffAutoRestore from TurnOnAutoRestore. | Remove call to TurnOffAutoRestore from TurnOnAutoRestore.
| F# | mit | 0x53A/Paket,isaacabraham/Paket,MorganPersson/Paket,lexarchik/Paket,simonhdickson/Paket,MorganPersson/Paket,cloudRoutine/Paket,thinkbeforecoding/Paket,Stift/Paket,Thorium/Paket,theimowski/Paket,thinkbeforecoding/Paket,artur-s/Paket,mrinaldi/Paket,mrinaldi/Paket,simonhdickson/Paket,Thorium/Paket,0x53A/Paket,cloudRoutine/... |
0e8caa02044cab53d6eac8cab2ce03c7c7df8e15 | ForneverMind/Common.fs | ForneverMind/Common.fs | module ForneverMind.Common
open System.IO
open System.Reflection
open System.Text
open Arachne.Http
open Freya.Core
open Freya.Machine
open Freya.Machine.Extensions.Http
let private utf8 = Freya.init [ Charset.Utf8 ]
let private json = Freya.init [ MediaType.Html ]
let get = Freya.init [ GET ]
let machine =
f... | module ForneverMind.Common
open System
open System.IO
open System.Text
open Arachne.Http
open Freya.Core
open Freya.Machine
open Freya.Machine.Extensions.Http
let private utf8 = Freya.init [ Charset.Utf8 ]
let private json = Freya.init [ MediaType.Html ]
let get = Freya.init [ GET ]
let machine =
freyaMachine... | Fix application base path getter. | Fix application base path getter.
| F# | mit | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me |
a1834f764b510aca0573189fef1b2d1645db0374 | crisischeckin/IntegrationTests/Program.fs | crisischeckin/IntegrationTests/Program.fs | open canopy
open runner
open System
//start an instance of the firefox browser
start firefox
"The Administrator can log in." &&& fun _ ->
//go to url
url "http://localhost:2077/Account/Login"
// Enter the username and password
"#UserNameOrEmail" << "Administrator"
"#Password" << "P@$$w0rd"
... | open canopy
open runner
open System
//start an instance of the firefox browser
start firefox
"The Administrator can log in." &&& fun _ ->
//go to url
url "http://localhost:2077/Account/Login"
// Enter the username and password
"#UserNameOrEmail" << "Administrator"
"#Password" << "P@$$w0rd"
... | Test the 'Add disaster' functionality | Test the 'Add disaster' functionality
| F# | apache-2.0 | mjmilan/crisischeckin,brunck/crisischeckin,andrewhart098/crisischeckin,HTBox/crisischeckin,lloydfaulkner/crisischeckin,jsucupira/crisischeckin,andrewhart098/crisischeckin,brunck/crisischeckin,pottereric/crisischeckin,brunck/crisischeckin,HTBox/crisischeckin,lloydfaulkner/crisischeckin,andrewhart098/crisischeckin,HTBox/... |
c322daa5ba5c8f869fe75c9b2c325381eb03dfd9 | app/testServer.fs | app/testServer.fs | module testServer
open Error_handling
let serverAddr = "0.0.0.0"
let serverPort = 4433
let options = AppCommon.defaultProtocolOptions
open System.Security.Cryptography.X509Certificates
let rec testS_int listn =
match TLS.accept listn options with
| (Error(x,y),_) -> printf "AYEEEE!!! %A %A" x y... | module testServer
open Error_handling
let serverAddr = "0.0.0.0"
let serverPort = 4433
let options = AppCommon.defaultProtocolOptions
open System.Security.Cryptography.X509Certificates
let rec testS_int listn =
match TLS.accept listn options with
| (Error(x,y),_) -> printf "AYEEEE!!! %A %A" x y... | Improve output of test application | Improve output of test application
| F# | apache-2.0 | alexanderkyte/mitls-f7,alexanderkyte/mitls-f7,alexanderkyte/mitls-f7,alexanderkyte/mitls-f7,alexanderkyte/mitls-f7 |
74acb93e0c2fc77c18b7ec7fcfbaee8d5b45fdda | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("IntelliFactory.WebSharper.JQueryUI", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Library("IntelliFactory.WebSharper.JQueryUI")
.SourcesFromProject()
let test =
... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.JQueryUI", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Library("IntelliFactory.WebSharper.JQueryUI")
.SourcesFromProject()
let test =
bt.WebSharp... | Remove IntelliFactory prefix from package name. | Remove IntelliFactory prefix from package name.
| F# | apache-2.0 | intellifactory/websharper.jqueryui,endeavour/websharper.jqueryui |
e9e653d630e34b8b0a66049396b42033d23877c8 | canopyStarterKit/args.fs | canopyStarterKit/args.fs | module Args
open Argu
open Common
type private CLIArguments =
| Browser of string
| Tag of string
| TestType of string
with
interface IArgParserTemplate with
member s.Usage =
match s with
| Browser _ -> "specicfy a browser (Chrome Firefox IE)."
| Tag _ -> "specify tag (All Mi... | module Args
open Argu
open Common
type private CLIArguments =
| Browser of string
| Tag of string
| TestType of string
with
interface IArgParserTemplate with
member s.Usage =
match s with
| Browser _ -> "specicfy a browser (Chrome Firefox IE)."
| Tag _ -> "specify tag (All Mi... | Make argument handling a little friendlier | Make argument handling a little friendlier
Default to printing usage and exiting if --help passed, instead of
throwing an exception. Also provide default arguments for all the
available options, so that running the program with no args does
something sensible as a default.
| F# | mit | lefthandedgoat/canopyStarterKit |
0715be5ff7117334c80c211db3cceaf5b16a7e2b | PackNGP.fsx | PackNGP.fsx | #r "./tools/fake/fakelib.dll"
open Fake
open System.IO
open System.Text.RegularExpressions
let packExe () =
let tools = environVar "tools"
let versionRegex = Regex(@"AssemblyInformationalVersion\(\""(?<version>.*)\""\)")
let version =
ReadFileAsString ("NuGetPlus" @@ "AssemblyInfo.fs")
... | #r "./tools/fake/fakelib.dll"
open Fake
open System.IO
open System.Text.RegularExpressions
let packExe () =
let tools = environVar "tools"
let versionRegex = Regex(@"AssemblyInformationalVersion\(\""(?<version>.*)\""\)")
let version =
ReadFileAsString ("NuGetPlus" @@ "AssemblyInfo.fs")
... | Correct Project name in NuGet params | Correct Project name in NuGet params
| F# | mit | mavnn/NuGetPlus,mavnn/NuGetPlus |
12b650f352d615fa8223a680e8f0b75f7319b8d4 | src/app/FakeLib/UserInputHelper.fs | src/app/FakeLib/UserInputHelper.fs | [<AutoOpen>]
/// This module contains functions which allow to interactively input values
module Fake.UserInputHelper
open System
let internal readString (echo: bool) : string =
let rec loop cs =
let key = Console.ReadKey(not echo)
match key.Key with
| ConsoleKey.Backspace -> match cs with... | [<AutoOpen>]
/// This module contains functions which allow to interactively input values
module Fake.UserInputHelper
open System
let internal readString (echo: bool) : string =
let rec loop cs =
let key = Console.ReadKey(not echo)
match key.Key with
| ConsoleKey.Backspace -> match cs with... | Make getUserInput act as getUserPassword for \n | Make getUserInput act as getUserPassword for \n
Previously getUserInput wasn't generating a new line after the prompt but
getUserPassword was doing it. The behavior is now unified.
| F# | apache-2.0 | wooga/FAKE,ArturDorochowicz/FAKE,rflechner/FAKE,yonglehou/FAKE,brianary/FAKE,yonglehou/FAKE,naveensrinivasan/FAKE,darrelmiller/FAKE,mglodack/FAKE,rflechner/FAKE,dmorgan3405/FAKE,featuresnap/FAKE,featuresnap/FAKE,darrelmiller/FAKE,wooga/FAKE,gareth-evans/FAKE,MichalDepta/FAKE,pacificIT/FAKE,beeker/FAKE,MichalDepta/FAKE,... |
1e085ca9e2943283b4fecafc119025919538941c | src/Muffin.Pictures.Archiver/TagRetriever.fs | src/Muffin.Pictures.Archiver/TagRetriever.fs | namespace Muffin.Pictures.Archiver
open System.Diagnostics
open FSharp.Data
open FSharp
open System.IO
module TagRetriever =
type Tags = JsonProvider<"folder.json">
let private exifFileName =
if System.Type.GetType ("Mono.Runtime") <> null then
"exiftool"
else
"exifto... | namespace Muffin.Pictures.Archiver
open System.Diagnostics
open FSharp.Data
open FSharp
open System.IO
module TagRetriever =
type Tags = JsonProvider<"folder.json">
let private exifFileName =
if System.Type.GetType ("Mono.Runtime") <> null then
"exiftool"
else
"exifto... | Handle no images at source path | Handle no images at source path
| F# | unlicense | koenmetsu/Muffin.Pictures.Archiver,koenmetsu/Muffin.Pictures.Archiver |
d73fb6b8b172b8d6b1a0a30edd3d67a455c880f9 | src/test/FsCheck.Fake/TestStringHelper.fs | src/test/FsCheck.Fake/TestStringHelper.fs | module FsCheck.Fake.TestStringHelper
open FsCheck
open Fake
open global.Xunit
[<Fact>]
let ``startsWith is alias for string.StartsWith`` () =
let startsWithIsAlias (prefix:string) (text:string) = startsWith prefix text <> text.StartsWith prefix
Check.QuickThrowOnFailure startsWithIsAlias
| module FsCheck.Fake.TestStringHelper
open FsCheck
open Fake
open global.Xunit
[<Fact>]
let ``startsWith is alias for string.StartsWith`` () =
let startsWithIsAlias (prefix:string) (text:string) = startsWith prefix text = text.StartsWith prefix
Check.QuickThrowOnFailure startsWithIsAlias
| Add FsCheck tests for dogfooding | Add FsCheck tests for dogfooding
| F# | apache-2.0 | ArturDorochowicz/FAKE,Kazark/FAKE,brianary/FAKE,darrelmiller/FAKE,philipcpresley/FAKE,neoeinstein/FAKE,yonglehou/FAKE,beeker/FAKE,tpetricek/FAKE,ArturDorochowicz/FAKE,dlsteuer/FAKE,philipcpresley/FAKE,MichalDepta/FAKE,RMCKirby/FAKE,wooga/FAKE,ilkerde/FAKE,beeker/FAKE,ilkerde/FAKE,leflings/FAKE,jayp33/FAKE,ctaggart/FAKE... |
1124abaa4296257919eff73758e9524c73d273cc | CompilerService/Program.fs | CompilerService/Program.fs | open System
open Nessos.UnionArgParser
open Microsoft.FSharp.Compiler.SourceCodeServices
open Newtonsoft.Json
open Microsoft.FSharp.Reflection
open Nessos.FsPickler//.Json
type Arguments =
| Project of string
with
interface IArgParserTemplate with
member s.Usage =
match s with
| Project ... | open System
open Nessos.UnionArgParser
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Reflection
open Nessos.FsPickler
type Arguments =
| Project of string
with
interface IArgParserTemplate with
member s.Usage =
match s with
| Project _ -> "specify a F# project f... | Remove old references and comments | Remove old references and comments
| F# | apache-2.0 | nosami/xamarin-monodevelop-fsharp-addin,fsharp/xamarin-monodevelop-fsharp-addin,fsharp/xamarin-monodevelop-fsharp-addin,nosami/xamarin-monodevelop-fsharp-addin |
8ce8ff6d09c6bc4f2a530d69d066e02eb5768ca2 | src/fsharp.fs | src/fsharp.fs | [<ReflectedDefinition>]
module Ionide.VSCode
open System
open System.Text.RegularExpressions
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.fs
open FunScript.TypeScript.child_process
open FunScript.TypeScript.vscode
open Ionide.VSCode.FSharp
type FSharp() =
member x.activate(disposables: Disp... | [<ReflectedDefinition>]
module Ionide.VSCode
open System
open System.Text.RegularExpressions
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.fs
open FunScript.TypeScript.child_process
open FunScript.TypeScript.vscode
open Ionide.VSCode.FSharp
type FSharp() =
member x.activate(disposables: Disp... | Stop language services on deactivation | Stop language services on deactivation
| F# | mit | ionide/ionide-vscode-fsharp,ionide/ionide-vscode-fsharp,oxxa/ionide-vscode-fsharp |
469613b506e8f867efb9558c8fa53b839580e72d | Test.MMManaged/Util.fs | Test.MMManaged/Util.fs | module Util
open System
open System.Reflection
open System.IO
open ModelMod.CoreTypes
let veqEqEpsilon (ep:float32) (v1:Vec3F) (v2:Vec3F) =
let dx = Math.Abs(v1.X - v2.X)
let dy = Math.Abs(v1.Y - v2.Y)
let dz = Math.Abs(v1.Z - v2.Z)
dx < ep && dy < ep && dz < ep
let TestDataDir =
let asmPath ... | module Util
open System
open System.Reflection
open System.IO
open ModelMod.CoreTypes
let veqEqEpsilon (ep:float32) (v1:Vec3F) (v2:Vec3F) =
let dx = Math.Abs(v1.X - v2.X)
let dy = Math.Abs(v1.Y - v2.Y)
let dz = Math.Abs(v1.Z - v2.Z)
dx < ep && dy < ep && dz < ep
let TestDataDir =
let asmPath ... | Fix test data path for VS test runner | Fix(tests): Fix test data path for VS test runner
| F# | lgpl-2.1 | jmquigs/ModelMod,jmquigs/ModelMod,jmquigs/ModelMod,jmquigs/ModelMod |
9fa3d2d3cca42cf95d3fe9835669529a2803f800 | board-qemu/slof/archsupport.fs | board-qemu/slof/archsupport.fs | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | Increase temporary buffer size of ibm,client-architecture-support call | Increase temporary buffer size of ibm,client-architecture-support call
The buffer size that we currently use for the client-architecture-
support call currently only works if there is not more than 1 TiB
of hot-pluggable RAM for the guest. This will likely not be enough
in the near future, so increase the buffer size ... | F# | bsd-3-clause | open-power-host-os/slof,open-power-host-os/slof,open-power-host-os/slof,open-power-host-os/slof |
3a8868fa2a14702b6b3db40ec6e5c3a6deee64ab | src/SettingsHelpers.fs | src/SettingsHelpers.fs | namespace Atom.FSharp
open System
open System.Text.RegularExpressions
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.fs
open FunScript.TypeScript.child_process
open FunScript.TypeScript.AtomCore
open FunScript.TypeScript.text_buffer
open FunScript.TypeScript.path
open Atom
[<ReflectedDefinition>]... | namespace Atom.FSharp
open System
open System.Text.RegularExpressions
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.fs
open FunScript.TypeScript.child_process
open FunScript.TypeScript.AtomCore
open FunScript.TypeScript.text_buffer
open FunScript.TypeScript.path
open Atom
[<ReflectedDefinition>]... | Add more settings for WebPreview | Add more settings for WebPreview
| F# | mit | ionide/ionide-helpers,cloudRoutine/ionide-helpers |
60c2191735eb86618dc18cecb0f4ccdca7e50fb1 | Rezoom.SQL.Test/TestTypeErrors.fs | Rezoom.SQL.Test/TestTypeErrors.fs | module Rezoom.SQL.Test.TestTypeErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
[<Test>]
let ``incompatible types can't be compared for equality`` () =
expectError "The types INT and STRING cannot be unified"
"""
select g.*, u.*
from Users... | module Rezoom.SQL.Test.TestTypeErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
[<Test>]
let ``incompatible types can't be compared for equality`` () =
expectError "The types INT and STRING cannot be unified"
"""
select g.*, u.*
from Users... | Add tests for new insert/update type errors. | Add tests for new insert/update type errors.
| F# | mit | rspeele/Rezoom.SQL |
76ff33042e67804056fe3768146bad7ba1e1530e | src/app/FakeLib/Git/Staging.fs | src/app/FakeLib/Git/Staging.fs | [<AutoOpen>]
/// Contains helper functions which allow to deal with git's staging area.
module Fake.Git.Staging
/// Adds a file to the staging area
let StageFile repositoryDir file =
file
|> fixPath
|> sprintf "update-index --add \"%s\""
|> runGitCommand repositoryDir | [<AutoOpen>]
/// Contains helper functions which allow to deal with git's staging area.
module Fake.Git.Staging
open Fake
/// Adds a file to the staging area
let StageFile repositoryDir file =
file
|> fixPath
|> sprintf "update-index --add \"%s\""
|> runGitCommand repositoryDir
/// Adds all files t... | Allow to stage all files in git | Allow to stage all files in git
| F# | apache-2.0 | beeker/FAKE,rflechner/FAKE,yonglehou/FAKE,tpetricek/FAKE,warnergodfrey/FAKE,dmorgan3405/FAKE,JonCanning/FAKE,rflechner/FAKE,brianary/FAKE,wooga/FAKE,NaseUkolyCZ/FAKE,mfalda/FAKE,RMCKirby/FAKE,daniel-chambers/FAKE,molinch/FAKE,JonCanning/FAKE,leflings/FAKE,pmcvtm/FAKE,rflechner/FAKE,darrelmiller/FAKE,modulexcite/FAKE,Ar... |
bfa638c0fc9678f61e0fa7914ac71320110e50ff | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("IntelliFactory.WebSharper.Google.Visualization", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Library("IntelliFactory.WebSharper.Google.Visualization")
.SourcesFromP... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.Google.Visualization", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Library("IntelliFactory.WebSharper.Google.Visualization")
.SourcesFromProject()
let... | Remove IntelliFactory prefix from package name. | Remove IntelliFactory prefix from package name.
| F# | apache-2.0 | intellifactory/websharper.google.visualization |
56e982df9bd61f3717a8380b5b54f93f80977bbd | build.fsx | build.fsx | #r @"./._fake/packages/FAKE/tools/FakeLib.dll"
#r @"./._fake/packages/FSharp.FakeTargets/tools/FSharpFakeTargets.dll"
#load @"./._fake/loader.fsx"
open Fake
open RestorePackageHelper
open datNET.Fake.Config
let private _OverrideConfig (parameters : datNET.Targets.ConfigParams) =
{ parameters with
Pro... | #r @"./._fake/packages/FAKE/tools/FakeLib.dll"
#r @"./._fake/packages/FSharp.FakeTargets/tools/FSharpFakeTargets.dll"
(*
The commented line below is for local testing purposes. Make sure to
1. Comment out the line above
2. Uncommeht the line below
2. Build this solution in VS
After having done this, you sh... | Add a note about self-testing locally | Add a note about self-testing locally
| F# | mit | datNET/fs-fake-targets |
e3fb36bec64a381ba1ae1fb497b8c97d09de74f0 | src/azmons/SignalRServer.fs | src/azmons/SignalRServer.fs | // A very simple test fixture that simply collects events it sees in a list ref.
module SignalRServer
open Owin
open Microsoft.AspNet.SignalR
open Microsoft.AspNet.SignalR.Hubs
open Microsoft.Owin
open Nancy
open System.Reactive.Subjects
let observedEvents = new Subject<string>()
type Startup() =
member __.Conf... | // A very simple test fixture that simply collects events it sees in a list ref.
module SignalRServer
open Owin
open Microsoft.AspNet.SignalR
open Microsoft.AspNet.SignalR.Hubs
open Microsoft.Owin
open Nancy
open System.Reactive.Subjects
let observedEvents = new Subject<string>()
type Startup() =
member __.Conf... | Save bandwidth by returning no data back to the client. | Save bandwidth by returning no data back to the client.
| F# | mit | frankshearar/etwas,frankshearar/etwas |
dd0301368eae8f6120bd71dc61b4022a69991bf1 | src/Rezoom.SQL.Test/TestAlterTable.fs | src/Rezoom.SQL.Test/TestAlterTable.fs | module Rezoom.SQL.Test.AlterTable
open Rezoom.SQL.Compiler
open NUnit.Framework
[<Test>]
let ``adding default permits insert without column value`` () =
{ defaultTest with
Migration = """
create table Foo(x int, y int);
alter table Foo add default for x 1
"""
Comman... | module Rezoom.SQL.Test.AlterTable
open Rezoom.SQL.Compiler
open NUnit.Framework
[<Test>]
let ``adding default permits insert without column value`` () =
{ defaultTest with
Migration = """
create table Foo(x int, y int);
alter table Foo add default for x 1
"""
Comman... | Test that dropping a constraint frees up the name. | Test that dropping a constraint frees up the name.
| F# | mit | rspeele/Rezoom.SQL |
973845e4c209f4719275d026be2dbf6085203a98 | src/Core/Project.fs | src/Core/Project.fs | namespace Ionide.VSCode.FSharp
open System
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.vscode
open FunScript.TypeScript.vscode.languages
open FunScript.TypeScript.path
open FunScript.TypeScript.fs
open DTO
open Ionide.VSCode.Helpers
[<ReflectedDefinition>]
module Project =
let find p =
... | namespace Ionide.VSCode.FSharp
open System
open FunScript
open FunScript.TypeScript
open FunScript.TypeScript.vscode
open FunScript.TypeScript.vscode.languages
open FunScript.TypeScript.path
open FunScript.TypeScript.fs
open DTO
open Ionide.VSCode.Helpers
[<ReflectedDefinition>]
module Project =
let find p =
... | Make parsing all projects sequentional at start of plugin | Make parsing all projects sequentional at start of plugin
| F# | mit | ionide/ionide-vscode-fsharp,ionide/ionide-vscode-fsharp,oxxa/ionide-vscode-fsharp |
62c31623376073627f808d6273e8a6fa3544a3d2 | src/Morgemil.Core/FloorGenerator.fs | src/Morgemil.Core/FloorGenerator.fs | module Morgemil.Core.FloorGenerator
open Morgemil.Math
open Morgemil.Models
type Results = {
EntranceCoordinate: Vector2i
}
let Create (parameters: FloorGenerationParameter) (rng: RNG.DefaultRNG) =
let floorSize = Rectangle.create (RNG.RandomPoint rng parameters.SizeRange)
let tileMap = TileMap(floorSiz... | module Morgemil.Core.FloorGenerator
open Morgemil.Math
open Morgemil.Models
type Results = {
EntranceCoordinate: Vector2i
Parameters: FloorGenerationParameter
}
let Create (parameters: FloorGenerationParameter) (rng: RNG.DefaultRNG) =
let floorSize = Rectangle.create (RNG.RandomPoint rng parameters.Size... | Add parameters to floor generation output | Add parameters to floor generation output
| F# | mit | DanielOliver/Morgemil |
e4be3907d7f5b8f7a968bfcff84e2a05ca3cb749 | board-qemu/slof/pci-device_1af4_1009.fs | board-qemu/slof/pci-device_1af4_1009.fs | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | \ *****************************************************************************
\ * Copyright (c) 2011 IBM Corporation
\ * All rights reserved.
\ * This program and the accompanying materials
\ * are made available under the terms of the BSD License
\ * which accompanies this distribution, and is available at
\ * http:... | Set a proper name for virtio-9p device tree nodes | virtio: Set a proper name for virtio-9p device tree nodes
The virtio-9p devices currently show up as "unknown-legacy-device"
in the device tree. We've got a driver for this device, so it is
certainly not "unknown", i.e. let's use a better name here instead.
Signed-off-by: Thomas Huth <9e65be74847981e55b2564b6266c57d8... | F# | bsd-3-clause | open-power-host-os/slof,aik/SLOF,open-power-host-os/slof,qemu/SLOF,open-power-host-os/slof,stefanberger/SLOF-tpm,aik/SLOF,qemu/SLOF,aik/SLOF,open-power-host-os/slof,stefanberger/SLOF-tpm,stefanberger/SLOF-tpm,qemu/SLOF |
91e61e0ef7b26bd4c3add78776d3ad18284851af | src/FsEye/FsEye.fsx | src/FsEye/FsEye.fsx | (*
Copyright 2011 Stephen Swensen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | (*
Copyright 2011 Stephen Swensen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | FIx reference to new build location | FIx reference to new build location
| F# | apache-2.0 | kirill-gerasimenko/fseye,kirill-gerasimenko/fseye |
c1f02846b7478fb744628d2acffdbf7f92da1719 | FakeDemo/build.fsx | FakeDemo/build.fsx | #r "packages/FAKE/tools/FakeLib.dll"
open Fake
Target "Test" (fun _ ->
trace "Testing stuff..."
)
Target "Build" (fun _ ->
trace "Heavy build action"
)
"Build" // define the dependencies
==> "Test"
Run "Test" | #r "packages/FAKE/tools/FakeLib.dll" // 1
open Fake // 2
Target "Test" (fun _ -> // 3
trace "Testing stuff..."
)
Target "Build" (fun _ ->
trace "Heavy build action"
)
"Build" // 4
==> "Test"
Run "Test" // 5 | Add comments to script to correspond to post | Add comments to script to correspond to post
| F# | mit | Wintellect/XamarinSamples,Wintellect/XamarinSamples |
d1cc3b16bfe34ca042f09a14786de36fc058a499 | src/Azure.Batch.Toolkit/Common.fs | src/Azure.Batch.Toolkit/Common.fs | namespace Batch.Toolkit
[<AutoOpen>]
module Common =
open System
open System.IO
open Newtonsoft.Json
let private id' = (fun _ c -> c)
let getOrElse d mv = mv |> Option.fold id' d
let getOrNull mv = mv |> Option.fold id' null
let getOrNullable mv = mv |> Option.fold (fun _ c -> Nulla... | namespace Batch.Toolkit
[<AutoOpen>]
module Common =
open System
open System.IO
open Newtonsoft.Json
let private id' = (fun _ c -> c)
let getOrElse d mv = mv |> Option.fold id' d
let getOrNull mv = mv |> Option.fold id' null
let getOrNullable mv = mv |> Option.fold (fun _ c -> Nulla... | Make 'readConfig' use the 'succeed' workflow | Make 'readConfig' use the 'succeed' workflow
| F# | unknown | johnazariah/batch-toolkit,johnazariah/batch-toolkit,johnazariah/batch-toolkit-fsharp,johnazariah/batch-toolkit-fsharp |
cbca117255ac1a3a7540e0769fbf1b5bb8d9eb0d | EvilPlanner.Backend/Application.fs | EvilPlanner.Backend/Application.fs | namespace EvilPlanner.Backend
open System.IO
open System.Text
open Freya.Core
open Microsoft.Owin
type Application () =
member __.Configuration () =
OwinAppFunc.ofFreya Quotes.router
[<assembly: OwinStartup(typeof<Application>)>]
()
| namespace EvilPlanner.Backend
open System.IO
open System.Text
open Freya.Core
open Microsoft.Owin
open EvilPlanner.Data
type Application () =
member __.Configuration () =
Migrations.Configuration.EnableAutoMigration ()
OwinAppFunc.ofFreya Quotes.router
[<assembly: OwinStartup(typeof<Applicatio... | Enable automatic migration on backend. | Enable automatic migration on backend.
| F# | mit | ForNeVeR/fornever.me,ForNeVeR/EvilPlanner,ForNeVeR/EvilPlanner,ForNeVeR/fornever.me,ForNeVeR/EvilPlanner,ForNeVeR/fornever.me |
5209a0add8fe1f138cf8897634fa34d6516c9b26 | IoX.Modules/utils.fs | IoX.Modules/utils.fs | namespace IoX
module Utils =
open Newtonsoft.Json
open System.IO
let readConfigurationFile fn =
JsonConvert.DeserializeObject<_>(File.ReadAllText(fn))
let writeConfigurationFile fn conf =
File.WriteAllText(fn, JsonConvert.SerializeObject(conf))
type ConfigurationFile<'T>(fn: string, de... | namespace IoX
module Utils =
open Newtonsoft.Json
open System.IO
let readConfigurationFile fn =
JsonConvert.DeserializeObject<_>(File.ReadAllText(fn))
let writeConfigurationFile fn conf =
File.WriteAllText(fn, JsonConvert.SerializeObject(conf))
type ConfigurationFile<'T>(fn: string, de... | Load from file when constructing `ConfigurationFile<_>` objects | Load from file when constructing `ConfigurationFile<_>` objects
otherwise `OnLoadModules` ends up being ignored in the subtree module.
| F# | mit | cisterni/IoX,cisterni/IoX,unipi-itc/iox,unipi-itc/iox |
515e7d49c82a9ac4780ccd61ccfda2695c695256 | tests/Muffin.Pictures.Archiver.Tests/TagTests.fs | tests/Muffin.Pictures.Archiver.Tests/TagTests.fs | namespace Muffin.Pictures.Archiver.Tests
open Swensen.Unquote
open NUnit.Framework
open FSharp.Data
open Muffin.Pictures.Archiver.Tests.TestHelpers
open Muffin.Pictures.Archiver.Domain
module TagRetriever =
open System.Diagnostics
type Tags = JsonProvider<"example_exiftool_output.json">
let callExifTo... | namespace Muffin.Pictures.Archiver.Tests
open Swensen.Unquote
open NUnit.Framework
open FSharp.Data
open Muffin.Pictures.Archiver.Tests.TestHelpers
open Muffin.Pictures.Archiver.Domain
module TagTests =
open System.IO
open Muffin.Pictures.Archiver.TagRetriever
let private location name =
System... | Use actual TagRetriever in tests | Use actual TagRetriever in tests
| F# | unlicense | koenmetsu/Muffin.Pictures.Archiver,koenmetsu/Muffin.Pictures.Archiver |
c15ced0aeeb69e8a99a31ccefec5ea221b36d8f0 | WebServer.fs | WebServer.fs | //
// Functions related to the preview server.
//
// Author:
// ipavl <ipavl@users.sourceforge.net>
//
module WebServer
open System
open System.IO
open System.Net
open System.Text
let httpServer = "http://localhost:8141/"
let listener (handler:(HttpListenerRequest -> HttpListenerRespon... | //
// Functions related to the preview server.
//
// Author:
// ipavl <ipavl@users.sourceforge.net>
//
module WebServer
open System
open System.IO
open System.Net
open System.Text
let httpServer = "http://localhost:8141/"
let listener (handler:(HttpListenerRequest -> HttpListenerRespon... | Fix file not found exception with the default route | Fix file not found exception with the default route
| F# | mit | ipavl/flamel |
d0e9c47a64b11d7efa333d89ae8c267eca693db9 | src/app/FakeLib/RestorePackageHelper.fs | src/app/FakeLib/RestorePackageHelper.fs | [<AutoOpen>]
module Fake.RestorePackageHelper
open System
open System.IO
type RestorePackageParams =
{ ToolPath: string
TimeOut: TimeSpan
OutputPath: string}
/// RestorePackage defaults params
let RestorePackageDefaults =
{ ToolPath = "./tools/nuget/nuget.exe"
TimeOut = TimeSpan.FromMinu... | [<AutoOpen>]
module Fake.RestorePackageHelper
open System
open System.IO
type RestorePackageParams =
{ ToolPath: string
Sources: string list
TimeOut: TimeSpan
OutputPath: string}
/// RestorePackage defaults params
let RestorePackageDefaults =
{ ToolPath = "./tools/nuget/nuget.exe"
... | Allow to specify additional Nuget sources for PackageRestore | Allow to specify additional Nuget sources for PackageRestore
| F# | apache-2.0 | RMCKirby/FAKE,brianary/FAKE,Kazark/FAKE,RMCKirby/FAKE,mglodack/FAKE,JonCanning/FAKE,ilkerde/FAKE,MichalDepta/FAKE,ctaggart/FAKE,yonglehou/FAKE,naveensrinivasan/FAKE,beeker/FAKE,gareth-evans/FAKE,daniel-chambers/FAKE,hitesh97/FAKE,tpetricek/FAKE,MichalDepta/FAKE,pacificIT/FAKE,ilkerde/FAKE,MichalDepta/FAKE,rflechner/FAK... |
4a409886aeeba8c32b9065564680df5f356ec349 | src/Freckle/Clock.fs | src/Freckle/Clock.fs | [<AutoOpen>]
///Clock is used to generate the current time
module Freckle.Clock
open FSharp.Helpers
[<AutoOpen>]
///The includes the clock type
module Types =
///The clock type, representing a clock that can generate the current time.
///To be used for FRP it must guarantee a that time is changed when ti... | [<AutoOpen>]
///Clock is used to generate the current time
module Freckle.Clock
open FSharp.Helpers
[<AutoOpen>]
///The includes the clock type
module Types =
///The clock type, representing a clock that can generate the current time.
///To be used for FRP it must guarantee a that time is changed when ti... | Optimize clock and remove need for async when getting the time | Optimize clock and remove need for async when getting the time
| F# | unlicense | jannickj/Freckle |
5501127ebafacca3f7206611ab98ebebaeb1df79 | src/Feed.fs | src/Feed.fs | module Feed
open System.Net
open System.Text.RegularExpressions
type Feed = {
Name : string
Listeners : int
Info : string option
}
let createFromHTML str =
let create (m:Match) =
let value (i:int) = m.Groups.[i].Value
{
Listeners = 1 |> value |> int
N... | module Feed
open System.Net
open System.Text.RegularExpressions
type Feed = {
Id : int
Name : string
Listeners : int
Info : string option
}
let createFromHTML str =
let create (m : Match) =
let value (i : int) = m.Groups.[i].Value
{
Listeners = 1 |> va... | Add feed link to notifications | Add feed link to notifications
| F# | agpl-3.0 | Acizza/bcnotif |
649d219ee3ba62ffb0e3021d4d7ef42a9391bd78 | monodevelop/MonoDevelop.FSharpRefactor/AddArgumentRefactoring.fs | monodevelop/MonoDevelop.FSharpRefactor/AddArgumentRefactoring.fs | namespace MonoDevelop.FSharpRefactor
open MonoDevelop.Refactoring
open Microsoft.FSharp.Compiler.Range
open MonoDevelop.FSharpRefactor.FSharpRefactoring
open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings
type AddArgumentRefactoring() as self =
inherit RefactoringOperation()
let addArgument sour... | namespace MonoDevelop.FSharpRefactor
open MonoDevelop.Refactoring
open Microsoft.FSharp.Compiler.Range
open MonoDevelop.FSharpRefactor.FSharpRefactoring
open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings
type AddArgumentRefactoring() as self =
inherit RefactoringOperation()
let addArgument sour... | Fix an off-by-one error in AddArgument column number | Fix an off-by-one error in AddArgument column number
| F# | apache-2.0 | Lewix/fsharp-refactor,Lewix/fsharp-refactor |
49a1ed55685daab7455d6b261b9f721fa7b6d41d | source/Beast.fs | source/Beast.fs | module Beast
open System
open Fable.Core
open Fable.Import
module R = Fable.Helpers.React
// Check components.fs to see how to build React components from F#
open Components
// Polyfill for ES6 features in old browsers
Node.require.Invoke("core-js") |> ignore
ReactDom.render(
R.com<HelloBox,_,_> {nothing=0} []... | module Beast
open System
open Fable.Core
open Fable.Import
module R = Fable.Helpers.React
// Check components.fs to see how to build React components from F#
open Components
// Polyfill for ES6 features in old browsers
Node.require.Invoke("core-js") |> ignore
ReactDom.render(
R.div [] [
R.h1 [] [R.str ... | Change hello world to placeholder | Change hello world to placeholder
| F# | isc | MaxWilson/Beast,MaxWilson/Beast |
41ab51583cd28f3f6acf296913b4a53c177c1f24 | tools/bsdbox/Makefile.fs | tools/bsdbox/Makefile.fs | #
# Filesystem related tools
#
# $FreeBSD$
# mfs
CRUNCH_PROGS_sbin+= mdmfs mdconfig newfs
CRUNCH_ALIAS_mdmfs= mount_mfs
# UFS
CRUNCH_PROGS_sbin+= fsck_ffs
CRUNCH_LIBS+= -lgeom
CRUNCH_LIBS+= -lufs
# msdos
# CRUNCH_PROGS_sbin+= mount_msdosfs
# CRUNCH_LIBS+= -lkiconv
| #
# Filesystem related tools
#
# $FreeBSD$
# mfs
CRUNCH_PROGS_sbin+= mdmfs mdconfig newfs
CRUNCH_ALIAS_mdmfs= mount_mfs
# UFS
# CRUNCH_PROGS_sbin+= fsck_ffs
CRUNCH_LIBS+= -lgeom
CRUNCH_LIBS+= -lufs
# msdos
# CRUNCH_PROGS_sbin+= mount_msdosfs
# CRUNCH_LIBS+= -lkiconv
| Disable fsck_ffs for now, 4MB target size issues. | Disable fsck_ffs for now, 4MB target size issues.
| F# | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
12734f7cb414e75d22a2ae7ff2a1ccd599b1b89e | src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Core/ResultTests.fs | src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Core/ResultTests.fs | // 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.
// Various tests for:
// Microsoft.FSharp.Core.ExtraTopLevelOperators.printf
namespace FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Core
... | // 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.
// Various tests for:
// Microsoft.FSharp.Core.Result
namespace FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Core
open System
open FSharp... | Fix for comment about what the file tests | Fix for comment about what the file tests
| F# | apache-2.0 | forki/FSharp.Compiler.Service,brettfo/visualfsharp,ncave/FSharp.Compiler.Service,brettfo/visualfsharp,matthid/FSharp.Compiler.Service,dsyme/fsharp,ncave/FSharp.Compiler.Service,sergey-tihon/FSharp.Compiler.Service,ncave/FSharp.Compiler.Service,brettfo/visualfsharp,BillHally/FSharp.Compiler.Service,rojepp/FSharp.Compile... |
1fcc91c75cfd7a588cd493748f1659e5fb621e28 | build.fsx | build.fsx | #r @"packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.AssemblyInfoFile
open Fake.Testing.NUnit3
open System
// Properties
let version = getBuildParamOrDefault "version" "1.8.0.7"
Target "Clean" (fun _ ->
CleanDirs ["./temp/"]
)
Target "Build" (fun _ ->
UpdateAttributes "./Soma.Core/AssemblyInfo.fs"
... | #r @"packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.AssemblyInfoFile
open Fake.Testing.NUnit3
open System
// Properties
let UNKOWN_VERSION = "UNKOWN"
let version = getBuildParamOrDefault "version" UNKOWN_VERSION
Target "Clean" (fun _ ->
CleanDirs ["./temp/"]
)
Target "Build" (fun _ ->
if version <> UNK... | Change version number only when it is specified | Change version number only when it is specified
| F# | apache-2.0 | nakamura-to/Soma |
b86d2cbc128bae756020175a6ee38feded71deee | src/App.fs | src/App.fs | module FablePlaypen
open Fable.Core
open Fable.Import
open Elmish
// MODEL
type State = {
count: int
}
type Msg =
| Increment
| Decrement
let init () = ({ count = 0 }, Cmd.none)
// UPDATE
let update msg state =
let { count = currentCount } = state
match msg with
| Increment -> ({ state with count = c... | module FablePlaypen
open Fable.Core
open Fable.Import
open Elmish
// MODEL
type State = {
count: int
asyncInProgress: bool
}
type Msg =
| AsyncIncrement
| Increment
| Decrement
let init () =
({ count = 0; asyncInProgress = false }, Cmd.none)
// UPDATE
let delayedIncrement count =
async {
... | Update increment button to be async | Update increment button to be async
| F# | mit | fruitraccoon/fable-playpen,fruitraccoon/fable-playpen |
e9b82a0dbcdd3a6019efb3d6f16759f9baeabb64 | FSharpPlus/Samples/Traversal.fsx | FSharpPlus/Samples/Traversal.fsx | #nowarn "3186"
#r @"..\..\build\FsControl.dll"
#r @"..\..\build\FSharpPlus.dll"
open FSharpPlus
open FSharpPlus.Lens
let x = set (_all "") ("Nothing") [|"Something"; ""; "Something Else"; "";|]
// val it : string [] = c
// we can preview it
let r2 = preview (_all "Something") [|"Something"; "Nothing"; "Something E... | #nowarn "3186"
#r @"..\..\build\FsControl.dll"
#r @"..\..\build\FSharpPlus.dll"
open FSharpPlus
open FSharpPlus.Lens
let x = [|"Something"; ""; "Something Else"; "";|] |> set (_all "") ("Nothing")
// val it : string [] = c
// we can preview it
let r2 = [|"Something"; "Nothing"; "Something Else"; "Nothing"|] |> prev... | Use forward pipe in traversal.fsx samples to improve type inference. | Use forward pipe in traversal.fsx samples to improve type inference.
| F# | apache-2.0 | gmpl/FSharpPlus,gmpl/FSharpPlus,gusty/FSharpPlus,gusty/FSharpPlus |
01f081b5f4cffb8da34a04e5c37e79d1b7975ecb | src/Canopy.Mobile/Wait.fs | src/Canopy.Mobile/Wait.fs | module Wait
open OpenQA.Selenium
open Exceptions
let mutable waitSleep = 0.5
//This is similar to how Selenium Wait works which is very useful
//Provide a function that returns a bool or object and if its true or not null then stop waiting
let waitResults timeout (f : unit -> 'a) =
let sw = System.Diagnostics.S... | module Wait
open OpenQA.Selenium
open Exceptions
let mutable waitSleep = 0.5
//This is similar to how Selenium Wait works which is very useful
//Provide a function that returns a bool or object and if its true or not null then stop waiting
let waitResults timeout (f : unit -> 'a) =
let sw = System.Diagnostics.S... | Move from recusrive calls in wait to a loop | Move from recusrive calls in wait to a loop
| F# | mit | fsprojects/Canopy.Mobile |
97cc873f0f8eab4ae8b3a7dd4d45c4dc976fc297 | src/Rezoom.SQL.Test/TestParserErrors.fs | src/Rezoom.SQL.Test/TestParserErrors.fs | module Rezoom.SQL.Test.TestParserErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
[<Test>]
let ``invalid CTE`` () =
expectError "SQ000: Expecting: whitespace, ')', '--' or '/*'"
"""
with cte ( as
select * from Users u
)
... | module Rezoom.SQL.Test.TestParserErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping
[<Test>]
let ``invalid CTE`` () =
expectError "SQ000: Expecting: whitespace, ')', '--' or '/*'"
"""
with cte ( as
select * from Users u
)
... | Add test for very small inputs. | Add test for very small inputs.
| F# | mit | rspeele/Rezoom.SQL |
9fc8a457f9f0a8c0a8c0e0082661302b9283f628 | build.fsx | build.fsx | // include Fake libs
#r "tools/FAKE/tools/FakeLib.dll"
open Fake
RestorePackages()
open System.IO
// Directories
let buildDir = "./build/"
let testDir = "./test/"
let appReferences = !! "HolidaysApi.WebHost\*.fsproj"
let testReferences = !! "HolidaysApi.Tests\*.fsproj"
// Targets
Target "Clean" (fun _ ->
... | // include Fake libs
#r "tools/FAKE/tools/FakeLib.dll"
open Fake
RestorePackages()
open System.IO
// Directories
let buildDir = "./build/"
let testDir = "./test/"
let appReferences = !! "HolidaysApi.WebHost\*.fsproj"
let testReferences = !! "HolidaysApi.Tests\*.fsproj"
// Targets
Target "Clean" (fun _ ->
... | Revert "try to skip testfile, maybe thta is what kill travis" | Revert "try to skip testfile, maybe thta is what kill travis"
This reverts commit 85baa0e13272042da61a150b1a37d5274ac207f9.
| F# | apache-2.0 | bjartwolf/HolidaysApi,bjartwolf/HolidaysApi,aklefdal/HolidaysApi |
f1b176218f07df2273b844a8566cb113d0e55ea3 | src/Farkle.Tools.Shared/PrecompiledAssemblyFileLoader.fs | src/Farkle.Tools.Shared/PrecompiledAssemblyFileLoader.fs | // Copyright (c) 2020 Theodore Tsirpanis
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
namespace Farkle.Tools
open Farkle.Builder
open System
open System.Reflection
/// Loads the precompiled grammars from an assembly file.
type PrecompiledAssemblyFileLoader(path) =
... | // Copyright (c) 2020 Theodore Tsirpanis
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
namespace Farkle.Tools
open Farkle.Builder
open System
open System.Reflection
/// Loads the precompiled grammars from an assembly file.
type PrecompiledAssemblyFileLoader(path) =
... | Revert "Do not specify a core assembly name in the precompiled assembly file loader." | Revert "Do not specify a core assembly name in the precompiled assembly file loader."
This reverts commit 06c10e885da4402aeab4c538666037e2060c7d67.
The removal of the core assembly name caused the loader to break. I hadn't understood the significance of that parameter.
When the MetadataLoadContext gets loaded, it trie... | F# | mit | teo-tsirpanis/Farkle |
91ebe22a4eabe1b689bd47a2fa7ff13ab6052b10 | src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ArrayProperties.fs | src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ArrayProperties.fs | // 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.
module FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Collections.ArrayProperties
open System
open System.Collections.Generic
open NUnit.Fra... | // 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.
module FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Collections.ArrayProperties
open System
open System.Collections.Generic
open NUnit.Fra... | Create property test for Array.blit | Create property test for Array.blit
| F# | apache-2.0 | alfonsogarciacaro/FSharp.Compiler.Service,BillHally/FSharp.Compiler.Service,dsyme/FSharp.Compiler.Service,cloudRoutine/FSharp.Compiler.Service,vasily-kirichenko/FSharp.Compiler.Service,ncave/FSharp.Compiler.Service,sergey-tihon/FSharp.Compiler.Service,fsharp/fsharp,dsyme/FSharp.Compiler.Service,fsharp/fsharp,rojepp/FSh... |
5deb5f5bcf3a9a3dd80ff126bb0510c54101af41 | src/FSharping.Website/App.fs | src/FSharping.Website/App.fs | module FSharping.Website.App
open Suave
open Suave.Http
open Suave.Web
open Shaver.Localization
open Suave.Filters
open Suave.Operators
open System.Net
open Suave.Writers
let mimeTypes =
defaultMimeTypesMap
@@ (function | ".woff2" -> mkMimeType "application/font-woff2" false | _ -> None)
// change default bin... | module FSharping.Website.App
open Suave
open Suave.Http
open Suave.Web
open Shaver.Localization
open Suave.Filters
open Suave.Operators
open System.Net
open Suave.Writers
let mimeTypes =
defaultMimeTypesMap
@@ (function | ".woff2" -> mkMimeType "application/font-woff2" false | _ -> None)
// change default bin... | Add link to feedback form | Add link to feedback form
| F# | apache-2.0 | fsharping/Website,fsharping/Website,fsharping/Website |
c54fd97a7d878e829c69657971d80bdd69c4bb10 | build.fsx | build.fsx | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("IntelliFactory.WebSharper.D3", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Extension("IntelliFactory.WebSharper.D3")
.SourcesFromProject()
.Embed(["d3.v3.... | #load "tools/includes.fsx"
open IntelliFactory.Build
let bt =
BuildTool().PackageId("WebSharper.D3", "2.5")
.References(fun r -> [r.Assembly "System.Web"])
let main =
bt.WebSharper.Extension("IntelliFactory.WebSharper.D3")
.SourcesFromProject()
.Embed(["d3.v3.min.js"])
le... | Remove IntelliFactory prefix from package name. | Remove IntelliFactory prefix from package name.
| F# | apache-2.0 | intellifactory/websharper.d3 |
5ba19000204fa121434f6cc6116b08abbbe5dadd | GrantTool/Program.fs | GrantTool/Program.fs |
open OAuth2Client
open System
open System.IO
open System.Threading.Tasks
let askForAuthCode (client:AuthClient) =
let url = client.getUrlForGrantRequest()
System.Console.SetIn(new StreamReader(Console.OpenStandardInput(8192)));
printfn "Please visit this url to authorize the permissions:\n\n%s" (url)
print... |
open OAuth2Client
open System
open System.IO
open System.Threading.Tasks
let askForAuthCode (client:AuthClient) =
let url = client.getUrlForGrantRequest()
System.Console.SetIn(new StreamReader(Console.OpenStandardInput(8192)));
printfn "Please visit this url to authorize the permissions:\n\n%s" (url)
print... | Clarify command line usage printout | Clarify command line usage printout
| F# | bsd-3-clause | versionone/OAuth2Client.Net,versionone/OAuth2Client.Net |
4dfcc9087e4e075c14adc8dad8fe017058300349 | tests/Brahma.FSharp.Tests/Main.fs | tests/Brahma.FSharp.Tests/Main.fs | module ExpectoTemplate
open Expecto
[<EntryPoint>]
let main argv = Tests.runTestsInAssembly defaultConfig argv
| module ExpectoTemplate
open Expecto
[<EntryPoint>]
let main argv =
let config = { defaultConfig with parallel=false }
Tests.runTestsInAssembly config argv
| Make tests sequential. We have a shared states in translator, thus concurrent execution of tests leads to incorrect behavior. | Make tests sequential. We have a shared states in translator, thus concurrent execution of tests leads to incorrect behavior.
| F# | epl-1.0 | YaccConstructor/Brahma.FSharp,YaccConstructor/Brahma.FSharp,YaccConstructor/Brahma.FSharp,YaccConstructor/Brahma.FSharp |
aaa827c5d07a0c7ccd6fa5315d3bae2e919cbcc5 | src/app/FakeLib/RestorePackageHelper.fs | src/app/FakeLib/RestorePackageHelper.fs | [<AutoOpen>]
module Fake.RestorePackageHelper
open System
open System.IO
type RestorePackageParams =
{ ToolPath: string;
PackagePattern : string
TimeOut: TimeSpan
OutputPath: string}
/// RestorePackage defaults params
let RestorePackageDefaults =
{ ToolPath = "./tools/nuget/nuget.exe"
... | [<AutoOpen>]
module Fake.RestorePackageHelper
open System
open System.IO
type RestorePackageParams =
{ ToolPath: string
TimeOut: TimeSpan
OutputPath: string}
/// RestorePackage defaults params
let RestorePackageDefaults =
{ ToolPath = "./tools/nuget/nuget.exe"
TimeOut = TimeSpan.FromMinu... | Use PackageRestore in order to get rid of the packages | Use PackageRestore in order to get rid of the packages
| F# | apache-2.0 | MichalDepta/FAKE,pmcvtm/FAKE,mglodack/FAKE,ctaggart/FAKE,gareth-evans/FAKE,NaseUkolyCZ/FAKE,beeker/FAKE,rflechner/FAKE,MiloszKrajewski/FAKE,daniel-chambers/FAKE,tpetricek/FAKE,satsuper/FAKE,satsuper/FAKE,warnergodfrey/FAKE,NaseUkolyCZ/FAKE,xavierzwirtz/FAKE,hitesh97/FAKE,tpetricek/FAKE,ctaggart/FAKE,featuresnap/FAKE,le... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.