_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
ae6807b74b7d6acab8491aeeb96af8cb1397c74705887da86fbdcb4832b95579
tweag/ormolu
strings.hs
# LANGUAGE MagicHash # foo = "foobar" bar = "foo\&bar\ \baz" baz = "foo\ \bar\ \baz"
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/strings.hs
haskell
# LANGUAGE MagicHash # foo = "foobar" bar = "foo\&bar\ \baz" baz = "foo\ \bar\ \baz"
301ddf0945eef166218248af0674805dbc26f4ef3b710b595838c27a225448e0
ieQu1/map_sets
map_sets_tests.erl
-module(map_sets_tests). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). Macros : -define(PROPER(PROP), {timeout, 60, ?_assertEqual( true , proper:quickcheck(PROP, [ {numtests, 100} , { max_size , 100 } ...
null
https://raw.githubusercontent.com/ieQu1/map_sets/b1e846e74b2a2adc95ce408ef3d3e4c0a022fd1c/test/map_sets_tests.erl
erlang
Testcases: Utility functions: Prepare results:
-module(map_sets_tests). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). Macros : -define(PROPER(PROP), {timeout, 60, ?_assertEqual( true , proper:quickcheck(PROP, [ {numtests, 100} , { max_size , 100 } ...
45f21a496ff201513bf0aef47f99c41263ead7bb42db9f46283968ea11b86037
andreas/ocaml-graphql-server
graphql_cohttp.ml
module type HttpBody = sig type t type +'a io val to_string : t -> string io val of_string : string -> t end module type S = sig module IO : Cohttp.S.IO type body type 'ctx schema type response_action = [ `Expert of Cohttp.Response.t * (IO.ic -> IO.oc -> unit IO.t) | `Response of Cohttp.R...
null
https://raw.githubusercontent.com/andreas/ocaml-graphql-server/a156609930e68ed5053501446b745d98832e4f2b/graphql-cohttp/src/graphql_cohttp.ml
ocaml
module type HttpBody = sig type t type +'a io val to_string : t -> string io val of_string : string -> t end module type S = sig module IO : Cohttp.S.IO type body type 'ctx schema type response_action = [ `Expert of Cohttp.Response.t * (IO.ic -> IO.oc -> unit IO.t) | `Response of Cohttp.R...
eaea2a9756f95d4371f44a5a2bcfae6ed6e8aba647ded628bb362a017c57e0ee
3noch/reflex-dom-forms
Widgets.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RecursiveDo #-} # LANGUAGE TypeFamilies # module Reflex.Dom.Form.Widgets where import Control.Monad (when) import Control.Monad.Fix (...
null
https://raw.githubusercontent.com/3noch/reflex-dom-forms/2f7c4a8f80d464f4c0289dfb5aae0c204827592e/Reflex/Dom/Form/Widgets.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE RecursiveDo # | Like 'formItem'' but assumes empty @class@ attribute. | Creates a form item that shows errors for invalid values. ^ @class@ attribute for form item ^ A form widget producing a 'Dynamic' that can be 'Either' valid ('Right') or invalid ('Left')....
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # module Reflex.Dom.Form.Widgets where import Control.Monad (when) import Control.Monad.Fix (MonadFix) import Data.Either (isLeft) import ...
ec48b34a3aa1df7ed5b4689c7c9c4a003c8596e96a89374c3d4b7d6a7085fa41
kztk-m/sparcl
Type.hs
# LANGUAGE DerivingStrategies # {-# LANGUAGE ViewPatterns #-} module Language.Sparcl.Typing.Type where import qualified Data.Map as M import Language.Sparcl.FreeTyVars import Language.Sparcl.Multiplicity import Language.Sparcl.Name import Language.Spar...
null
https://raw.githubusercontent.com/kztk-m/sparcl/daa5f1267288b55aae9d2ad6d1bc9216596954af/src/Language/Sparcl/Typing/Type.hs
haskell
# LANGUAGE ViewPatterns # | Used for implication checking. Increases when implication happens. If a type checker runs in level n, unification of smaller-leveled variables is prohibited. ^ Type constructor ^ Type variable ^ Metavariables (to be substituted in type inf.) ^ polymorphic types universal vari...
# LANGUAGE DerivingStrategies # module Language.Sparcl.Typing.Type where import qualified Data.Map as M import Language.Sparcl.FreeTyVars import Language.Sparcl.Multiplicity import Language.Sparcl.Name import Language.Sparcl.Pretty as D hiding ((<$>)) ...
133153e9b28a202e204c461100482ccef6cffc71455b63f6e99887e5819980f4
shirok/Gauche
test-colseq.scm
;; Test gauche.* extensions (use gauche.test) (test-start "collections and sequences") (use data.queue) (use scheme.list) (use srfi.13) (use gauche.collection) (use gauche.sequence) (test-module 'gauche.collection) (test-module 'gauche.sequence) ;; User-defined collection class test (define-class <string-seq-meta>...
null
https://raw.githubusercontent.com/shirok/Gauche/211fc10b4dd64d2d719709b2dd8771cdc90c4a6c/ext/gauche/test-colseq.scm
scheme
Test gauche.* extensions User-defined collection class test ------------------------------------------------------------------ basic tests reverse iterator (input needle before after) check if head part is shared
(use gauche.test) (test-start "collections and sequences") (use data.queue) (use scheme.list) (use srfi.13) (use gauche.collection) (use gauche.sequence) (test-module 'gauche.collection) (test-module 'gauche.sequence) (define-class <string-seq-meta> (<class>) ()) (define-class <string-seq> (<sequence>) ((string...
9628503dd762c00db96d93195345d04418e5b92cd5b42222bb12432835e66271
jgm/commonmark-hs
Autolink.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} module Commonmark.Extensions.Autolink ( autolinkSpec ) where import Commonmark.Types import Commonmark.Tokens import Commonmark.Syntax import Commonmark.Inlines import Commonmark.TokParsers import Control.Monad (guard, void) import Text.Parsec import D...
null
https://raw.githubusercontent.com/jgm/commonmark-hs/78fe129347afe7be1e33405bfb7a74832035498d/commonmark-extensions/src/Commonmark/Extensions/Autolink.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # module Commonmark.Extensions.Autolink ( autolinkSpec ) where import Commonmark.Types import Commonmark.Tokens import Commonmark.Syntax import Commonmark.Inlines import Commonmark.TokParsers import Control.Monad (guard, void) import Text.Parsec import Data.Text (Text) autolinkSpec :: (M...
6143abe359907814ba0098b7ceefb780e69372582fea3b85f2b590ce46dc112d
exercism/babashka
squeaky_clean_test.clj
(ns squeaky-clean-test (:require [clojure.test :refer [deftest testing is]] squeaky-clean)) (deftest clean-single-letter (is (= "A" (squeaky-clean/clean "A")))) (deftest clean-clean-string (is (= "àḃç" (squeaky-clean/clean "àḃç")))) (deftest clean-string-with-spaces (is (= "my___Id" (squeaky-clea...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/concept/squeaky-clean/test/squeaky_clean_test.clj
clojure
(ns squeaky-clean-test (:require [clojure.test :refer [deftest testing is]] squeaky-clean)) (deftest clean-single-letter (is (= "A" (squeaky-clean/clean "A")))) (deftest clean-clean-string (is (= "àḃç" (squeaky-clean/clean "àḃç")))) (deftest clean-string-with-spaces (is (= "my___Id" (squeaky-clea...
a9ad6f40213d88c625fd8155626124b56f09b653f152ec67c070f18b12ec37e4
icicle-lang/icicle-ambiata
PrettyParse.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # # OPTIONS_GHC -fno - warn - missing - signatures # module Icicle.Test.Source.PrettyParse where import Icicle.Test.Arbitrary import Icicle.Internal.Pretty import Icicle...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/test/Icicle/Test/Source/PrettyParse.hs
haskell
# LANGUAGE OverloadedStrings # Ill-typed programs will be printed/parsed incorrectly if they have operators with the wrong number of arguments - for example (!) applied to no arguments. it will generate only the correct number of arguments
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # LANGUAGE PatternGuards # # OPTIONS_GHC -fno - warn - missing - signatures # module Icicle.Test.Source.PrettyParse where import Icicle.Test.Arbitrary import Icicle.Internal.Pretty import Icicle.Source.Parser import P ...
e058acdc846a54a4762140eb2a0a2972834e91c01aad682de86e3a8131df3038
slyrus/mcclim-old
color-editor.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (asdf:oos 'asdf:load-op :clim) (asdf:oos 'asdf:load-op :clim-clx)) (in-package :clim-user) (defun make-color-slider (id initval label) (labelling (:label label) (make-pane ':slider :id id :orientation :horizontal :value initval :max-value 1 :min...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Doc/Guided-Tour/color-editor.lisp
lisp
The gadget-id symbols match the slot names in color-editor
(eval-when (:compile-toplevel :load-toplevel :execute) (asdf:oos 'asdf:load-op :clim) (asdf:oos 'asdf:load-op :clim-clx)) (in-package :clim-user) (defun make-color-slider (id initval label) (labelling (:label label) (make-pane ':slider :id id :orientation :horizontal :value initval :max-value 1 :min...
bbec801658d97b304b40250f2399c028ff4c98634343a8f1aa9b2692efa398c7
jasonstolaruk/CurryMUD
Vals.hs
module Mud.TopLvlDefs.Vals where import Mud.Data.State.MudData $ 1 = 100 copper apronHeavyVal, apronLeatherVal :: Val apronHeavyVal = Just 4000 apronLeatherVal = Just 6000 axeSmlVal :: Val axeSmlVal = Just 4500 backSmlVal, backVal, backLrgVal :: Val backSmlVal = Just 7500 backVal = Just 10000 backLrgVal = J...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/TopLvlDefs/Vals.hs
haskell
module Mud.TopLvlDefs.Vals where import Mud.Data.State.MudData $ 1 = 100 copper apronHeavyVal, apronLeatherVal :: Val apronHeavyVal = Just 4000 apronLeatherVal = Just 6000 axeSmlVal :: Val axeSmlVal = Just 4500 backSmlVal, backVal, backLrgVal :: Val backSmlVal = Just 7500 backVal = Just 10000 backLrgVal = J...
7ed2b8d1af9887cba4bd23af17c2c189ec8597e81370e38cd83895346e1dcf53
zenspider/schemers
exercise.1.12.scm
#lang racket/base Exercise 1.12 : The following pattern of numbers is called " 's triangle " . ;; 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 ;; The numbers at the edge of the triangle are all 1 , and each number inside the triangle is th...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_1/exercise.1.12.scm
scheme
means of a recursive process.
#lang racket/base Exercise 1.12 : The following pattern of numbers is called " 's triangle " . 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 The numbers at the edge of the triangle are all 1 , and each number inside the triangle is the sum ...
c1485ef37938b90d3918f5cd238256ceb61ee1e05977b0127186b25007561da8
input-output-hk/project-icarus-importer
Ssc.hs
-- | Arbitrary instances and generators for SSC types. module Pos.Arbitrary.Ssc ( SscPayloadDependsOnSlot (..) , BadCommAndOpening (..) , BadSignedCommitment (..) , CommitmentOpening (..) , commitmentMapEpochGen , vssCertificateEpochGen , genCommitmentsMap , gen...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/ssc/Pos/Arbitrary/Ssc.hs
haskell
| Arbitrary instances and generators for SSC types. -------------------------------------------------------------------------- Types -------------------------------------------------------------------------- -------------------------------------------------------------------------- -----------------------------------...
module Pos.Arbitrary.Ssc ( SscPayloadDependsOnSlot (..) , BadCommAndOpening (..) , BadSignedCommitment (..) , CommitmentOpening (..) , commitmentMapEpochGen , vssCertificateEpochGen , genCommitmentsMap , genSignedCommitment , genVssCertificatesMap ...
f92657e2ff3e468dfafb714e8e490c982836e12d925543fd0ec1c27b61c3a4de
logicmoo/logicmoo_nlu
scripts.lsp
;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % ;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %...
null
https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/nlp_book/lisp/scripts.lsp
lisp
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % the global variable scripts holds the list of scripts Example value: SCRIPT_MATCH is given a list of propositions, eg. It tries to match them in the order given to t...
% Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % scripts.lsp [ Chapter 10 ] script matching (defvar scripts) (setq scripts '( ((auto_buy _Customer _Auto1 _Auto2 _Driver _Garage) ...
305d30c2508b684e20b533c6b571f67840d016f5fce9e32087bd64b4b9d95647
gheber/kenzo
package.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (defpackage #:cat-8 (:use #:cl) (:export #:KENZO-VERSION #:*BC* #:*BDD* #:*CMBN-CONTROL* #:*CHCM-LIST* #:*DF-FD* #:*DG-GD* #:*FH* #:*HG* #:*HH* ...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/src/kenzo-8/package.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - * abbreviations.lisp algebras.lisp bicones.lisp cartesian-products.lisp chain-complexes.lisp chcm-elementary-op.lisp cl-space-efhm.lisp classes.lisp classifying-space.lisp cobar.lisp combinations.lisp cs-twisted-products.lisp disk-pasting.lisp effective-homolog...
(defpackage #:cat-8 (:use #:cl) (:export #:KENZO-VERSION #:*BC* #:*BDD* #:*CMBN-CONTROL* #:*CHCM-LIST* #:*DF-FD* #:*DG-GD* #:*FH* #:*HG* #:*HH* #:*HOMOLOGY-VERBOSE* #:*ID-FG* #:*...
8637871a3b651660e8723dd09427a8dcdf370fa00008ba05440b04b15fab4e3b
Decentralized-Pictures/T4L3NT
prt_client.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/tezt/long_tests/prt_client.ml
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...
bd35ff379a5831d0fa62fd0f44537fa5c867374524100667637f4655126da6ce
billstclair/trubanc-lisp
acceptor.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / hunchentoot / server.lisp , v 1.43 2008/04/09 08:17:48 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/hunchentoot-1.0.0/acceptor.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- 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...
$ Header : /usr / local / cvsrep / hunchentoot / server.lisp , v 1.43 2008/04/09 08:17:48 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-packa...
8bcb033b19eb0eaca651959eda7a2b4254b6da212b2fad62e728007b09aa68d4
expipiplus1/vulkan
PipelineCreateFlagBits.hs
{-# language CPP #-} No documentation found for Chapter " PipelineCreateFlagBits " module Vulkan.Core10.Enums.PipelineCreateFlagBits ( PipelineCreateFlags , PipelineCreateFlagBits( PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/f8a04a317c67ccbd5e2e862b61b349394195e359/src/Vulkan/Core10/Enums/PipelineCreateFlagBits.hs
haskell
# language CPP # = Description - 'PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT' specifies that the created pipeline will not be optimized. Using this flag /may/ reduce the time taken to create the pipeline. - 'PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT' specifies that the pipeline to be created is allow...
No documentation found for Chapter " PipelineCreateFlagBits " module Vulkan.Core10.Enums.PipelineCreateFlagBits ( PipelineCreateFlags , PipelineCreateFlagBits( PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT ...
0885aa039e7f50b8c6ad1f21bd12bfcb1c811064ec76a5c8de670e5115cb3d3e
Simre1/haskell-game
Reader.hs
# LANGUAGE TemplateHaskell # module Polysemy.Reader ( -- * Effect Reader (..) -- * Actions , ask , asks , local -- * Interpretations , runReader -- * Interpretations for Other Effects , inputToReader ) where import Polysemy import Polysemy.Input -------------------------------------...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/polysemy/src/Polysemy/Reader.hs
haskell
* Effect * Actions * Interpretations * Interpretations for Other Effects ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- | Run a 'Reader' effect with a constant value. -----------------------------------------...
# LANGUAGE TemplateHaskell # module Polysemy.Reader Reader (..) , ask , asks , local , runReader , inputToReader ) where import Polysemy import Polysemy.Input | An effect corresponding to ' Control . . Trans . Reader . ReaderT ' . data Reader i m a where Ask :: Reader i m i Local :: (i -...
d7d47df98b639051e9f72116677b9ef7a35c2bd71718a416e9b92876480e226e
avsm/platform
cmi.ml
* Copyright ( c ) 2014 < > * * 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/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/odoc.1.4.2/src/loader/cmi.ml
ocaml
Handle type variable names Handle recursive types and shared row variables Skip all of the hidden sig items
* Copyright ( c ) 2014 < > * * 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...
0c3a5c402d8fa118f44fd6140de7a637a3abba6cc4d303b5fa6c74595f7e3329
raviksharma/bartosz-basics-of-haskell
quicksort.hs
f [] = [] f (p:xs) = f [x | x <- xs, x < p] ++ [p] ++ f [x | x <- xs, x >= p] main = print $ f [2, 5, 1, 3, 4]
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/12-the-list-monad/quicksort.hs
haskell
f [] = [] f (p:xs) = f [x | x <- xs, x < p] ++ [p] ++ f [x | x <- xs, x >= p] main = print $ f [2, 5, 1, 3, 4]
526c0d6b5387a909b7689aac4be42d77e6396243710a174fe97898f5dc253251
maybevoid/casimir
UpperOps.hs
# LANGUAGE UndecidableInstances # module Casimir.Higher.Ops.UpperOps where import Data.Kind import Casimir.Base ( EffFunctor (..) ) import Casimir.Higher.Base import Casimir.Higher.EffFunctor import qualified Casimir.Base as Base data UpperEff ops data UpperOps ops (inEff :: Type -> Type) (eff :: Type -> ...
null
https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Higher/Ops/UpperOps.hs
haskell
# LANGUAGE UndecidableInstances # module Casimir.Higher.Ops.UpperOps where import Data.Kind import Casimir.Base ( EffFunctor (..) ) import Casimir.Higher.Base import Casimir.Higher.EffFunctor import qualified Casimir.Base as Base data UpperEff ops data UpperOps ops (inEff :: Type -> Type) (eff :: Type -> ...
b233f44bd80951c6c2780387b708dc3a92e69a584301c4de7d8462a9a840a09d
codegouvfr/guide-juridique-logiciel-libre
config.cljs
Copyright ( c ) 2019 - 2023 DINUM , < > SPDX - License - Identifier : EPL-2.0 ;; License-Filename: LICENSES/EPL-2.0.txt (ns choices.config) ;; Allow users to send you emails with the summary? (def mail-to "") ;; Display help along with questions by default? (def display-help true) ;; Default locale for UI str...
null
https://raw.githubusercontent.com/codegouvfr/guide-juridique-logiciel-libre/62118cfca9a8e1cc36e2d4af6fcd447bc11cda18/src/choices/config.cljs
clojure
License-Filename: LICENSES/EPL-2.0.txt Allow users to send you emails with the summary? Display help along with questions by default? Default locale for UI strings Customize UI strings For example: (def ui-strings {:redo "Restart from scratch}) Website header Website footer
Copyright ( c ) 2019 - 2023 DINUM , < > SPDX - License - Identifier : EPL-2.0 (ns choices.config) (def mail-to "") (def display-help true) (def locale "fr-FR") (def ui-strings {:mail-subject "[Guide logiciel libre] Demande d'aide ou d'informations" :mail-body "Bonjour, je viens d'utiliser votre guide...
75e67120c115c212cdbf70cb37efbd1ff0d52b8749a53f6416d8bee4439173ce
shentufoundation/deepsea
OptErrMonad.mli
open Monad open String0 type __ = Obj.t type 'a optErr = | Success of 'a | Error of string val coq_Monad_optErr : __ optErr coq_Monad
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/OptErrMonad.mli
ocaml
open Monad open String0 type __ = Obj.t type 'a optErr = | Success of 'a | Error of string val coq_Monad_optErr : __ optErr coq_Monad
e30e3bb302c0291ea1888ab91e4b482d071899792b3f1aebaad7e59966b7894b
karlhof26/gimp-scheme
tapered_stroke_along_path_02.scm
; tapered_stroke_along_path.scm by ; Version 1.0 ( 20080926 ) ; Description ; ; paints a tapered stroke along the path ; ; License: ; ; 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 Soft...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/a8de87a29db39337929b22eb4f81345f91765f55/tapered_stroke_along_path_02.scm
scheme
tapered_stroke_along_path.scm Description paints a tapered stroke along the path License: This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be use...
by Version 1.0 ( 20080926 ) it under the terms of the GNU General Public License as published by The GNU Public License is available at (define (tapered-stroke-along-path-a img inLayer inPath inStartWidth inEndWidth inSpacing inCurve) (let* ( (width (car (gimp-image-width im...
5cc63de38d41d82d0560eff71da5f267b4603803a8d44ff1de913a5660bd4947
Helium4Haskell/helium
StaticErrors.hs
| Module : StaticErrors License : GPL Maintainer : Stability : experimental Portability : portable Collection of static error messages . License : GPL Maintainer : Stability : experimental Portability : portable Collection of...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/StaticAnalysis/Messages/StaticErrors.hs
haskell
----------------------------------------------------------- (Static) Errors names in scope Class name, class variable, method name names in scope similar name in wrong name-space hint hints Classes in scope the name what is ambiguous (Names of declarations) file name module name of module name flag? Value Con...
| Module : StaticErrors License : GPL Maintainer : Stability : experimental Portability : portable Collection of static error messages . License : GPL Maintainer : Stability : experimental Portability : portable Collection of...
7a9297f2da61a19786234b6f1f091ccc9632674d835a3b3596236c82b8ac8695
BinaryAnalysisPlatform/bap
arm_reg.ml
open Core_kernel[@@warning "-D"] open Regular.Std open Bap.Std open Arm_helpers type t = Arm_types.reg [@@deriving bin_io, compare, sexp] let create reg : t option = sexpable_of_string t_of_sexp (Reg.name reg) include Regular.Make(struct type nonrec t = t [@@deriving bin_io, compare, sexp] let hash (reg : ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/arm/arm_reg.ml
ocaml
open Core_kernel[@@warning "-D"] open Regular.Std open Bap.Std open Arm_helpers type t = Arm_types.reg [@@deriving bin_io, compare, sexp] let create reg : t option = sexpable_of_string t_of_sexp (Reg.name reg) include Regular.Make(struct type nonrec t = t [@@deriving bin_io, compare, sexp] let hash (reg : ...
d6e7fb4708a4a6666f53feb09d8586a8b04bccc1bfe6b6f9e7315d454f6eada5
GaloisInc/pate
SimulatorRegisters.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Pate.SimulatorRegisters ( ...
null
https://raw.githubusercontent.com/GaloisInc/pate/142180a727aa50c4ef70735b93553ba8e19c72ff/src/Pate/SimulatorRegisters.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # Note that we use an empty Struct type in the ARM semantics to denote some type and the what4 struct type are not actually related. type system In this case, we have a Unit value and there is no transformation possible (an it isn't even a base type)
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Pate.SimulatorRegisters ( CrucBaseTypes, MacawRegEntry(..), MacawRegVar(...
59fac0617186d7860654da6b829bb6485d4ff666585529ed7ca914aa1206a89d
LexiFi/gen_js_api
scoped.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@warning "-22"] module M = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (prop_get_arg : t -> int) = ((fun (x3 : t...
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/9587818121be11593ed389bc87b85547b6ea402c/ppx-test/expected/scoped.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@warning "-22"] module M = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (prop_get_arg : t -> int) = ((fun (x3 : t...
a1a14caefa2495ed32b1c92cdf54e3cf5854347fdb4ee775039d75af1eaec2b6
fortytools/holumbus
FuzzySearch.hs
{-# OPTIONS -XBangPatterns #-} -- ---------------------------------------------------------------------------- | Module : Holumbus . Data . PrefixTree . FuzzySearch Copyright : Copyright ( C ) 2009 - 2010 License : MIT Maintainer : ( ) Stability : experimental Portability ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/source/Holumbus/Data/PrefixTree/FuzzySearch.hs
haskell
# OPTIONS -XBangPatterns # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------- | /O(max(L,R))/ Find all values where the string is a prefix of the key. --------------------...
| Module : Holumbus . Data . PrefixTree . FuzzySearch Copyright : Copyright ( C ) 2009 - 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : not portable Functions for fuzzy search in a prefix tree Module : Holumbus.Data.PrefixTree.Fu...
145b090eb3deaf864723f63015eb737b7628b6a511d364de66698256ded3bd4d
Opetushallitus/ataru
dob.cljc
(ns ataru.dob (:require #?(:clj [clj-time.core :as t] :cljs [cljs-time.core :as t]))) (defonce date-pattern #"^(\d{1,2})\.(\d{1,2})\.(\d{4})$") (defn str->dob [dob-str] (try (when-let [[_ day month year] (re-find date-pattern dob-str)] (t/date-time #?@(:clj [(Integer/valueOf year) ...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljc/ataru/dob.cljc
clojure
(ns ataru.dob (:require #?(:clj [clj-time.core :as t] :cljs [cljs-time.core :as t]))) (defonce date-pattern #"^(\d{1,2})\.(\d{1,2})\.(\d{4})$") (defn str->dob [dob-str] (try (when-let [[_ day month year] (re-find date-pattern dob-str)] (t/date-time #?@(:clj [(Integer/valueOf year) ...
005a5c8b811abc167a9f641edb6757985aed899364bf5e05a80be34b0e7e1ae3
saleyn/etran
etran_test.erl
-module(etran_test). -compile({parse_transform, etran}). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. %%%----------------------------------------------------------------------------- %%% Unit Tests %%%----------------------------------------------------------------------------- -ifdef(EUNIT). etr...
null
https://raw.githubusercontent.com/saleyn/etran/33ee993b9da64cc19ca72474426129c722d7bdb3/test/etran_test.erl
erlang
----------------------------------------------------------------------------- Unit Tests -----------------------------------------------------------------------------
-module(etran_test). -compile({parse_transform, etran}). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -ifdef(EUNIT). etran_test() -> ?assertEqual(6, [S+I || S = 0, I <- [1,2,3]]), ?assertEqual([{1,10}], [{Idx, I} || Idx, I <- [10]]), ?assertEqual(30, a()), ?a...
735233ba63ac3479f0a9432253068f9f15db116b66cc595c698c3a0b6f556e9a
AshleyYakeley/Truth
Type.hs
module Pinafore.Language.Grammar.Read.Type ( readTypeFullNameRef , readTypeNewName , readType , readType3 , readTypeVar ) where import Pinafore.Language.Grammar.Read.Infix import Pinafore.Language.Grammar.Read.Parser import Pinafore.Language.Grammar.Read.Token import Pinafore.Language.Grammar.S...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-language/lib/Pinafore/Language/Grammar/Read/Type.hs
haskell
module Pinafore.Language.Grammar.Read.Type ( readTypeFullNameRef , readTypeNewName , readType , readType3 , readTypeVar ) where import Pinafore.Language.Grammar.Read.Infix import Pinafore.Language.Grammar.Read.Parser import Pinafore.Language.Grammar.Read.Token import Pinafore.Language.Grammar.S...
281d220fa50bca105959cb1184bbe9cebbcd9463f750817d3e7a8a5d4d5f58cf
pierric/neural-network
S2.hs
module Main where import Data.NeuralNetwork.Backend.BLASHS.Utils import qualified Data.Vector.Storable as SV import Numeric.LinearAlgebra import Test.QuickCheck (generate) import Test.Utils import Test.Gen main = t3 t1 = do ms <- test_corr2_arr 0 ks mt mapM_ (putStrLn . show) ms putStrLn "Good ones are:" let ...
null
https://raw.githubusercontent.com/pierric/neural-network/406ecaf334cde9b10c9324e1f6c4b8663eae58d7/Backend-blashs/Test/S2.hs
haskell
module Main where import Data.NeuralNetwork.Backend.BLASHS.Utils import qualified Data.Vector.Storable as SV import Numeric.LinearAlgebra import Test.QuickCheck (generate) import Test.Utils import Test.Gen main = t3 t1 = do ms <- test_corr2_arr 0 ks mt mapM_ (putStrLn . show) ms putStrLn "Good ones are:" let ...
bfd82f00dab0584b4a734782551c32578969dce9b24f2ad4756067ae4f6a9ee2
kawasima/darzana
okhttp_test.clj
(ns darzana.http-client.okhttp-test (:require [integrant.core :as ig] [darzana.runtime :as runtime] [darzana.http-client.okhttp :as okhttp] [darzana.http-client :as http-client] [clojure.test :refer :all] [clojure.pprint :refer :all] [clojure.spe...
null
https://raw.githubusercontent.com/kawasima/darzana/4b37c8556f74219b707d23cb2d6dce70509a0c1b/test/darzana/http_client/okhttp_test.clj
clojure
(ns darzana.http-client.okhttp-test (:require [integrant.core :as ig] [darzana.runtime :as runtime] [darzana.http-client.okhttp :as okhttp] [darzana.http-client :as http-client] [clojure.test :refer :all] [clojure.pprint :refer :all] [clojure.spe...
56cbb701a315b43af0cd253d3d84f9a44d368ce9f4106c7ea9519a00bd2b0122
rescript-lang/rescript-compiler
parser_flow.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/0f3c02b13cb8a9c5e2586541622f4a0f5f561216/jscomp/js_parser/parser_flow.ml
ocaml
Sometimes we add the same error for multiple different reasons. This is hard to avoid, so instead we just filter the duplicates out. This function takes a reversed list of errors and returns the list in forward order with dupes removed. This differs from a set because the original order is preserved. empty ...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
ce77e538cf956ee001d9207bb2b96903b9a413d9f06318d43ddcb91e144cdf2a
fission-codes/fission
Types.hs
module Fission.Web.Server.Swagger.Types (Latest, V2, V_, Docs) where import Servant.API import Servant.Swagger.UI.ReDoc type Latest = Docs type V2 = "v2" :> Docs type V_ = Docs type Docs = SwaggerSchemaUI "docs" "docs.json"
null
https://raw.githubusercontent.com/fission-codes/fission/2c333b43b854ad7132d5645d200b8d8847a1ea46/fission-web-server/library/Fission/Web/Server/Swagger/Types.hs
haskell
module Fission.Web.Server.Swagger.Types (Latest, V2, V_, Docs) where import Servant.API import Servant.Swagger.UI.ReDoc type Latest = Docs type V2 = "v2" :> Docs type V_ = Docs type Docs = SwaggerSchemaUI "docs" "docs.json"
8f122281675a8fe004bd08954cff6191e2cc6686924a5a95f193b9b6d9e2cd6d
zenhack/haskell-capnp
X86c366a91393f3f8.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} # OPTIONS_GHC -Wno - dodgy - exports # {-# OPTIONS_GHC -Wno-unused-matches #-} # OPTIONS_GHC -Wno - orphans # # OPTIONS_GHC -Wno - unticked - promoted - constructors # {-# OPTIONS_GHC -Wno-name-shadowing #-} module Capnp.Gen.ById.X86c366a91393f3f8(module Capnp.Gen.Capnp.Stream) w...
null
https://raw.githubusercontent.com/zenhack/haskell-capnp/6cf9fae35189a3668f2740d64c634675ec5fbdec/gen/lib/Capnp/Gen/ById/X86c366a91393f3f8.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # # OPTIONS_GHC -Wno-unused-matches # # OPTIONS_GHC -Wno-name-shadowing #
# OPTIONS_GHC -Wno - dodgy - exports # # OPTIONS_GHC -Wno - orphans # # OPTIONS_GHC -Wno - unticked - promoted - constructors # module Capnp.Gen.ById.X86c366a91393f3f8(module Capnp.Gen.Capnp.Stream) where import Capnp.Gen.Capnp.Stream import qualified Prelude as Std_ import qualified Data.Word as Std_ import qualified ...
200c450bd5d3a1289511686737adfbc03e4a24ad09ba39493d748be290395e82
CSCfi/rems
form.clj
(ns rems.db.form (:require [clojure.test :refer :all] [medley.core :refer [map-keys filter-vals remove-keys]] [rems.api.schema :as schema] [rems.common.util :refer [getx]] [rems.schema-base :as schema-base] [rems.common.form :as common-form] [rem...
null
https://raw.githubusercontent.com/CSCfi/rems/2269f8c404df1943f267ed3b2bc5e51fe6c011c0/src/clj/rems/db/form.clj
clojure
(ns rems.db.form (:require [clojure.test :refer :all] [medley.core :refer [map-keys filter-vals remove-keys]] [rems.api.schema :as schema] [rems.common.util :refer [getx]] [rems.schema-base :as schema-base] [rems.common.form :as common-form] [rem...
bcdc5bd12fade24387d67e89936a8447fbfd81cdd1be318cbe204dbbad0728d3
zachgk/catln
Expr.hs
-------------------------------------------------------------------- -- | Module : Syntax . Ct . . Expr Copyright : ( c ) 2020 License : MIT -- Maintainer: -- Stability : experimental -- Portability: non-portable -- -- This module is used to parse 'RawExpr'. ------------------------------------...
null
https://raw.githubusercontent.com/zachgk/catln/43429f5e85af22a7eefe97699f80dfe831f2798e/src/Syntax/Ct/Parser/Expr.hs
haskell
------------------------------------------------------------------ | Maintainer: Stability : experimental Portability: non-portable This module is used to parse 'RawExpr'. ------------------------------------------------------------------ # LANGUAGE OverloadedStrings # check if name is a hole TODO: Should su...
Module : Syntax . Ct . . Expr Copyright : ( c ) 2020 License : MIT module Syntax.Ct.Parser.Expr where import Control.Applicative hiding (many, some) import Control.Monad.Combinators.Expr import Data.Maybe import Text.Megaparsec h...
39b94eca93845014380cec91b6f3c914354e33b9bfa94492fb71dd3541823976
connerirwin/musfix
Pretty.hs
# LANGUAGE FlexibleInstances , UndecidableInstances , FlexibleContexts # module Language.Synquid.Pretty ( -- * Interface Pretty (..), Doc, renderPretty, putDoc, -- * Basic documents empty, isEmpty, text, linebreak, semi, lbrace, rbrace, -- * Combinators option, optionMaybe...
null
https://raw.githubusercontent.com/connerirwin/musfix/97edf67693d6ee3ea7dc234b20db560af92d95c3/src/Language/Synquid/Pretty.hs
haskell
* Interface * Basic documents * Combinators * Enclosing * Indentation * Structures * Programs * Highlighting * Counting | Is document empty? | Separate by spaces | Separate by new lines | Separate by commas | Enclose in spaces | Conditionally enclose in parentheses | Conditionally produce...
# LANGUAGE FlexibleInstances , UndecidableInstances , FlexibleContexts # module Language.Synquid.Pretty ( Pretty (..), Doc, renderPretty, putDoc, empty, isEmpty, text, linebreak, semi, lbrace, rbrace, option, optionMaybe, (<+>), ($+$), (<>), (</>), hcat, vcat, hsep, ...
a8d5cb3409984edca1128cdbfbbbe1e4e56bb2ae010877bf44a7c18d6163155d
2600hz-archive/whistle
webmachine_request.erl
@author < > @author < > 2007 - 2009 Basho Technologies Based on mochiweb_request.erl , which is Copyright 2007 Mochi Media , Inc. %% 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 cop...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/webmachine-1.8.0/src/webmachine_request.erl
erlang
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. limitations under the License. @doc W...
@author < > @author < > 2007 - 2009 Basho Technologies Based on mochiweb_request.erl , which is Copyright 2007 Mochi Media , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for t...
9726526772303111445ddc019d311604e8f45cc2397e2c15bcd702c4365c703d
opencog/opencog
filter-#7.scm
;; anaphor is "neuter" ;; antecedent is "feminine" ;; Examples: " ate an apple . It does not like it . " " It " should not refer to " " (define filter-#7 (BindLink (VariableList (TypedVariableLink (VariableNode "$word-inst-antecedent") (TypeNode "WordIns...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/filters/filter-%237.scm
scheme
anaphor is "neuter" antecedent is "feminine" Examples: filter
" ate an apple . It does not like it . " " It " should not refer to " " (define filter-#7 (BindLink (VariableList (TypedVariableLink (VariableNode "$word-inst-antecedent") (TypeNode "WordInstanceNode") ) (TypedVariableLink ...
ee23fce75addc7d431c691752e6e4934fd20ee2012b74553548bc26d39c1f0b2
AbstractMachinesLab/caramel
ast_helper.ml
(***********************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/ocaml/parsing/402/ast_helper.ml
ocaml
********************************************************************* OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . * Helpers to produce Parsetree fragments...
886c02af585ad99a20ff956da21cec04dd262e9e54878dc48c1d9035fed9a87c
TrustInSoft/tis-kernel
wpRTE.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/wpRTE.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2016 ...
ea7fa07cc3807ad4b88074169e559876a6b36875859b0649f172224d233a9c8b
charlieg/Sparser
WH-words.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1992,1993,1994 -- all rights reserved ;;; File : " WH words " ;;; Module: "grammar;rules:words:" Version : 0.1 June 1994 ;; broken out from "fn words - cases" 12/17/92 v2.3 0.1 ( 6/18/93 ) added .[np ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/words/WH-words.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- Module: "grammar;rules:words:" broken out from "fn words - cases" 12/17/92 v2.3
copyright ( c ) 1992,1993,1994 -- all rights reserved File : " WH words " Version : 0.1 June 1994 0.1 ( 6/18/93 ) added .[np np ] . brackets ( 1/11/94 ) added some more . 6/8 added " whether " 10/24 added " how many " (in-package :sparser) keep this in sync with rules / s...
2a4ddbbcfc401fadd9f394cd1912a3276f1af0335e3b41429c1d2f38bcbf1775
EveryTian/Haskell-Codewars
Tests.hs
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE RecordWildCards # import Data.Foldable (for_) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import CollatzConjecture (collatz) main :: IO () main = hspecWith defaultConfig {confi...
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/exercism/collatz-conjecture/test/Tests.hs
haskell
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE RecordWildCards # import Data.Foldable (for_) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import CollatzConjecture (collatz) main :: IO () main = hspecWith defaultConfig {confi...
2a033d7617c377e2389e28c07ef94f8f59e119918dda9cbe169e01e956d0d209
takikawa/racket-ppa
htdp-advanced.rkt
#lang scheme/base (require "private/teach.rkt" "private/teach-module-begin.rkt" mzlib/etc mzlib/list mzlib/pretty syntax/docprovide scheme/promise test-engine/racket-tests "posn.rkt") (require "private/provide-and-scribble.rkt") ;; syntax: (pro...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/share/pkgs/htdp-lib/lang/htdp-advanced.rkt
racket
syntax: procedures:
#lang scheme/base (require "private/teach.rkt" "private/teach-module-begin.rkt" mzlib/etc mzlib/list mzlib/pretty syntax/docprovide scheme/promise test-engine/racket-tests "posn.rkt") (require "private/provide-and-scribble.rkt") (provide (renam...
bd3c163a83b4de9f3de76688dfddbde21902d044fa7d814ee78295574859095f
ssardina/ergo
3bars.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; This is the odd bar problem , with 3 bars and 2 weighings allowed . (define bars 3) (define allowed-weighs 2) (include "bars-bat.scm") (define (main) (ergo-genplan (lambda () announced?) (append all-say-acts '((we...
null
https://raw.githubusercontent.com/ssardina/ergo/4225ebb95779d1748f377cf2e4d0a593d6a2a103/Examples/PlanningExamples/3bars.scm
scheme
This is the odd bar problem , with 3 bars and 2 weighings allowed . (define bars 3) (define allowed-weighs 2) (include "bars-bat.scm") (define (main) (ergo-genplan (lambda () announced?) (append all-say-acts '((weigh! (0) (1)) (weigh! (0) (2)) (weigh! (1) (2))) )))
2a5a0c1f8c4df51e378d0d7b4dc9609897a03fd57c0d795249be8ed762c00585
argp/bap
dot.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocamlgraph/tests/dot.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking $ Id:$ ...
68b58a3788450e2c09bcb0559b6138794ccb0bfa991bccf9e750d0642cd6b35e
atzedijkstra/chr
Lookup.hs
------------------------------------------------------------------------------------------- -- Abstraction of Map like datatypes providing lookup ------------------------------------------------------------------------------------------- module CHR.Data.Lookup ( module CHR.Data.Lookup.Types , module CHR.Data.L...
null
https://raw.githubusercontent.com/atzedijkstra/chr/ad465828b1560831e90c4056e12338231872e8db/chr-data/src/CHR/Data/Lookup.hs
haskell
----------------------------------------------------------------------------------------- Abstraction of Map like datatypes providing lookup ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------...
module CHR.Data.Lookup ( module CHR.Data.Lookup.Types , module CHR.Data.Lookup.Instances , module CHR.Data.Lookup.Scoped , module CHR.Data.Lookup.Stacked , lookupResolveVar , lookupResolveVal , lookupResolveAndContinueM , inverse ) where import Prelude hi...
05d5a7bcaffba4f92b25142f7ad6271aeedc1e96c6835d07459cb4e28ca7ba02
Guest0x0/trebor
KernelTest.ml
open Kernel let parse_lexbuf lexbuf = Parser.program Lexer.token lexbuf let parse_string ?filename src = let lexbuf = Lexing.from_string src in Option.iter (fun filename -> Lexing.set_filename lexbuf filename) filename; parse_lexbuf lexbuf let expr_of_string src = let lexbuf = Lexing.from_string src...
null
https://raw.githubusercontent.com/Guest0x0/trebor/c6b6c099e3e848979bd8f501d28c4c2f35f1235e/Kernel/KernelTest.ml
ocaml
open Kernel let parse_lexbuf lexbuf = Parser.program Lexer.token lexbuf let parse_string ?filename src = let lexbuf = Lexing.from_string src in Option.iter (fun filename -> Lexing.set_filename lexbuf filename) filename; parse_lexbuf lexbuf let expr_of_string src = let lexbuf = Lexing.from_string src...
45ef2f361662d03420765c25fab724877abb2db92f94b7c0ecd2195ae04b6652
lachenmayer/arrowsmith
Port.hs
module Transform.Canonicalize.Port (check) where import Control.Applicative ((<$>)) import Control.Monad.Error (throwError) import Text.PrettyPrint as P import qualified AST.Declaration as D import qualified AST.Expression.General as E import qualified AST.Expression.Canonical as Canonical import qualified AST.Pretty...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/elm-compiler/src/Transform/Canonicalize/Port.hs
haskell
CHECK FOR PORT CHECK INBOUND AND OUTBOUND TYPES
module Transform.Canonicalize.Port (check) where import Control.Applicative ((<$>)) import Control.Monad.Error (throwError) import Text.PrettyPrint as P import qualified AST.Declaration as D import qualified AST.Expression.General as E import qualified AST.Expression.Canonical as Canonical import qualified AST.Pretty...
e0be93eb4d67a90867d73153add3b29f37b3923f40aba42f1ae2ae9576aa386f
silky/quipper
QClasses.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # LANGUAGE MultiParamTypeClasses # # LANGUAGE Fle...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/quipper/Quipper/QClasses.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== > (==) :: a -> a -> Bool. Correspondingly, our @'QEq' a qa ca@ has a method > q_is_equal :: qa -> qa -> Circ (qa,qa,Qubit). ...
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # | This module defines quantum analogues of some type classes . For instance , Haskell ’s @'Eq ' a@ has on...
89f600b7c80545557c635b839baadb14c7703f29a973f4db9f12e0bbd683e966
vert-x/mod-lang-clojure
datagram.clj
Copyright 2013 the original author or authors . ;; 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 applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/vert-x/mod-lang-clojure/dcf713460b8f46c08d0db6e7bf8537f1dd91f297/api/src/main/clojure/vertx/datagram.clj
clojure
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 language governing pe...
Copyright 2013 the original author or authors . distributed under the License is distributed on an " AS IS " BASIS , (ns vertx.datagram "Provides a broad set of functions for UDP servers and clients. Usually you use a Datragram Client to send UDP over the wire. UDP is connection-less which means you are n...
127481c46d4e2139e8f3b1539a47cf7fad2afe3fda73c1506e482340121cbf83
FranklinChen/hugs98-plus-Sep2006
AARGB.hs
AARGB.hs ( adapted from aargb.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2006 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program draws shows how to draw anti - aliased lines . It draws two ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/GLUT/examples/RedBook/AARGB.hs
haskell
line width. Print out implementation specific info on line width granularity and width. resolve overloading, not needed in "real" programs Open window with initial window size, title bar, RGBA display mode, and handle input events.
AARGB.hs ( adapted from aargb.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2006 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program draws shows how to draw anti - aliased lines . It draws two ...
87419f5710af5bbff015312e9acc731fd7d303d5c3b0bc12630bfcf6a218cad8
heshrobe/joshua-dist
evidence+dummy-nodes.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : Ideal ; Base : 10 -*- (in-package :ideal) ;;;;******************************************************** Copyright ( c ) 1989 , 1992 Rockwell International -- All rights reserved . Rockwell International Science Center Palo Alto Lab ;;;;********************...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/ideal/code/evidence%2Bdummy-nodes.lisp
lisp
Syntax : Common - Lisp ; Package : Ideal ; Base : 10 -*- ******************************************************** ******************************************************** ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ----------- Crude input function to create evidence lists I know this is messy but again, we are not prov...
(in-package :ideal) Copyright ( c ) 1989 , 1992 Rockwell International -- All rights reserved . Rockwell International Science Center Palo Alto Lab (eval-when (:compile-toplevel :load-toplevel :execute) (export '(CREATE-EVIDENCE RESET-EVIDENCE REMOVE-EVIDENCE DUMMY-NODE-P CHECK-EVIDENCE))) maintainab...
8f338403723ad7bfa48af6463564fe6217ae1af0ed229ea1adadf8ec38b7fc2e
dhammikamare/Learn-OCaml
ostree.ml
type 'a ostree = | Empty | Node of 'a * int * 'a ostree * 'a ostree ;; let rec insert e t = match t with | Empty -> Node(e, 1, Empty, Empty) | Node(v, count, lt, rt) -> if e < v then Node(v, count+1, insert e lt, rt) else if e > v then Node(v, count+1, lt, insert e rt) else Node(v, count, lt, r...
null
https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab10%20Binary%20Tree/ostree.ml
ocaml
if x>v then test
type 'a ostree = | Empty | Node of 'a * int * 'a ostree * 'a ostree ;; let rec insert e t = match t with | Empty -> Node(e, 1, Empty, Empty) | Node(v, count, lt, rt) -> if e < v then Node(v, count+1, insert e lt, rt) else if e > v then Node(v, count+1, lt, insert e rt) else Node(v, count, lt, r...
77aa9b8728bd0fa948189ade06e3e3bd15cef17c3f710ca67a97fb13f38c5038
nominolo/lambdachine
Map1.hs
# LANGUAGE NoImplicitPrelude # module Bc.Map1 where import Data.Map as Map import Data.List ( zip ) import GHC.Base test = (m1 `Map.union` m2) == m3 where m1 = Map.fromList (zip [(1::Int)..5] ['a'..]) m2 = Map.fromList (zip [10..15] ['m'..]) m3 = Map.fromList (zip [(1::Int)..5] ['a'..] ++ zip [10..15] ['m'....
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/Map1.hs
haskell
# LANGUAGE NoImplicitPrelude # module Bc.Map1 where import Data.Map as Map import Data.List ( zip ) import GHC.Base test = (m1 `Map.union` m2) == m3 where m1 = Map.fromList (zip [(1::Int)..5] ['a'..]) m2 = Map.fromList (zip [10..15] ['m'..]) m3 = Map.fromList (zip [(1::Int)..5] ['a'..] ++ zip [10..15] ['m'....
6e11691e7ab45d44fafa9724cd4b1d79985f313d5604d5dd2888097d160e545e
nikodemus/SBCL
hash-table.lisp
;;;; the needed-on-the-cross-compilation-host part of HASH-TABLE ;;;; implementation This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public d...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/hash-table.lisp
lisp
the needed-on-the-cross-compilation-host part of HASH-TABLE implementation more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. HASH-TABLE is implemented as a STRUCTURE-OBJECT. The type of hash...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") (sb!xc:defstruct (hash-table (:constructor %make-hash-table)) (test (missing-arg) :type symbol :rea...
b3c9d22cf1b23c60b39be70d8ca676df0943bd409524733d1e69d11dccecb14c
ners/dosh
Client.hs
# LANGUAGE DuplicateRecordFields # {-# OPTIONS_GHC -Wno-name-shadowing #-} {-# OPTIONS_GHC -Wno-partial-fields #-} module Dosh.LSP.Client where import Dosh.LSP.Server (Server (..)) import Dosh.Prelude import Dosh.Util import Language.LSP.Test (request) import Language.LSP.Types import Reflex hiding (Query, Response) ...
null
https://raw.githubusercontent.com/ners/dosh/ff0bcbf33ba38bfe3d981b90c815f7e827ee2d33/src/Dosh/LSP/Client.hs
haskell
# OPTIONS_GHC -Wno-name-shadowing # # OPTIONS_GHC -Wno-partial-fields #
# LANGUAGE DuplicateRecordFields # module Dosh.LSP.Client where import Dosh.LSP.Server (Server (..)) import Dosh.Prelude import Dosh.Util import Language.LSP.Test (request) import Language.LSP.Types import Reflex hiding (Query, Response) import Prelude hiding (id) data Query = Query { id :: Int , content :: ...
0d337447991c862f149f73abffb998b4c587d6b61852656f7e94edb1bb050e02
grin-compiler/ext-stg-interpreter-presentation-demos
test.hs
import System.Process (system) import System.Exit (exitWith) main = system "make -k -C tests clean all" >>= exitWith
null
https://raw.githubusercontent.com/grin-compiler/ext-stg-interpreter-presentation-demos/f4b1a3b3ab746146859a1512f910e9e62c62a0e6/demo-03-alex/alex-3.2.5/test.hs
haskell
import System.Process (system) import System.Exit (exitWith) main = system "make -k -C tests clean all" >>= exitWith
a950fe80f8169e073739ef96bd40ff98bea19eafdfbc4d950e949566bdffd9f1
nathanmarz/cascalog
def.clj
(ns cascalog.logic.def "This namespace contains the tools required to define custom Cascalog operations, instantiated with appropriate metadata." (:require [clojure.tools.macro :refer (name-with-attributes)] [cascalog.logic.fn :as s] [jackknife.core :refer (throw-illegal)] [ja...
null
https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/src/clj/cascalog/logic/def.clj
clojure
## Deprecated Old Timers Special node. The operation inside of here will be passed the Cascalog option map and expected to return another operation. #'one, for example.
(ns cascalog.logic.def "This namespace contains the tools required to define custom Cascalog operations, instantiated with appropriate metadata." (:require [clojure.tools.macro :refer (name-with-attributes)] [cascalog.logic.fn :as s] [jackknife.core :refer (throw-illegal)] [ja...
f32095b9c161a55df923f2ed2edcb06bf805d9aef28e0053c85d29ec48e05f3b
DeathKing/Hit-DataStructure-On-Scheme
diagraph-basic.scm
(define *edge-unreachable* '()) (define (diagraph-vertex g) (car g)) (define (diagraph-edge g) (cdr g)) (define (make-vertex data #!optional attribute) (cons data (if (eq? #!default attribute) '() attribute))) (define (vertex-data vertex) (car vertex)) (define (vertex-attribute vertex) (cdr v...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/application3/diagraph-basic.scm
scheme
MAKE-EDGE: build new edge ui: the index of vertex u vi: the index of vertex v
(define *edge-unreachable* '()) (define (diagraph-vertex g) (car g)) (define (diagraph-edge g) (cdr g)) (define (make-vertex data #!optional attribute) (cons data (if (eq? #!default attribute) '() attribute))) (define (vertex-data vertex) (car vertex)) (define (vertex-attribute vertex) (cdr v...
607f40efe282f33b694900f62e65c0e6e12fa3e26abce9edb5bd90faafb05ca7
shirok/Gauche
propagate.scm
;;; ;;; propagate.scm - propagate slot option ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the ab...
null
https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/lib/gauche/mop/propagate.scm
scheme
propagate.scm - propagate slot option Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (define-module gauche.mop.propagate (use s...
e811aa5bb54a0708137833d5000646a3f601c07dbaaec4ca56039ff685727b07
jwiegley/notes
UnitCategory.hs
# LANGUAGE FlexibleInstances # module UnitCategory where import Control.Category data Const2 c a b = Const2 c instance Category (Const2 ()) where id = Const2 () f . g = Const2 ()
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/cb12ab6889dec9abb361f3e107a2e7ed/UnitCategory.hs
haskell
# LANGUAGE FlexibleInstances # module UnitCategory where import Control.Category data Const2 c a b = Const2 c instance Category (Const2 ()) where id = Const2 () f . g = Const2 ()
31c08cb198aa989d7c3708bd39c3cf2547d1f0e60f947a9248f3be9baf22d810
quil/quil
snippets_generator.clj
(ns utils.snippets-generator "Script to generate snippets.clj with snippet usages of all API functions." (:require [quil.snippets.all-snippets :as as] [clojure.tools.reader.edn :as edn] [clojure.java.io :as io])) (defn prepare-snippet-for-saving "Clean up snippet to remove all functions a...
null
https://raw.githubusercontent.com/quil/quil/1f214e712d834ede311fdc652eafe9cc0232c96e/dev-resources/utils/snippets_generator.clj
clojure
Some snippets contains :settings function so remove it.
(ns utils.snippets-generator "Script to generate snippets.clj with snippet usages of all API functions." (:require [quil.snippets.all-snippets :as as] [clojure.tools.reader.edn :as edn] [clojure.java.io :as io])) (defn prepare-snippet-for-saving "Clean up snippet to remove all functions a...
e9f8a155343965cf1664d779a63320bce28856ab6172d7e61d40bd927527a023
supki/liblastfm
GeoSpec.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} module Json.GeoSpec (spec) where import Data.Aeson (Value) import Data.Aeson.Lens import Data.Text (Text) import Lastfm import Lastfm.Geo import Test.Hspec import SpecHelper spec :: Spec spec = do it "getEvents" $ publicly (getEvents <* location "Mosco...
null
https://raw.githubusercontent.com/supki/liblastfm/754be163c4ce14c9b4819f1359b5f95a0f91a29d/test/api/Json/GeoSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # module Json.GeoSpec (spec) where import Data.Aeson (Value) import Data.Aeson.Lens import Data.Text (Text) import Lastfm import Lastfm.Geo import Test.Hspec import SpecHelper spec :: Spec spec = do it "getEvents" $ publicly (getEvents <* location "Moscow" <* limit 5) `shouldHaveJson` ...
f5bedda7fa0926b287463241cde360b8ce558498357e14ac9a567363b9aa0abb
mirage/ocaml-xenstore-server
bench.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/mirage/ocaml-xenstore-server/2a8ae397d2f9291107b5d9e9cfc6085fde8c0982/server_test/bench.ml
ocaml
start signal Printf.printf "out !\n%!";
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
bc8f8cc754c42a352f81b5cc59ebdcaa24f4c2e2fcc314f669c1484ec0595795
mpickering/eventlog2html
Prune.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # module Eventlog.Prune ( pruneBands, pruneDetailed ) where import Data.List (sortBy) import Data.Ord (comparing) import Eventlog.Types import Data.Map (Map, fromList, (!), toList) import Eventlog.Args (Args(..), Sort(..)) import Data.Maybe type Compare ...
null
https://raw.githubusercontent.com/mpickering/eventlog2html/a18ec810328c71122ccc630fccfcea5b48c0e937/src/Eventlog/Prune.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ViewPatterns # module Eventlog.Prune ( pruneBands, pruneDetailed ) where import Data.List (sortBy) import Data.Ord (comparing) import Eventlog.Types import Data.Map (Map, fromList, (!), toList) import Eventlog.Args (Args(..), Sort(..)) import Data.Maybe type Compare a = a -> a -> Ordering getComparis...
19f8101fab5e4eff2043b6f6fa45542f9d0322c22d3ee53348bad45c9024216a
ucsd-progsys/liquidhaskell
Visitors.hs
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE ScopedTypeVariables #-} module Language.Haskell.Liquid.Types.Visitors ( CBVisitable (..) -- * visitors , coreVisitor , CoreVisitor (..) ) where import Data.H...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/b93b096aecabfd9cf08c7fce60eefbe41fbc8974/src/Language/Haskell/Liquid/Types/Visitors.hs
haskell
# LANGUAGE ScopedTypeVariables # * visitors ---------------------------------------------------------------------------- ------------------------------ A CoreBind Visitor -------------------------- ---------------------------------------------------------------------------- TODO: syb-shrinkage -----------------...
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module Language.Haskell.Liquid.Types.Visitors ( CBVisitable (..) , coreVisitor , CoreVisitor (..) ) where import Data.Hashable import Data.List ...
f7dfceb3afbb9a02f73c098d518ed4884af029a8eb1a5b9b941cfa570aa0aebe
erlangonrails/devdb
node_dag.erl
%%% ==================================================================== ` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %%% compliance with the License. You should have received a copy of the %%% Erlang Public License ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ejabberd-2.1.4/src/mod_pubsub/node_dag.erl
erlang
==================================================================== compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the...
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " @author < > -module(node_dag). -author(''). -include("pubsub.hrl"). -include("jlib.hrl"). -...
dc18d98297538f8b2a9bf436dda634ee08b0d2a8d435c90ed421cce1b05c1232
racket/gui
stretchable-editor-snip-test.rkt
#lang racket/gui (require "../aligned-pasteboard.rkt" "../aligned-editor-container.rkt" "../stretchable-editor-snip.rkt" "../snip-lib.rkt") (define f (new frame% [label ""] [width 500] [height 500])) (define e (new vertical-pasteboard%)) (define c (new aligned-editor-canvas% [parent f] [editor e])) (define ...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mrlib/private/aligned-pasteboard/tests/stretchable-editor-snip-test.rkt
racket
#lang racket/gui (require "../aligned-pasteboard.rkt" "../aligned-editor-container.rkt" "../stretchable-editor-snip.rkt" "../snip-lib.rkt") (define f (new frame% [label ""] [width 500] [height 500])) (define e (new vertical-pasteboard%)) (define c (new aligned-editor-canvas% [parent f] [editor e])) (define ...
900167ab4a46843e0d67f019ddab0462c048445bd39319f3ba8f582f903e5e79
shirok/Gauche
s8.scm
(define-module srfi.160.s8 (extend gauche.uvector.s8))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/srfi/160/s8.scm
scheme
(define-module srfi.160.s8 (extend gauche.uvector.s8))
99735b1e82e39f87b91642c168e0a583322b05cef012ba7364b16294ca6d582b
softwarelanguageslab/maf
R5RS_scp1_flip-4.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((flip (let ((state 0)) (lambda () (if (= state 0) (set! state 1) (set! state 0)) (<change> () ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_flip-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 (letrec ((flip (let ((state 0)) (lambda () (if (= state 0) (set! state 1) (set! state 0)) (<change> () 1) state)))) (if (= (flip) 1) (if (= (fli...
e1f592abaae03bc21b87e3cbb4703e0cca3e67bd6acd86f4c9e0c0b4a19375da
david-vanderson/warp
probe.rkt
#lang racket/base (require racket/class racket/math mode-lambda racket/draw) (require "defs.rkt" "utils.rkt" "ships.rkt" "draw-utils.rkt") (provide (all-defined-out)) (define (dmg-ptube tool) (cond ((null? (tool-dmgs tool)) (if ((random) . < . 0.5) ...
null
https://raw.githubusercontent.com/david-vanderson/warp/cdc1d0bd942780fb5360dc6a34a2a06cf9518408/probe.rkt
racket
client/server random so things don't end up exactly aligned
#lang racket/base (require racket/class racket/math mode-lambda racket/draw) (require "defs.rkt" "utils.rkt" "ships.rkt" "draw-utils.rkt") (provide (all-defined-out)) (define (dmg-ptube tool) (cond ((null? (tool-dmgs tool)) (if ((random) . < . 0.5) ...
450dae33ad96cca77fe3a2133f19d974934c44df9341074f1ddf0c55a3cc31b3
tolitius/multim
core_test.clj
(ns multim.core-test (:require [clojure.test :refer :all] [multim.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/tolitius/multim/3cad61a7ecddd27f1ca8b6dce883f8d91dba6b27/test/multim/core_test.clj
clojure
(ns multim.core-test (:require [clojure.test :refer :all] [multim.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
1e5db08e9d67b302cd42cd338d5d9f9de6a885f23370f94a274423da42ee205e
rollacaster/sketches
bouncing_ball.cljs
(ns sketches.nature-of-code.vectors.bouncing-ball (:require [quil.core :as q :include-macros true])) (def location (atom (hash-map :x 0 :y 0 :z 0))) (def velocity (atom (hash-map :x 1.5 :y 1.5 :z 3.5))) (defn add [v1 v2] (hash-map :x (+ (:x v1) (:x v2)) :y (+ (:y v1) (:y v2)) :z (+ (:z v1)...
null
https://raw.githubusercontent.com/rollacaster/sketches/ba79fccf2a37139de9193ed2ea7a6cc04b63fad0/src/sketches/nature_of_code/vectors/bouncing_ball.cljs
clojure
(ns sketches.nature-of-code.vectors.bouncing-ball (:require [quil.core :as q :include-macros true])) (def location (atom (hash-map :x 0 :y 0 :z 0))) (def velocity (atom (hash-map :x 1.5 :y 1.5 :z 3.5))) (defn add [v1 v2] (hash-map :x (+ (:x v1) (:x v2)) :y (+ (:y v1) (:y v2)) :z (+ (:z v1)...
d091164e41d334e3dd7c9bf77b212e22d942c5551d3529395b092110a5e13651
GaloisInc/semmc
OperandClasses.hs
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module SemMC.Architecture.PPC.Base.Core.OperandClasses ( SymToExprTagWrapper, -- * PPC Types gprc, gprc_nor0, fprc, vrrc, vsrc, crrc, crbitrc, crbitm, s5imm, s16imm, s16imm64, s17imm, u2imm, u4imm, u5imm, u6imm...
null
https://raw.githubusercontent.com/GaloisInc/semmc/17f3ac6238377f833b04f291b07bc31d6266b1a1/semmc-ppc/src/SemMC/Architecture/PPC/Base/Core/OperandClasses.hs
haskell
* PPC Types PPC Types
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module SemMC.Architecture.PPC.Base.Core.OperandClasses ( SymToExprTagWrapper, gprc, gprc_nor0, fprc, vrrc, vsrc, crrc, crbitrc, crbitm, s5imm, s16imm, s16imm64, s17imm, u2imm, u4imm, u5imm, u6imm, u16imm, u16im...
4adadb97cafbcc66688d7d2ecee29551c9696f6dbe3127120651b5cef87df155
geophf/1HaskellADay
Exercise.hs
# LANGUAGE ViewPatterns # module Y2017.M12.D13.Exercise where - A little simple thing for today 's exercise . Yesterday 's date was 2017 - 12 - 12 . I noticed something after I had already published yesterday 's SQL problem . Yesterday 's date has the following property Both the month and the day are co...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2017/M12/D13/Exercise.hs
haskell
} } Great! }
# LANGUAGE ViewPatterns # module Y2017.M12.D13.Exercise where - A little simple thing for today 's exercise . Yesterday 's date was 2017 - 12 - 12 . I noticed something after I had already published yesterday 's SQL problem . Yesterday 's date has the following property Both the month and the day are co...
cd50eed20efd01ce5d007d3683caf7799915b79f77402f1691077e2128f5a26e
patricoferris/ocaml-multicore-monorepo
baijiu_sha3_512.ml
module By = Digestif_by module Bi = Digestif_bi module type S = sig type ctx type kind = [ `SHA3_512 ] val init : unit -> ctx val unsafe_feed_bytes : ctx -> By.t -> int -> int -> unit val unsafe_feed_bigstring : ctx -> Bi.t -> int -> int -> unit val unsafe_get : ctx -> By.t val dup : ctx -> ctx end...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/digestif/src-ocaml/baijiu_sha3_512.ml
ocaml
module By = Digestif_by module Bi = Digestif_bi module type S = sig type ctx type kind = [ `SHA3_512 ] val init : unit -> ctx val unsafe_feed_bytes : ctx -> By.t -> int -> int -> unit val unsafe_feed_bigstring : ctx -> Bi.t -> int -> int -> unit val unsafe_get : ctx -> By.t val dup : ctx -> ctx end...
4284f1c1e33e19d395a239913ee56f2e7ea4104683c3b6f11de30d68eb39a6a0
well-typed/large-records
R010.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif # OPTIONS_GHC -fplugin = TypeLet # module Experiment.HListLetAsCase.Sized.R010 where import TypeLet import Bench.HList import Bench.Types...
null
https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/typelet/Experiment/HListLetAsCase/Sized/R010.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif # OPTIONS_GHC -fplugin = TypeLet # module Experiment.HListLetAsCase.Sized.R010 where import TypeLet import Bench.HList import Bench.Types import Common.HListOfSize.HL010 hlist :: HList Fields hlist = 09 .. 00 case letAs (MkT 09 :* Nil) of { LetAs (xs09 :...
ef29e132b493c27e9365123c505989a5674b6ec6fff12ae53a3d9d6f4629730e
weblocks-framework/weblocks
compiler.lisp
(in-package :weblocks) (export '(*custom-view-field-argument-compilers* view-argument-quoting-strategy defview-anon defview)) ;;; Declarative view definition implementation (eval-when (:compile-toplevel :load-toplevel :execute) ;; Note, this is in a separate eval-when block so that recompiling ;; the b...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/views/view/compiler.lisp
lisp
Declarative view definition implementation Note, this is in a separate eval-when block so that recompiling the block below won't reset the parameter. :list, in which case argument is quoted but if it and :none, in which case see that variable for how those are transformed.
(in-package :weblocks) (export '(*custom-view-field-argument-compilers* view-argument-quoting-strategy defview-anon defview)) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *custom-view-field-argument-compilers* (make-hash-table) "A hash map of keywords, each mapped to a compila...
802629dcdab3380c7a3cdab1b7279bdb1fca1430fe8b13aedd894408258aa344
ovotech/ring-jwt
jwt_test.clj
(ns ring.middleware.jwt-test (:require [cheshire.core :as json] [clojure.string :refer [split join]] [clojure.test :refer :all] [ring.middleware.jwt-test-utils :as util] [ring.middleware.jwt :refer [wrap-jwt]]) (:import (clojure.lang ExceptionInfo) (java.ti...
null
https://raw.githubusercontent.com/ovotech/ring-jwt/6977423b57a16bcf67761531dabea1edfd3b3371/test/ring/middleware/jwt_test.clj
clojure
(ns ring.middleware.jwt-test (:require [cheshire.core :as json] [clojure.string :refer [split join]] [clojure.test :refer :all] [ring.middleware.jwt-test-utils :as util] [ring.middleware.jwt :refer [wrap-jwt]]) (:import (clojure.lang ExceptionInfo) (java.ti...
d8a3a50a5a4c2ff2343243c41c5a157d4de4b5a61deb7c642b9a4aae4b81ae14
simoncourtenage/quanthas
Quote.hs
Copyright ( C ) 2018 , ( ) This file is part of QuantHas , an open - source Haskell implementation of the QuantLib library for quantitative finance . is free software : you can redistribute it and/or modify it under the terms of the QuantHas license . You should have receiv...
null
https://raw.githubusercontent.com/simoncourtenage/quanthas/6e0b2cc9a60bb7d1709f98ed10d09aa6c071c8dd/src/QuantHas/Quotes/Quote.hs
haskell
Copyright ( C ) 2018 , ( ) This file is part of QuantHas , an open - source Haskell implementation of the QuantLib library for quantitative finance . is free software : you can redistribute it and/or modify it under the terms of the QuantHas license . You should have receiv...
f1fcb4eda65581689d44164bcdaa9bfcd9e459afab2404a7b99bf0e6dac17113
Eduap-com/WordMat
cmf3kf.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/fftpack5/lisp/cmf3kf.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
f54f45cce3377d5ab27d9e9a97d94c47c5f97382d0bea2e77511e6f50d2d9318
kim/data-ringbuffer
Main.hs
module Main where import Criterion.Types import Criterion.Main (defaultMain) import qualified TChan.Multicast import qualified TChan.Unicast import qualified Disruptor3.Multicast import qualified Disruptor3.Unicast import qualified Disruptor3.Diamond iterations :: Int iterations = 1000000 main :: IO () main = de...
null
https://raw.githubusercontent.com/kim/data-ringbuffer/bbf4984b1166487a6ea6f96526430ca66477d2c3/perf/Main.hs
haskell
module Main where import Criterion.Types import Criterion.Main (defaultMain) import qualified TChan.Multicast import qualified TChan.Unicast import qualified Disruptor3.Multicast import qualified Disruptor3.Unicast import qualified Disruptor3.Diamond iterations :: Int iterations = 1000000 main :: IO () main = de...
45cf2a133e0701772d6966d92abeb1473b5b7e0848ee004df53ce998b87b1806
typelead/intellij-eta
ForAll00001.hs
module ForAll00001 where data BlockedFetch r = forall a. BlockedFetch (r a) (ResultVar a)
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/test/resources/fixtures/eta/sources/ForAll00001.hs
haskell
module ForAll00001 where data BlockedFetch r = forall a. BlockedFetch (r a) (ResultVar a)
d5d8ee5e9897b442cb33e4ab25ff470f6dd64ab5650c0b5257f81423576a2d08
janestreet/base_quickcheck
ppx_quickcheck.ml
open! Base open Ppxlib open Ppx_quickcheck_expander let (_ : Deriving.t) = Deriving.add "quickcheck" ~sig_type_decl ~str_type_decl let (_ : Deriving.t) = Deriving.add "quickcheck.generator" ~extension:generator_extension let (_ : Deriving.t) = Deriving.add "quickcheck.observer" ~extension:observer_extension let (_ : D...
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/b3dc5bda5084253f62362293977e451a6c4257de/ppx_quickcheck/src/ppx_quickcheck.ml
ocaml
open! Base open Ppxlib open Ppx_quickcheck_expander let (_ : Deriving.t) = Deriving.add "quickcheck" ~sig_type_decl ~str_type_decl let (_ : Deriving.t) = Deriving.add "quickcheck.generator" ~extension:generator_extension let (_ : Deriving.t) = Deriving.add "quickcheck.observer" ~extension:observer_extension let (_ : D...
2adc99e5207c6a451fb35123ef6d4ed7384f6f0abfb6142e54d0bc7f9543c477
ornicar/vindinium-starter-clojure
project.clj
(defproject vindinium/example "0.1.0-SNAPSHOT" :description "An example vindinium project" :license {:name "MIT" :url ""} :main vindinium.example :dependencies [[org.clojure/clojure "1.6.0"] [org.slf4j/slf4j-log4j12 "1.7.1"] [vindinium/vindinium "0.1.0-SNAPSHOT"]])...
null
https://raw.githubusercontent.com/ornicar/vindinium-starter-clojure/8b975fbd42c84d5547fc8db2d9d1b89590796bae/example/project.clj
clojure
(defproject vindinium/example "0.1.0-SNAPSHOT" :description "An example vindinium project" :license {:name "MIT" :url ""} :main vindinium.example :dependencies [[org.clojure/clojure "1.6.0"] [org.slf4j/slf4j-log4j12 "1.7.1"] [vindinium/vindinium "0.1.0-SNAPSHOT"]])...
ba8ac90a78e83ac7d1a2b1833b5ff7da33028aefa109860b999b2eef70ad5d55
huangz1990/SICP-answers
test-p83-prime-sum.scm
(load "test-manager/load.scm") (load "p83-prime-sum.scm") (define-each-check (prime-sum? (list 1 2)) (false? (prime-sum? (list 2 2))) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-p83-prime-sum.scm
scheme
(load "test-manager/load.scm") (load "p83-prime-sum.scm") (define-each-check (prime-sum? (list 1 2)) (false? (prime-sum? (list 2 2))) ) (run-registered-tests)
07ab5a5d2dd1f866e7c3538e4a52b8cc5a8dcae4e46d6303b634277f73205270
ingesolvoll/kee-frame-sample
util.cljs
(ns kee-frame-sample.util (:require [ajax.core :as ajax])) (defn http-get ([uri] (http-get uri nil)) ([uri params] (-> {:method :get :headers {"X-Auth-Token" "974c0523d8964af590d3bb9d72b45d0a"} :response-format (ajax/json-response-format {:keywords? true})} (merge param...
null
https://raw.githubusercontent.com/ingesolvoll/kee-frame-sample/10223661f2603d79cc5b58dd38a6551965113826/src/cljs/kee_frame_sample/util.cljs
clojure
(ns kee-frame-sample.util (:require [ajax.core :as ajax])) (defn http-get ([uri] (http-get uri nil)) ([uri params] (-> {:method :get :headers {"X-Auth-Token" "974c0523d8964af590d3bb9d72b45d0a"} :response-format (ajax/json-response-format {:keywords? true})} (merge param...
25ce03102b2ff0afebf309c433b59d886d3ad513fa750e014d6e78853ee9b114
DKurilo/hackerrank
findpairs.hs
-- find all pairs with sum equal to given value module Main where import qualified Data.Set as S findPairs :: Int -> [Int] -> [(Int, Int)] findPairs n = fst . foldl (\(ps, ns) x -> let y = n - x ns' = S.insert x ns in if y `S.memb...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/nothackerrank/findpairs.hs
haskell
find all pairs with sum equal to given value
module Main where import qualified Data.Set as S findPairs :: Int -> [Int] -> [(Int, Int)] findPairs n = fst . foldl (\(ps, ns) x -> let y = n - x ns' = S.insert x ns in if y `S.member` ns ...
dc38fa7a3e3b481f728402fed6bab27703dddd4508fb061f342ac855defc8698
willowtreeapps/wombats-api
javascript.clj
(ns wombats.game.dev-mode.javascript (:require [wombats.game.dev-mode.interpreter :as interpreter])) (defn handler "This evaluates the js bot code against the state given." [code state timeout] (let [script (str "const stdin = process.stdin,\n" " stdout = process.stdout;\n\n" ...
null
https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/game/dev_mode/javascript.clj
clojure
(ns wombats.game.dev-mode.javascript (:require [wombats.game.dev-mode.interpreter :as interpreter])) (defn handler "This evaluates the js bot code against the state given." [code state timeout] (let [script (str "const stdin = process.stdin,\n" " stdout = process.stdout;\n\n" ...
2b57a6a12a3185c1bd0f05547a7edc794afe0ab80a8a259c54c055a7a2f4cf00
manuel-serrano/bigloo
rsa.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Unsafe / rsa.scm * / ;* ------------------------------------------------------------- */ ;* Author : Chris Veness */ * Crea...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Unsafe/rsa.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Author : Chris Veness */ * ------------------------------------------------------------- */ * cipher. ...
* serrano / prgm / project / bigloo / runtime / Unsafe / rsa.scm * / * Creation : Thu Jun 5 08:00:03 2008 * / * Last change : Tue Jun 17 08:15:39 2014 ( serrano ) * / * Copyright : 2005 - 14 * / * ...
8105f148755e820cc2016c0a2cd5c3287a6a28a64841b2d11e447b67943524ca
thheller/shadow-cljsjs
fr_ch.cljs
(ns cljsjs.moment.locale.fr-ch (:require ["moment/locale/fr-ch"]))
null
https://raw.githubusercontent.com/thheller/shadow-cljsjs/eaf350d29d45adb85c0753dff77e276e7925a744/src/main/cljsjs/moment/locale/fr_ch.cljs
clojure
(ns cljsjs.moment.locale.fr-ch (:require ["moment/locale/fr-ch"]))
e893b05895aad01cf814e38e8ae232305325400d654b5f9ae88151f83f931a9f
TheLortex/mirage-monorepo
import.ml
open Astlib include Ppxlib_ast include Ast open Ast_helper let loc = This is fine , because the location info is thrown away when the generated code written out to the .ml file written out to the .ml file *) Location.none let lident x = Longident.Lident x module Loc = struct let mk x = { Location.l...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/src/gen/import.ml
ocaml
Expand "longident_loc" into "longident loc" as it is preferable for what we do here. Small metaquotation system
open Astlib include Ppxlib_ast include Ast open Ast_helper let loc = This is fine , because the location info is thrown away when the generated code written out to the .ml file written out to the .ml file *) Location.none let lident x = Longident.Lident x module Loc = struct let mk x = { Location.l...
aa367a800811f600cc9530d8951136c9baac34d0306bd06f96d660e26ccfb236
DSLsofMath/DSLsofMath
Algebra.hs
{-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE ConstraintKinds #-} module DSLsofMath.Algebra where import qualified Data.Ratio import qualified Prelude import Prelude (Double, Rational, Int, Integer, Bool(..), otherwise, Foldable(foldr), (.), const, (==), (<), error) i...
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/0b2ac31d3258e4c0edca8a5fc6682c3ec0ea126f/L/DSLsofMath/Algebra.hs
haskell
# LANGUAGE TypeSynonymInstances # # LANGUAGE ConstraintKinds # ----------------------------- Classes # MINIMAL (recip | (/)) # ------------------------------- Instances ------------------------------- ----------------------------- Typesetting aliases. |neg| is used to typeset unary minus as a shorter dash, closer t...
# LANGUAGE FlexibleInstances # module DSLsofMath.Algebra where import qualified Data.Ratio import qualified Prelude import Prelude (Double, Rational, Int, Integer, Bool(..), otherwise, Foldable(foldr), (.), const, (==), (<), error) import Data.Complex infixl 6 - infixl 6 + infixl 7 * infixl 7 / class...
47399173e6d33fe0e36a6060c2bf6b2661fae7752c563a029c7d8764cdaa4b01
PacktWorkshops/The-Clojure-Workshop
exercsie_5_08_test.clj
(ns packt-clj.chapter-5-tests.exercsie-5-08-test (:require [clojure.test :as t :refer [deftest is testing]] [packt-clj.chapter-5-tests.exercise-5-08 :as exo])) (deftest recalculate-rating (is (= 1479.52 (exo/recalculate-rating 1500 0.64 0))) (is (= 431.04 (exo/recalculate-rating 40...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter05/tests/packt-clj.chapter-5-tests/test/packt_clj/chapter_5_tests/exercsie_5_08_test.clj
clojure
(ns packt-clj.chapter-5-tests.exercsie-5-08-test (:require [clojure.test :as t :refer [deftest is testing]] [packt-clj.chapter-5-tests.exercise-5-08 :as exo])) (deftest recalculate-rating (is (= 1479.52 (exo/recalculate-rating 1500 0.64 0))) (is (= 431.04 (exo/recalculate-rating 40...
18214246a1ed5803c7ec00cb90a20a6c831a0e4f4206b9955d9f132cc65f3a80
agrafix/openai-hs
HelperSpec.hs
module HelperSpec (helperSpec) where import Control.Exception.Base import qualified Data.ByteString as BS import Data.IORef import Data.Maybe import qualified Data.Sequence as Seq import Network.HTTP.Types.Header import Network.HTTP.Types.Status import Network.HTTP.Types.Version import OpenAI.Client.Internal.Helpers i...
null
https://raw.githubusercontent.com/agrafix/openai-hs/56001afd191eeb47d3fa6affab667f9d5e8ceb15/openai-hs/test/HelperSpec.hs
haskell
module HelperSpec (helperSpec) where import Control.Exception.Base import qualified Data.ByteString as BS import Data.IORef import Data.Maybe import qualified Data.Sequence as Seq import Network.HTTP.Types.Header import Network.HTTP.Types.Status import Network.HTTP.Types.Version import OpenAI.Client.Internal.Helpers i...