_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
2b329ce0738c4da8c803a32569feeae392d5c518d10adbf350cfda3e5fa53b4d
bbusching/libgit2
oidarray.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) ; Types (define-cstruct _git_oidarray ([oid _oid] [count _size])) (define _oidarray _git_oidarray-pointer) ; Functions (define-libgit2/dealloc git_oidarray_free (_fun _oidarray -> _...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/oidarray.rkt
racket
Types Functions
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) (define-cstruct _git_oidarray ([oid _oid] [count _size])) (define _oidarray _git_oidarray-pointer) (define-libgit2/dealloc git_oidarray_free (_fun _oidarray -> _void))
bbf3cbbf0df324551499471b0abc97543cb1954cf04394358285d671035374f3
gafiatulin/codewars
Jenny.hs
's secret message -- module Codewars.Kata.Jenny where greet :: String -> String greet "Johnny" = "Hello, my love!" greet name = "Hello, " ++ name ++ "!"
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/8%20kyu/Jenny.hs
haskell
's secret message module Codewars.Kata.Jenny where greet :: String -> String greet "Johnny" = "Hello, my love!" greet name = "Hello, " ++ name ++ "!"
f3098df0a89a2de94d3bcc8174224a60cf175bdb082ddefe2dfbfd91f6186b02
returntocorp/semgrep
Exception.ml
Wrapper around Printexc to ensure or at least encourage uniform exception tracing . Wrapper around Printexc to ensure or at least encourage uniform exception tracing. *) type t = exn * Printexc.raw_backtrace let catch exn = (exn, Printexc.get_raw_backtrace ()) let trace exn = (exn, Printexc.get_call...
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/libs/commons/Exception.ml
ocaml
Important: no external function calls here. This is to ensure no exception is raised and caught in the mean time since it would replace the backtrace. ensure the output ends with a newline
Wrapper around Printexc to ensure or at least encourage uniform exception tracing . Wrapper around Printexc to ensure or at least encourage uniform exception tracing. *) type t = exn * Printexc.raw_backtrace let catch exn = (exn, Printexc.get_raw_backtrace ()) let trace exn = (exn, Printexc.get_call...
e5d062c8fcbf4f2818cb960169b80850ae4e40ac4aa4363b71c1ae6604f282de
CloudI/CloudI
epgsql_SUITE.erl
-module(epgsql_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("public_key/include/public_key.hrl"). -include("epgsql_tests.hrl"). -include("epgsql.hrl"). -export([ init_per_suite/1, init_per_group/2, all/0, groups/0, end_per_group/2, ...
null
https://raw.githubusercontent.com/CloudI/CloudI/5008c3011cc0e7f86b7855023d186b43cb379326/src/external/cloudi_x_epgsql/test/epgsql_SUITE.erl
erlang
this timer is needed for the test not to be flaky this timer is needed for the test not to be flaky pre-otp23: {error, {ssl_negotiation_failed, {tls_alert, {unknown_ca, "received SERVER ALERT: Fatal - Unknown CA"}}}} otp23+: {error, {sock_error, {tls_alert, {unknown_ca, "TLS client: ...
-module(epgsql_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("public_key/include/public_key.hrl"). -include("epgsql_tests.hrl"). -include("epgsql.hrl"). -export([ init_per_suite/1, init_per_group/2, all/0, groups/0, end_per_group/2, ...
b6e3e0fde11abc0feca3e744feb705836fde56664a8991a353ee194d9604a7d5
kudu-dynamics/blaze
FmulOp.hs
module Blaze.Types.Pil.Op.FmulOp where -- This module is generated. Please use app/gen_pil_ops/Main.hs to modify. import Blaze.Prelude data FmulOp expr = FmulOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable ...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/a385bb3b37a0a0e061217ebdd70dd0eecbb20332/src/Blaze/Types/Pil/Op/FmulOp.hs
haskell
This module is generated. Please use app/gen_pil_ops/Main.hs to modify.
module Blaze.Types.Pil.Op.FmulOp where import Blaze.Prelude data FmulOp expr = FmulOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable (FmulOp a)
bc4dd28b816c26aa7f671f15f53e6cc9364b4d0d4c0603f81961bb259fc71d0d
ruudkoot/functional-programming
Controller.hs
module Controller ( eventHandler, timeHandler ) where import Controller.Event import Controller.Time
null
https://raw.githubusercontent.com/ruudkoot/functional-programming/9ee7c79cb44704c11027b0639a8b061dfacac56f/5-GameProgramming/framework/src/Controller.hs
haskell
module Controller ( eventHandler, timeHandler ) where import Controller.Event import Controller.Time
a9fbb3e0e8fdef29f470effb0f13bc9ef56eed8eb09967f3d60483224e8d5fc0
psg-mit/probzelus-haskell
AD.hs
module AD where import Control.Monad (void) import qualified Data.Sequence as Seq import Data.Sequence (Seq) import Control.Monad.State import Numeric.AD import SymbolicArithmetic (Exp (Var), eval) import SymbolicLL hiding (run2) import Util.MStream hiding (Ret) import qualified Util.MStream as M import Util.ZStrea...
null
https://raw.githubusercontent.com/psg-mit/probzelus-haskell/a4b66631451b6156938a9c5420cfff2999ecbbc6/haskell/src/AD.hs
haskell
find a *local* MAP via gradient descent In reality, we should make sure that we start with a value that's in the support,
module AD where import Control.Monad (void) import qualified Data.Sequence as Seq import Data.Sequence (Seq) import Control.Monad.State import Numeric.AD import SymbolicArithmetic (Exp (Var), eval) import SymbolicLL hiding (run2) import Util.MStream hiding (Ret) import qualified Util.MStream as M import Util.ZStrea...
83a120a11a57d7bd30efc39841dd23e94ee59bee62b94e109702fd7667b263d4
exercism/haskell
Base.hs
module Base (Error(..), rebase) where data Error a = InvalidInputBase | InvalidOutputBase | InvalidDigit a deriving (Show, Eq) rebase :: Integral a => a -> a -> [a] -> Either (Error a) [a] rebase inputBase outputBase inputDigits = error "You need to implement this function."
null
https://raw.githubusercontent.com/exercism/haskell/2b98084efc7d5ab098975c462f7977ee19c2fd29/exercises/practice/all-your-base/src/Base.hs
haskell
module Base (Error(..), rebase) where data Error a = InvalidInputBase | InvalidOutputBase | InvalidDigit a deriving (Show, Eq) rebase :: Integral a => a -> a -> [a] -> Either (Error a) [a] rebase inputBase outputBase inputDigits = error "You need to implement this function."
d71adb078c21bb9a93d1f80a5dcdaac7fd00acba5d54f66f3e04f88fc2decff7
ccfontes/eg
eg.cljc
(ns eg ^{:author "Carlos da Cunha Fontes" :license {:name "The MIT License" :url ""}} #?(:cljs (:require-macros [eg :refer [eg ge ex]])) (:require [eg.platform :refer [deftest is cross-throw ...
null
https://raw.githubusercontent.com/ccfontes/eg/b46796b3e1fc07d835673900dbed927fa51925cf/src/eg.cljc
clojure
here for side-effects to extend clojure.test/assert-expr here for side-effects to extend cljs.test/assert-expr changing assertion expression order of args may break reports OPTIMIZE to choose at random
(ns eg ^{:author "Carlos da Cunha Fontes" :license {:name "The MIT License" :url ""}} #?(:cljs (:require-macros [eg :refer [eg ge ex]])) (:require [eg.platform :refer [deftest is cross-throw ...
ed35b6f6702a2975bd10aef009d069734d80603a4afb37ad82344fd977265079
Feldspar/raw-feldspar
Tut5_Matrices.hs
# LANGUAGE PartialTypeSignatures # # OPTIONS_GHC -fno - warn - partial - type - signatures # module Tut5_Matrices where -- This file demonstrates programming with matrices. -- Please get acquainted with the examples covering vectors and memory -- management before trying out these examples. import Prelude () impo...
null
https://raw.githubusercontent.com/Feldspar/raw-feldspar/d57ad4eae1624f9a2907d06e885a86a3f939072c/examples/Tut5_Matrices.hs
haskell
This file demonstrates programming with matrices. Please get acquainted with the examples covering vectors and memory management before trying out these examples. ------------------------------------------------------------------------------ The following function defines matrix multiplication (available as `matMul...
# LANGUAGE PartialTypeSignatures # # OPTIONS_GHC -fno - warn - partial - type - signatures # module Tut5_Matrices where import Prelude () import Feldspar.Run import Feldspar.Data.Vector import Feldspar.Data.Buffered import Tut2_ExpressionsAndTypes (mathOpts) import DFT import FFT mmul :: (Pully2 vec1 a, Pul...
997ef233a6534f637fed4aefa4b88aa57701c1d97ad128159b5a37c4b94a2d75
expipiplus1/vulkan
VK_KHR_display_swapchain.hs
{-# language CPP #-} -- | = Name -- -- VK_KHR_display_swapchain - device extension -- -- == VK_KHR_display_swapchain -- -- [__Name String__] -- @VK_KHR_display_swapchain@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 4 -- -- [__Revision__] 10 -- -- [__Extensi...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/41c7e9fdacf7c773be738f0aa31b523c825369ba/src/Vulkan/Extensions/VK_KHR_display_swapchain.hs
haskell
# language CPP # | = Name VK_KHR_display_swapchain - device extension == VK_KHR_display_swapchain [__Name String__] @VK_KHR_display_swapchain@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] - Requires @VK_...
4 10 - Requires support for Vulkan 1.0 - 2017 - 03 - 13 - , NVIDIA - , Qualcomm - , Google - Extending ' Vulkan . Extensions . VK_KHR_swapchain . ' : - ' DisplayPresentInfoKHR ' - ' KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME ' - E...
adf639c84afedd6baf0b057446a33e4a657d15442496dcbe57be50e5cc2630b6
zkincaid/duet
extGraph.mli
(** Useful operations on graphs *) val display_image : string ref val display_dot : (out_channel -> 'a -> unit) -> 'a -> unit module type G = sig include Graph.Sig.G val vertices : t -> V.t BatEnum.t val edges : t -> (V.t * V.t) BatEnum.t val edges_e : t -> E.t BatEnum.t val enum_succ : t -> V.t -> V.t BatE...
null
https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/duet/extGraph.mli
ocaml
* Useful operations on graphs * Create a persistent copy of a graph.
val display_image : string ref val display_dot : (out_channel -> 'a -> unit) -> 'a -> unit module type G = sig include Graph.Sig.G val vertices : t -> V.t BatEnum.t val edges : t -> (V.t * V.t) BatEnum.t val edges_e : t -> E.t BatEnum.t val enum_succ : t -> V.t -> V.t BatEnum.t val enum_succ_e : t -> V.t ...
48869329cea66628055c63e43ed23c6dc175e62ab2b873af80a50ddbacb4e8f4
discus-lang/salt
Eval.hs
module Salt.Core.Eval ( module Salt.Core.Eval.Type , module Salt.Core.Eval.Term , module Salt.Core.Eval.Error , module Salt.Core.Eval.Base , module Salt.Core.Exp) where import Salt.Core.Eval.Type import Salt.Core.Eval.Term import Salt.Core.Eval.Error import Salt.Core.Eval.Base i...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Core/Eval.hs
haskell
module Salt.Core.Eval ( module Salt.Core.Eval.Type , module Salt.Core.Eval.Term , module Salt.Core.Eval.Error , module Salt.Core.Eval.Base , module Salt.Core.Exp) where import Salt.Core.Eval.Type import Salt.Core.Eval.Term import Salt.Core.Eval.Error import Salt.Core.Eval.Base i...
ecb058fe4cd7388611981d8c3d3167b7379a0f1354cca6ebe1a39edc46838ab0
mbj/stratosphere
DataCatalogConfigProperty.hs
module Stratosphere.SageMaker.FeatureGroup.DataCatalogConfigProperty ( DataCatalogConfigProperty(..), mkDataCatalogConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphe...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/FeatureGroup/DataCatalogConfigProperty.hs
haskell
module Stratosphere.SageMaker.FeatureGroup.DataCatalogConfigProperty ( DataCatalogConfigProperty(..), mkDataCatalogConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphe...
05cc4a1e977d93b06f67f4d38558bbd49bb2a890bf6d48abfaafd8ef1f928476
camlp5/camlp5
parsetree.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/camlp5/camlp5/9e8155f8ae5a584bbb4ad96d10d6fec63ed8204c/ocaml_stuff/4.14.0/parsing/parsetree.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes type constant = Pconst_integer of string * char option 3 3l 3L 3n Suffixes ...
a88b9a1c80affe5709f69b6fae79b0ebf01eab96b6ac75d348510359cca7b5e0
chetmurthy/pa_ppx
pp_MLast.mli
module Ploc : sig include module type of Ploc with type t = Ploc.t; value pp : Fmt.t t; type vala α = Ploc.vala α == [ VaAnt of string | VaVal of α ][@@"deriving_inline" show;] ; value pp_vala : Fmt.t α → Fmt.t (vala α); value show_vala : Fmt.t α → vala α → Stdlib.String....
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/generated_src/8.00-alpha02/base/pp_MLast.mli
ocaml
module Ploc : sig include module type of Ploc with type t = Ploc.t; value pp : Fmt.t t; type vala α = Ploc.vala α == [ VaAnt of string | VaVal of α ][@@"deriving_inline" show;] ; value pp_vala : Fmt.t α → Fmt.t (vala α); value show_vala : Fmt.t α → vala α → Stdlib.String....
f03e88380c15f170ec71a45c35db843d1943c1f59e4d8e84367258525df2d46a
cedlemo/OCaml-GI-ctypes-bindings-generator
Page_orientation.mli
open Ctypes type t = Portrait | Landscape | Reverse_portrait | Reverse_landscape val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val t_view: t typ
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Page_orientation.mli
ocaml
open Ctypes type t = Portrait | Landscape | Reverse_portrait | Reverse_landscape val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val t_view: t typ
cc80ce2a50723f51d2ec19fd73f0df8ab9196af39c87da1944e6a84928336af7
theodormoroianu/SecondYearCourses
LambdaChurch_20210415171006.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_20210415171006.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 ...
392dc88749b76a3e0d44dc71768641c94338745c3b5846ca2823ed785246f6b0
unisonweb/unison
HandlerUtils.hs
# LANGUAGE PolyKinds # module Unison.LSP.HandlerUtils where import Control.Lens import Control.Monad.Reader import qualified Data.Map as Map import Language.LSP.Types import Language.LSP.Types.Lens as LSP import qualified Unison.Debug as Debug import Unison.LSP.Types import Unison.Prelude import UnliftIO (race_) impo...
null
https://raw.githubusercontent.com/unisonweb/unison/ff2ec98e30007ac109cf1e5843b411e48546eb73/unison-cli/src/Unison/LSP/HandlerUtils.hs
haskell
| Cancels an in-flight request | Handler middleware to add the ability for the client to cancel long-running in-flight requests. The server itself seems to be single-threaded, so we need to fork in order to be able to process cancellation requests while still computing some other response I intentionally defer add...
# LANGUAGE PolyKinds # module Unison.LSP.HandlerUtils where import Control.Lens import Control.Monad.Reader import qualified Data.Map as Map import Language.LSP.Types import Language.LSP.Types.Lens as LSP import qualified Unison.Debug as Debug import Unison.LSP.Types import Unison.Prelude import UnliftIO (race_) impo...
8f1974b7e567ea9d7906a6e93f5eacbb0d7219523058a06262c8f22921d45fcf
haskell/cabal
ConfiguredId.hs
# LANGUAGE DeriveGeneric # module Distribution.Client.Types.ConfiguredId ( InstalledPackageId, ConfiguredId (..), annotatedIdToConfiguredId, HasConfiguredId (..), ) where import Distribution.Client.Compat.Prelude import Prelude () import Distribution.InstalledPackageInfo (InstalledPackageInfo, sourceC...
null
https://raw.githubusercontent.com/haskell/cabal/906a8bcabc307c6c607cf1b9826a6b329e3ceb7f/cabal-install/src/Distribution/Client/Types/ConfiguredId.hs
haskell
----------------------------------------------------------------------------- InstalledPackageId ----------------------------------------------------------------------------- That's because it deals with the compilers' notion of a registered library, and those really are libraries not packages. Those are now named u...
# LANGUAGE DeriveGeneric # module Distribution.Client.Types.ConfiguredId ( InstalledPackageId, ConfiguredId (..), annotatedIdToConfiguredId, HasConfiguredId (..), ) where import Distribution.Client.Compat.Prelude import Prelude () import Distribution.InstalledPackageInfo (InstalledPackageInfo, sourceC...
1306fac444605017f629e7bf552b7e53fe0278d968cb1981ce48f7f9dea58b59
Chris00/fftw-ocaml
examples.ml
open Printf let run p = let r = Sys.command p in if r <> 0 then ( eprintf "Command %S terminated with code %d\n" p r; exit 1 ) let archimedes_installed = Sys.command "ocamlfind query archimedes" = 0 let () = let d = Array.to_list(Sys.readdir ".") in let d = List.filter (fun f -> Filename.check_su...
null
https://raw.githubusercontent.com/Chris00/fftw-ocaml/0474c42f38d5f375b6187dc089b34c56ec0e76dd/config/examples.ml
ocaml
open Printf let run p = let r = Sys.command p in if r <> 0 then ( eprintf "Command %S terminated with code %d\n" p r; exit 1 ) let archimedes_installed = Sys.command "ocamlfind query archimedes" = 0 let () = let d = Array.to_list(Sys.readdir ".") in let d = List.filter (fun f -> Filename.check_su...
35a839c0adfa1f867eec52ac0a51d2f61a3c476ae888475a9f89b89e123e3aef
c089/haskell-craft3e
CalcTypes.hs
----------------------------------------------------------------------- -- Haskell : The Craft of Functional Programming ( c ) Addison - Wesley , 1996 - 2011 . -- CalcTypes.hs -- -- Types for the calculator -- ----------------------------------------------------------------------- module CalcTypes wher...
null
https://raw.githubusercontent.com/c089/haskell-craft3e/869e382601cab50559c4473dfa9c7480f1acba58/Calculator/CalcTypes.hs
haskell
--------------------------------------------------------------------- Types for the calculator ---------------------------------------------------------------------
Haskell : The Craft of Functional Programming ( c ) Addison - Wesley , 1996 - 2011 . CalcTypes.hs module CalcTypes where data Expr = Lit Integer | Var Var | Op Ops Expr Expr deriving (Eq,Show) data Ops = Add | Sub | Mul | Div | Mod deriving (Eq,Show) type Var = Char data Command = Eval Expr...
58804f6faef0119d6be8b254289c19e09a14203f86177eb3c9836d899ce1db7c
acl2/acl2
all-equal-dollar.lisp
; A utility to check all elements of a list for equality with a given value ; Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute Copyright ( C ) 2022 - 2023 Kestrel Technology , LLC ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Au...
null
https://raw.githubusercontent.com/acl2/acl2/de11df9325ed3dbf51f5de6cc5ca3956531f3a89/books/kestrel/lists-light/all-equal-dollar.lisp
lisp
A utility to check all elements of a list for equality with a given value use a defforall? only needed for axe? helps prevent loops Disable? Is the other rule better? helps prevent loops helps prevent loops
Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute Copyright ( C ) 2022 - 2023 Kestrel Technology , LLC License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") (local (include-book "len")) Checks whethe...
c18524008c089822b467d52c2b677f8fd94f0b404efd65a65ebfefd58090d85a
bbc/haskell-workshop
C6HOF.hs
module C6HOF where Define a function that takes a function and two other arguments -- and applies the function to the other arguments unevaledF :: (a -> b -> c) -> a -> b -> c unevaledF = undefined Apply the first argument to unevaledF -- (doesn't matter what it is, we're only interested in the partial applicatio...
null
https://raw.githubusercontent.com/bbc/haskell-workshop/475b9bac04167665030d7863798ccd27dfd589d0/learnYouAHaskellExercises/src/C6HOF.hs
haskell
and applies the function to the other arguments (doesn't matter what it is, we're only interested in the partial application) Fill in the type signatures fullyEvaluatedF :: ?? The type of the composition operator (.) is (.) :: (b -> c) -> (a -> b) -> (a -> c) This is a function that takes a function from B to C...
module C6HOF where Define a function that takes a function and two other arguments unevaledF :: (a -> b -> c) -> a -> b -> c unevaledF = undefined Apply the first argument to unevaledF partial1 : : ? ? partial1 = undefined Apply the next argument to partial1 : : ? ? partial2 = undefined Apply the final...
e455f6c2de958756e880f49b669b87cc9e585ca8a4b54109b60c871fb2bb90e2
clojure-interop/java-jdk
NoSuchMechanismException.clj
(ns javax.xml.crypto.NoSuchMechanismException "This exception is thrown when a particular XML mechanism is requested but is not available in the environment. A NoSuchMechanismException can contain a cause: another throwable that caused this NoSuchMechanismException to get thrown." (:refer-clojure :only [re...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/crypto/NoSuchMechanismException.clj
clojure
(ns javax.xml.crypto.NoSuchMechanismException "This exception is thrown when a particular XML mechanism is requested but is not available in the environment. A NoSuchMechanismException can contain a cause: another throwable that caused this NoSuchMechanismException to get thrown." (:refer-clojure :only [re...
b1fd2617ce1d4fa7ecda0f5a881efc78b8535dec39c0978dc2ea6894620cf2e5
jfacorro/fp-interpreter-in-lisp
fp-functions-definition.lisp
(in-package :com.facorro.fp.functions) ;;------------------------------ values ;;------------------------------ (defconstant *false-value* "F") (defconstant *true-value* "T") (defconstant *empty-list-value* "<>") ;;------------------------------ ;; id ;;------------------------------ (defun id () (lam...
null
https://raw.githubusercontent.com/jfacorro/fp-interpreter-in-lisp/b0c520593e98cce83b571939a22d7efd7926c711/src/fp-functions-definition.lisp
lisp
------------------------------ ------------------------------ ------------------------------ id ------------------------------ ------------------------------ selector ------------------------------ ------------------------------ selector-right ------------------------------ ------------------------------ ...
(in-package :com.facorro.fp.functions) values (defconstant *false-value* "F") (defconstant *true-value* "T") (defconstant *empty-list-value* "<>") (defun id () (lambda (arg) (debug-msg :com.facorro.fp.functions "(id) arg: ~a~%" arg) arg)) (defun selector (n) (lambda (arg) (debug-msg :com.facorr...
f382ea957e707706d85b3973a29c32413f8c35b373e815721a9a1e965cf8ffe7
pink-gorilla/goldly
nrepl_server.clj
(ns goldly.nrepl-server (:require [taoensso.timbre :as timbre :refer [infof warn errorf]] [nrepl.server] ;[pinkgorilla.nrepl.handler.nrepl-handler :refer [make-default-handler]] ;; side effects ;[nrepl.middleware.print] ;picasso ;[picasso.default-config] ;[pinkgorilla.notebook.repl] ;[picass...
null
https://raw.githubusercontent.com/pink-gorilla/goldly/211186c839dafebe53ef344fe0691a363b1dec50/goldly/src/goldly/nrepl_server.clj
clojure
[pinkgorilla.nrepl.handler.nrepl-handler :refer [make-default-handler]] side effects [nrepl.middleware.print] picasso [picasso.default-config] [pinkgorilla.notebook.repl] [picasso.datafy.file] nrepl-miiddleware [pinkgorilla.nrepl.middleware.picasso] [pinkgorilla.nrepl.middleware.sniffer] todo - add this to goldly! :...
(ns goldly.nrepl-server (:require [taoensso.timbre :as timbre :refer [infof warn errorf]] [nrepl.server] )) (defn start-nrepl-server [config] (let [config (merge {:bind "0.0.0.0" :port 9100} (or config {})) {:keys [bind port]} config] (infof "nrepl...
8c87152037c572fff99ba3ce15dd7e2f0eaa098e3dc68f08fc4105c81cf9cb70
xclerc/ocamljava
typeParametersTable.ml
* This file is part of wrapper . * Copyright ( C ) 2007 - 2015 . * * wrapper 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 3 of the License , or * ( at yo...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/wrapper/src/typeParametersTable.ml
ocaml
* This file is part of wrapper . * Copyright ( C ) 2007 - 2015 . * * wrapper 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 3 of the License , or * ( at yo...
dc2385227c0f6a6e469c14f1bfacfcc830239c95be60db941848d4c4ffc12bd5
stylewarning/cl-permutation
permutation.lisp
;;;; permutation.lisp Copyright ( c ) 2012 - 2015 (in-package #:cl-permutation) ;;;;;;;;;;;;;;;;;;;;; PERMUTATION DATA STRUCTURE ;;;;;;;;;;;;;;;;;;;;; (defvar *print-with-perm-syntax* nil "Print permutations with special permutation syntax?") (deftype perm-element () "An element of a perm." Since a perm c...
null
https://raw.githubusercontent.com/stylewarning/cl-permutation/631b17541ad9fb5e2fbf89b09bc0d5a98d718e1c/src/permutation.lisp
lisp
permutation.lisp PERMUTATION DATA STRUCTURE ;;;;;;;;;;;;;;;;;;;;; XXX: fix the duplication. Enable special printing Set #[ Set ] PERMUTATION OPERATIONS ;;;;;;;;;;;;;;;;;;;;;;; N limits the resulting perm size. TODO: binary expt This can be a bit more optimized. We can just look at the internal representation...
Copyright ( c ) 2012 - 2015 (in-package #:cl-permutation) (defvar *print-with-perm-syntax* nil "Print permutations with special permutation syntax?") (deftype perm-element () "An element of a perm." Since a perm can contain 1 to the maximum of VECTOR - INDEX , the type is also that of a VECTOR - INDEX ....
36c8f60240923dbd93ffd4e7a09f2086a531eaeed3cd9b192b43657fb020d9df
elastic/eui-cljs
icon_import.cljs
(ns eui.icon-import (:require ["@elastic/eui/lib/components/icon/assets/import.js" :as eui])) (def import eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_import.cljs
clojure
(ns eui.icon-import (:require ["@elastic/eui/lib/components/icon/assets/import.js" :as eui])) (def import eui/icon)
1220051af7177df899e5ce64533a3d7558062a281d79b122f5ed834e5a9d24fe
vincenthz/hs-crypto-pubkey
OAEP.hs
{-# LANGUAGE OverloadedStrings #-} module KAT.OAEP (oaepTests) where import Data.ByteString (ByteString) import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import Crypto.PubKey.RSA import Crypto.PubKey.MaskGenFunction import qualified Crypto.PubKey.RSA.OAEP as OAEP import qualified Cry...
null
https://raw.githubusercontent.com/vincenthz/hs-crypto-pubkey/c4192a87a03c329eadceb11c3406b4db14b56f11/Tests/KAT/OAEP.hs
haskell
# LANGUAGE OverloadedStrings #
module KAT.OAEP (oaepTests) where import Data.ByteString (ByteString) import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import Crypto.PubKey.RSA import Crypto.PubKey.MaskGenFunction import qualified Crypto.PubKey.RSA.OAEP as OAEP import qualified Crypto.Hash.SHA1 as SHA1 import Test....
a6b941905ba59b533af7ea79652a789db97040f702b519f398f0e90a83510e17
xtdb/xtdb
project.clj
(defproject com.xtdb/xtdb-kafka "<inherited>" :description "XTDB Kafka" :plugins [[lein-javadoc "0.3.0"] [lein-parent "0.3.8"]] :parent-project {:path "../../project.clj" :inherit [:version :repositories :deploy-repositories :managed-dependencies ...
null
https://raw.githubusercontent.com/xtdb/xtdb/ed53f5b9d3bf0b32b068aa768463257281519686/modules/kafka/project.clj
clojure
(defproject com.xtdb/xtdb-kafka "<inherited>" :description "XTDB Kafka" :plugins [[lein-javadoc "0.3.0"] [lein-parent "0.3.8"]] :parent-project {:path "../../project.clj" :inherit [:version :repositories :deploy-repositories :managed-dependencies ...
01459bda4cebc7fdaaf534e58b2a958eddab6a9ffa3c7b28d77a1b5ca538dfd0
erlcloud/erlcloud
erlcloud_elb_tests.erl
-*- mode : erlang;erlang - indent - level : 4;indent - tabs - mode : nil -*- -module(erlcloud_elb_tests). -include_lib("eunit/include/eunit.hrl"). %%%=================================================================== %%% Test entry points %%%=================================================================== star...
null
https://raw.githubusercontent.com/erlcloud/erlcloud/d1d60130929436b5524a0e70ae17f6da6a2a14b9/test/erlcloud_elb_tests.erl
erlang
=================================================================== Test entry points =================================================================== =================================================================== Helpers ===================================================================
-*- mode : erlang;erlang - indent - level : 4;indent - tabs - mode : nil -*- -module(erlcloud_elb_tests). -include_lib("eunit/include/eunit.hrl"). start() -> meck:new(erlcloud_aws, [passthrough]), ok. stop(_) -> meck:unload(erlcloud_aws). elb_tags_test_() -> {foreach, fun start/0, ...
1a997ee6c6933d58406693b90d05bbb25b53ff1a57ba66f41baacde6e042bd0e
geophf/1HaskellADay
Solution.hs
# LANGUAGE OverloadedStrings , QuasiQuotes # module Y2018.M01.D11.Solution where - Okay , this was supposed to be a different exercise , but I keep plumbing depths to writing log entries to a data table , a supposedly simple and easy thing , but here we are . Today 's exercise : now that we have lookup data...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M01/D11/Solution.hs
haskell
} you may need this: }
# LANGUAGE OverloadedStrings , QuasiQuotes # module Y2018.M01.D11.Solution where - Okay , this was supposed to be a different exercise , but I keep plumbing depths to writing log entries to a data table , a supposedly simple and easy thing , but here we are . Today 's exercise : now that we have lookup data...
219fee087b298705d3a9f5eb34653f78a1809df9de24f80ad01daf26b0bb17c4
askvortsov1/hardcaml-mips
test_alu.ml
open Hardcaml open Hardcaml_waveterm open Mips.Alu module Simulator = Cyclesim.With_interface (I) (O) let testbench () = let scope = Scope.create ~flatten_design:true () in let sim = Simulator.create (circuit_impl_exn scope) in let waves, sim = Waveform.create sim in let inputs = Cyclesim.inputs sim in let ...
null
https://raw.githubusercontent.com/askvortsov1/hardcaml-mips/584c25803cd6967be50acd0a6a3f3f9289e8b100/test/instruction_execute/test_alu.ml
ocaml
open Hardcaml open Hardcaml_waveterm open Mips.Alu module Simulator = Cyclesim.With_interface (I) (O) let testbench () = let scope = Scope.create ~flatten_design:true () in let sim = Simulator.create (circuit_impl_exn scope) in let waves, sim = Waveform.create sim in let inputs = Cyclesim.inputs sim in let ...
8e8fc895aabc81bff417a5e2a27c2b2b7a4e7ce113825273b9759ea57eda44ff
semiocast/pgsql
pgsql_error.erl
-*- coding : utf-8 -*- -module(pgsql_error). -vsn("1"). -export([ is_integrity_constraint_violation/1, is_in_failed_sql_transaction/1 ]). -export_type([ pgsql_error/0, pgsql_error_and_mention_field/0, pgsql_error_and_mention_field_type/0 ]). -type pgsql_error_and_mention_f...
null
https://raw.githubusercontent.com/semiocast/pgsql/c7d98673459052b2c48526f16dab11ab34c23891/src/pgsql_error.erl
erlang
PostgreSQL extension
-*- coding : utf-8 -*- -module(pgsql_error). -vsn("1"). -export([ is_integrity_constraint_violation/1, is_in_failed_sql_transaction/1 ]). -export_type([ pgsql_error/0, pgsql_error_and_mention_field/0, pgsql_error_and_mention_field_type/0 ]). -type pgsql_error_and_mention_f...
17905ced278c7225c05ce9e833923d60cae543968d41c7f0b04c311e23a851f9
mario-goulart/spock
core.scm
;;;; core.scm (define (add-undefined var) (unless (memq var undefined) (set! undefined (cons var undefined)))) (define (add-access var assign) (let ((d (get var 'defined))) (if d (when (and (symbol? d) (not (memq d used-sections))) (set! used-sections (cons d used-sections))) (add-undefined var)) ...
null
https://raw.githubusercontent.com/mario-goulart/spock/b88f08f8bc689babc433ad8288559ce5c28c52d5/core.scm
scheme
core.scm (pp x) handle surplus arguments walking body checks for self-call in tail-pos. and sets `looping' XXX we actually have to check `op' for not being a special form name tail + self call? Cpgm canonicalizer only generates single-var `let' Clet Chead from here on `x' is non-simple Chead Cif Chead simp...
(define (add-undefined var) (unless (memq var undefined) (set! undefined (cons var undefined)))) (define (add-access var assign) (let ((d (get var 'defined))) (if d (when (and (symbol? d) (not (memq d used-sections))) (set! used-sections (cons d used-sections))) (add-undefined var)) (cond (assig...
6bd54801a70e5e094d6ed7a2fe4d0ce57b189e24886201cdd18275ff49d5debe
mirage/mirage-skeleton
config.ml
open Mirage let disk = generic_kv_ro "t" let main = main "Unikernel.Main" (kv_ro @-> job) let () = register "kv_ro" [ main $ disk ]
null
https://raw.githubusercontent.com/mirage/mirage-skeleton/144d68992a284730c383eb3d39c409a061bc452e/device-usage/kv_ro/config.ml
ocaml
open Mirage let disk = generic_kv_ro "t" let main = main "Unikernel.Main" (kv_ro @-> job) let () = register "kv_ro" [ main $ disk ]
a289b565818442d0cf2d4631beba6eb5ae053e0907f0fc88c2fba5770d4a86d1
circleci/analytics-clj
common.clj
(ns circleci.analytics-clj.common (:require [circleci.analytics-clj.external :refer :all] [circleci.analytics-clj.utils :refer [string-keys]])) (def ^:private ctx {"library" {"name" "analytics-clj" "version" "0.8.1"}}) (defn common-fields "The `MessageBuilder` interface ...
null
https://raw.githubusercontent.com/circleci/analytics-clj/9f86ca98202babd34462ef2d0c516e8a1ef360b6/src/circleci/analytics_clj/common.clj
clojure
(ns circleci.analytics-clj.common (:require [circleci.analytics-clj.external :refer :all] [circleci.analytics-clj.utils :refer [string-keys]])) (def ^:private ctx {"library" {"name" "analytics-clj" "version" "0.8.1"}}) (defn common-fields "The `MessageBuilder` interface ...
2c4bdc7cf3e878704a0d288b355aba93cce523d69497742abf65cac5a1aad096
err0r500/realworld-app-simple-haskell
Utils.hs
module Utils where import qualified Data.UUID as UUID import qualified Domain.User as D import RIO -- used for tests fakeUUID1 :: UUID.UUID fakeUUID1 = getUUID "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11" fakeUUID2 :: UUID.UUID fakeUUID2 = getUUID "61b4ea9a-cfdb-44cc-b40b-affffeedc14e" getUUID :: Text -> UUID.UUID getUUI...
null
https://raw.githubusercontent.com/err0r500/realworld-app-simple-haskell/e499fd2eb03f6bcde5ac99a136d1907700cf026d/test/Utils.hs
haskell
used for tests
module Utils where import qualified Data.UUID as UUID import qualified Domain.User as D import RIO fakeUUID1 :: UUID.UUID fakeUUID1 = getUUID "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11" fakeUUID2 :: UUID.UUID fakeUUID2 = getUUID "61b4ea9a-cfdb-44cc-b40b-affffeedc14e" getUUID :: Text -> UUID.UUID getUUID txt = do let J...
abfc16af623bdc9faedad38f342fd035a1987bab280db61a0840d73c02ba28d2
riemann/riemann
client_test.clj
(ns riemann.client-test (:require [riemann.client :refer :all] [riemann.common :refer :all] [riemann.core :refer :all] [riemann.index :refer [index]] [riemann.logging :as logging] [riemann.transport.tcp :refer :all] [clojure.test :refer :all]) ...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/test/riemann/client_test.clj
clojure
Initial connection works Kill server; should fail. Restart server; should work Check that server error messages are correctly thrown.
(ns riemann.client-test (:require [riemann.client :refer :all] [riemann.common :refer :all] [riemann.core :refer :all] [riemann.index :refer [index]] [riemann.logging :as logging] [riemann.transport.tcp :refer :all] [clojure.test :refer :all]) ...
e57a01a0f45b4a805151df9ab46d7128618c89554588203aba49455188bc835c
screenshotbot/screenshotbot-oss
sbcl_repl.lisp
;;; ;;; Copyright ( c ) 2009 , ;;; All rights reserved by the author. ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, including without limitation ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/fb88dc205c052caf98d6833d03594323390800d3/third-party/cl%2Bj-0.4/sbcl_repl.lisp
lisp
All rights reserved by the author. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so,...
Copyright ( c ) 2009 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (defun quit-repl (&key ...
97a7a65c691b8de6869567c9794cc68566d46cc8beb4df573f0a2fa7864f3e83
mokus0/polynomial
WrappedNum.hs
# LANGUAGE TemplateHaskell , TypeFamilies , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE RankNTypes #-} module Data.VectorSpace.WrappedNum (WrappedNum(..)) where import Data.VectorSpace import qualified Data.Vector.Unboxed as U Template...
null
https://raw.githubusercontent.com/mokus0/polynomial/42fde2c9a72f449eeda4d534acfe64b8e92b5c27/src/Data/VectorSpace/WrappedNum.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE TemplateHaskell , TypeFamilies , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # module Data.VectorSpace.WrappedNum (WrappedNum(..)) where import Data.VectorSpace import qualified Data.Vector.Unboxed as U Template Haskell in GHC 7.4 requires...
0ff5d7f403803e0931bc0f11f18645c2f8a61ab3b12dab58e1bdcbf59869b80c
bhauman/figwheel-main-template
project.clj
(defproject {{ raw-name }} "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.7.1" :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.11.4"]{{#react?}} ...
null
https://raw.githubusercontent.com/bhauman/figwheel-main-template/0edd41d4098e5cafab2224a93704c55609f29df0/src/leiningen/new/figwheel_main/project.clj
clojure
need to add the compiled assets to the :clean-targets
(defproject {{ raw-name }} "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.7.1" :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.11.4"]{{#react?}} ...
1ff74cffa5fc324f7f05339dea4513fa8a0dbd32694981d22d54f95eb676f708
Clozure/ccl-tests
pprint-tabular.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Jun 27 06:29:39 2004 Contains : Tests of PPRINT - TABULAR (in-package :cl-test) ;;; When printing a non-list, the result is the same as calling WRITE." (deftest pprint-tabular.1 (my-with-standard-io-syntax (let ((*print-pretty* t) (*print-readably* ni...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/pprint-tabular.lsp
lisp
-*- Mode: Lisp -*- When printing a non-list, the result is the same as calling WRITE." Note The prefix and suffix "(" and ")" are not considered part of the logical block they enclose (see the spec page for pprint-logical-block. Takes T, NIL as stream designators Error tests
Author : Created : Sun Jun 27 06:29:39 2004 Contains : Tests of PPRINT - TABULAR (in-package :cl-test) (deftest pprint-tabular.1 (my-with-standard-io-syntax (let ((*print-pretty* t) (*print-readably* nil)) (loop for obj in *mini-universe* nconc (and (not (listp obj)) (let ((s1 (writ...
3c2d41c403d03f27e30b9ef9f5e95615c03689cb53f5d44bf7e44be3e72f0e1b
goldfirere/thesis
Sec212.hs
Adapted from 's ICFP ' 13 paper . # LANGUAGE TypeInType , RebindableSyntax , TypeOperators , TemplateHaskell , ScopedTypeVariables , TypeFamilies , GADTs # TemplateHaskell, ScopedTypeVariables, TypeFamilies, GADTs #-} # OPTIONS_GHC -Wno - unticked - promoted -...
null
https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/effects/Sec212.hs
haskell
Adapted from 's ICFP ' 13 paper . # LANGUAGE TypeInType , RebindableSyntax , TypeOperators , TemplateHaskell , ScopedTypeVariables , TypeFamilies , GADTs # TemplateHaskell, ScopedTypeVariables, TypeFamilies, GADTs #-} # OPTIONS_GHC -Wno - unticked - promoted -...
fc02c9cf9a74de58d6552438e44b12f0b8e2f38b9bcf5314da21781cb35791d5
leptonyu/tensors
Statistics.hs
module Data.Tensor.Statistics where import Data.Tensor.Tensor import Data.Tensor.Type -- | Average of tensor -- > λ > average ( identity : : Tensor ' [ 3,3 ] Float ) > 0.33333334 average :: forall s n. (HasShape s, Fractional n) => Tensor s n -> n average t = let v = sum t s = fromInte...
null
https://raw.githubusercontent.com/leptonyu/tensors/85165e816a415ad5b54c5249dfb623dc50eb9488/src/Data/Tensor/Statistics.hs
haskell
| Average of tensor | Variance of tensor > λ> var ([1,2,3,4] :: Vector 4 Double ) | Standard Deviation of tensor > λ> std ([1,2,3,4] :: Vector 4 Double )
module Data.Tensor.Statistics where import Data.Tensor.Tensor import Data.Tensor.Type > λ > average ( identity : : Tensor ' [ 3,3 ] Float ) > 0.33333334 average :: forall s n. (HasShape s, Fractional n) => Tensor s n -> n average t = let v = sum t s = fromInteger $ toInteger $ product ...
0005b894599aabbfd4c42c56d56fe7a7bd904a9bc0bbb8abeeec6a2edbeb3987
ArnoVanLumig/chesshs
Chess.hs
| The main move validation module . FEN parsing code is in Chess . FEN and PGN parsing is in Chess . PGN module Chess( MoveError(..) , Color(..) , PieceType(..) , Piece(..) , Board(..) , strToPos , pieceAt , pieceAtStr ...
null
https://raw.githubusercontent.com/ArnoVanLumig/chesshs/4a621a214ea688c92ee2fb18b0e001836e5a268a/Chess.hs
haskell
^ It's not your turn ^ There is no piece at the "from" position ^ Your king is checked and this move doesn't solve that ^ After this move your king would be checked ^ This is not how that piece works ^ You cannot move over other pieces ^ This move captures one of your own pieces ^ I don't understand what...
| The main move validation module . FEN parsing code is in Chess . FEN and PGN parsing is in Chess . PGN module Chess( MoveError(..) , Color(..) , PieceType(..) , Piece(..) , Board(..) , strToPos , pieceAt , pieceAtStr ...
e886c0dd55346ed5e26fd75c4a43252ff3e4db00d0671ee283bb0978da7b73e5
intermine/bluegenes
events.cljs
(ns bluegenes.pages.profile.events (:require [re-frame.core :refer [reg-event-db reg-event-fx]] [imcljs.auth :as auth] [imcljs.fetch :as fetch] [imcljs.save :as save])) (reg-event-fx ::load-profile (fn [_] {:dispatch-n [[::clear-responses] [::reset-preference...
null
https://raw.githubusercontent.com/intermine/bluegenes/650883980bbb33d2c7e30596727d4e8772085b8c/src/cljs/bluegenes/pages/profile/events.cljs
clojure
Do not be informed by email of newly shared lists. You won't be visible when users attempt to share a list. Public name users can use to share lists with you if not `hidden`. Email address which receives updates on shared lists. Reset user preference inputs back to the last fetched values. ClojureScript, meaning ...
(ns bluegenes.pages.profile.events (:require [re-frame.core :refer [reg-event-db reg-event-fx]] [imcljs.auth :as auth] [imcljs.fetch :as fetch] [imcljs.save :as save])) (reg-event-fx ::load-profile (fn [_] {:dispatch-n [[::clear-responses] [::reset-preference...
ccd09826d1a88868c3cf070a9689a9f75198ec05028caade6bc5a838e1de9fbc
dparis/gen-phzr
tilemap_layer.cljs
(ns phzr.tilemap-layer (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [update])) (defn ->TilemapLayer "A TilemapLayer is a Phaser.Image/Sprite that renders a specific TileLayer of a Tilemap. Since a ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/tilemap_layer.cljs
clojure
(ns phzr.tilemap-layer (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [update])) (defn ->TilemapLayer "A TilemapLayer is a Phaser.Image/Sprite that renders a specific TileLayer of a Tilemap. Since a ...
4bbb1b9f345d837b957a6d3da0e9e66eb76ef5c65505b9fddc63d08b34caa6b3
dolotech/erlang_server
lib_role.erl
%% ------------------------------------------------------------------ 角色相关API库 %% $ I d : lib_role.erl 5772 2013 - 12 - 07 09:34:35Z %% @author Rolong<> %% ------------------------------------------------------------------ -module(lib_role). -export([ get_role_pid/2 ,spend/3 ,spend_ok/4 ,add_attr/...
null
https://raw.githubusercontent.com/dolotech/erlang_server/44ea3693317f60e18b19c9ddfa179307cbd646d7/src/lib/lib_role.erl
erlang
------------------------------------------------------------------ @author Rolong<> ------------------------------------------------------------------ ' 消耗属性 货币类型 消耗数量 消耗后的状态 错误信息 消耗金币 消耗钻石 . ' 增加属性 货币类型 消耗数量 消耗后的状态 增加金币 增加钻石 增加幸运星 . . ' 成功消耗属性 货币类型 日志类型(由策划定义) 消耗后的状态 返回新的状态 日志 钻石消耗统计 日志 . 货币类型 ...
角色相关API库 $ I d : lib_role.erl 5772 2013 - 12 - 07 09:34:35Z -module(lib_role). -export([ get_role_pid/2 ,spend/3 ,spend_ok/4 ,add_attr/2 ,add_attr/3 ,add_attr_ok/4 ,get_role_pid_from_ets/2 ,get_online_pid/2 ,get_offline_pid/2 ,get_new_id/2 ,stop/0 ,init_skills/1 ...
54691582c7d3392ace07a5670a8894b3a5274aec4776145ba26fd70020ae9d34
stepchowfun/effects
Spec.hs
import qualified BespokeMonadSpec import qualified ExtensibleEffectsSpec import qualified FreeMonadSpec import qualified MonadTransformersSpec import Test.Hspec (hspec) main :: IO () main = hspec $ do BespokeMonadSpec.spec ExtensibleEffectsSpec.spec FreeMonadSpec.spec MonadTransformersSpec.spec
null
https://raw.githubusercontent.com/stepchowfun/effects/4f70c03e3afc46a3409ba98c4b5e9d715b11e9d3/test/Spec.hs
haskell
import qualified BespokeMonadSpec import qualified ExtensibleEffectsSpec import qualified FreeMonadSpec import qualified MonadTransformersSpec import Test.Hspec (hspec) main :: IO () main = hspec $ do BespokeMonadSpec.spec ExtensibleEffectsSpec.spec FreeMonadSpec.spec MonadTransformersSpec.spec
cf637ca3a4ab9a7da6fdb9e24758dcfc1c1cea17ee4f729a68d68daa4c879b69
sheyll/newtype-zoo
Valid.hs
-- | Indicate that something is `Valid`. module NewtypeZoo.Valid ( Valid(Valid) , _theValid , theValid ) where import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import Data.Bits (Bits,FiniteBits) import ...
null
https://raw.githubusercontent.com/sheyll/newtype-zoo/0e67717cbcd9233d9c26b6aacb4c6f8bba6ef5f7/src/NewtypeZoo/Valid.hs
haskell
| Indicate that something is `Valid`. # INLINE _theValid #
module NewtypeZoo.Valid ( Valid(Valid) , _theValid , theValid ) where import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import Data.Bits (Bits,FiniteBits) import Data.Copointed (Copointed) import ...
087220cd440dec4514433a8b774f8a38b08e6b1cb0a264ba99d5379a2359c0e9
mayanez/ocaml-webdriver
profile.ml
type t = { name : string; };;
null
https://raw.githubusercontent.com/mayanez/ocaml-webdriver/0607eb0d47cbbcd00353b435579e13c616f6129f/src/profile.ml
ocaml
type t = { name : string; };;
ce98bae5eef00fadf8fa5684636490ccc7d9fb977a0fc9d7f1647ad328e976c6
poscat0x04/telegram-types
SendDocument.hs
module Web.Telegram.Types.Internal.API.SendDocument where import Common import Web.Telegram.Types.Internal.API.ChatId import Web.Telegram.Types.Internal.InputFile import Web.Telegram.Types.Internal.InputMedia import Web.Telegram.Types.Internal.ReplyMarkup data SendDocument = SendDocument { chatId :: ChatId, doc...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/SendDocument.hs
haskell
module Web.Telegram.Types.Internal.API.SendDocument where import Common import Web.Telegram.Types.Internal.API.ChatId import Web.Telegram.Types.Internal.InputFile import Web.Telegram.Types.Internal.InputMedia import Web.Telegram.Types.Internal.ReplyMarkup data SendDocument = SendDocument { chatId :: ChatId, doc...
d95c78105410ba7ed76e9cd35db58f876042ffb1ec0ab5cd245e9e1e3a8e13b6
gafiatulin/codewars
SqProd2Sum.hs
Integers : Recreation Two -- / module Codewars.G964.SqProd2Sum where import Data.List (sort, nub) prod2Sum :: Int -> Int -> Int -> Int -> [(Int, Int)] prod2Sum a b c d = [(a, b) | a <- sqs, b <- dropWhile (<a) sqs, a^2 + b^2 == n] where n = (a*a+b*b)*(c*c+d*d) sqs = nub . sort . map abs $ [a*c+b*d, ...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/SqProd2Sum.hs
haskell
/
Integers : Recreation Two module Codewars.G964.SqProd2Sum where import Data.List (sort, nub) prod2Sum :: Int -> Int -> Int -> Int -> [(Int, Int)] prod2Sum a b c d = [(a, b) | a <- sqs, b <- dropWhile (<a) sqs, a^2 + b^2 == n] where n = (a*a+b*b)*(c*c+d*d) sqs = nub . sort . map abs $ [a*c+b*d, a*c-b...
c2966106ea0bea90f220c359ef34d14636c50402fb4c8e03a29142f6c1983813
ret/specifica
Parser.hs
----------------------------------------------------------------------------- ISSUES - ISSUE : a[1].b.c.d not supported ( a[1].b.c is ) , i.e. only 2 dots are supported following a function application ( or record reference ) . WORKAROUND 1 : LET x = a[1].b.c IN x.d WORKAROUND 2 : ( a[1].b.c).d ...
null
https://raw.githubusercontent.com/ret/specifica/72f077cfd23f61f3fbd641cc7a6e7e02b516a441/tlaplus/src/Language/TLAPlus/Parser.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- ----------------------------------------------------------------------------} for use in australis for QQ too liberal, don't allow qual p.2, of -guide.pdf too lib...
ISSUES - ISSUE : a[1].b.c.d not supported ( a[1].b.c is ) , i.e. only 2 dots are supported following a function application ( or record reference ) . WORKAROUND 1 : LET x = a[1].b.c IN x.d WORKAROUND 2 : ( a[1].b.c).d - ISSUE : f[g[h ] ] not supported , g is unexpected . WORKAROUND : f...
e7ab3dacc34ce729bbe9e2cc20bbe8669e93eb910a289e88dd7be4b64f228c17
someodd/waffle
Homepage.hs
# LANGUAGE TemplateHaskell # -- Module for managing a homepage. module Config.Homepage where import Data.Maybe (fromMaybe) import Control.Monad.Except import System.FilePath import qualified Data.ByteString.Lazy as BL import Data.FileEmbed import Data.ConfigFile import ...
null
https://raw.githubusercontent.com/someodd/waffle/71586b271878df4cb2368ae3bd6e2961cb79fa15/src/Config/Homepage.hs
haskell
Module for managing a homepage. | Get the `FilePath` to the user's open/associations configuration file. | The default open.ini list of associations between item types and commands to open them. wants it done. It's an interface I don't appreciate much. Handle errors from the building the output configuration pars...
# LANGUAGE TemplateHaskell # module Config.Homepage where import Data.Maybe (fromMaybe) import Control.Monad.Except import System.FilePath import qualified Data.ByteString.Lazy as BL import Data.FileEmbed import Data.ConfigFile import Config ...
32b51bf545c6d97022fdc404fff799cf124eab88d1f8be4c7344bd94e0c931b9
satos---jp/mincaml_self_hosting
var_func.ml
let a = 30 in let b = 35 in let rec f x y = x + y in print_char (f a b)
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/test/var_func.ml
ocaml
let a = 30 in let b = 35 in let rec f x y = x + y in print_char (f a b)
788fd984e14b38bd47a7d6d7349f724a8821bab293ab8470e72b60cc57f0753f
konn/ad-delcont-primop
MultiPrompt.hs
# LANGUAGE GHC2021 # {-# LANGUAGE ImpredicativeTypes #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Numeric.AD.DelCont.Native.MultiPrompt ( AD', AD, eval, konst, diff, grad, -- jacobian, op1, op2, ) where import Control.Monad import Control.Monad.ST.S...
null
https://raw.githubusercontent.com/konn/ad-delcont-primop/176042f48695272e2978499b2115167c1c67cb3f/src/Numeric/AD/DelCont/Native/MultiPrompt.hs
haskell
# LANGUAGE ImpredicativeTypes # # LANGUAGE RankNTypes # jacobian, # INLINE (+) # # INLINE (-) # # INLINE (*) # # INLINE (/) # # INLINE asin # # INLINE jacobian #
# LANGUAGE GHC2021 # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Numeric.AD.DelCont.Native.MultiPrompt ( AD', AD, eval, konst, diff, grad, op1, op2, ) where import Control.Monad import Control.Monad.ST.Strict import Data.Bifoldable import Data.Bifunctor import Data.Bitraversable im...
60ef56d9eccdd21eaf2e50b31c961a9173901764db7f4ccf488e475de30e8c8c
VictorCMiraldo/generics-mrsop
Universe.hs
{-# LANGUAGE QuantifiedConstraints #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE DataKinds #-} {-# LANG...
null
https://raw.githubusercontent.com/VictorCMiraldo/generics-mrsop/b66bb6c651297cdb71655663e34ab35812b38f72/src/Generics/MRSOP/Base/Universe.hs
haskell
# LANGUAGE QuantifiedConstraints # # LANGUAGE RankNTypes # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # the universe view over sums-of-...
# LANGUAGE FlexibleInstances # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - incomplete - patterns # |Wraps the definitions of ' NP ' and ' NS ' into Representations ( ' Rep ' ) , essentially providing m...
6386b3a03d08bcf970072ab2ed78606de34b50b2501862a5492d8dae4feac0b3
onedata/op-worker
qos_gui_gs_translator.erl
%%%------------------------------------------------------------------- @author ( C ) 2020 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module handles translation of...
null
https://raw.githubusercontent.com/onedata/op-worker/f562f28fa3d9d75cdbd93a0cda3a9151e8724d6d/src/graph_sync/server/gui_translators/qos_gui_gs_translator.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module handles translation of middleware results concerning @end ------------------------------------------------------------------- API ===========================...
@author ( C ) 2020 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . QoS entities into GUI GRAPH SYNC responses . -module(qos_gui_gs_translator). -author("Michal Stanisz"). -include("middleware/middleware.hrl"). -include("modules/fslogic/file_details.hrl"). -inclu...
d964f20a2198b2a485c9f8b287432e746f2596af2024df40157592c69c647b9a
tfausak/patrol
ContextSpec.hs
# LANGUAGE QuasiQuotes # module Patrol.Type.ContextSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Map as Map import qualified Data.Text as Text import qualified Patrol.Type.AppContext as AppContext import qualified Patrol.Type.BrowserContext as Bro...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/test-suite/Patrol/Type/ContextSpec.hs
haskell
# LANGUAGE QuasiQuotes # module Patrol.Type.ContextSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Map as Map import qualified Data.Text as Text import qualified Patrol.Type.AppContext as AppContext import qualified Patrol.Type.BrowserContext as Bro...
7957b9a17203cc4b576199927780521d45524dff389a97f9cd958693a3307de8
phoe/riichi-evaluator
constants.lisp
src / constants.lisp ;;;; Copyright 2012 - 2019 Kimmo " keko " and " phoe " Herda . ;;;; ;;;; Permission is hereby granted, free of charge, to any person obtaining a ;;;; copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without li...
null
https://raw.githubusercontent.com/phoe/riichi-evaluator/52503213129e82c6e7c9f06a5ccd4a4fc4f6b186/src/constants.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright not...
src / constants.lisp Copyright 2012 - 2019 Kimmo " keko " and " phoe " Herda . to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " A...
47c224ea4fd2c409854290f12433693d4cba531ec4c377f9ae2cde74eb3265b3
ocaml-opam/opam-rt
check.mli
* Copyright ( c ) 2013 - 2019 OCamlPro * Authors < > , * < > , * < > * * 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 app...
null
https://raw.githubusercontent.com/ocaml-opam/opam-rt/2f42d8dcdbd9f16e0e385314a8bf9396cb8a88fa/src/lib/check.mli
ocaml
* Copyright ( c ) 2013 - 2019 OCamlPro * Authors < > , * < > , * < > * * 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 app...
16c647c0f7bea5f1aa7c1b73dc913d8fcb10085a6ab9f7393942168b929c1989
haskell/c2hs
regression-suite.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ExtendedDefaultRules # # OPTIONS_GHC -fno - warn - type - defaults # module Main where import Control.Applicative ((<$>), (<*>)) import Control.Monad import Shelly hiding (FilePath) import Data.Char import Data.List (nub) import Data.Text (Text) import Data.Monoid import q...
null
https://raw.githubusercontent.com/haskell/c2hs/fbb4c2fa6ec5528aa068512f1b691298db420321/tests/regression-suite.hs
haskell
# LANGUAGE OverloadedStrings # End of string: just return the accumulator if there is one. Not escaping. Escaping.
# LANGUAGE ExtendedDefaultRules # # OPTIONS_GHC -fno - warn - type - defaults # module Main where import Control.Applicative ((<$>), (<*>)) import Control.Monad import Shelly hiding (FilePath) import Data.Char import Data.List (nub) import Data.Text (Text) import Data.Monoid import qualified Data.Text as T import Data...
5dd9a7bcfb403700b1d781c4fed0b54db37b044ce702a42554654effeef15b3a
brendanhay/terrafomo
Librato.hs
-- This module is auto-generated. # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # -- | Module : . Librato Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generate...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-librato/gen/Terrafomo/Librato.hs
haskell
This module is auto-generated. | Stability : auto-generated * Provider * Types * Resources * Settings
# OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # Module : . Librato Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.Li...
e7bb43bb7b2a0b48d818b5ff80892700a2b76c0d6c7f163deed11646834fb902
eudoxia0/hermetic
app.lisp
(defpackage hermetic-demo (:use :cl) (:import-from :cl-markup :html5) (:import-from :ningle :*session*) (:import-from :lack.builder :builder) (:import-from :hermetic :setup :login :logged-in-p :user...
null
https://raw.githubusercontent.com/eudoxia0/hermetic/234e78c52a057e273dea0bffc94e3c04f4bec2c8/demo/app.lisp
lisp
(defpackage hermetic-demo (:use :cl) (:import-from :cl-markup :html5) (:import-from :ningle :*session*) (:import-from :lack.builder :builder) (:import-from :hermetic :setup :login :logged-in-p :user...
28bcada9849ef1895dcb77cef3634eda053ab060e1b5ae1ae74db6857699668f
fulcrologic/semantic-ui-wrapper
form.cljs
(ns fulcrologic.semantic-ui.workspaces.form (:require [com.fulcrologic.fulcro.components :as fp] [com.fulcrologic.fulcro.dom :as dom] [nubank.workspaces.core :as ws] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] [com.fulcrologic.fulcro.mutations :as fm] ...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/workspaces/fulcrologic/semantic_ui/workspaces/form.cljs
clojure
(ns fulcrologic.semantic-ui.workspaces.form (:require [com.fulcrologic.fulcro.components :as fp] [com.fulcrologic.fulcro.dom :as dom] [nubank.workspaces.core :as ws] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] [com.fulcrologic.fulcro.mutations :as fm] ...
59bd879d9d44b5ee8cf66cf20c626e8897ea089882d444e2767c86b894fe0e5c
PagingMatt/ocaml-pop3
Command.ml
type t = | Apop of string * string | Dele of int | List of int option | Noop | Pass of string | Quit | Retr of int | Rset | Stat | Top of int * int | Uidl of int option | User of string let parse_apop args = match args with | (a1::a2::[]) -> Some (Apop (a1, a2)) | _ -> None le...
null
https://raw.githubusercontent.com/PagingMatt/ocaml-pop3/8d4127dbfedfec0c44bcf7679795fab0d68b5081/lib/pop3/Command.ml
ocaml
type t = | Apop of string * string | Dele of int | List of int option | Noop | Pass of string | Quit | Retr of int | Rset | Stat | Top of int * int | Uidl of int option | User of string let parse_apop args = match args with | (a1::a2::[]) -> Some (Apop (a1, a2)) | _ -> None le...
6c14491b51d720bc90f478ffe32015f37a9b216861996eccab9d598085acc886
aryx/yacfe
test_parsing_c.mli
open Common val test_tokens_c : filename -> unit (* parse and handle some regression information when called with dirmode *) val test_parse_c : filename list -> unit val test_parse_h : filename list -> unit val test_parse_ch : filename list -> unit val test_parse_unparse : filename -> unit val test_cfg : filename...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/parsing_c/test_parsing_c.mli
ocaml
parse and handle some regression information when called with dirmode foo.c or foo.c:main result is in unix code
open Common val test_tokens_c : filename -> unit val test_parse_c : filename list -> unit val test_parse_h : filename list -> unit val test_parse_ch : filename list -> unit val test_parse_unparse : filename -> unit val test_type_c : filename -> unit val test_comment_annotater : filename -> unit val test_compare...
a69e4a570bcf720acac6452852d970fcef0dbed3fa078bccb1d7df8badcf430f
infi-nl/alibi
query_handler.clj
(ns alibi.domain.query-handler) (def ^:dynamic *handler* nil) (defmacro with-handler [handler & body] `(binding [*handler* ~handler] ~@body)) (defn handle [type & args] (let [handler (*handler* type)] (assert handler (str "handler not found for " type)) (handler args)))
null
https://raw.githubusercontent.com/infi-nl/alibi/00e97340ebff483f0ecbb3eef929a4052adbc78b/src/alibi/domain/query_handler.clj
clojure
(ns alibi.domain.query-handler) (def ^:dynamic *handler* nil) (defmacro with-handler [handler & body] `(binding [*handler* ~handler] ~@body)) (defn handle [type & args] (let [handler (*handler* type)] (assert handler (str "handler not found for " type)) (handler args)))
0955a65ab6e7dc218028b385f9ce63e4093eebda4a22a35d92a2c40a8b3d2dd0
penpot/penpot
refs.cljs
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 /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main.refs "A collection of derived refs." (:require [app.common.data :as d] [app.common.data...
null
https://raw.githubusercontent.com/penpot/penpot/c8360b19949a34a9b0878a3a6f2dd08529c9c4cb/frontend/src/app/main/refs.cljs
clojure
Copyright (c) KALEIDOS INC ---- Global refs ---- Dashboard refs ---- Workspace refs Don't use directly from components, this is a proxy to improve performance of selected-shapes TODO: Looks like using the `=` comparator can be pretty expensive on large pages, we are using this for some reason? Remove this when...
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 /. (ns app.main.refs "A collection of derived refs." (:require [app.common.data :as d] [app.common.data.macros :as dm] [app.common.pa...
a373555a228ddd2441dbe7dfd4fd788a821461ea409e56abab868d15dc84331c
bartavelle/language-puppet
Group.hs
module Puppet.Language.NativeTypes.Group (nativeGroup) where import Puppet.Language.NativeTypes.Helpers nativeGroup :: (NativeTypeName, NativeTypeMethods) nativeGroup = ("group", nativetypemethods parameterfunctions return) -- Autorequires: If Puppet is managing the user or group that owns a file, the file...
null
https://raw.githubusercontent.com/bartavelle/language-puppet/6af7458e094440816c8b9b7b387050612e87a70f/src/Puppet/Language/NativeTypes/Group.hs
haskell
Autorequires: If Puppet is managing the user or group that owns a file, the file resource will autorequire them. If Puppet is managing any parent directories of a file, the file resource will autorequire them.
module Puppet.Language.NativeTypes.Group (nativeGroup) where import Puppet.Language.NativeTypes.Helpers nativeGroup :: (NativeTypeName, NativeTypeMethods) nativeGroup = ("group", nativetypemethods parameterfunctions return) parameterfunctions :: [(Text, [Text -> NativeTypeValidate])] parameterfunctions = ...
a919a92b2338fcb9403a675f3a0462db583c60ff776b7772f38d8de91bf23df1
lpw25/ocaml-typed-effects
stack.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/stdlib/stack.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * Last - in first - out stacks . ...
3688b00c0ddc8e4822d611e86cee37adb4e66bc92ae0fe19893f87115393f113
merijn/Belewitte
Pretty.hs
module Pretty ( module Prettyprinter , module Prettyprinter.Util , module Prettyprinter.Render.Terminal ) where import Prettyprinter import Prettyprinter.Util import Prettyprinter.Render.Terminal
null
https://raw.githubusercontent.com/merijn/Belewitte/2b288e3fb5be9a1d64aecb11e2b07ee4e482d3bd/benchmark-analysis/ffi-core/Pretty.hs
haskell
module Pretty ( module Prettyprinter , module Prettyprinter.Util , module Prettyprinter.Render.Terminal ) where import Prettyprinter import Prettyprinter.Util import Prettyprinter.Render.Terminal
49a980258c1a5254bf2cab68357e3243cc7ed46e38aff41ab0d1c09ade98d92a
lambdageek/centrinel
smoke.hs
module Main where import Test.Tasty import Test.Tasty.HUnit import qualified Centrinel as C import qualified Centrinel.Report as C import Centrinel.System.RunLikeCC (runLikeCC, ParsedCC(..)) import Language.C.System.GCC (newGCC) import qualified Centrinel.Util.Datafiles as CData main :: IO () main = defaultMain sm...
null
https://raw.githubusercontent.com/lambdageek/centrinel/412b620b77c6cb569811fec845b89d04585c1332/tests/smoke.hs
haskell
throw away analysis results
module Main where import Test.Tasty import Test.Tasty.HUnit import qualified Centrinel as C import qualified Centrinel.Report as C import Centrinel.System.RunLikeCC (runLikeCC, ParsedCC(..)) import Language.C.System.GCC (newGCC) import qualified Centrinel.Util.Datafiles as CData main :: IO () main = defaultMain sm...
604e98d58fd54893cf5bbe4636d4dc30424aab5c4630ceecfcb656ce8ae36b23
input-output-hk/cardano-ledger
DCert.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFami...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/31c0bb1f5e78e40b83adfd1a916e69f47fdc9835/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Generator/Trace/DCert.hs
haskell
witnesses. | Generate certificates and also return the associated witnesses and deposits and refunds required.
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFami...
075c4bb161c61ee2ebfe4bbf2698edf2dcc51879154fa2ffe374a42047604601
ocurrent/ocurrent-deployer
pipeline.ml
Different Deployer pipelines available . module Flavour = struct type t = [`Tarides | `OCaml | `Toxis ] let cmdliner = let open Cmdliner in let flavours = ["tarides", `Tarides ; "ocaml", `OCaml ; "toxis", `Toxis ] in let enum_alts = Arg.doc_...
null
https://raw.githubusercontent.com/ocurrent/ocurrent-deployer/58ad53f2b51fde9a4fbdca3becbf4bc046cf8161/src/pipeline.ml
ocaml
Deployment We tag the image to prevent docker prune from removing it. Otherwise, if we later deploy a new (bad) version and need to roll back quickly, we may find the old version isn't around any longer. Strings here represent the docker context to use. Services on deploy.ci3.ocamllabs.io Service...
Different Deployer pipelines available . module Flavour = struct type t = [`Tarides | `OCaml | `Toxis ] let cmdliner = let open Cmdliner in let flavours = ["tarides", `Tarides ; "ocaml", `OCaml ; "toxis", `Toxis ] in let enum_alts = Arg.doc_...
24656b91c606b642a8de0e1edd59b37d3d23ed89af3f72edf5af0518eaf4d7b2
softwarelanguageslab/maf
R5RS_scp1_square-and-rectangle-1.scm
; Changes: * removed : 0 * added : 0 * swaps : 0 * negated predicates : 2 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((maak-rechthoek (lambda (l b) (letrec ((oppervlakte (lambda () (* l b))) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_square-and-rectangle-1.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 0 * swaps : 0 * negated predicates : 2 (letrec ((maak-rechthoek (lambda (l b) (letrec ((oppervlakte (lambda () (* l b))) (omtrek (lambda () ...
2c941105f8264b0189898835ce74b255e5b71d17b8e923cba37e1c0775875b5b
smtcoq/smtcoq
smtlib2_solver.mli
(**************************************************************************) (* *) (* SMTCoq *) Copyright ( C ) 2011 - 2022 (* ...
null
https://raw.githubusercontent.com/smtcoq/smtcoq/c0a1b83a76f9cf204de434eca969948c89c44598/src/smtlib2/smtlib2_solver.mli
ocaml
************************************************************************ SMTCoq ...
Copyright ( C ) 2011 - 2022 See file " " for the list of authors type t type result = Sat | Unsat val create : string array -> t val send_command : t -> string -> (t -> 'a) -> 'a val set_option : t -> string -> bool -> unit val set_l...
18c4be6337579efd2b5890d39dab39a73df529e75b7ba9a76dcff570f308c14e
d-cent/objective8
learn_more.clj
(ns objective8.front-end.templates.learn-more (:require [net.cgrand.enlive-html :as html] [objective8.front-end.templates.page-furniture :as pf] [objective8.front-end.templates.template-functions :as tf])) (def learn-more (html/html-resource "templates/jade/learn-more.html")) (defn learn-mor...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/front_end/templates/learn_more.clj
clojure
(ns objective8.front-end.templates.learn-more (:require [net.cgrand.enlive-html :as html] [objective8.front-end.templates.page-furniture :as pf] [objective8.front-end.templates.template-functions :as tf])) (def learn-more (html/html-resource "templates/jade/learn-more.html")) (defn learn-mor...
7a6a36a232a7848616ee6f16d2e955a717e772fa437827be8215040fc895821c
janegca/htdp2e
Exercise-040-SampleWorldWithMouseEvents.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 Exercise-040-SampleWorldWithMouseEvents) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teac...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/01-FixedSizeData/Exercise-040-SampleWorldWithMouseEvents.rkt
racket
about the language level of this file in a form that our tools can easily process. watch them fail. Add the provided conitional statements to correct the problem. Physical Constants (general attributes of objects in the world) Graphical Constants (images of objects in the world) car's y-position along the bottom ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-040-SampleWorldWithMouseEvents) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpac...
197c1c7fbcc11f3ea81c814e36835fbb7ecfc43f6c618b3f246bffc90d5b200a
kappelmann/eidi2_repetitorium_tum
ha5_sol.ml
open Batteries module Json = struct include Ha5.Json (* homework *) shows the path : we write .foo.bar[1].baz for [ Field " foo " ; Field " bar " ; Index 1 ; Field " baz " ] let rec show_path = function | [] -> "" | x::xs -> (match x with Field s -> "."^s | Index i -> "["^string_of_int i^"]") ^ show_...
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/additional_exercises/2015_16/exercise09/ha5_sol.ml
ocaml
homework gets the children, i.e., the values of Object and Array parse string and return some json if there are no errors (* let pstr = between (char '"') (many any) (char '"') in input -> 'a option: these parsers consume the whole input no curried constructors :( input -> ('a * input) option: these parser...
open Batteries module Json = struct include Ha5.Json shows the path : we write .foo.bar[1].baz for [ Field " foo " ; Field " bar " ; Index 1 ; Field " baz " ] let rec show_path = function | [] -> "" | x::xs -> (match x with Field s -> "."^s | Index i -> "["^string_of_int i^"]") ^ show_path xs let ge...
451415d293b345e90d068f6efc3ea11c7c55da5c4b57bb9dfe896444ef7f2818
simmone/racket-simple-xlsx
dimension-test.rkt
#lang racket (require rackunit/text-ui rackunit) (require"../../lib/dimension.rkt") (define test-dimension-lib (test-suite "test-dimension-lib" (test-case "test-cell-range?" (check-true (cell-range? "A1-B2")) (check-true (cell-range? "A1:B2")) (check-true (cell-range? "A1")) (check-true...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/lib/dimension-test.rkt
racket
#lang racket (require rackunit/text-ui rackunit) (require"../../lib/dimension.rkt") (define test-dimension-lib (test-suite "test-dimension-lib" (test-case "test-cell-range?" (check-true (cell-range? "A1-B2")) (check-true (cell-range? "A1:B2")) (check-true (cell-range? "A1")) (check-true...
841fc8c746a86b843acfdddb78c38b813bdd9d3b57b9d5ebd51d418aee1fe037
alexwl/haskell-code-explorer
GhcSession.hs
# LANGUAGE TupleSections , ScopedTypeVariables # module Main where import GHC import GHC.Paths (libdir) import DynFlags import qualified Control.Exception as E import Control.Monad import Control.Monad.IO.Class import Data.List import Data.Version import System.Environment (getArgs) import System.Exit import System.F...
null
https://raw.githubusercontent.com/alexwl/haskell-code-explorer/2f1c2a4c87ebd55b8a335bc4670eec875af8b4c4/vendor/cabal-helper-0.8.1.2/tests/GhcSession.hs
haskell
first one after that, so "regex-example" in the following case ,"-i" ,"-idist/build/regex-example" ,"-iregex-example"
# LANGUAGE TupleSections , ScopedTypeVariables # module Main where import GHC import GHC.Paths (libdir) import DynFlags import qualified Control.Exception as E import Control.Monad import Control.Monad.IO.Class import Data.List import Data.Version import System.Environment (getArgs) import System.Exit import System.F...
fa500c5c980e5e5af16c5cd6ad42ffbc94460611265d81cf00d24c125aa57675
melange-re/melange
lam_pass_eliminate_ref.ml
(************************************) (* *) (* OCaml *) (* *) , projet Cristal , INRIA Rocquencourt ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/core/lam_pass_eliminate_ref.ml
ocaml
********************************** OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 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 . Adapted for Javascript backend : , ...
c69d20359fca6d112662a756e65208ce3cf81f7dd3fa7e378ef52043fcfaa29b
camlp5/camlp5
asttypes.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_stuff/4.00.2/parsing/asttypes.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 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 . Auxiliary a.s.t . types used by pars...
b29c52f54a3b9e6513001f5ce6f80422f38d53dded137f329e83e712a51ce860
haskell-opengl/OpenGLRaw
VertexArrayObject.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . GL.ATI.VertexArrayObject Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ATI/VertexArrayObject.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Module : Graphics . GL.ATI.VertexArrayObject Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ATI.VertexArrayObject ( glGetATIVertexArrayObject, gl_ATI_vertex_array_object, pattern GL_ARRAY_OBJECT_BUFFER_ATI, pattern GL_ARRAY_OBJECT_OFFSET_ATI,...
7720e133e1ff68d7320dbced4e134a8fac27cf6c66ca32c2651c51c3f4b23e0b
ranjitjhala/sprite-lang
Main.hs
# LANGUAGE ScopedTypeVariables # module Main where import System.Environment ( getArgs ) import System.Exit () import Control.Monad (void) import qualified Language.Fixpoint.Types as F import Language.Sprite.Common (crashUserError, doOrDie) import Language.Sprite...
null
https://raw.githubusercontent.com/ranjitjhala/sprite-lang/bebfa8a8de6d558853145cbed8c511daa9bda3c7/app/Main.hs
haskell
------------------------------------------------------------------------- -------------------------------------------------------------------------
# LANGUAGE ScopedTypeVariables # module Main where import System.Environment ( getArgs ) import System.Exit () import Control.Monad (void) import qualified Language.Fixpoint.Types as F import Language.Sprite.Common (crashUserError, doOrDie) import Language.Sprite...
13c6d210a7d3b58eea3be22d2a319d4886dc860e42be058d2dbf64933315d198
ddssff/refact-global-hse
FOL.hs
| Basic stuff for first order logic . -- Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedT...
null
https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/expected/decl1/Data/Logic/ATP/FOL.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # * Semantics * Free Variables * Substitution * Concrete instances of formula types for use in unit tests. * Tests using the same variable type as the formula. | A formula type with no equality predicate | A...
| Basic stuff for first order logic . Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE Undecidab...
73d7d5c9933c862e2e097ad3de3e464d371b0c41d56f9c1c535bd3547dbcf989
l-x/deeperl
deeperl_sup.erl
@private -module(deeperl_sup). -behaviour(supervisor). -export([ start_link/1, init/1 ]). -define(SERVER, ?MODULE). start_link(#{} = Config) -> supervisor:start_link({local, ?SERVER}, ?MODULE, [Config]). init([Config]) -> ChildSpec = #{ id => deeperl, start => {deeperl, start_link,...
null
https://raw.githubusercontent.com/l-x/deeperl/834fd8101e7057e090d5ab17b2a68c75f8e1656f/src/deeperl_sup.erl
erlang
@private -module(deeperl_sup). -behaviour(supervisor). -export([ start_link/1, init/1 ]). -define(SERVER, ?MODULE). start_link(#{} = Config) -> supervisor:start_link({local, ?SERVER}, ?MODULE, [Config]). init([Config]) -> ChildSpec = #{ id => deeperl, start => {deeperl, start_link,...
2c592bf6e7106ac429eb0123eda8842c7659b43003059843f5f33b782aeacea9
skanev/playground
62.scm
SICP exercise 2.62 ; ; Given an Θ(n) implementation of union-set for the sets represented as ordered ; lists. (define (union-set set1 set2) (cond ((null? set1) set2) ((null? set2) set1) ((= (car set1) (car set2)) (cons (car set1) (union-set (cdr set1) (cdr set2)))) ((< (car set1) (...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/62.scm
scheme
Given an Θ(n) implementation of union-set for the sets represented as ordered lists.
SICP exercise 2.62 (define (union-set set1 set2) (cond ((null? set1) set2) ((null? set2) set1) ((= (car set1) (car set2)) (cons (car set1) (union-set (cdr set1) (cdr set2)))) ((< (car set1) (car set2)) (cons (car set1) (union-set (cdr set1) set2))) ((> (car set1) (...
c3e6daff7595f3494950a19bf81b545bebc48af70b25c6a9d25a6b9f66e6933e
dapphub/dapptools
benchmark.hs
main = putStrLn "no benchmark yet"
null
https://raw.githubusercontent.com/dapphub/dapptools/beaaeb6a6ad1cde22989bd088b10bdd06718b73f/src/hevm/benchmark/benchmark.hs
haskell
main = putStrLn "no benchmark yet"
2b65e591af52a25f3227f659752aa624086e385de030630ca161d28a02b4bbb4
tvraman/aster-math
dg-reading-rules.lisp
;;; -*- Mode: LISP -*- ;;; ;;; ;;; (in-package :aster) (def-reading-rule (boxed-equation play-sound) "Read aloud method for object boxed-equation " (afl:new-block (if (label boxed-equation) (read-aloud (label-name (label bo...
null
https://raw.githubusercontent.com/tvraman/aster-math/b57d986b4beb90b3c095761be143067ebed7bd45/lisp/gries-book/dg-reading-rules.lisp
lisp
-*- Mode: LISP -*- ;;; ;;;
(in-package :aster) (def-reading-rule (boxed-equation play-sound) "Read aloud method for object boxed-equation " (afl:new-block (if (label boxed-equation) (read-aloud (label-name (label boxed-equation ))) (read-aloud (format nil "~a ~a. " (contents boxed-equation...
0bb7acf2ff99eedd48525b0bc40f62828f22cb0c0a63e199eff68260d521ecb5
tz-wrapped/tezos-btc
IO.hs
SPDX - FileCopyrightText : 2019 Bitcoin Suisse - - SPDX - License - Identifier : LicenseRef - MIT - BitcoinSuisse - - SPDX-License-Identifier: LicenseRef-MIT-BitcoinSuisse -} # OPTIONS_GHC -Wno - orphans # module Client.IO ( HasStoreTemplateField , HasStoreTemplateSubmap , addressOrAliasToAddr , c...
null
https://raw.githubusercontent.com/tz-wrapped/tezos-btc/c26e3cf4e00bd53121c15929407a859b57c74527/src/Client/IO.hs
haskell
| Get field with given name from TZBTC contract UStore. | Get value assosiated with given key from given submap of TZBTC contract UStore. | Get value for given key from UStore. UStore is basically `BigMap Bytestring ByteString`. So in order to get value from it we pack the key into After obtaining value we unpa...
SPDX - FileCopyrightText : 2019 Bitcoin Suisse - - SPDX - License - Identifier : LicenseRef - MIT - BitcoinSuisse - - SPDX-License-Identifier: LicenseRef-MIT-BitcoinSuisse -} # OPTIONS_GHC -Wno - orphans # module Client.IO ( HasStoreTemplateField , HasStoreTemplateSubmap , addressOrAliasToAddr , c...
3c06ae6e38ae3b88e9a1cbbebfc763b42977903170757003fd681e5cea076ecd
mobius-eng/numerics
rk4.clj
; Copyright ( c ) 2015 . This file is licensed under Lesser General Public License v.3 ; The text of the license can be found at -3.0.txt ; (ns numerics.ode.rk4 (:refer-clojure :exclude [+ - * / ==]) (:require [clojure.core.matrix :refer :all] [clojure.core.matrix.operators :refer :all] ...
null
https://raw.githubusercontent.com/mobius-eng/numerics/962d8fb96b9704aef71d5016491049ad01dbf6d1/src/numerics/ode/rk4.clj
clojure
The text of the license can be found at -3.0.txt
Copyright ( c ) 2015 . This file is licensed under Lesser General Public License v.3 (ns numerics.ode.rk4 (:refer-clojure :exclude [+ - * / ==]) (:require [clojure.core.matrix :refer :all] [clojure.core.matrix.operators :refer :all] [numerics.ode.utils :refer :all] [numeri...
ab0888de01820b3504a8d1cd6a3c63484ba5a78d37c22af1acd7f9b92c4a08f7
gelisam/typelevel-rewrite-rules
Test.hs
# LANGUAGE ConstraintKinds , DataKinds , RankNTypes , TypeFamilies , TypeOperators # # OPTIONS_GHC -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : SameModule . Test . LeftIdentity # -fplugin-opt=TypeLevel.Rewrite:SameModule.Test.LeftIdentity #-} module SameModule.Te...
null
https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/test/error-messages-cases/same-module/src/SameModule/Test.hs
haskell
# LANGUAGE ConstraintKinds , DataKinds , RankNTypes , TypeFamilies , TypeOperators # # OPTIONS_GHC -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : SameModule . Test . LeftIdentity # -fplugin-opt=TypeLevel.Rewrite:SameModule.Test.LeftIdentity #-} module SameModule.Te...
78a14398aa023b478f05791aef0006ea4d4c2bc9c3887af4d075a54ec139a341
haskell-gi/haskell-gi
GstGtkX11.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # A minimal example of embedding a video into a GTK / X11 window . The 3 - Clause BSD License Copyright 2017 and use in source and binary forms , with or without modification , are permitted provided that the f...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/examples/advanced/GstGtkX11.hs
haskell
# LANGUAGE OverloadedStrings # Create a new top level window Add this drawing area to the window we created Note that we size it to fit the video used in this example When our window is ready... Get the underlying X11 window Get the window handle or ID Tell Gstreamer where it can render the output of playbin Te...
# LANGUAGE DataKinds # # LANGUAGE TypeFamilies # A minimal example of embedding a video into a GTK / X11 window . The 3 - Clause BSD License Copyright 2017 and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
4c1390b5de895eea6b23a0d4ce3ee09c3eaa286657f7835fc43455440cbd5e49
HaskellForCats/HaskellForCats
SnakeLadd.hs
module SnakeLadd where end 100 = [] oneL = [1..38] fourL = [4..14] nineL = [9..31]
null
https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/SnakeLadd.hs
haskell
module SnakeLadd where end 100 = [] oneL = [1..38] fourL = [4..14] nineL = [9..31]