_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
7a51b93f8f3c6f8ebfc7427fe8271e8321336c3faa40962cde64d4296f564fba
ingesolvoll/kee-frame-sample
league.cljs
(ns kee-frame-sample.controller.league (:require [glimt.core :as http] [kee-frame-sample.format :as format] [kee-frame-sample.util :as util] [kee-frame.core :as k] [re-frame.core :as f])) (def table-fsm-id #(keyword (str "table-" %))) (def fixtures-fsm-id #(keyword (str "fixtures-" %))) (defn table-...
null
https://raw.githubusercontent.com/ingesolvoll/kee-frame-sample/5c0ff6159d74c19bc0a78eeee735c638b82af5d2/src/cljs/kee_frame_sample/controller/league.cljs
clojure
(ns kee-frame-sample.controller.league (:require [glimt.core :as http] [kee-frame-sample.format :as format] [kee-frame-sample.util :as util] [kee-frame.core :as k] [re-frame.core :as f])) (def table-fsm-id #(keyword (str "table-" %))) (def fixtures-fsm-id #(keyword (str "fixtures-" %))) (defn table-...
0557023d6b7cd2779881e4263579ba7e9bde1f25e3a06789ea48c792d2b9b2ce
eeng/shevek
virtualized.cljs
(ns shevek.components.examples.virtualized (:require [shevek.components.virtualized :refer [virtual-table]] [clojure.string :as str] [shevek.components.benchmark :refer [benchmark]])) (def lorem "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been t...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/cljs/shevek/components/examples/virtualized.cljs
clojure
(ns shevek.components.examples.virtualized (:require [shevek.components.virtualized :refer [virtual-table]] [clojure.string :as str] [shevek.components.benchmark :refer [benchmark]])) (def lorem "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been t...
8be3e308544c69d67524998353369da5718a2cfa4a6116903478e94876bb8170
futurice/haskell-mega-repo
Client.hs
module Futurice.App.EmailProxy.Client (sendEmail, sendHtmlEmail) where import Futurice.App.EmailProxy.API import Futurice.App.EmailProxy.Types import Futurice.Prelude import Prelude () import Servant.API import Servant.Client sendEmail :: Manager -> BaseUrl -> Req -> IO () sendEmail mgr burl req = runClientM (imp...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/email-proxy-client/src/Futurice/App/EmailProxy/Client.hs
haskell
module Futurice.App.EmailProxy.Client (sendEmail, sendHtmlEmail) where import Futurice.App.EmailProxy.API import Futurice.App.EmailProxy.Types import Futurice.Prelude import Prelude () import Servant.API import Servant.Client sendEmail :: Manager -> BaseUrl -> Req -> IO () sendEmail mgr burl req = runClientM (imp...
3bb251be13af8c0a080d52a3321f234e320093e9a55733de4a6c24a200bb8be0
Copilot-Language/copilot
Array.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # {-# LANGUAGE Safe #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | Copyright : ( c ) 2011 National Institute of Aerospace / Galois , Inc. -- -- Implementation of an array that uses type literals to store ...
null
https://raw.githubusercontent.com/Copilot-Language/copilot/a60e8280ccb939d0640c5a17da316577e9770730/copilot-core/src/Copilot/Core/Type/Array.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE Safe # | Implementation of an array that uses type literals to store length. No explicit indexing is used for the input data. Supports arbitrary nesting of arrays. External imports | Implementation of an array that uses type literals to store length. | ...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright : ( c ) 2011 National Institute of Aerospace / Galois , Inc. module Copilot.Core.Type.Array ( Array , array , arrayelems ) where import Data.Proxy (Proxy (..)) import GHC.TypeLits (Know...
6fb3403a7576639d606e86d34452cdda59f2f37e06c491f1cf9f9c0acc147c54
GrammaTech/sel
tree-sitter.lisp
;;;; tree-sitter.lisp --- tree-sitter representations. (defpackage :software-evolution-library/test/tree-sitter (:nicknames :sel/test/tree-sitter :sel/test/ts) (:use :gt/full :software-evolution-library/test/util :stefil+ :software-evolution-library :software-evolution-library/software/c :software...
null
https://raw.githubusercontent.com/GrammaTech/sel/134bc67e25d6b5713a58f697008cbc0099358632/test/tree-sitter.lisp
lisp
tree-sitter.lisp --- tree-sitter representations. Tests Mutations Preserve Properties Mutation target selection Variation Point (Errors and Source-text-fragments) NOTE: this test can fail if the parser or tree-sitter itself change how errors are created in the parse tree. NOTE: this test can fail if the ...
(defpackage :software-evolution-library/test/tree-sitter (:nicknames :sel/test/tree-sitter :sel/test/ts) (:use :gt/full :software-evolution-library/test/util :stefil+ :software-evolution-library :software-evolution-library/software/c :software-evolution-library/software/parseable :software-evol...
b876d1e3955ddc359c30bb3677edf80005935508ef57f35f7032a2c84cdc9cd1
jordwalke/rehp
docgen.ml
open StdLabels open Sexplib let find ~path ~ext = Array.to_list (Sys.readdir path) |> List.filter ~f:(fun name -> Filename.check_suffix name ext) |> List.map ~f:(Filename.concat path) let find_mli = find ~ext:".mli" let find_ml = find ~ext:".ml" let find_objs = find ~ext:".objs" let ignore_pp = List.filter...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/tools/docgen/docgen.ml
ocaml
open StdLabels open Sexplib let find ~path ~ext = Array.to_list (Sys.readdir path) |> List.filter ~f:(fun name -> Filename.check_suffix name ext) |> List.map ~f:(Filename.concat path) let find_mli = find ~ext:".mli" let find_ml = find ~ext:".ml" let find_objs = find ~ext:".objs" let ignore_pp = List.filter...
82ec396ae8f567e891d405942129e75552b9520331966e8caa60cc67f22323b6
DavidAlphaFox/ailib
ailib_integer.erl
-module(ailib_integer). -behaviour(ailib_string). -export([to_integer/1]). -export([to_binary/1]). -spec to_integer(binary()|list()|integer()) -> integer(). to_integer(Val) when erlang:is_binary(Val) -> erlang:binary_to_integer(Val); to_integer(Val) when erlang:is_list(Val) -> erlang:list_to_integer(Val); to_integer...
null
https://raw.githubusercontent.com/DavidAlphaFox/ailib/1027e980ff06f19ce30658d21ab225719ecc430d/src/stdlib/ailib_integer.erl
erlang
-module(ailib_integer). -behaviour(ailib_string). -export([to_integer/1]). -export([to_binary/1]). -spec to_integer(binary()|list()|integer()) -> integer(). to_integer(Val) when erlang:is_binary(Val) -> erlang:binary_to_integer(Val); to_integer(Val) when erlang:is_list(Val) -> erlang:list_to_integer(Val); to_integer...
812574b7389f4eeab2cb7fb9674bf87a888598211114be42145e1a6e0be84f7a
rowangithub/DOrder
34.ml
let rec loop i x y m n = if (i < n) then let i = i + 1 in let x = x + 1 in let y = if (i mod 2 = 0) then y + 1 else y in loop i x y m n else if (i = m) then assert (x = 2 * y) else () let main n = let x = 0 in let y = 0 in let i = 0 in let m = 10 in loop i x y m n let _ = main 10 let _ = main 11 l...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/hola/34.ml
ocaml
let rec loop i x y m n = if (i < n) then let i = i + 1 in let x = x + 1 in let y = if (i mod 2 = 0) then y + 1 else y in loop i x y m n else if (i = m) then assert (x = 2 * y) else () let main n = let x = 0 in let y = 0 in let i = 0 in let m = 10 in loop i x y m n let _ = main 10 let _ = main 11 l...
a8db20d6bef3d7797914e3be6f00e2640e72c57d940e926a9f78cc3c59ba9b8b
ncannasse/xml-light
dtd.mli
* Xml Light , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 ...
null
https://raw.githubusercontent.com/ncannasse/xml-light/fd62588fb7515e61d43771d885f585d3cd3fb9ca/src/dtd.mli
ocaml
* Xml Light , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 ...
cba5c634d455ed88d7a1266fc0b7b47a749b666ea7e8c4d5fc4c030e494ba4f4
huangz1990/SICP-answers
p194-simula.scm
;;; p194-simula.scm (load "28-or-gate.scm") (load "p190-full-adder.scm") (load "p190-half-adder.scm") (load "p191-and-gate.scm") (load "p191-inverter.scm") (load "p192-wire.scm") (load "p194-after-delay.scm") (load "p194-probe.scm") (load "p194-propagate.scm") (load "p196-agenda.scm") (define the-agenda (make-agenda)...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp3/code/p194-simula.scm
scheme
p194-simula.scm
(load "28-or-gate.scm") (load "p190-full-adder.scm") (load "p190-half-adder.scm") (load "p191-and-gate.scm") (load "p191-inverter.scm") (load "p192-wire.scm") (load "p194-after-delay.scm") (load "p194-probe.scm") (load "p194-propagate.scm") (load "p196-agenda.scm") (define the-agenda (make-agenda)) (define inverter-d...
ee1989bd248cb0fc627eb6313f3253a7a3f55afad44d5de668ec285b6012ce55
hanshuebner/vlm
start-without-Load-World.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*- Patch file for Private version 0.0 ;;; Reason: CLIM Command M-DBG::COM-START-APPLICATION: . ;;; CLIM Command M-DBG::COM-START-INTERACTOR: . Written by , 12/31/92 03:28:55 while running on from FEP0:>Sheltie - B - fr...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/support/start-without-Load-World.lisp
lisp
Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*- Reason: CLIM Command M-DBG::COM-START-APPLICATION: . CLIM Command M-DBG::COM-START-INTERACTOR: . EMB - SERIAL - FIX.LISP.1 ) , UNIX - ACCESS - PATH.LISP.6 ) . ======================== ========================
Patch file for Private version 0.0 Written by , 12/31/92 03:28:55 while running on from FEP0:>Sheltie - B - from - GMP-447 - 10.ilod.1 with Experimental System 447.18 , Experimental CLOS 433.0 , Experimental RPC 437.0 , Experimental Embedding Support 429.0 , Experimental MacIvory Support 443.1 , Experimen...
37f459318ee3dac33e415c061d44fb7dfd4fdffbc148b0a33d9c3dfabbfaa9a1
iu-parfunc/haskell_dsl_tour
L25ImposeCallingConventions.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L25ImposeCallingConventions where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Tail = IfT Pred Tail Tail | BeginT...
null
https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/nanopass/course_example/FrameworkHs/GenGrammars/L25ImposeCallingConventions.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L25ImposeCallingConventions where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Tail = IfT Pred Tail Tail | BeginT [Effect] Tail | AppT Triv [Var] ...
6a329af113b38f6079537a0b70ec267856b7bb963db8d110506dc92424e0fa87
oxidizing/letters
letters.mli
(** Configuration providing needed information to connect to the SMTP server. *) module Config : sig type t (** Build a configuration record for the SMTP server This is a helper to build a configuration. [username] username needed for the login, if empty string provided, SMTP will be used unaut...
null
https://raw.githubusercontent.com/oxidizing/letters/35f7594d15e3e670a5b99c8f6f75248bad9f7f85/lib/letters.mli
ocaml
* Configuration providing needed information to connect to the SMTP server. * Build a configuration record for the SMTP server This is a helper to build a configuration. [username] username needed for the login, if empty string provided, SMTP will be used unauthenticated [password] user's pa...
module Config : sig type t val create : ?mechanism:Sendmail.mechanism -> username:string -> password:string -> hostname:string -> with_starttls:bool -> unit -> t val make : username:string -> password:string -> hostname:string -> with_starttls:bool -> t [@@d...
832160404e46095c51ad9d4ccf46362da464090fa482ed580ca700df32cb9867
gergoerdi/clash-intel8080
Sim.hs
# LANGUAGE RecordWildCards , LambdaCase # module Hardware.Intel8080.Sim ( World(..) , world , initInput , sim , interrupt ) where import Hardware.Intel8080 import Hardware.Intel8080.Model (World(..)) import Hardware.Intel8080.CPU import Clash.Prelude hiding (lift) import RetroClash.Barbies im...
null
https://raw.githubusercontent.com/gergoerdi/clash-intel8080/7190e2e992db74cc32010ff42afc06bbce839450/src/Hardware/Intel8080/Sim.hs
haskell
# LANGUAGE RecordWildCards , LambdaCase # module Hardware.Intel8080.Sim ( World(..) , world , initInput , sim , interrupt ) where import Hardware.Intel8080 import Hardware.Intel8080.Model (World(..)) import Hardware.Intel8080.CPU import Clash.Prelude hiding (lift) import RetroClash.Barbies im...
d3f85e9f7c9f7f9e61dfa5d6f1fded9c02f64e76a0f126d2a57eb3d613741bb9
RefactoringTools/HaRe
Guards2.hs
module Guards2 where f x | x == 1 = g (x + 1) | otherwise = g x where g :: Int -> Int g 1 = 45 g x = 90 - x
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/whereToLet/Guards2.hs
haskell
module Guards2 where f x | x == 1 = g (x + 1) | otherwise = g x where g :: Int -> Int g 1 = 45 g x = 90 - x
f3fa6a4579418f7457a21ffdacd8d130ce15598f36eda20a0ef058e783b34a79
EduardoRFS/youtube-channel
expr.ml
open Typ type expr = | Int of int | Variable of string | Abstraction of { param : string; param_typ : typ; body : expr } | Application of { funct : expr; argument : expr } | Type_abstraction of { param : string; body : expr } | Type_application of { funct : expr; argument : typ } [@@deriving show { with_pa...
null
https://raw.githubusercontent.com/EduardoRFS/youtube-channel/895c9cb6e06c76530d00dcb8ea30cdaa24cb45f3/14-polymorphism-on-the-typed-lambda-calculus/code/expr.ml
ocaml
open Typ type expr = | Int of int | Variable of string | Abstraction of { param : string; param_typ : typ; body : expr } | Application of { funct : expr; argument : expr } | Type_abstraction of { param : string; body : expr } | Type_application of { funct : expr; argument : typ } [@@deriving show { with_pa...
c26f883d2696faf801652500a9e8354f9875ec1031f051adad95ecd9ef749ae1
RallySoftware/cljreplagent
core.clj
(ns cljreplagent.core (:require [clojure.tools.nrepl.server :refer [start-server stop-server]]) (:import [java.lang.instrument Instrumentation]) (:gen-class :prefix "-" :methods [^{:static true} [premain [String java.lang.instrument.Instrumentation] void]] :name cljreplagent.core.CljReplAgent)) (def ser...
null
https://raw.githubusercontent.com/RallySoftware/cljreplagent/061eaf2ca70e185ed8065c1092d3a707627cdb99/src/cljreplagent/core.clj
clojure
(ns cljreplagent.core (:require [clojure.tools.nrepl.server :refer [start-server stop-server]]) (:import [java.lang.instrument Instrumentation]) (:gen-class :prefix "-" :methods [^{:static true} [premain [String java.lang.instrument.Instrumentation] void]] :name cljreplagent.core.CljReplAgent)) (def ser...
371e6eaf7df865b86a4a0a7ff4f5819ff29c156292e7e625b4290a2d66bde34a
xapi-project/xen-api
quicktest_vdi.ml
module A = Quicktest_args * If VDI_CREATE and are present then make sure appear and disappear correctly VDI_CREATE should make a fresh disk ; should remove it VDI_CREATE should make a fresh disk; VDI_DELETE should remove it *) let vdi_create_destroy rpc session_id sr_info () = let sr = sr_info.Qt.sr in ...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/quicktest/quicktest_vdi.ml
ocaml
Request the following sizes and demand the disk is at least this big (or our data won't fit!) * For an SR which may be shared, return one plugged in PBD * If VDI_UPDATE is present then try it out * When cloning/snapshotting perform field by field comparisons to look for problems Clones and snapshots should ha...
module A = Quicktest_args * If VDI_CREATE and are present then make sure appear and disappear correctly VDI_CREATE should make a fresh disk ; should remove it VDI_CREATE should make a fresh disk; VDI_DELETE should remove it *) let vdi_create_destroy rpc session_id sr_info () = let sr = sr_info.Qt.sr in ...
7129ac0684adfde78a811af068671eff9052055aa9fa2c58f635cdb6e3c91a69
gorillalabs/sparkling
kryo.clj
;; ## Utilities and macros for dealing with kryo ;; (ns sparkling.kryo ) (defmacro defregistrator "DEPRECATED. DO NOT USE THIS ANYMORE. Use sparkling.serialization instead. A macro for creating a custom kryo registrator for application that need to register custom kryo serializers. This macro must be call...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/kryo.clj
clojure
## Utilities and macros for dealing with kryo
(ns sparkling.kryo ) (defmacro defregistrator "DEPRECATED. DO NOT USE THIS ANYMORE. Use sparkling.serialization instead. A macro for creating a custom kryo registrator for application that need to register custom kryo serializers. This macro must be called from a namespace that is AOT compiled. This is no...
653a5337defc803c5265694fc118049617d926f20b732300f17017c6208a1346
ItsMeijers/Lambdabox
Types.hs
# LANGUAGE DeriveGeneric , DuplicateRecordFields , OverloadedStrings # module Binance.Internal.MarketData.Types ( OrderBook(..) , PriceQuantity(..) , Trade(..) , AggregatedTrade(..) , Interval(..) , Candlestick(..) , DayPriceChange(..) , LatestPrice(..) , OrderBookTicker(..) ) w...
null
https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Binance/Internal/MarketData/Types.hs
haskell
# LANGUAGE DeriveGeneric , DuplicateRecordFields , OverloadedStrings # module Binance.Internal.MarketData.Types ( OrderBook(..) , PriceQuantity(..) , Trade(..) , AggregatedTrade(..) , Interval(..) , Candlestick(..) , DayPriceChange(..) , LatestPrice(..) , OrderBookTicker(..) ) w...
2869bc0982af27dc60f95eff918c8791e5d917c8ed0da12dfa1d5c4f6cbfeacb
gelisam/klister
Lexical.hs
# LANGUAGE TemplateHaskell # module Syntax.Lexical where import Control.Lens import Syntax.SrcLoc data Located a = Located { _locatedSrcLoc :: !SrcLoc , _locatedValue :: a } makeLenses ''Located
null
https://raw.githubusercontent.com/gelisam/klister/71c71e6ab768e7e6b43e9402bc127423cd6e562b/src/Syntax/Lexical.hs
haskell
# LANGUAGE TemplateHaskell # module Syntax.Lexical where import Control.Lens import Syntax.SrcLoc data Located a = Located { _locatedSrcLoc :: !SrcLoc , _locatedValue :: a } makeLenses ''Located
69e4aaa16975583378fe08859d6a236b073ef622a310eecf3bbfc209f730eaa5
spawnfest/eep49ers
wxCalendarDateAttr.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2021 . All Rights Reserved . %% 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 %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxCalendarDateAttr.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2021 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxCalendarDateAttr). -include("wxe.hrl"). -export([destroy/1,getBackgroundColour/1,getBorder/1,getBorderColo...
0afb36283905cc8c64e9be273872768180157855d5c3e53c4fc89d266028a0ff
tmhedberg/here
HereSpec.hs
# LANGUAGE QuasiQuotes # {-# LANGUAGE OverloadedStrings #-} module Data.String.HereSpec where import Test.Hspec import qualified Data.Char as Char import qualified Data.ByteString as BS import qualified Data.Text as T import Data.String.Here main :: IO () main = hspec spec spec :: Spec spec = do describe "i quo...
null
https://raw.githubusercontent.com/tmhedberg/here/ec276b1d009cf48f0e97edcbb1e82bc092b6dd70/test/Data/String/HereSpec.hs
haskell
# LANGUAGE OverloadedStrings # (from: #readme) (from: #readme)
# LANGUAGE QuasiQuotes # module Data.String.HereSpec where import Test.Hspec import qualified Data.Char as Char import qualified Data.ByteString as BS import qualified Data.Text as T import Data.String.Here main :: IO () main = hspec spec spec :: Spec spec = do describe "i quote" $ do it "should interpolate...
9eaea4d887896d8989678c8d98e1ce9153ad5ffacec4ca457eea493869b9fdfe
marcin-rzeznicki/stackcollapse-ghc
CallTree.hs
stackcollapse - ghc - fold GHC prof files into flamegraph input Copyright ( C ) 2020 This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , o...
null
https://raw.githubusercontent.com/marcin-rzeznicki/stackcollapse-ghc/6ff9b8d526dbeccb68aab02bec7cd7b2e53515ef/src/CallTree.hs
haskell
stackcollapse - ghc - fold GHC prof files into flamegraph input Copyright ( C ) 2020 This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , o...
4fcf35c907cf2d033bfc17e4d5bf69d1ec226b835d042dc2e1e71d9113f73994
synrc/nitro
element_file.erl
-module(element_file). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_element(Record) when Record#file.show_if==false -> [<<>>]; render_element(Record) -> Id = case Record#file.postback of [] -> Record#file.i...
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/elements/input/element_file.erl
erlang
global spec
-module(element_file). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_element(Record) when Record#file.show_if==false -> [<<>>]; render_element(Record) -> Id = case Record#file.postback of [] -> Record#file.i...
55b846787ebcaf7708a8f43ae250f504cddd46a746d3f41b577c5bf6d8989186
franks42/cljs-uuid-utils
project.clj
(defproject org.clojars.franks42/cljs-uuid-utils "1.0.0" :description "ClojureScript micro-library with an implementation of a type 4, random UUID generator compatible with RFC-4122 and cljs.core/UUID (make-random-uuid), a uuid-string conformance validating predicate (valid-uuid?), and a UUID factory from uuid-string...
null
https://raw.githubusercontent.com/franks42/cljs-uuid-utils/2511cec9433785a980d3a2a0fa737743caac85dc/project.clj
clojure
(defproject org.clojars.franks42/cljs-uuid-utils "1.0.0" :description "ClojureScript micro-library with an implementation of a type 4, random UUID generator compatible with RFC-4122 and cljs.core/UUID (make-random-uuid), a uuid-string conformance validating predicate (valid-uuid?), and a UUID factory from uuid-string...
16ffb62266263ed82d389132eea4091ae362bc5beda1680e5bfa6f88046cc418
kframework/semantic-approaches
Imp_Syntax.hs
This module defines imp data structures to be used in the semantics . We now need to derive to throw away duplicate states when finding nondeterminism - see the semantics . module Imp_Syntax where -- Arithmetic Binary Operators (operators for binary arithmetic expressions) data ABinOp = Plus | ...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/imp/1-imp-increment/1-imp-bigstep/Imp_Syntax.hs
haskell
Arithmetic Binary Operators (operators for binary arithmetic expressions) Arithmentic Expressions NEW. The argument here is an arithmetic expression only for the parser expression generator. The semantics will fail if it is not Id String Boolean Expressions Statements
This module defines imp data structures to be used in the semantics . We now need to derive to throw away duplicate states when finding nondeterminism - see the semantics . module Imp_Syntax where data ABinOp = Plus | Divide deriving (Show, Eq) data AExp = Id String | ...
141ece7c2e116da7740c369be53c811b55946aefe9d55e95fe188bd415793b9f
futurice/haskell-mega-repo
Main.hs
module Main (main) where import Futurice.App.HoursApi main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/hours-api/srv/Main.hs
haskell
module Main (main) where import Futurice.App.HoursApi main :: IO () main = defaultMain
8e2a3a68f16199441c9b32a483ca2d4f47ee955745d7d034ae440560ec9c8456
gator1/jepsen
core.clj
(ns block.core (:require [clojure.tools.logging :refer :all] [clojure.java.io :as io] [clojure.edn :as edn] [clojure.string :as str] [jepsen [core :as jepsen] [cli :as cli] [db :as db] [control :as c] [client :as clien...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/ceph-block/src/block/core.clj
clojure
define disk device, sector define host sudo password and primary node ip define operations (println (str "sh -c " (str "echo " pwd-sudo " | sudo -S " cmd))) get data on specific position from disk read cas from disk write cas to disk add cas to disk client for operation execution client for block operation pa...
(ns block.core (:require [clojure.tools.logging :refer :all] [clojure.java.io :as io] [clojure.edn :as edn] [clojure.string :as str] [jepsen [core :as jepsen] [cli :as cli] [db :as db] [control :as c] [client :as clien...
4b0bb93ac11397535def17d570fcec5e35079c10d2c74be8126024a2a5511619
let-def/owee
decodedline_elf.ml
(* ./decodedline <mybin> output should be similar to objdump --dwarf=decodedline <mybin> *) let path = if Array.length Sys.argv <= 1 then (prerr_endline ("Usage: " ^ Sys.argv.(0) ^ " my_binary.elf"); exit 1) else Sys.argv.(1) let buffer = Owee_buf.map_binary path let _header, sections = Owee_elf.rea...
null
https://raw.githubusercontent.com/let-def/owee/834302b643e501a1e7b04b6f4bbaee6cd6874c4b/examples/decodedline_elf.ml
ocaml
./decodedline <mybin> output should be similar to objdump --dwarf=decodedline <mybin>
let path = if Array.length Sys.argv <= 1 then (prerr_endline ("Usage: " ^ Sys.argv.(0) ^ " my_binary.elf"); exit 1) else Sys.argv.(1) let buffer = Owee_buf.map_binary path let _header, sections = Owee_elf.read_elf buffer let () = match Owee_elf.find_section sections ".debug_line" with | None -> () ...
f8acfcfeeed6ce40fb63c9498ef65b69497eec72a92f16ca453e862c6ad45d7e
digitallyinduced/ihp
SchemaCompiler.hs
module IHP.SchemaCompiler ( compile , compileStatementPreview ) where import ClassyPrelude import Data.String.Conversions (cs) import Data.String.Interpolate (i) import IHP.NameSupport (tableNameToModelName, columnNameToFieldName, enumValueToControllerName, pluralize) import qualified Data.Text as Text import qualifie...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/37cb74ce42420dec43376f921255b883e21bc3e8/IHP/SchemaCompiler.hs
haskell
| We can toggle the generation of @SetField@ and @GetField@ instances. This is e.g. disabled when showing the code preview in the schema designer as it's very noisy and does not add any values. But of course it's needed Skip generation of tables with no primary keys | Returns all the type arguments of the data str...
module IHP.SchemaCompiler ( compile , compileStatementPreview ) where import ClassyPrelude import Data.String.Conversions (cs) import Data.String.Interpolate (i) import IHP.NameSupport (tableNameToModelName, columnNameToFieldName, enumValueToControllerName, pluralize) import qualified Data.Text as Text import qualifie...
1e402f0122362ec627ef34247da1a2c8f9ab58e3126a1d3c347e61f89f3d2adb
Gbury/dolmen
maps.mli
module type S = Dolmen_intf.Map.S module Int : S with type key := int module String : S with type key := string module Make(Ord : Map.OrderedType) : S with type key := Ord.t
null
https://raw.githubusercontent.com/Gbury/dolmen/21bfd8d221b39dfd72a7938a09a6b2ae85b3c391/src/standard/maps.mli
ocaml
module type S = Dolmen_intf.Map.S module Int : S with type key := int module String : S with type key := string module Make(Ord : Map.OrderedType) : S with type key := Ord.t
6fea9937a137c7410ef8039c008bed27a06dcd9eecd08cd65390e4936dd49db6
LuxLang/lux
project.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (def version "0.6.0-SNAPSHOT") (def repo "") (def sonatype-releases "/") (def sonatype-snapshots "/") (defproject com.github.luxlang/licentia #=...
null
https://raw.githubusercontent.com/LuxLang/lux/91bc060bc498a0d2418198cfcb9dc39636d1d867/licentia/project.clj
clojure
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (def version "0.6.0-SNAPSHOT") (def repo "") (def sonatype-releases "/") (def sonatype-snapshots "/") (defproject com.github.luxlang/licentia #=...
5557443540988f5f4af185d1963b7fc1b59610af5c211ff5db4946b362424905
2600hz-archive/whistle
rabbit_exchange.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/rabbitmq_server-2.4.1/src/rabbit_exchange.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2007 - 2011 VMware , Inc. All rights reserved . -module(rabbi...
daf26d783c518e4885cc28f12d57513a9ff6eb7ad386735a833e32c390418845
ocaml/dune
filename.ml
include Stdlib.Filename type t = string module Extension = struct type nonrec t = t end let split_extension fn = let ext = extension fn in (String.sub fn ~pos:0 ~len:(String.length fn - String.length ext), ext) let split_extension_after_dot fn = match extension fn with | "" -> (fn, "") | s -> String.spl...
null
https://raw.githubusercontent.com/ocaml/dune/a65ba82ed7576385b1db11b3fe6c178c2f642a65/otherlibs/stdune/src/filename.ml
ocaml
include Stdlib.Filename type t = string module Extension = struct type nonrec t = t end let split_extension fn = let ext = extension fn in (String.sub fn ~pos:0 ~len:(String.length fn - String.length ext), ext) let split_extension_after_dot fn = match extension fn with | "" -> (fn, "") | s -> String.spl...
464d0f2f61d96e2c14b5350f7d15d568a7e784fda3ee86dcc58ed1ba48430f3a
kelamg/HtDP2e-workthrough
ex81.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex81) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex81.rkt
racket
about the language level of this file in a form that our tools can easily process. more designing with structures (make-point Integer Interger Number) Time -> Number
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex81) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct time (hours minutes seconds)) A Time is a structu...
a982a6f19af2ceffca0e769a9fa6a76bcb2e7e480da4351725e29b7cdab46c14
clojure/clojurescript
binding_test.cljs
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the t...
null
https://raw.githubusercontent.com/clojure/clojurescript/a4673b880756531ac5690f7b4721ad76c0810327/src/test/cljs/cljs/binding_test.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns cljs.binding-test (:require [cljs.test :refer-macros [deftest is]] [cljs.binding-test-other-ns :as o])) (deftest test-binding (is (binding [o/*foo* 2] (= o/*foo* 2))) (is (= o/*foo* 1))) (deftest test-...
b7206392fd207594f5bc8e9d0dfefe63aa3a95b1f788c49f46f14eae2b6076a0
MLstate/opalang
w_PatternsProcessing.ml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/typer_w/w_PatternsProcessing.ml
ocaml
************************************************************************** ************************************************************************** Attention, variables marked as generalized, i.e. bound by the non-instantiated scheme of a type-forall must not be touched, otherwise closing...
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
15d4290fa262f075b876d0dd8a397c71fc576644256c152b149884690bc0e88b
plumatic/schema
utils_test.cljc
(ns schema.utils-test #?(:clj (:use clojure.test) :cljs (:use-macros [cljs.test :only [are deftest]])) (:require [schema.utils :as utils])) (defn ^:private a-defn-function-with-a-normal-name [a b c d]) #?(:bb nil :default (deftest fn-name-test (are [in pattern] (re-matches pattern (utils/fn...
null
https://raw.githubusercontent.com/plumatic/schema/c6b5f7ceed9063f628ae5aa4820bdf22e63add0f/test/cljc/schema/utils_test.cljc
clojure
(ns schema.utils-test #?(:clj (:use clojure.test) :cljs (:use-macros [cljs.test :only [are deftest]])) (:require [schema.utils :as utils])) (defn ^:private a-defn-function-with-a-normal-name [a b c d]) #?(:bb nil :default (deftest fn-name-test (are [in pattern] (re-matches pattern (utils/fn...
eba14d7c994cce35d9b832af7f67268ba7b437666c36ba78a70e5d6c7179b799
Workiva/eva
defaults.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/defaults.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.defaults (:require [again.core :as again])) (defn default-strategy [retries] (cons 0 (again/max-retries retries (again/randomize-strategy 0.5 ...
b5976ea312b83e2b2655f0f1cc89713cb483ce6f528f74377659bd681cc26ad2
crate/craterl
craterl_app.erl
%%%------------------------------------------------------------------- ( C ) 2014 , CRATE Technology GmbH Licensed to CRATE Technology GmbH ( " Crate " ) under one or more contributor %%% license agreements. See the NOTICE file distributed with this work for %%% additional information regarding copyright ownershi...
null
https://raw.githubusercontent.com/crate/craterl/2b90bf61c3c3a0a62e82f8c1710d7825c879fb10/src/craterl_app.erl
erlang
------------------------------------------------------------------- license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Crate licenses obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, sof...
( C ) 2014 , CRATE Technology GmbH Licensed to CRATE Technology GmbH ( " Crate " ) under one or more contributor this file to you under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may distributed under the License is distribut...
ec9a1ae77f943fbba2dbb3ee77e984efedcd8c5167cad890c2ea5686315f99ee
iokasimov/pandora
Semiring.hs
module Pandora.Pattern.Object.Semiring (Semiring) where import Pandora.Pattern.Object.Ringoid (Ringoid) {- | > When providing a new instance, you should ensure it satisfies: > * Associativity: x * (y * z) ≡ (x * y) * z -} class Ringoid a => Semiring a where
null
https://raw.githubusercontent.com/iokasimov/pandora/4ff22ccf1c9824e3072d2ea0163b923798528b3a/Pandora/Pattern/Object/Semiring.hs
haskell
| > When providing a new instance, you should ensure it satisfies: > * Associativity: x * (y * z) ≡ (x * y) * z
module Pandora.Pattern.Object.Semiring (Semiring) where import Pandora.Pattern.Object.Ringoid (Ringoid) class Ringoid a => Semiring a where
a872f9c855e7ad62a89fe3ea7cdd863b7a597eecb911abc46b7503c1bc32ce91
jrh13/hol-light
calc_rat.ml
(* ========================================================================= *) (* Calculation with rational-valued reals. *) (* *) , University of Cambridge Computer Laboratory (* ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/calc_rat.ml
ocaml
========================================================================= Calculation with rational-valued reals. ===============...
, University of Cambridge Computer Laboratory ( c ) Copyright , University of Cambridge 1998 ( c ) Copyright , 1998 - 2007 needs "real.ml";; let DECIMAL = new_definition `DECIMAL x y = &x / &y`;; let RAT_LEMMA1 = prove ...
a2ac2a1e36ba6bf04c9c82db7b1aadb6f00e8ea8dd0ed656fe4b8b848ebaa58e
dongcarl/guix
minify-build-system.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build/minify-build-system.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 < > Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build minify-build-system) #:use-module ((guix build gnu-build-sy...
925edeb59edc4eef34de7d771bef92a22fe823f4ca3b5d61323deae66ddfd064
vereis/jarlang
asttrans.erl
%%% Module Description: Recursively descends into a core erlang AST and generates an ESTREE equivalent -module(asttrans). -author(["Andrew Johnson", "Chris Bailey", "Nick Laine"]). -define(VERSION, "2.1.0"). -vsn(?VERSION). %%% Export all functions if we compiled with erlc -dTEST or c(?MODULE, {d, 'TEST'}). %%% Th...
null
https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/asttrans.erl
erlang
Module Description: Export all functions if we compiled with erlc -dTEST or c(?MODULE, {d, 'TEST'}). This is so that we can run external eunit tests ---------------------------------------------------------------------------------------------%%% - MODULE ENTRYPOINTS ------------------------------------------------...
Recursively descends into a core erlang AST and generates an ESTREE equivalent -module(asttrans). -author(["Andrew Johnson", "Chris Bailey", "Nick Laine"]). -define(VERSION, "2.1.0"). -vsn(?VERSION). -ifdef(TEST). -compile(export_all). -else. -export([erast_to_esast/2]). -endif. erast_to_esast(AST, C...
a06243dfc70ae414b363d22daa8cff7be4ad536d7c27c35bd89953740d5a152f
fyquah/hardcaml_zprize
utils.ml
open Core module Extended_euclidean = Field_ops_lib.Extended_euclidean let a_big_prime = Z.of_string "21888242871839275222246405745257275088696311157297823662689037894645226208583" ;; let sexp_of_z z = Sexp.Atom ("0x" ^ Z.format "x" z) let generate_z ~lo_incl ~hi_incl = Quickcheck.Generator.map ~f:Bigint...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/test/utils.ml
ocaml
open Core module Extended_euclidean = Field_ops_lib.Extended_euclidean let a_big_prime = Z.of_string "21888242871839275222246405745257275088696311157297823662689037894645226208583" ;; let sexp_of_z z = Sexp.Atom ("0x" ^ Z.format "x" z) let generate_z ~lo_incl ~hi_incl = Quickcheck.Generator.map ~f:Bigint...
2dc03e11bad05e30fec3458b4136d43c9e03d0d8d8f4b2f6c95c7237c7cd1e3b
input-output-hk/casino
ECC.hs
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Crypto.Casino.Primitives.ECC ( Point(..) , Scalar(..) , PublicKey(..) , PrivateKey(..) , KeyPair(...
null
https://raw.githubusercontent.com/input-output-hk/casino/3434448e657aa9bfdfc9216f8fb9d7984460b95b/prim/src/Crypto/Casino/Primitives/ECC.hs
haskell
# LANGUAGE BangPatterns # | Private Key | Public Key | calculate legendre symbol p need to be an odd prime | Calculate the square mod p find the lowest Z that is not a residue mod p | Point adding | Point subtraction | Point scaling | Point adding | Point scaling
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Crypto.Casino.Primitives.ECC ( Point(..) , Scalar(..) , PublicKey(..) , PrivateKey(..) , KeyPair(..) , DhSecret(..) , c...
03a46a1f2fbbe6280b57e429093d4d4d05060659b70c1b1b91893cfaf815a39e
rtoy/ansi-cl-tests
restart-case.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Mar 22 06:58:03 2003 ;;;; Contains: Tests for RESTART-CASE (in-package :cl-test) (deftest restart-case.1 (restart-case (values))) (deftest restart-case.2 (restart-case 1) 1) (deftest restart-case.3 (restart-case (values 'a 'b 'c 'd 'e 'f)) a b c d ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/restart-case.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for RESTART-CASE Special cases when restart-case associates the restarts with a condition Test that the inner restart-case has associated its restart with the condition to be raised by the error form.
Author : Created : Sat Mar 22 06:58:03 2003 (in-package :cl-test) (deftest restart-case.1 (restart-case (values))) (deftest restart-case.2 (restart-case 1) 1) (deftest restart-case.3 (restart-case (values 'a 'b 'c 'd 'e 'f)) a b c d e f) (deftest restart-case.4 (restart-case (progn (invoke-r...
4763e659895c079092812f7fde93bd42e5f6a30ca837863517ff6919b9137ba2
basho/riak_test
verify_staged_clustering.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2012 Basho Technologies , Inc. %% This file is provided to you 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 Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/verify_staged_clustering.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2012 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(verify_staged_clustering...
5a7dda7ef897f64ddaa188a3515a1380eeec6e0c5b69e16d9774115bf845c3d3
diku-dk/futhark
Test.hs
# LANGUAGE LambdaCase # -- | @futhark test@ module Futhark.CLI.Test (main) where import Control.Applicative.Lift (Errors, Lift (..), failure, runErrors) import Control.Concurrent import Control.Exception import Control.Monad import Control.Monad.Except hiding (throwError) import Control.Monad.Except qualified as E im...
null
https://raw.githubusercontent.com/diku-dk/futhark/1fe93634d63df6005116f55f18e8a35b1a11987a/src/Futhark/CLI/Test.hs
haskell
| @futhark test@ - Test execution Taken from transformers-0.5.5.0. Explicitly prefixing the current directory is necessary for no path component. | Only type check. | Only compile (do not run). | Test compiled code. | Test interpreted code. Compile up-front and reuse same executable for several entry points. ...
# LANGUAGE LambdaCase # module Futhark.CLI.Test (main) where import Control.Applicative.Lift (Errors, Lift (..), failure, runErrors) import Control.Concurrent import Control.Exception import Control.Monad import Control.Monad.Except hiding (throwError) import Control.Monad.Except qualified as E import Data.ByteString...
81eb00c54d586bd8e935ff0bfbfa506584e602f57eb68e414cb74addd5254191
YoshikuniJujo/test_haskell
Color.hs
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -Wall -fno - warn - tabs # module Try.Color where import GHC.Generics import qualified Data.Swizzle.Class as S import Data.Swizzle.TH import Data.Curry swizzle "yzwx" newtype Red = Red Double deriving Show newtype Green...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/473cea872fd73e369b790668fec9b072d570ffd7/themes/swizzle/try-swizzle/src/Try/Color.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -Wall -fno - warn - tabs # module Try.Color where import GHC.Generics import qualified Data.Swizzle.Class as S import Data.Swizzle.TH import Data.Curry swizzle "yzwx" newtype Red = Red Double deriving Show newtype Green...
21bd27428153ae019a995d3da6dd9e559aedcbfbd6e789d7a13adec5a701c421
ocaml-multicore/tezos
cache_repr.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/cache_repr.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
68687655a7e838589c4f117e65b367e6b2b888627951e657248fd73c2a5dd47b
llaisdy/liga
liga_region.erl
-module(liga_region). -include("types.hrl"). -export([init_regions/1 ,node_to_region/2 ,edge_to_region/2 ]). init_regions(0) -> []; init_regions(N) -> M = N - 1, [{emap, M}, {nmap, M} | init_regions(M)]. -spec node_to_region(mnode(), nonegint()) -> region(). node_to_region({X, Y, Z}, N) -> region(...
null
https://raw.githubusercontent.com/llaisdy/liga/82fe6a3288973fc9322d78f4ac4d686f91aabb76/src/liga_region.erl
erlang
private
-module(liga_region). -include("types.hrl"). -export([init_regions/1 ,node_to_region/2 ,edge_to_region/2 ]). init_regions(0) -> []; init_regions(N) -> M = N - 1, [{emap, M}, {nmap, M} | init_regions(M)]. -spec node_to_region(mnode(), nonegint()) -> region(). node_to_region({X, Y, Z}, N) -> region(...
e58180066d84d2ff91546bbae9e9fc8329ec944555c3f5d94daecb9531e1791a
shop-planner/shop3
tree-accessors.lisp
;;; Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 ;;; The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distr...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/planning-tree/tree-accessors.lisp
lisp
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Portions creat...
Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SHOP2 . This code developed by . 2004 - 2007 SIFT , LLC . These additions and modifications are also av...
ffeecbca32168902b625929205001a123ae5401fa73ab6766b45fbb2e723763b
joneshf/open-source
Main.hs
module Main where import qualified Rollbar.Golden import qualified Rollbar.Item.Data.Test import qualified Rollbar.Item.MissingHeaders.Test import qualified Rollbar.Item.Request.Test main :: IO () main = do Rollbar.Golden.main Rollbar.Item.Data.Test.props Rollbar.Item.MissingHeaders.Test.props Rollbar...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/packages/rollbar-hs/test/Main.hs
haskell
module Main where import qualified Rollbar.Golden import qualified Rollbar.Item.Data.Test import qualified Rollbar.Item.MissingHeaders.Test import qualified Rollbar.Item.Request.Test main :: IO () main = do Rollbar.Golden.main Rollbar.Item.Data.Test.props Rollbar.Item.MissingHeaders.Test.props Rollbar...
bf8a9a24a40a8ac94888531ba06f7f96124c53c059601348aa181c4ef116877b
fredlund/McErlang
ltl_rewrite.erl
Copyright ( c ) 2009 , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions and...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/Ltl2Buchi/src/ltl_rewrite.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2009 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR Author : < > Created : 19 Mar 2009 by < > @author < > @copyright 2009 , -module(ltl_rewrite). -export([rewrite/1])....
572e42e2fe28a6e8cb516923ffb3d14291261b657ad74aaff943d46e8a6b7647
clojure/core.typed
repl.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/jvm/repl.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:skip-wiki clojure.core.typed.checker.jvm.repl (:require [clojure.tools.nrepl.middleware :as mid] [clojure.tools.nrepl.transport :as transport] [clojure.tools.nrepl.misc :as misc] [clojure.core.typed :as t] [clojure.core...
295414d0a44d6a8f3ef35b2b3ba9f41011b4bcfa358a9944ac8ccc421a27b9ef
McCLIM/McCLIM
utilities.lisp
(in-package #:mcclim-render) (defmacro do-regions (((src-j dest-j y1s y1d y2) (src-i dest-i x1s x1d x2) &key backward) &body body) "Region mapping macro. Iterates over two regions synchronously. When BACKWARD is T iteration starts from the bottom-right corner, otherwise ...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/244d51544484b089e66c59f683a2d015121a2043/Extensions/render/utilities.lisp
lisp
Expected variable: CLIPPING-REGION. Expected variable: DESIGN. Expected variable: IMAGE. This macro assumes that the following variables are bound: IMAGE - target array DESIGN - source design CLIPPING-REGION - a clipping region or nil STENCIL{,-DX,-DY} - drawing stencil or nil Returns T for valid arguments, N...
(in-package #:mcclim-render) (defmacro do-regions (((src-j dest-j y1s y1d y2) (src-i dest-i x1s x1d x2) &key backward) &body body) "Region mapping macro. Iterates over two regions synchronously. When BACKWARD is T iteration starts from the bottom-right corner, otherwise ...
2ec60067eb4ca09072da78d6b0bd6826199d2964fdac26a822be1eec0be5e635
OCamlPro/ocp-build
buildOCPParse.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/lang-ocp/buildOCPParse.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file exception ParseError val read_ocamlconf : string -> string -> BuildOCPTree.statement list
31b64f6617e9abc2542d7653b3c9530b3655572ddd6da93451a75d25d0ccb7b1
hakaru-dev/hakaru
Sing.hs
# LANGUAGE CPP , GADTs # {-# OPTIONS_GHC -Wall -fwarn-tabs #-} ---------------------------------------------------------------- -- 2015.12.19 -- | -- Module : Language.Hakaru.Syntax.AST.Sing Copyright : Copyright ( c ) 2016 the Hakaru team -- License ...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Language/Hakaru/Syntax/AST/Sing.hs
haskell
# OPTIONS_GHC -Wall -fwarn-tabs # -------------------------------------------------------------- 2015.12.19 | Module : Language.Hakaru.Syntax.AST.Sing License : BSD3 Maintainer : Stability : experimental ----------------------------------------...
# LANGUAGE CPP , GADTs # Copyright : Copyright ( c ) 2016 the Hakaru team Portability : GHC - only Factored out from " Language . Hakaru . Syntax . AST " . TODO : if we 're not going to have this in " Language . Hakaru . Syntax . AST " , then we should rename it to @Language . Hakaru . Syntax . AST.Sing...
80d2856ae742ec0f33be0023766826dfff27aea16d2011d01a980f7b55d3d773
gildor478/ocaml-gettext
gettextCamomile.mli
exception GettextCamomileCreate of string * exn exception GettextCamomileRecode of string * exn module Charset : GettextCharset.CHARSET_TYPE module Map : GettextTypes.REALIZE_TYPE module Hashtbl : GettextTypes.REALIZE_TYPE module Open : GettextTypes.REALIZE_TYPE
null
https://raw.githubusercontent.com/gildor478/ocaml-gettext/9b7afc702bccace9a544b8efa2a28bc2b13371ed/src/lib/gettext-camomile/gettextCamomile.mli
ocaml
exception GettextCamomileCreate of string * exn exception GettextCamomileRecode of string * exn module Charset : GettextCharset.CHARSET_TYPE module Map : GettextTypes.REALIZE_TYPE module Hashtbl : GettextTypes.REALIZE_TYPE module Open : GettextTypes.REALIZE_TYPE
e86c939924e44750791f691ab50bdd1e119fb80c60b1255574905c199fc9b6f9
metosin/ring-http-response
http_predicates.clj
(ns ring.util.http-predicates) (defn informational? "Check whether the response type is Informational (status code is between 100 and 199)." [response] {:pre (map? response)} (<= 100 (:status response) 199)) (defn success? "Check whether the response type is Success (status code is between 200 and 299)....
null
https://raw.githubusercontent.com/metosin/ring-http-response/fbcc3867dddc4b37cb1ac4dcc914b091de7e96bb/src/ring/util/http_predicates.clj
clojure
(ns ring.util.http-predicates) (defn informational? "Check whether the response type is Informational (status code is between 100 and 199)." [response] {:pre (map? response)} (<= 100 (:status response) 199)) (defn success? "Check whether the response type is Success (status code is between 200 and 299)....
778bee60b1bed4fd794e2f796dc8e47e0deff3d7b58e0cc3f61634f469596871
TOTBWF/teenytt
SymbolTable.hs
module Spec.TeenyTT.Base.SymbolTable ( specs , properties ) where import Control.Monad import Control.Monad.Primitive import Data.Foldable import Data.Hashable import TeenyTT.Base.SymbolTable (SymbolTable) import TeenyTT.Base.SymbolTable qualified as Tbl import Test.Hspec import Test.Hspec.Hedgehog import Hed...
null
https://raw.githubusercontent.com/TOTBWF/teenytt/a45162254b4b3c056b1607f4759bd608fd355165/test/Spec/TeenyTT/Base/SymbolTable.hs
haskell
NOTE: Single enough to avoid a resize. NOTE: Big enough to avoid a resize. NOTE: Small enough to trigger (multiple) resizes
module Spec.TeenyTT.Base.SymbolTable ( specs , properties ) where import Control.Monad import Control.Monad.Primitive import Data.Foldable import Data.Hashable import TeenyTT.Base.SymbolTable (SymbolTable) import TeenyTT.Base.SymbolTable qualified as Tbl import Test.Hspec import Test.Hspec.Hedgehog import Hed...
81ba9629fe26d4c7050ba10273a912ab984438c27ddf02c51bef072c8723cf08
theodormoroianu/SecondYearCourses
LambdaChurch_20210415165711.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415165711.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
1922e717a97532ac72e1d190e95d0bda1b840543a9279ebe0b25c1426980924e
jordwalke/rehp
xmlHttpRequest.mli
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/xmlHttpRequest.mli
ocaml
* XmlHttpRequest object.
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ...
08acfdaa66ec4e67a0fa703f230d6124df65e227837f8beb07279cba91d1f828
spechub/Hets
Hs2HOLCF.hs
| Module : $ Header : /repository / HetCATS / Comorphisms / Hs2HOLCF.hs , v 1.42 2007/05/25 10:49:58 paolot Exp $ Description : theory translation for the embedding comorphism from Haskell to Isabelle Copyright : ( c ) and and Uni Bremen 2004 - 2005 License : GPLv2 or higher , see LI...
null
https://raw.githubusercontent.com/spechub/Hets/bbaa9dd2d2e5eb1f2fd3ec6c799a6dde7dee6da2/Comorphisms/Hs2HOLCF.hs
haskell
Haskell Isabelle ---------------------------- Top level function ------------------------ -------------------------- Theory translation ------------------------ ----------------------------------------------------------------- ------------ main functions for sentence translation ------------------- --------------...
| Module : $ Header : /repository / HetCATS / Comorphisms / Hs2HOLCF.hs , v 1.42 2007/05/25 10:49:58 paolot Exp $ Description : theory translation for the embedding comorphism from Haskell to Isabelle Copyright : ( c ) and and Uni Bremen 2004 - 2005 License : GPLv2 or higher , see LI...
4b485af4438d31a69133fc1bbee1c38f3ff3a6edf24a096d4799b28528288718
fukamachi/getac
shell.lisp
(defpackage #:getac/shell (:use #:cl) (:export #:run-program)) (in-package #:getac/shell) (defun run-program (command &key input (output :stream)) (let ((process (uiop:launch-program command :input input :output output ...
null
https://raw.githubusercontent.com/fukamachi/getac/94473a0a4adc96b1b055633c6d78e05aa52ead6b/src/shell.lisp
lisp
(defpackage #:getac/shell (:use #:cl) (:export #:run-program)) (in-package #:getac/shell) (defun run-program (command &key input (output :stream)) (let ((process (uiop:launch-program command :input input :output output ...
0ed44bc5ca5ee3db5f919e1d64c0b9fc14863efd2c8dfadc0c3454ef06745475
haskell-opengl/OpenGLRaw
ClearBufferObject.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.ClearBufferObject Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -------------------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/ClearBufferObject.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.ClearBufferObject License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Functions
Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.ClearBufferObject ( glGetARBClearBufferObject, gl_ARB_clear_buffer_object, glClearBufferData, glClearBufferSubData ) where import Graphics.GL.ExtensionPredicates import Graphics.GL.Functions
54d3b9926cd7820fe710883a528dddba804ae486db0c260f06d936c868dab92e
tekul/broch
Internal.hs
# LANGUAGE OverloadedStrings , ScopedTypeVariables , GeneralizedNewtypeDeriving # module Broch.Server.Internal ( Handler , routerToApp , routerToMiddleware , postParams , queryParams , postParam , queryParam , maybeQueryParam , maybePostParam , httpMethod , requireMethod ...
null
https://raw.githubusercontent.com/tekul/broch/885ace4652cad4dcd806c8c31c1a59bf6a9a3337/Broch/Server/Internal.hs
haskell
Request handler monad Handler functions Accessing requests Responses Redirect to an internal location within the same site
# LANGUAGE OverloadedStrings , ScopedTypeVariables , GeneralizedNewtypeDeriving # module Broch.Server.Internal ( Handler , routerToApp , routerToMiddleware , postParams , queryParams , postParam , queryParam , maybeQueryParam , maybePostParam , httpMethod , requireMethod ...
500faa306d88d1cb8b3a4e940c4e15123c225557e77845294e93be920e40dfe0
BorjaEst/enn
enn_app.erl
%%%------------------------------------------------------------------- %% @doc enn public API %% @end %%%------------------------------------------------------------------- -module(enn_app). -author("borja"). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%=============================...
null
https://raw.githubusercontent.com/BorjaEst/enn/fa6c18913f3fb3e9391234c5e90cbcb432355bc0/src/enn_app.erl
erlang
------------------------------------------------------------------- @doc enn public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ============================================================...
-module(enn_app). -author("borja"). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> nnet:start_tables(), enn_sup:start_link(). stop(_State) -> ok. Internal functions
0792c71bacf345d0724b04c78443dd67b86bd6e16ccc98567a666668f3623f5a
kowainik/hintman
App.hs
module Hintman.App ( module Hintman.App.Env , module Hintman.App.Error , module Hintman.App.Monad ) where import Hintman.App.Env import Hintman.App.Error import Hintman.App.Monad
null
https://raw.githubusercontent.com/kowainik/hintman/3dd38fa789098fbadfc905be801853942b81b7be/src/Hintman/App.hs
haskell
module Hintman.App ( module Hintman.App.Env , module Hintman.App.Error , module Hintman.App.Monad ) where import Hintman.App.Env import Hintman.App.Error import Hintman.App.Monad
9048da7e4d8a3d8b6c76ef7ebca441255eed057f700dec8bab0bd7bb83d0dac4
namin/biohacker
subways.lisp
;; -*- Mode: Lisp; -*- Test problem for CPS -- Navigating the Boston Subway Last Edited : 1/29/93 , by KDF Copyright ( c ) 1986 - 1991 , , Northwestern University , and , the Xerox Corporation . ;;; All rights reserved. ;;; See the file legal.txt for a paragraph stating scope of permission ;;; and disc...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/cps/subways.lisp
lisp
-*- Mode: Lisp; -*- All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file. Problem is to get from stop A to stop B on the subway. is TAKE-LINE(<start sta...
Test problem for CPS -- Navigating the Boston Subway Last Edited : 1/29/93 , by KDF Copyright ( c ) 1986 - 1991 , , Northwestern University , and , the Xerox Corporation . States correspond to what station we are at . The only operator The subway map is described in terms of two structs , one ...
8d631700bfd4aecd18371794af89b84defd9490f5325acd2c64eb3912afe05c6
irastypain/sicp-on-language-racket
functions.rkt
#lang racket (require (only-in "base.rkt" abs)) (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next (try next))))...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/lib/functions.rkt
racket
#lang racket (require (only-in "base.rkt" abs)) (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next (try next))))...
bbb14476d4d31eabd0951cd5463b0bf48e460119809bbc75f82e87dc45b0acae
JoeDralliam/Ocsfml
ocsfmlAudio.mli
(** Audio I/O and sound management **) type 'a reference = 'a * The audio listener is the point in the scene from where all the sounds are heard . The audio listener defines the global properties of the audio environment , it defines where and how sounds and musics are heard . If OcsfmlG...
null
https://raw.githubusercontent.com/JoeDralliam/Ocsfml/e1bf50665aa34dea4e4d249bf73ab0036b3731fb/OcsfmlAudio/ocsfmlAudio.mli
ocaml
* Audio I/O and sound management * Move the listener to the position (1, 0, -5) Reduce the global volume * Set the orientation of the listener in the scene. The orientation defines the 3D axes of the listener (left, up, front) in the scene. The orientation vector doesn't have to be normaliz...
type 'a reference = 'a * The audio listener is the point in the scene from where all the sounds are heard . The audio listener defines the global properties of the audio environment , it defines where and how sounds and musics are heard . If OcsfmlGraphics.view is the eyes of the user , ...
87d41d2b7039b8a9874b1910a2708a8e2266f6e25875f82004e39500ff5e5e22
huangz1990/SICP-answers
test-31-denom-term.scm
(load "test-manager/load.scm") (load "31-denom-term.scm") (define-each-check (= 3 (denom-term 1)) (= 3 (denom-term 2)) (= 5 (denom-term 3)) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-31-denom-term.scm
scheme
(load "test-manager/load.scm") (load "31-denom-term.scm") (define-each-check (= 3 (denom-term 1)) (= 3 (denom-term 2)) (= 5 (denom-term 3)) ) (run-registered-tests)
eb9de81745ba6d32d94509d421c05fb0d3770b15997bd9707c5d695a4671b8ce
wellposed/numerical
Shape.hs
# LANGUAGE DataKinds , GADTs , TypeFamilies # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE ExplicitForAll # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TypeOperators # {-# LANGUAGE BangPatterns #-} # LANGUAGE UnboxedTuples # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDepe...
null
https://raw.githubusercontent.com/wellposed/numerical/bf61926a854586b9707b88798887d7a72beeed13/src/Numerical/Array/Shape.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveDataTypeable # # LANGUAGE BangPatterns # * Shape * Shape Utilities ,T.Traversable(..) the concern basically boils down to "will it specialize / inline well" deriving instance (Data a, Typeable n ) => Data (Shape n a) gfoldl f z xs = gfoldl f z (shapeToList xs) ...
# LANGUAGE DataKinds , GADTs , TypeFamilies # # LANGUAGE ExplicitForAll # # LANGUAGE TypeOperators # # LANGUAGE UnboxedTuples # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriv...
4abf0e52a48dd84ea5811566b3aee34ec9b48e3361661571eed99086fed6b3c2
elaforge/karya
DeriveM_criterion.hs
Copyright 2022 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Derive.Deriver.DeriveM_criterion where import qualified Criterion import qualified Criterion.Main import qualified System.Environment as Environment import qualified Text.Read as R...
null
https://raw.githubusercontent.com/elaforge/karya/255a8f7553b33aeb5c401668202816c4e14c7f55/Derive/Deriver/DeriveM_criterion.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt Either I'm doing it wrong, or there is none.
Copyright 2022 module Derive.Deriver.DeriveM_criterion where import qualified Criterion import qualified Criterion.Main import qualified System.Environment as Environment import qualified Text.Read as Read import qualified Derive.Deriver.DeriveMBench as DeriveMBench Try to see if there is overhead in DeriveM....
f256013c22286f7ae84ead23c8e31e8d72145335fd1688d51c46a70850c0e717
motoshira/lib_for_competitive_programming
automaton.lisp
(ql:quickload :rove :slient t) (defpackage test/automaton (:use #:cl) (:import-from #:rove #:deftest #:testing #:ok) (:import-from #:automaton)) (in-package #:test/automaton) (defun make-simple-array (&rest vals) (coerce vals '(simple-array fixnum 1))) (deftes...
null
https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/06547d14ead14e3cb68bd7ab8677d6f199505df3/experimental/test/automaton.lisp
lisp
(ql:quickload :rove :slient t) (defpackage test/automaton (:use #:cl) (:import-from #:rove #:deftest #:testing #:ok) (:import-from #:automaton)) (in-package #:test/automaton) (defun make-simple-array (&rest vals) (coerce vals '(simple-array fixnum 1))) (deftes...
3b9227f6b9f28ae7f0d096125e4c86844f89d9ceb6d45c6709781f892264ca53
xtdb/xtdb
dropwizard.clj
(ns xtdb.metrics.dropwizard (:import (com.codahale.metrics MetricRegistry Timer Timer$Context Gauge Metered Meter) clojure.lang.IFn)) ;;;; Registry (defn new-registry [] (MetricRegistry.)) (defn- metric-...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/modules/metrics/src/xtdb/metrics/dropwizard.clj
clojure
Registry Timers Gauges
(ns xtdb.metrics.dropwizard (:import (com.codahale.metrics MetricRegistry Timer Timer$Context Gauge Metered Meter) clojure.lang.IFn)) (defn new-registry [] (MetricRegistry.)) (defn- metric-name [path] ...
9c4cebdc57f65f8efe37d6748903b4d8366fffc0050794ebca6660dcaf132c16
shirok/Gauche
srfi-236-tests.scm
(import (scheme base) (srfi 78) (srfi 236)) ;; just to test edge case (check (let ((v 'ok)) (independently) v) => 'ok) (check (let ((v (cons #f #f))) (independently (set-car! v 'ok)) v) => '(ok . #f)) (define (set-car+cdr! p x y) (independently (set-car! p x) (set-cdr! p y...
null
https://raw.githubusercontent.com/shirok/Gauche/2bac91f96e1ca00b906d2007b12de628920388d8/test/include/srfi-236-tests.scm
scheme
just to test edge case
(import (scheme base) (srfi 78) (srfi 236)) (check (let ((v 'ok)) (independently) v) => 'ok) (check (let ((v (cons #f #f))) (independently (set-car! v 'ok)) v) => '(ok . #f)) (define (set-car+cdr! p x y) (independently (set-car! p x) (set-cdr! p y))) (check (let ((p (con...
cb909b44000806eddae96d3f108850459a7c92037d7b630c2a706402228047f3
kishanov/re-frame-spec-forms-example
spec_def.cljs
(ns re-frame-spec-forms.steps.spec-def) (defn main-panel [] [:pre [:code {:class "clojure"} (into [:code {:class "clojure"} " (s/def ::label (s/and string? #(<= 1 (count %) 64))) (s/def ::preallocated boolean?) (def supported-types #{\"multihomed\" \"stub\" \"tra...
null
https://raw.githubusercontent.com/kishanov/re-frame-spec-forms-example/275637cb11fb992f9c6ff6d76ca06daebc22098a/src/cljs/re_frame_spec_forms/steps/spec_def.cljs
clojure
(ns re-frame-spec-forms.steps.spec-def) (defn main-panel [] [:pre [:code {:class "clojure"} (into [:code {:class "clojure"} " (s/def ::label (s/and string? #(<= 1 (count %) 64))) (s/def ::preallocated boolean?) (def supported-types #{\"multihomed\" \"stub\" \"tra...
09f48f6619e2f3717c34c9f3687a464f28be3b730a53bdd7637846ba78438eed
glguy/advent
11.hs
# Language ImportQualifiedPost , TemplateHaskell # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Module : Main Description : Day 11 solution Copyright : (c) Eric Mertens, 2021 License : ISC Maintainer : <> -} modu...
null
https://raw.githubusercontent.com/glguy/advent/5d5e8e502c431fdd6d6b7ebd44aac56d410139b9/solutions/src/2016/11.hs
haskell
Types --------------------------------------------------------------- ^ gen micro # UNPACK # Main logic and parameters ------------------------------------------- Floor operations ----------------------------------------------------- Building operations -------------------------------------------------
# Language ImportQualifiedPost , TemplateHaskell # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Module : Main Description : Day 11 solution Copyright : (c) Eric Mertens, 2021 License : ISC Maintainer : <> -} modu...
945d225fb305c2163d66314e99d2faca716e65eb18b83c65b9556be13ea58e09
dreixel/syb
NestedDatatypes.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE MonoLocalBinds # # LANGUAGE UndecidableInstances # module NestedDatatypes () where We provide an illustrative ScrapYourBoilerplate example for a nested datatype . For clarity , we do not derive the Typeable and Data in...
null
https://raw.githubusercontent.com/dreixel/syb/4806afeb2ea824a3ea9969e23ca2c9569cd20d84/tests/NestedDatatypes.hs
haskell
# LANGUAGE DeriveDataTypeable # A nested datatype The Data instance for the nested datatype
# LANGUAGE FlexibleContexts # # LANGUAGE MonoLocalBinds # # LANGUAGE UndecidableInstances # module NestedDatatypes () where We provide an illustrative ScrapYourBoilerplate example for a nested datatype . For clarity , we do not derive the Typeable and Data instances by the deriving mechanism but ...
d0e4b7a713c11d4964c3172bc383e6939da86c228398769b38f9ed36bd95a16a
lojic/RacketCon2020
axio-regex.rkt
#lang racket (provide regex-email regex-email-optional) (define email-str "([-\\w+.]+)@(([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})|(([-\\w]+\\.)+[a-zA-Z]{2,4}))") ;; -------------------------------------------------------------------------------------------- ;; Public Interface ;; -----------------...
null
https://raw.githubusercontent.com/lojic/RacketCon2020/310e0ab01d8c3e1546029720f6bb66e6d1a5fb1e/TodoApp/axio/axio-regex.rkt
racket
-------------------------------------------------------------------------------------------- Public Interface -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- Tests -----------...
#lang racket (provide regex-email regex-email-optional) (define email-str "([-\\w+.]+)@(([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})|(([-\\w]+\\.)+[a-zA-Z]{2,4}))") (define regex-email (pregexp (format "^~a$" email-str))) (define regex-email-optional (pregexp (format "^(~a)?$" email-str))) (module...
97c859c80933df4a01569e536e166adcf8bd10f36a1d4cc8402ff36631dfcf80
mirage/ocaml-fsevents
typegen.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-fsevents/5c6abdcc20ce284d88003ce3300e637f7514e5e7/lib_gen/typegen.ml
ocaml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
c7ace8fcfe454aff48b8d8734b1a8ef2672a510f05eef8073936a39e0ae0f196
gas2serra/cldk
input-keysyms-common.lisp
(in-package :cldk-driver-sdl2) (defvar *keysym-name-table* (make-hash-table :test #'eql)) ;;; This hash table maps a keysym name to the corresponding keysym. (defvar *keysym-table* (make-hash-table :test #'eq)) (defun define-keysym (name value &optional (alpha-p nil)) (pushnew (list name alpha-p) (gethash va...
null
https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/Drivers/SDL2/input-keysyms-common.lisp
lisp
This hash table maps a keysym name to the corresponding keysym.
(in-package :cldk-driver-sdl2) (defvar *keysym-name-table* (make-hash-table :test #'eql)) (defvar *keysym-table* (make-hash-table :test #'eq)) (defun define-keysym (name value &optional (alpha-p nil)) (pushnew (list name alpha-p) (gethash value *keysym-name-table* nil)) (setf (gethash name *keysym-table*) ...
f4928456854e35adfc3176d2002e583b09c54f109484714e8d4fb51844f22d4b
krdlab/haskell-oidc-client
Internal.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Web . OIDC.Client . Internal Maintainer : Stability : experimental Module: Web.OIDC.Client.Internal Maintainer: Stability: experimental -} module Web.OIDC.Client.Internal where import Control.Applicative ((<|>)) import ...
null
https://raw.githubusercontent.com/krdlab/haskell-oidc-client/b92736ba7d458b4d8571d378ad750b3e1ddaa7c4/src/Web/OIDC/Client/Internal.hs
haskell
# LANGUAGE OverloadedStrings #
| Module : Web . OIDC.Client . Internal Maintainer : Stability : experimental Module: Web.OIDC.Client.Internal Maintainer: Stability: experimental -} module Web.OIDC.Client.Internal where import Control.Applicative ((<|>)) import Control.Monad (mzero) imp...
fb3558a92a43a742103ad1f8a58e9f0d726d697d5ec52859d8adb82465d75883
dalaing/little-languages
Term.hs
{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # module Term.AST ( Term(..) , lam_ ) where import Control.Monad (ap) import Data.Foldable (toList) import Data.List (elemIndex) import Bound i...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/lc-full/src/Term.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveTraversable # want arbitrary here so that we can shrink terms TODO we want the redex at the top, so replace App with Redex that TODO we may also care that all apps have something that reduces to a lam then the normal form would result...
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # module Term.AST ( Term(..) , lam_ ) where import Control.Monad (ap) import Data.Foldable (toList) import Data.List (elemIndex) import Bound import Bound.Name import Bound.Scope import Prelude.Extras import Test.QuickCheck data Term n a = V...
336d9e6ba252680ed62157eb1a5adb489f4df2e9ddd8786e41ced4d901b30593
hmac/kite
ModuleGroupTypechecker.hs
module ModuleGroupTypechecker where import Data.Name ( Name ) import ModuleGroup import qualified Type ( Exp , LocatedError , defaultTypeEnv ...
null
https://raw.githubusercontent.com/hmac/kite/2320e2b8583e69d21f603741ff4e7648e5f3d08d/src/ModuleGroupTypechecker.hs
haskell
them. At this point the module has already been canonicalised, so we can assume that all names are unique and not worry about clashes. We also assume that the modules are in dependency order (this is handled by the ModuleLoader). are available when the module is typechecked. This requires that modules in a group ...
module ModuleGroupTypechecker where import Data.Name ( Name ) import ModuleGroup import qualified Type ( Exp , LocatedError , defaultTypeEnv ...
c4a7616d1416bea984358f012f630f6bae03d6419b40d6df2f1e49003c106ee7
mirleft/ocaml-nocrypto
gcm.ml
* A fully functional GHASH model implementation , currently not used . * * Based mostly on NIST 800 - 38D. * A fully functional GHASH model implementation, currently not used. * * Based mostly on NIST 800-38D. *) open Uncommon module I128 = struct open Int64 module I64 = Numeric.Int64 type t =...
null
https://raw.githubusercontent.com/mirleft/ocaml-nocrypto/ed7bb8d911dc340e36d85d335d9edb8339f0932d/src/gcm.ml
ocaml
XXX
* A fully functional GHASH model implementation , currently not used . * * Based mostly on NIST 800 - 38D. * A fully functional GHASH model implementation, currently not used. * * Based mostly on NIST 800-38D. *) open Uncommon module I128 = struct open Int64 module I64 = Numeric.Int64 type t =...
b48a3e57bc4d162f12ce9889e23026f92d8b39d663ce0a2854b0575beb6a7545
p2pcollab/ocaml-p2p
p2p_vicinity.ml
Copyright ( C ) 2019 TG x This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License . This program is distributed in the hope that it will be usef...
null
https://raw.githubusercontent.com/p2pcollab/ocaml-p2p/121e86efff0e6edd7c498d17bf4cab7787991888/lib/p2p-vicinity/p2p_vicinity.ml
ocaml
* similarity measure * select [xchg_len] nodes closest to [dst] from [view]
Copyright ( C ) 2019 TG x This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License . This program is distributed in the hope that it will be usef...
94b54ea875e3f7a012c128ca352fefc10fa2e2a9dffa5adbc5804d06aaeabf37
camllight/camllight
asm.ml
let assemble_fichier nom_entrée nom_sortie = let entrée = open_in nom_entrée in let sortie = open_out_bin nom_sortie in try output_value sortie (lecture__programme (stream_of_channel entrée)); close_in entrée; close_out sortie; 0 with exc -> close_in...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/picomach/asm.ml
ocaml
let assemble_fichier nom_entrée nom_sortie = let entrée = open_in nom_entrée in let sortie = open_out_bin nom_sortie in try output_value sortie (lecture__programme (stream_of_channel entrée)); close_in entrée; close_out sortie; 0 with exc -> close_in...
15bd882c6e7fcda5aaec11573e6d00c7ce062f2faa14dff9ddeae5093bd3a6b5
erlang/otp
test_compile_options.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 2022 . All Rights Reserved . %% 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 %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/82d134f1b4132209337a5c58d3b8115816b725d0/lib/asn1/test/test_compile_options.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2005 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(test_compile_options). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"...
4059296b1978349fcbe03901fb768485d224d509983593d3fac241e74fc7c0d3
c4-project/c4f
atomic_load.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir_gen/src/atomic_load.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
00015aae36b1082713c841ad5aad4399bc866b612a38cf6d4f4088a99b63adf5
mjambon/mikmatch
mikmatch.mli
(** A small text-oriented library *) * The [ Mikmatch ] module provides a submodule named [ Text ] . A normal usage is to place [ open ] at the beginning of user code that uses it . This module is part of the runtime environment of Mikmatch ( the library run_mikmatch_pcre.cma or equivalent ) . A normal usa...
null
https://raw.githubusercontent.com/mjambon/mikmatch/4ee0d1158370be247763027018bbf54b865014dd/common/mikmatch.mli
ocaml
* A small text-oriented library * This module provides some general functions which are especially useful for manipulating text and text files. * [iter_lines_of_channel f ic] reads input channel [ic] and applies successively the given function [f] to each line until the end of file is reached. * ...
* The [ Mikmatch ] module provides a submodule named [ Text ] . A normal usage is to place [ open ] at the beginning of user code that uses it . This module is part of the runtime environment of Mikmatch ( the library run_mikmatch_pcre.cma or equivalent ) . A normal usage is to place [open Mikmatch] at the...
76d59ea5c2a06e4aa7cccf67cebd54a97fe80afb94e06062a22f9b4996bf9bfd
larandaA/hgraphs
CommonSpec.hs
module Data.Graph.Abstract.CommonSpec (spec) where import qualified Data.Graph.Abstract as GA import qualified Data.Graph.Abstract.Common as GAC import Test.Hspec emptySpec :: Spec emptySpec = describe "empty" $ do it "should create a graph with 0 vertices" $ do let g = GAC.empty ...
null
https://raw.githubusercontent.com/larandaA/hgraphs/322b5cdfafbae851b4251c907e2c81b82cf02d4a/test/Data/Graph/Abstract/CommonSpec.hs
haskell
module Data.Graph.Abstract.CommonSpec (spec) where import qualified Data.Graph.Abstract as GA import qualified Data.Graph.Abstract.Common as GAC import Test.Hspec emptySpec :: Spec emptySpec = describe "empty" $ do it "should create a graph with 0 vertices" $ do let g = GAC.empty ...
16028e6d7dad68e205d6a7584393d55797db9b826f7c04fea8898970ac59fc9a
tsahyt/clingo-haskell
Control.hs
# LANGUAGE ForeignFunctionInterface # module Clingo.Raw.Control ( controlNew, controlFree, -- * Grounding controlLoad, controlAdd, controlGround, -- * Solving controlSolve, controlCleanup, controlAssignExternal, controlReleaseExternal, controlRegisterPropagator, con...
null
https://raw.githubusercontent.com/tsahyt/clingo-haskell/083c84aae63565067644ccaa72223a4c12b33b88/src/Clingo/Raw/Control.hs
haskell
* Grounding * Solving * Configuration * Program Inspection * Program Modification
# LANGUAGE ForeignFunctionInterface # module Clingo.Raw.Control ( controlNew, controlFree, controlLoad, controlAdd, controlGround, controlSolve, controlCleanup, controlAssignExternal, controlReleaseExternal, controlRegisterPropagator, controlStatistics, controlInterrupt...
bf041cc21c857c490c0fd779a87f3bed8afdf3dff62a6bd6284fa01aedb536ef
wlitwin/graphv
glyphBitmap.ml
include Flags.Base let optional = 1 let required = 2 type pattern = Optional | Required let to_pattern = function | 1 -> Optional | 2 -> Required | _ -> failwith "impossible"
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/src/font/glyphBitmap.ml
ocaml
include Flags.Base let optional = 1 let required = 2 type pattern = Optional | Required let to_pattern = function | 1 -> Optional | 2 -> Required | _ -> failwith "impossible"
daba39a5062207153575ab04e27bfb0389caa7de47c23d74462b85fe99f808f6
sirherrbatka/statistical-learning
package.lisp
(cl:in-package #:cl-user) (defpackage #:statistical-learning.data (:use #:cl #:statistical-learning.aux-package) (:nicknames #:sl.data) (:export #:split-vector #:split #:vector-avg #:data-matrix-avg #:attributes-count #:universal-data-matrix #:double-float-data-matrix #:dispatch-data-mat...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/c6b17272ea478817db46cb2bfdfbfa14d4143ac3/source/data/package.lisp
lisp
(cl:in-package #:cl-user) (defpackage #:statistical-learning.data (:use #:cl #:statistical-learning.aux-package) (:nicknames #:sl.data) (:export #:split-vector #:split #:vector-avg #:data-matrix-avg #:attributes-count #:universal-data-matrix #:double-float-data-matrix #:dispatch-data-mat...
9cba308904356b2f0ef9c4a40642648282292d7694aa64befec8cff6a5861af1
heyoka/faxe
flowdata_tests.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 , < COMPANY > %%% @doc %%% %%% @end Created : 09 . Sep 2019 13:50 %%%------------------------------------------------------------------- -module(flowdata_tests). -author("heyoka"). %% API -include("faxe.hrl"). -ifdef(TES...
null
https://raw.githubusercontent.com/heyoka/faxe/4545a99960be6b47a0c2738ce9b58d2b8eba4e14/apps/faxe/test/flowdata_tests.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API delete_field_empty_object_deep_test() -> Path = <<"data.var1">>, NewPoint = flowdata:delete_field(P, Path), array indices are available only through the tuple ...
@author ( C ) 2019 , < COMPANY > Created : 09 . Sep 2019 13:50 -module(flowdata_tests). -author("heyoka"). -include("faxe.hrl"). -ifdef(TEST). -compile(nowarn_export_all). -compile([export_all]). -include_lib("eunit/include/eunit.hrl"). -import(flowdata, [field/2,field/3,delete_field/2,to_json/1,set_field/...