_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 |
|---|---|---|---|---|---|---|---|---|
cc23b982bf51d104c82b36af509b43be0fd98d2e51afbeb367822578f1204f4e | schell/editor | Types.hs | # LANGUAGE TemplateHaskell #
module Graphics.Rendering.Shader.Shape.Types where
import Graphics.Rendering.OpenGL
import Control.Lens
import Graphics.Rendering.Shader.Types
data ShapeShaderProgram = ShapeShaderProgram { _program :: Program
, _setProjection :: SetUnif... | null | https://raw.githubusercontent.com/schell/editor/0f0d2eb67df19e8285c6aaeeeca96bff3110f68d/src/Graphics/Rendering/Shader/Shape/Types.hs | haskell | # LANGUAGE TemplateHaskell #
module Graphics.Rendering.Shader.Shape.Types where
import Graphics.Rendering.OpenGL
import Control.Lens
import Graphics.Rendering.Shader.Types
data ShapeShaderProgram = ShapeShaderProgram { _program :: Program
, _setProjection :: SetUnif... | |
18e5d76bed2c60a001d3a4db39506f3485053a82dd1a69b9ebf275f5d457c87d | fujita-y/ypsilon | enums.scm | #!nobacktrace
(library (rnrs enums (6))
(export make-enumeration
enum-set-universe
enum-set-indexer
enum-set-constructor
enum-set->list
enum-set-member?
enum-set-subset?
enum-set=?
enum-set-union
enum-set-intersection
... | null | https://raw.githubusercontent.com/fujita-y/ypsilon/f742470e2810aabb7a7c898fd6c07227c14a725f/sitelib/rnrs/enums.scm | scheme | #!nobacktrace
(library (rnrs enums (6))
(export make-enumeration
enum-set-universe
enum-set-indexer
enum-set-constructor
enum-set->list
enum-set-member?
enum-set-subset?
enum-set=?
enum-set-union
enum-set-intersection
... | |
9e252dff1d0fdf2bb2a1cf51afb0b38653af00a0d03f61ed550c783efadd850c | bgamari/the-thoralf-plugin | UoM.hs | # LANGUAGE TypeFamilies , TypeInType , TypeOperators ,
GADTs , RecordWildCards , StandaloneDeriving
#
GADTs, RecordWildCards, StandaloneDeriving
#-}
module ThoralfPlugin.Encode.UoM ( uomTheory ) where
import TyCon ( TyCon(..) )
import Type ( Type, splitTyConApp_maybe )
import TcPluginM ( tcLookupTyCon, lo... | null | https://raw.githubusercontent.com/bgamari/the-thoralf-plugin/fa4e403b25bfcaf9e8d5142ab40d3c54b33a3630/src/ThoralfPlugin/Encode/UoM.hs | haskell | # LANGUAGE TypeFamilies , TypeInType , TypeOperators ,
GADTs , RecordWildCards , StandaloneDeriving
#
GADTs, RecordWildCards, StandaloneDeriving
#-}
module ThoralfPlugin.Encode.UoM ( uomTheory ) where
import TyCon ( TyCon(..) )
import Type ( Type, splitTyConApp_maybe )
import TcPluginM ( tcLookupTyCon, lo... | |
b5f21367e487e0b16df49cfdc2de751b484fae1d8e50ebc0901bf3228f7615b5 | qkrgud55/ocamlmulti | htbl.ml | (* Hashtable operations, using maps as a reference *)
open Printf
module Test(H: Hashtbl.S) (M: Map.S with type key = H.key) = struct
let incl_mh m h =
try
M.iter
(fun k d ->
let d' = H.find h k in if d <> d' then raise Exit)
m;
true
with Exit | Not_found -> false
l... | null | https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/testsuite/tests/lib-hashtbl/htbl.ml | ocaml | Hashtable operations, using maps as a reference
Insert all data with H.add
Remove some of the data
Specific functorial hashes
Instantiating the test
Data set: strings from a file, associated with their line number
Data set: fixed strings
Data set: random integers
Data set: pairs
Data set: lists
The... |
open Printf
module Test(H: Hashtbl.S) (M: Map.S with type key = H.key) = struct
let incl_mh m h =
try
M.iter
(fun k d ->
let d' = H.find h k in if d <> d' then raise Exit)
m;
true
with Exit | Not_found -> false
let domain_hm h m =
try
H.iter
(fun k... |
143ed393ca777b32466d74708fff64ffa16a4b4739f837cd6aa5fd337b57e8ee | lynaghk/cljs-d3 | macros.clj | (ns cljs-d3.macros)
(defmacro attr
"Expand (attr {}) into multiple attr calls"
[selection attr-map]
`(do
~@(for [[k# v#] attr-map]
`(.attr ~selection ~k# ~v#))
~selection))
(defmacro style
"Expand (style {}) into multiple style calls"
[selection style-map]
`(do
~@(for [[k# v#] sty... | null | https://raw.githubusercontent.com/lynaghk/cljs-d3/529790593ead70335710d04004478cee3575552d/src/clj/cljs_d3/macros.clj | clojure | (ns cljs-d3.macros)
(defmacro attr
"Expand (attr {}) into multiple attr calls"
[selection attr-map]
`(do
~@(for [[k# v#] attr-map]
`(.attr ~selection ~k# ~v#))
~selection))
(defmacro style
"Expand (style {}) into multiple style calls"
[selection style-map]
`(do
~@(for [[k# v#] sty... | |
dfadf1b6fdf8ed5a53b72f047ca51465c2fdad707a651acb4f612784010ca115 | haskell-opengl/OpenGLRaw | TessellationProgram5.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.NV.TessellationProgram5
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/TessellationProgram5.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.NV.TessellationProgram5
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.NV.TessellationProgram5 (
glGetNVTessellationProgram5,
gl_NV_tessellation_program5,
pattern GL_MAX_PROGRAM_PATCH_ATTRIBS_NV,
pattern GL_TESS_CONTROL_PROGRAM_NV,
pattern GL_TESS_CONTROL_PROGRAM_PARAMETER_... |
01bf05b563f8d54101c447c9a4bd88b987c2a5b9aef38c92b019d806bcd47bf6 | xapi-project/xen-api | xapi_gzip.ml |
* Copyright ( C ) 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 described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xen-api/8d17b53bc236e23aa1ec455137773f7367665d83/ocaml/libs/xapi-compression/xapi_gzip.ml | ocaml | * copy bytes from file descriptor [src] to [dst] |
* Copyright ( C ) 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 described in file LI... |
a4c44d86e0f25eaf002840ab5558627e5b5513fc399095c5c0556f682984b17f | scrintal/heroicons-reagent | chevron_double_right.cljs | (ns com.scrintal.heroicons.mini.chevron-double-right)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:fillRule "evenodd"
:d "M10.21 14.77a.75.75 0 01.02-1.06L14.168 10 10.23 6.29a.75.75 0 111.04-... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/chevron_double_right.cljs | clojure | (ns com.scrintal.heroicons.mini.chevron-double-right)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:fillRule "evenodd"
:d "M10.21 14.77a.75.75 0 01.02-1.06L14.168 10 10.23 6.29a.75.75 0 111.04-... | |
96a217604df8965cb5c366fad845f7f470665eae453c11d33a9fc98d0f1ac8a8 | input-output-hk/Alonzo-testnet | plutus-deadline.hs |
import Prelude
import System.Environment
import Cardano.Api
import Cardano.Api.Shelley
import qualified Cardano.Ledger.Alonzo.Data as Alonzo
import qualified Plutus.V1.Ledger.Api as Plutus
import qualified Data.ByteString.Short as SBS
import Cardano.PlutusDeadline.... | null | https://raw.githubusercontent.com/input-output-hk/Alonzo-testnet/1fd8da32d44ba48164931eb3e30f1a34e45955af/resources/plutus-sources/plutus-deadline/app/plutus-deadline.hs | haskell |
import Prelude
import System.Environment
import Cardano.Api
import Cardano.Api.Shelley
import qualified Cardano.Ledger.Alonzo.Data as Alonzo
import qualified Plutus.V1.Ledger.Api as Plutus
import qualified Data.ByteString.Short as SBS
import Cardano.PlutusDeadline.... | |
ee1df79c72c3eab44f59ecd0e6f2f620bf6c2aa7de3052e438a4b516a2193f8d | exercism/scheme | transpose.scm | (import (rnrs))
(define (transpose matrix)
'implement-me!)
| null | https://raw.githubusercontent.com/exercism/scheme/bad074a0b46c05820c2a0397ff922499087d8ea0/exercises/practice/transpose/transpose.scm | scheme | (import (rnrs))
(define (transpose matrix)
'implement-me!)
| |
0a18b3050da7fe50ec9c31d757dbd48ba3ee35f57611ff990c9be16cb71a2a6e | tezos/tezos-mirror | script_comparable.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
Copyright ( c... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/32c9ef7c4ad3c6ec14e16ab3d75e353266925fb1/src/proto_alpha/lib_protocol/script_comparable.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
Copyright ( c ) 2021 - 2022 Nomadic Labs < >
Copyright ( c ) 2020 Metastate AG < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit pers... |
374e062b1de1851d4283de49abd412859f8cf9b934a7dc085e9fd0b5ea84e315 | just-sultanov/clj-monaco | core.cljs | ;;;;
Copyright © 2019 - 2020 Ilshat . All rights reserved .
;; The use and distribution terms for this software are covered by the license which
;; can be found in the file license at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by the terms
;; of this license... | null | https://raw.githubusercontent.com/just-sultanov/clj-monaco/5f09a046879edf19611e528c3de368f2919ce577/src/main/clojure/monaco/core.cljs | clojure |
The use and distribution terms for this software are covered by the license which
can be found in the file license at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by the terms
of this license. You must not remove this notice, or any other, from this software.
... | Copyright © 2019 - 2020 Ilshat . All rights reserved .
(ns monaco.core
"A ClojureScript library for the Monaco Editor."
(:require
[reagent.core :as r]
[monaco.js-interop :as j]
[monaco.api.editor :as monaco.editor]
[monaco.api.editor.text-model :as monaco.editor.text-model]))
(defn editor
"A... |
81c94b95d377c7dbb4191999878b4cb9cb95fc2ec7a380a2c12dc6f72b79804e | bugczw/Introduction-to-Functional-Programming-in-OCaml | string.ml | "abc" ^ "def";;
String.length "12345";;
int_of_string "12345";;
string_of_int 12345;;
String.get "abcdef" 1;;
| null | https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W1_ALL/string.ml | ocaml | "abc" ^ "def";;
String.length "12345";;
int_of_string "12345";;
string_of_int 12345;;
String.get "abcdef" 1;;
| |
db6f763eac26e29bea91e654736f72d43465ca8806d8e3168e4082fd606ce469 | ChristopherBiscardi/snap-for-beginners | Site.hs | {-# LANGUAGE OverloadedStrings #-}
------------------------------------------------------------------------------
-- | This module is where all the routes and handlers are defined for your
-- site. The 'app' function is the initializer that combines everything
-- together and is exported by this module.
module Site
... | null | https://raw.githubusercontent.com/ChristopherBiscardi/snap-for-beginners/d35a4bbdd0a459983e2f37400fbc2bf8c8bf6239/code/auth-app/src/Site.hs | haskell | # LANGUAGE OverloadedStrings #
----------------------------------------------------------------------------
| This module is where all the routes and handlers are defined for your
site. The 'app' function is the initializer that combines everything
together and is exported by this module.
---------------------------... |
module Site
( app
) where
import Control.Applicative
import Data.ByteString (ByteString)
import qualified Data.Text as T
import Snap.Core
import Snap.Snaplet
import Snap.Snaplet.Auth
import Snap.Snaplet.Auth.Backends.JsonFile
import Snap.Snaple... |
3bc97cab75476eda1cefee03aa9eb2e51cecb0d9287909bb2d1e87fea5fe3256 | haskell-foundation/foundation | Sys.hs | # LANGUAGE NoImplicitPrelude #
# LANGUAGE RebindableSyntax #
{-# LANGUAGE OverloadedStrings #-}
module Sys ( benchSys ) where
import Foundation
import Foundation.Collection
import BenchUtil.Common
import BenchUtil.RefData
import Foundation.System.Entropy
import Foundation.Random
import qualified Prelude
data NullRa... | null | https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/benchs/Sys.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
# LANGUAGE RebindableSyntax #
module Sys ( benchSys ) where
import Foundation
import Foundation.Collection
import BenchUtil.Common
import BenchUtil.RefData
import Foundation.System.Entropy
import Foundation.Random
import qualified Prelude
data NullRandom = NullRandom
instance RandomG... |
50362923ddbda1d068d20e9a3d3e6410b3d41ac23d12185c5710d16d6cb485ef | yesodweb/wai | Conduit.hs | # LANGUAGE CPP #
module Network.Wai.Handler.Warp.Conduit where
import UnliftIO (assert, throwIO)
import qualified Data.ByteString as S
import qualified Data.IORef as I
import Network.Wai.Handler.Warp.Imports
import Network.Wai.Handler.Warp.Types
----------------------------------------------------------------
-- |... | null | https://raw.githubusercontent.com/yesodweb/wai/052b875effb45fbf7fd3bb9123592fc5002c9763/warp/Network/Wai/Handler/Warp/Conduit.hs | haskell | --------------------------------------------------------------
| Contains a @Source@ and a byte count that is still to be read in.
specified number of bytes to be passed downstream. All leftovers should be
If no chunk available, then there aren't enough bytes in the
stream. Throw a ConnectionClosedByPeer
How many ... | # LANGUAGE CPP #
module Network.Wai.Handler.Warp.Conduit where
import UnliftIO (assert, throwIO)
import qualified Data.ByteString as S
import qualified Data.IORef as I
import Network.Wai.Handler.Warp.Imports
import Network.Wai.Handler.Warp.Types
data ISource = ISource !Source !(I.IORef Int)
mkISource :: Source ->... |
cb484b5f01a4bba4631c9623a3dcc16e98d414f645d025f9cf09a00ab02a732a | inanna-malick/merkle-schemes | InMemory.hs | module Merkle.Higher.Store.InMemory where
--------------------------------------------
import Control.Monad.IO.Class
import Data.IORef
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import Data.Singletons
--------------------------------------------
import ... | null | https://raw.githubusercontent.com/inanna-malick/merkle-schemes/4eac64f4df12ea7d1d1f3bb34010424db19e0a9e/merkle-schemes-higher/src/Merkle/Higher/Store/InMemory.hs | haskell | ------------------------------------------
------------------------------------------
------------------------------------------
upload to fallback
cache locally | module Merkle.Higher.Store.InMemory where
import Control.Monad.IO.Class
import Data.IORef
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import Data.Singletons
import Merkle.Higher.Store
import Merkle.Higher.Types
inMemoryStore
:: foral... |
dcf3cd1563708fb9f906dd1b25f6c5d35f7038fe2048c8ffc0c1fbb42e4de4aa | Gabriella439/Haskell-Annah-Library | Main.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Annah.Core (Data(..), Expr(..), Type(..))
import Control.Applicative ((<|>))
import Control.Exception (Exception, throwIO)
import Control.Monad (forM_)
import Data.Monoid ((<>),mempty)
import Data.Text.Lazy (fromStrict)
import Filesystem.Path (FilePath, (</>... | null | https://raw.githubusercontent.com/Gabriella439/Haskell-Annah-Library/ba28c309a26f0a68c598f5feb2c77dec7288c26e/exec/Main.hs | haskell | # LANGUAGE OverloadedStrings #
TODO: Handle duplicate type and data constructor names |
module Main where
import Annah.Core (Data(..), Expr(..), Type(..))
import Control.Applicative ((<|>))
import Control.Exception (Exception, throwIO)
import Control.Monad (forM_)
import Data.Monoid ((<>),mempty)
import Data.Text.Lazy (fromStrict)
import Filesystem.Path (FilePath, (</>))
import Morte.Core (Path(..), Var... |
7c807683e7ddc1e6f1ba72c85da2dc91139c78f0dc5fada3c361ba707a310ba4 | shayan-najd/NativeMetaprogramming | T6018failclosed2.hs | {-# LANGUAGE TypeFamilyDependencies #-}
module T6018failclosed2 where
-- this one is a strange beast. Last equation is unreachable and thus it is
removed . It is then impossible to and thus we generate an
-- error
type family Bar a = r | r -> a where
Bar Int = Bool
Bar Bool = Int
Bar Bool = Char
ba... | null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/T6018failclosed2.hs | haskell | # LANGUAGE TypeFamilyDependencies #
this one is a strange beast. Last equation is unreachable and thus it is
error |
module T6018failclosed2 where
removed . It is then impossible to and thus we generate an
type family Bar a = r | r -> a where
Bar Int = Bool
Bar Bool = Int
Bar Bool = Char
bar :: Bar a -> Bar a
bar x = x
barapp :: Char
barapp = bar 'c'
|
ce0784e35e5dd70907bf04e489ea2887f4afc6df84f94e1503bf648646dc06b6 | brendanhay/amazonka | SessionSummary.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE StrictData #-}
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived fr... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wisdom/gen/Amazonka/Wisdom/Types/SessionSummary.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Module : Amazonka.Wisdom.Types.SessionSummary
Stability : auto-generated
| Summary information about the session.
/See:/ 'newSessionSummary' smart constructor.
| The identifier of the session.
|
Create a value of 'SessionSummary' with all optional... | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived from AWS service descriptions , licensed under Apache 2.0 .
Co... |
3a7e17c6a014f265130c28ffdc5648f76b09e43ed03ef3b0afb663df7a40ab66 | jackfirth/lens | string-split.rkt | #lang reprovide
lens/private/string/string-split
| null | https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/string-split.rkt | racket | #lang reprovide
lens/private/string/string-split
| |
a1360952b59d746fb16ce6c73b14df365ddc7afbae66ad5a0afd186d05efd125 | clojerl/clojerl | clj_murmur3.erl | @doc Murmur3 hash in Erlang .
-module(clj_murmur3).
-export([ ordered/1
, ordered_hashes/1
, unordered/1
, unordered_hashes/1
, mix_coll_hash/2
]).
-define(SEED, 0).
-define(C1, 16#cc9e2d51).
-define(C2, 16#1b873593).
-define(C3, 16#85ebca6b).
-define(C4, 16#c2b2ae35).
-defin... | null | https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/src/erl/clj_murmur3.erl | erlang | @doc Calculates the hash for an ordered seq.
@doc Calculates the hash for an unordered seq.
@doc Calculates the hash for an unordered list of hashes.
@doc Calculates the hash for an ordered list of hashes.
collection of `Len' elements.
------------------------------------------------------------------------------
... | @doc Murmur3 hash in Erlang .
-module(clj_murmur3).
-export([ ordered/1
, ordered_hashes/1
, unordered/1
, unordered_hashes/1
, mix_coll_hash/2
]).
-define(SEED, 0).
-define(C1, 16#cc9e2d51).
-define(C2, 16#1b873593).
-define(C3, 16#85ebca6b).
-define(C4, 16#c2b2ae35).
-defin... |
5a43fcb62d901ad15c030632703d83654d3cd9963a9b56246b0a069e8dda4f81 | GaloisInc/heapster-saw | Token.hs | module Verifier.SAW.Heapster.Token
( Token(..),
tokenNat,
tokenIdent,
describeToken,
) where
import GHC.Natural (Natural)
-- | Lexical token generated by 'Verifier.SAW.Heapster.Lexer.lexer'
data Token
^ symbol @(@
^ symbol @)@
| TOpenBrack -- ^ symbol @[@
^ symbol
| TOpenBrace ... | null | https://raw.githubusercontent.com/GaloisInc/heapster-saw/12da686a74901058961dc7b29aa1a011ed1d4eef/src/Verifier/SAW/Heapster/Token.hs | haskell | | Lexical token generated by 'Verifier.SAW.Heapster.Lexer.lexer'
^ symbol @[@
^ symbol @{@
^ symbol @<@
^ symbol @>@
^ symbol @:@
^ symbol @.@
^ symbol @;@
^ symbol @,@
^ symbol @+@
^ symbol @*@
^ symbol @\@@
^ symbol @-o@
^ symbol @|->@
^ symbol @/=@
^ keyword @or@
^ keyword @true@
^ keyword @empty@
... | module Verifier.SAW.Heapster.Token
( Token(..),
tokenNat,
tokenIdent,
describeToken,
) where
import GHC.Natural (Natural)
data Token
^ symbol @(@
^ symbol @)@
^ symbol
^ symbol @}@
^ symbol @==@
^ symbol @<u@
^ symbol @<=u@
^ keyword @ptr@
^ keyword @perm@
^ keyword @rwmodality@
... |
b14b3596d912eab943866438a9559e8399efa28ca033e8e8b47d9ef9b2189a39 | Incubaid/baardskeerder | posix.mli |
* This file is part of Baardskeerder .
*
* Copyright ( C ) 2011 Incubaid BVBA
*
* Baardskeerder 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 , o... | null | https://raw.githubusercontent.com/Incubaid/baardskeerder/3975cb7f0e92e1f35eeab17beeb906344e43dae0/src/posix.mli | ocaml | pread
fsync
fdatasync
fallocate
posix_fadvise
stat blksize |
* This file is part of Baardskeerder .
*
* Copyright ( C ) 2011 Incubaid BVBA
*
* Baardskeerder 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 , o... |
9639f81b7ab0e67bcf9eb93dfb6bec2f10f5857b31c648813e24d32179626bfc | Gonzih/feeds2imap.clj | message.clj | (ns feeds2imap.message
(:require [clojure.spec.alpha :as s])
(:import [javax.mail Message$RecipientType Session]
[javax.mail.internet MimeMessage InternetAddress MimeBodyPart]
[java.util Date]))
(s/def ::session (partial instance? Session))
(s/def ::recipient-to (partial instance? Message$Rec... | null | https://raw.githubusercontent.com/Gonzih/feeds2imap.clj/3119214f5fe8feb933bc7ebb62c445de09c80494/src/feeds2imap/message.clj | clojure | (ns feeds2imap.message
(:require [clojure.spec.alpha :as s])
(:import [javax.mail Message$RecipientType Session]
[javax.mail.internet MimeMessage InternetAddress MimeBodyPart]
[java.util Date]))
(s/def ::session (partial instance? Session))
(s/def ::recipient-to (partial instance? Message$Rec... | |
1e9f4d282a5cf1fac8391302dd442f61e846a2a9b8462298941dd15860b5390d | cedlemo/OCaml-GI-ctypes-bindings-generator | Relief_style.ml | open Ctypes
open Foreign
type t = Normal | Half | None
let of_value v =
if v = Unsigned.UInt32.of_int 0 then Normal
else if v = Unsigned.UInt32.of_int 1 then Half
else if v = Unsigned.UInt32.of_int 2 then None
else raise (Invalid_argument "Unexpected Relief_style value")
let to_value = function
| Normal ->... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Relief_style.ml | ocaml | open Ctypes
open Foreign
type t = Normal | Half | None
let of_value v =
if v = Unsigned.UInt32.of_int 0 then Normal
else if v = Unsigned.UInt32.of_int 1 then Half
else if v = Unsigned.UInt32.of_int 2 then None
else raise (Invalid_argument "Unexpected Relief_style value")
let to_value = function
| Normal ->... | |
0ce0dbe64091c181020e1e3ac778a45993a67dd43d693ff229d81bd36b57b3f4 | well-typed/generics-sop | SOP.hs | # LANGUAGE PolyKinds , UndecidableInstances #
# OPTIONS_GHC -fno - warn - unused - binds #
| Main module of @generics - sop@
--
-- In most cases, you will probably want to import just this module,
and possibly " Generics . SOP.TH " if you want to use Template Haskell
-- to generate 'Generic' instances for you.
--
-... | null | https://raw.githubusercontent.com/well-typed/generics-sop/39a3badb10e11efc4f907db557f998412ffc1b2a/generics-sop/src/Generics/SOP.hs | haskell |
In most cases, you will probably want to import just this module,
to generate 'Generic' instances for you.
= Generic programming with sums of products
You need this library if you want to define your own generic functions
follows the following idea:
way: the choice between constructors is represented us... | # LANGUAGE PolyKinds , UndecidableInstances #
# OPTIONS_GHC -fno - warn - unused - binds #
| Main module of @generics - sop@
and possibly " Generics . SOP.TH " if you want to use Template Haskell
in the sum - of - products SOP style . Generic programming in the SOP style
1 . A large class of datatypes can b... |
ddfdb595ce5a02534680093ee18b94b83586412cc41960efd41e465fc00b6744 | kazu-yamamoto/bst | Matrix2.hs | module Matrix where
import System.Exit
import System.Process
main :: IO ()
main = do
FIXME
let res = (concatMap toString . map toRes . filter ok $ results)
++ "\n"
++ (concatMap toString . map toRes . filter ng $ results)
writeFile "RES" res
where
toString (x,y) = show x ++ " " +... | null | https://raw.githubusercontent.com/kazu-yamamoto/bst/d2c3d277b04d0eb7b97c5e58b709bd40755e0e54/test/Matrix2.hs | haskell | module Matrix where
import System.Exit
import System.Process
main :: IO ()
main = do
FIXME
let res = (concatMap toString . map toRes . filter ok $ results)
++ "\n"
++ (concatMap toString . map toRes . filter ng $ results)
writeFile "RES" res
where
toString (x,y) = show x ++ " " +... | |
85a8670400226f61783bf1b61bb390c369b7c4b77e35685620b4d99b2d2df208 | nicferrier/cranker | testrig.clj | (ns cranker.testrig
"Test rig for cranker - reversing the polairty of your HTTP and Websockets."
(:require [cranker.utils :refer :all])
(:require [clojure.string :as str])
(:require [clojure.core.async :refer [>!! thread]])
(:require [clojure.pprint :as pp])
(:require [taoensso.timbre :as timbre :refer (deb... | null | https://raw.githubusercontent.com/nicferrier/cranker/cee1efd2e7cfd1ea3a9bd93ba9ef73af1598c84d/src/cranker/testrig.clj | clojure | will need for socket connections
Else get
Multipart request
Looks to me like multipart is not supported by http-kit/client
check the http-client code
name=\"image\"\r
Show that the direct request works
different requests here
- with and without
parameters
headers
uploaded files
name=\"image\"\r
Ends | (ns cranker.testrig
"Test rig for cranker - reversing the polairty of your HTTP and Websockets."
(:require [cranker.utils :refer :all])
(:require [clojure.string :as str])
(:require [clojure.core.async :refer [>!! thread]])
(:require [clojure.pprint :as pp])
(:require [taoensso.timbre :as timbre :refer (deb... |
aaf4d61db3814c8b8a1f089e805230a0f327ae8a87454fd54ba945979bfc7b33 | uim/uim | skk-dialog.scm | ;;;
Copyright ( c ) 2005 - 2013 uim Project
;;;
;;; All rights reserved.
;;;
;;; 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, t... | null | https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/skk-dialog.scm | scheme |
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer in the
documen... | Copyright ( c ) 2005 - 2013 uim Project
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . Neither the name of authors nor the names of its contributors
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR... |
4091246c3cf5a3d4f65d66eec1dec9f3d87f9967d98d04570e9bccf043ae8e9f | plewto/Cadejo | subeditors.clj | (ns cadejo.ui.scale.subeditors
"Helper functions for registry-editor"
(:require [cadejo.config :as config])
(:require [cadejo.ui.util.validated-text-field :as vtf])
(:require [cadejo.ui.util.factory :as factory])
(:require [cadejo.ui.util.lnf :as lnf])
(:require [cadejo.scale.scale-utilities :as scale-util]... | null | https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/ui/scale/subeditors.clj | clojure | pan-north (ss/toolbar :orientation :horizontal
:floatable? false
:items [jb-reset jb-linear jb-invert])
(if (config/enable-button-text)
(do
(if (config/enable-button-icons)
(do | (ns cadejo.ui.scale.subeditors
"Helper functions for registry-editor"
(:require [cadejo.config :as config])
(:require [cadejo.ui.util.validated-text-field :as vtf])
(:require [cadejo.ui.util.factory :as factory])
(:require [cadejo.ui.util.lnf :as lnf])
(:require [cadejo.scale.scale-utilities :as scale-util]... |
c0ef1848650f52158b0373487c52e72d490ec5ead702fda44133b277c4803cc8 | WeiDUorg/weidu | case_ins_mac.ml | open BatteriesInit
open Hashtblinit
let case_exact = ref false
let backslash_to_slash s =
let s = Str.global_replace (Str.regexp "\\\\") "/" s in
s
Pervasives FS calls
let perv_open_out s = open_out (backslash_to_slash s) ;;
let perv_open_out_gen m i s = open_out_gen m i (backslash_to_slash s) ;;
let perv_op... | null | https://raw.githubusercontent.com/WeiDUorg/weidu/a4048b11e6904f39ea1f956a36018e5d9a6e8e5c/src/case_ins_mac.ml | ocaml | open BatteriesInit
open Hashtblinit
let case_exact = ref false
let backslash_to_slash s =
let s = Str.global_replace (Str.regexp "\\\\") "/" s in
s
Pervasives FS calls
let perv_open_out s = open_out (backslash_to_slash s) ;;
let perv_open_out_gen m i s = open_out_gen m i (backslash_to_slash s) ;;
let perv_op... | |
2a8dbf56a49077f201161dea140e43f1284ea54f2b991b5c991076c371546ee4 | cdaringe/freshawair | Config.ml | type config = {
auth_token : string;
awair_endpoint : string;
data_store_endpoint : string;
db_host : string;
db_port : int;
poll_duration_s : int;
}
| null | https://raw.githubusercontent.com/cdaringe/freshawair/b0991b39bbc794fdf7000b30331acc6ea8c08b8b/lib/agent/Config.ml | ocaml | type config = {
auth_token : string;
awair_endpoint : string;
data_store_endpoint : string;
db_host : string;
db_port : int;
poll_duration_s : int;
}
| |
943009e0f835aeac5417e2a106e642b5e766c75d1cf546d557ea447a563c4d84 | clj-kondo/clj-kondo | with_redefs.clj | (ns with-redefs
(:require [environ.core :refer [env]]
[foo :refer [some-constant]]
[utils.kafka :refer [send-message]]
[utils :refer [fn-1 fn-2 fn-3 fn-4]]))
(defn ^:private mock-fn
[& args]
args)
(defn with-updated-system
[f]
(let [updated-env (assoc env :flag true)]
... | null | https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/with_redefs.clj | clojure | (ns with-redefs
(:require [environ.core :refer [env]]
[foo :refer [some-constant]]
[utils.kafka :refer [send-message]]
[utils :refer [fn-1 fn-2 fn-3 fn-4]]))
(defn ^:private mock-fn
[& args]
args)
(defn with-updated-system
[f]
(let [updated-env (assoc env :flag true)]
... | |
fad28e64a81d4f6ffa42a568dfbfd73b218b182944e9657b68b71a03004dddc5 | Ericson2314/lighthouse | JulianYearDay.hs | {-# OPTIONS -Wall -Werror #-}
-- #hide
module Data.Time.Calendar.JulianYearDay
(
-- * Year and day format
module Data.Time.Calendar.JulianYearDay
) where
import Data.Time.Calendar.Days
import Data.Time.Calendar.Private
| convert to ISO 8601 Ordinal Day format . First element of result is year ( proleptic cale... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/time/Data/Time/Calendar/JulianYearDay.hs | haskell | # OPTIONS -Wall -Werror #
#hide
* Year and day format |
module Data.Time.Calendar.JulianYearDay
(
module Data.Time.Calendar.JulianYearDay
) where
import Data.Time.Calendar.Days
import Data.Time.Calendar.Private
| convert to ISO 8601 Ordinal Day format . First element of result is year ( proleptic calendar ) ,
second is the day of the year , with 1 for Jan 1 , and... |
c2a9e4ccf64767639041d77ff6c7e0f4bf114340accbd4ea490efb114c05a341 | 40ants/cl-prevalence | sexp.lisp |
(in-package :s-serialization)
(defun serialize-sexp (object stream &optional (serialization-state (make-serialization-state)))
"Write a serialized version of object to stream using s-expressions, optionally reusing a serialization-state"
(reset serialization-state)
(serialize-sexp-internal object stream seriali... | null | https://raw.githubusercontent.com/40ants/cl-prevalence/e6b27640ce89ae5f8af38beb740e319bb6cd2368/src/serialization/sexp.lisp | lisp | basic serializers
generic sequences
hash tables
structures
objects |
(in-package :s-serialization)
(defun serialize-sexp (object stream &optional (serialization-state (make-serialization-state)))
"Write a serialized version of object to stream using s-expressions, optionally reusing a serialization-state"
(reset serialization-state)
(serialize-sexp-internal object stream seriali... |
1a736eb17daa7778a0eed1976edf391507fb14967102388a5f9f8d07c0550cee | expipiplus1/vulkan | VK_NV_scissor_exclusive.hs | {-# language CPP #-}
-- | = Name
--
-- VK_NV_scissor_exclusive - device extension
--
-- == VK_NV_scissor_exclusive
--
-- [__Name String__]
-- @VK_NV_scissor_exclusive@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
206
--
-- [__Revision__]
1
--
-- [__Extension... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_NV_scissor_exclusive.hs | haskell | # language CPP #
| = Name
VK_NV_scissor_exclusive - device extension
== VK_NV_scissor_exclusive
[__Name String__]
@VK_NV_scissor_exclusive@
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
- Requires @VK_KHR... | 206
1
- Requires support for Vulkan 1.0
-
2018 - 07 - 31
- , NVIDIA
- , NVIDIA
- , NVIDIA
- , NVIDIA
This extension adds support for an exclusive scissor test to Vulkan . The
' Vulkan . Core11.Promoted_From_VK_KHR_get_physical_dev... |
ee104b508dd16d68943a0cecebe403bbff69824a62815558ae3a67fa439f2258 | oakmac/chessboard2 | js_api.cljs | (ns com.oakmac.chessboard2.js-api
"Functions that handle the JS API for Chessboard2"
(:require
[com.oakmac.chessboard2.api :as api]
[com.oakmac.chessboard2.config :as config]
[com.oakmac.chessboard2.constants :refer [animate-speed-strings animate-speed-strings->times start-position]]
[com.oakmac.che... | null | https://raw.githubusercontent.com/oakmac/chessboard2/3f96068a741253f449fb99ac9c9ebc7b59bcd28e/src-cljs/com/oakmac/chessboard2/js_api.cljs | clojure | remove any invalid config keys
set initial position
TODO: warn them if they pass an invalid argument to .move()
(js/console.warn "FIXME ERROR CODE: Invalid value passed to the .move() method:" arg1)
any argument of 'false' to this function means no animation
take the last function as the onComplete callback
take... | (ns com.oakmac.chessboard2.js-api
"Functions that handle the JS API for Chessboard2"
(:require
[com.oakmac.chessboard2.api :as api]
[com.oakmac.chessboard2.config :as config]
[com.oakmac.chessboard2.constants :refer [animate-speed-strings animate-speed-strings->times start-position]]
[com.oakmac.che... |
82117e7b51a70bcd4ab189fdc66d7ddffd5ebcd0804cc1953662e52d1c950866 | scrintal/heroicons-reagent | currency_bangladeshi.cljs | (ns com.scrintal.heroicons.mini.currency-bangladeshi)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:fillRule "evenodd"
:d "M10 2a8 8 0 100 16 8 8 0 000-16zM5.94 5.5c.944-.945 2.56-.276 2.56 1.0... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/currency_bangladeshi.cljs | clojure | (ns com.scrintal.heroicons.mini.currency-bangladeshi)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:fillRule "evenodd"
:d "M10 2a8 8 0 100 16 8 8 0 000-16zM5.94 5.5c.944-.945 2.56-.276 2.56 1.0... | |
fbe2bf4f7bfb35100599d134ba1e762b0cd53eafdb7be2c52a1b3ed1930d8cbc | objecthub/swift-lispkit | LispKit-Match.scm | LISPKIT MATCH REGRESSION TEST SUITE
;;;
;;; This is the test suite for library `(lispkit match)`.
;;;
Copyright © . All rights reserved .
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
1 . Redistribu... | null | https://raw.githubusercontent.com/objecthub/swift-lispkit/36bc0fc04538257c1bad9be61df0f5e6157f1f89/Sources/LispKit/Resources/Tests/LispKit-Match.scm | scheme |
This is the test suite for library `(lispkit match)`.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the follo... | LISPKIT MATCH REGRESSION TEST SUITE
Copyright © . All rights reserved .
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . The name of the author may not be used to endorse or promote products
THIS SOFTWARE IS PROVID... |
76a2c522bdbdc44e57e8a5dc8ddaede2ac95fb6722a43bff8d3a84e65f7f38f2 | matsen/pplacer | test_ppatteries.ml |
open Ppatteries
open OUnit
open Test_util
let maybe_zipped_suite =
let assert_false x = assert_equal x false
and assert_true x = assert_equal x true in
["test_maybezipped_is_gzipped" >:: begin fun() ->
assert_false (MaybeZipped.is_gzipped "test.ml");
assert_true (MaybeZipped.is_gzipped "test.ml.gz")... | null | https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/tests/pplacer/test_ppatteries.ml | ocaml |
open Ppatteries
open OUnit
open Test_util
let maybe_zipped_suite =
let assert_false x = assert_equal x false
and assert_true x = assert_equal x true in
["test_maybezipped_is_gzipped" >:: begin fun() ->
assert_false (MaybeZipped.is_gzipped "test.ml");
assert_true (MaybeZipped.is_gzipped "test.ml.gz")... | |
ce094c59524be4d631bf92bc66cecf5bd9fce48f630f6e0bf5c22ac5efa7c7f9 | techascent/tech.ml.dataset | format_sequence_test.clj | (ns tech.v3.dataset.format-sequence-test
(:require [tech.v3.dataset.format-sequence :refer [format-sequence]]
[clojure.test :refer [deftest is]]))
(def a [0.000001 0.00001 0.0001 0.001 0.01 0.1 0.0
1.0 10.0 100.0 1000.0 10000.0 100000.0])
(def b [10.0 10.1 10.11 10.111 10.1111 10.11111
1... | null | https://raw.githubusercontent.com/techascent/tech.ml.dataset/e551d1fbfe5c25ce2ce5ad1ac1878770fec26631/test/tech/v3/dataset/format_sequence_test.clj | clojure | (ns tech.v3.dataset.format-sequence-test
(:require [tech.v3.dataset.format-sequence :refer [format-sequence]]
[clojure.test :refer [deftest is]]))
(def a [0.000001 0.00001 0.0001 0.001 0.01 0.1 0.0
1.0 10.0 100.0 1000.0 10000.0 100000.0])
(def b [10.0 10.1 10.11 10.111 10.1111 10.11111
1... | |
f5b4dd9d0efa0e7a8b8f6bf6d0e52c25f0221c77df702e9695be4340bc154f0f | dgiot/dgiot | dgiot_tdengie_test.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy... | null | https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_tdengine/src/utils/dgiot_tdengie_test.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 ... | Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(dgiot_tdengie_test).
-author("jonhl").
-include_lib("dgiot/include/logger.hrl").
-exp... |
1ab16787aeebfb7a56c775c7b962594a2ad2e49a657e7fecd031c9120147aa1a | jaspervdj/lorem-markdownum | Markdown.hs | --------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module LoremMarkdownum.Gen.Markdown
( MarkdownConfig (..)
, mkDefaultMarkdownConfig
, MarkdownState (..)
, MarkdownGen
, runMarkdownGen
, Markdown
, Block (..)
, Paragraph... | null | https://raw.githubusercontent.com/jaspervdj/lorem-markdownum/fabe4e5f3094467c992b83c1f99ae01a1c3f3155/lib/LoremMarkdownum/Gen/Markdown.hs | haskell | ------------------------------------------------------------------------------
# LANGUAGE OverloadedStrings #
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------------------------------------------... | module LoremMarkdownum.Gen.Markdown
( MarkdownConfig (..)
, mkDefaultMarkdownConfig
, MarkdownState (..)
, MarkdownGen
, runMarkdownGen
, Markdown
, Block (..)
, Paragraph
, Sentence
, genMarkdown
, genSection
, genParagraph
, genOrderedList
, genUnorderedList
... |
181f453893a96c907277d667bf10de11187f3e3b1099dce133bc0d44e3f72ab6 | talw/crisp-compiler | Codegen.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
module Codegen where
import Data.Word
import Data.List
import Data.Function
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (listToMaybe)
import Control.Monad.State
import Control.Monad.Tr... | null | https://raw.githubusercontent.com/talw/crisp-compiler/1c4d6e9897520e8089ae329d961aeeeadc4648a4/src/Codegen.hs | haskell | # LANGUAGE OverloadedStrings #
-----------------------------------------------------------------------------
Module Level
-----------------------------------------------------------------------------
-------------------------------------------------------------------------------
Types
--------------------------------... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
module Codegen where
import Data.Word
import Data.List
import Data.Function
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (listToMaybe)
import Control.Monad.State
import Control.Monad.Trans.Maybe (MaybeT(..))
import Contr... |
174667bf24d36962abb353025bde50f626f9e6752a3cf0f47e3675b5cd54215f | haskell/haskell-ide-engine | GhcCompat.hs | Copyright 2017 Google 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 copy of the License at
--
-- -2.0
--
-- Unless required by applicable law or agreed to in writing, software
distributed un... | null | https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/hie-plugin-api/Haskell/Ide/Engine/GhcCompat.hs | haskell |
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 perm... | Copyright 2017 Google Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
# LANGUAGE CPP #
# LANGUAGE ExistentialQuantification #
# LANGUAGE PatternSynonyms #
# LANGUAGE ViewPatterns #
# LANGUAGE FlexibleContexts #
# LANG... |
e0d1e0cc338cde06b014c6c01402e57da5684b0a37aefacf240bc850716e88a8 | BillHallahan/G2 | M45.hs | {-@ LIQUID "--no-termination" @-}
module M45 (main) where
data List a = Cons a (List a) | Nil
@ main : : List Bool - > List Bool - > List ( List ) - > Int - > { b : | b } @
main :: List Bool -> List Bool -> List (List Bool) -> Int -> Bool
main xs ys zs flag =
case while1 xs cond1 (loop1 flag) (0, 0, 0, 0) of
... | null | https://raw.githubusercontent.com/BillHallahan/G2/f2584eb2ec211aed73b3ccd88c6e232c3cf4386d/tests/LiquidInf/Paper/Eval/Compare/M45.hs | haskell | @ LIQUID "--no-termination" @
@ cond1 :: List Bool -> (Int, Int, Int, Int) -> Bool @
@ loop1 :: Int -> (Int, Int, Int, Int) -> (Int, Int, Int, Int) @
@ loop2 :: List Bool -> (Int, Int, Int, Int) -> (Int, Int, Int, Int) @ |
module M45 (main) where
data List a = Cons a (List a) | Nil
@ main : : List Bool - > List Bool - > List ( List ) - > Int - > { b : | b } @
main :: List Bool -> List Bool -> List (List Bool) -> Int -> Bool
main xs ys zs flag =
case while1 xs cond1 (loop1 flag) (0, 0, 0, 0) of
(x, y, i, j) ->
... |
c4b31579f9cf3171cc8a1c2e307c4138294b77bb4a5778f07d5c1181fd25a362 | LdBeth/keim | package.lisp | (in-package #:cl-user)
(defpackage #:keim
(:use #:cl #:ags))
| null | https://raw.githubusercontent.com/LdBeth/keim/ed2665d3b0d9a78eaa88b5a2940a4541f0750926/keim/prog/base/package.lisp | lisp | (in-package #:cl-user)
(defpackage #:keim
(:use #:cl #:ags))
| |
f81bb3a5c10b5bdae4f1b40e29480f0b791f1a843cb36bfb8f56fc83dafb8860 | nh2/network-house | IPv6.hs | module Net.IPv6 where
IPv6 , Internet Protocol version 6
-- See
import Net.Bits
import Net.IPv4(Protocol)
import Net.PacketParsing
data Addr = Addr !Word16 !Word16 !Word16 !Word16 !Word16 !Word16 !Word16 !Word16
deriving (Eq)
instance Parse Addr where
parse = Addr # parse <# parse <# parse <# parse
... | null | https://raw.githubusercontent.com/nh2/network-house/f31b6af230069f21928aae2b7242eb2c53e4d678/Net/IPv6.hs | haskell | See
+ extension headers!
The next_header field of the last extention header
determines the type of content! | module Net.IPv6 where
IPv6 , Internet Protocol version 6
import Net.Bits
import Net.IPv4(Protocol)
import Net.PacketParsing
data Addr = Addr !Word16 !Word16 !Word16 !Word16 !Word16 !Word16 !Word16 !Word16
deriving (Eq)
instance Parse Addr where
parse = Addr # parse <# parse <# parse <# parse
... |
4d8a04f062408b2e793526b0776f6485724c8c20995d9c798fb003511dfe7cce | hurryabit/pukeko | Prelude.hs | # LANGUAGE UndecidableInstances #
module Pukeko.Prelude
( module X
, True
, False
, MemberST
, Failure
, CanThrowHere
, throwFailure
, renderFailure
, throwAt
, throwHere
, bug
, bugWith
, assert
, assertM
, impossible
, traceJSON
, serdeJsonOptions
) where
import Prelude as X
i... | null | https://raw.githubusercontent.com/hurryabit/pukeko/d11a101a41123c5151bcdd7dd2d0ef53c65483c2/src/Pukeko/Prelude.hs | haskell | # LANGUAGE UndecidableInstances #
module Pukeko.Prelude
( module X
, True
, False
, MemberST
, Failure
, CanThrowHere
, throwFailure
, renderFailure
, throwAt
, throwHere
, bug
, bugWith
, assert
, assertM
, impossible
, traceJSON
, serdeJsonOptions
) where
import Prelude as X
i... | |
5333712fc8b7af4e5dbb871352cde10ea271c87f15854d4628fed54affa95f7a | runtimeverification/haskell-backend | Defined.hs | module Test.Kore.Attribute.Pattern.Defined (
test_instance_Synthetic,
) where
import Data.Maybe (
fromJust,
)
import Kore.Attribute.Pattern.Defined
import Kore.Attribute.Synthetic
import Kore.Builtin.AssociativeCommutative qualified as Ac
import Kore.Internal.InternalSet
import Kore.Internal.TermLike (
Ke... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Attribute/Pattern/Defined.hs | haskell | Interesting cases | module Test.Kore.Attribute.Pattern.Defined (
test_instance_Synthetic,
) where
import Data.Maybe (
fromJust,
)
import Kore.Attribute.Pattern.Defined
import Kore.Attribute.Synthetic
import Kore.Builtin.AssociativeCommutative qualified as Ac
import Kore.Internal.InternalSet
import Kore.Internal.TermLike (
Ke... |
94c83ecd4ecd60364c7a0c6d9e548ed6c35efec463b0a6c39f535ac678cb2d77 | clojure/core.typed | fn.clj | Copyright ( c ) , contributors .
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (-1.0.php)
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;... | null | https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/check/fn.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) , contributors .
(ns ^:skip-wiki clojure.core.typed.checker.check.fn
(:require [clojure.core.typed :as t]
[clojure.core.typed.checker.type-rep :as r]
[clojure.core.typed.checker.utils :as u]
[clojure.core.typed.checker.filter-ops :as fo]
[clo... |
22c35b6b2b4415831555ce8cb343e2e97fa753afffebdfde80300253553597a6 | OlafChitil/hat | List.hs | module Hat.Data.List
((!++), (+++), (*++), ghead, ahead, hhead, glast,
alast, hlast, gtail, atail, htail, ginit, ainit,
hinit, gnull, anull, hnull, glength, alength,
hlength, gmap, amap, hmap, greverse, gintersperse,
aintersperse, hintersperse, gintercalate,
aintercalate, ... | null | https://raw.githubusercontent.com/OlafChitil/hat/8840a480c076f9f01e58ce24b346850169498be2/Hat/Data/List.hs | haskell | module Hat.Data.List
((!++), (+++), (*++), ghead, ahead, hhead, glast,
alast, hlast, gtail, atail, htail, ginit, ainit,
hinit, gnull, anull, hnull, glength, alength,
hlength, gmap, amap, hmap, greverse, gintersperse,
aintersperse, hintersperse, gintercalate,
aintercalate, ... | |
b51f908f56a9a2a313e0708904428c48d0ee64425724ddec23296dc49a8d5434 | openbadgefactory/salava | schemas.cljc | (ns salava.admin.schemas
(:require [schema.core :as s
:include-macros true] ;; cljs only
[salava.core.countries :refer [all-countries]]
[salava.user.schemas :as u]))
#_(s/defschema Stats {:register-users (s/maybe s/Int)
:last-month-active-users (s/maybe s/I... | null | https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljc/salava/admin/schemas.cljc | clojure | cljs only
:6monthlogincount (s/maybe s/Int) | (ns salava.admin.schemas
(:require [schema.core :as s
[salava.core.countries :refer [all-countries]]
[salava.user.schemas :as u]))
#_(s/defschema Stats {:register-users (s/maybe s/Int)
:last-month-active-users (s/maybe s/Int)
:last-month-registered... |
17cb0a1c32ae621fd5cf5160b864f765e5b5a70c7744d37aa5cbd3a2484bcdf6 | brendanhay/amazonka | PillarReviewSummary.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE StrictData #-}
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived fr... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wellarchitected/gen/Amazonka/WellArchitected/Types/PillarReviewSummary.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
| A pillar review summary of a lens review.
/See:/ 'newPillarReviewSummary' smart constructor.
|
The following record fields are available, with the corresponding lenses provided
for backwards compatibility:
'notes', 'pill... | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived from AWS service descriptions , licensed under Apache 2.0 .
Mo... |
e4e465f9a2ce90056dd04f36f41556c2fbaeb7852453be384f59f50481f19bc7 | danabr/cop | cop.erl | encoding : utf-8
@doc Cop - a constraint programming engine implemented in Erlang .
-module(cop).
-include("include/cop.hrl").
-export([model/4, search_all/1, search_all/2, search_next/1, search_next/2, branch/3]).
% Returns a new space describing the given model.
Vars should be a list of variables in the model... | null | https://raw.githubusercontent.com/danabr/cop/4fc5ec262bc01df1b519b87dcdcab916d17c468f/src/cop.erl | erlang | Returns a new space describing the given model.
Propagators should be a list of propagators defining the constraints of the model.
Branchers should be a list of branchers describing how to create the search tree.
Finds all solutions in the given space's subtree.
representing all solutions to the problem, and Leave... | encoding : utf-8
@doc Cop - a constraint programming engine implemented in Erlang .
-module(cop).
-include("include/cop.hrl").
-export([model/4, search_all/1, search_all/2, search_next/1, search_next/2, branch/3]).
Vars should be a list of variables in the model .
SearchMethod should be either the atom dfs , ... |
89ef2af93e80f5aaf5b5e54b19be0b12690819f75181c39840e307bbc11b941e | nubank/midje-nrepl | formatter.clj | (ns midje-nrepl.formatter
(:require [clojure.string :as string]
[rewrite-clj.custom-zipper.utils
:refer
[remove-left-while remove-right-while]]
[rewrite-clj.zip :as zip]
[rewrite-clj.zip.whitespace :as whitespace]
[clojure.string :as string]
... | null | https://raw.githubusercontent.com/nubank/midje-nrepl/b4d505f346114db88ad5b5c6b3c8f0af4e0136fc/src/midje_nrepl/formatter.clj | clojure | (ns midje-nrepl.formatter
(:require [clojure.string :as string]
[rewrite-clj.custom-zipper.utils
:refer
[remove-left-while remove-right-while]]
[rewrite-clj.zip :as zip]
[rewrite-clj.zip.whitespace :as whitespace]
[clojure.string :as string]
... | |
170d9ca41e721c4864b2a7cabae919523f50073e64b4c850951e93cf4fa66257 | arcfide/chez-srfi | testing.sps | #!r6rs
Copyright 2010 . My MIT - style license is in the file named
;; LICENSE from the original collection this file is distributed with.
(import
(except (rnrs base) error)
(rnrs lists)
(srfi :23 error)
(srfi private include)
(srfi :64 testing))
(include/resolve ("srfi" "%3a64") "srfi-64-test.scm")
| null | https://raw.githubusercontent.com/arcfide/chez-srfi/96fb553b6ba0834747d5ccfc08c181aa8fd5f612/tests/testing.sps | scheme | LICENSE from the original collection this file is distributed with. | #!r6rs
Copyright 2010 . My MIT - style license is in the file named
(import
(except (rnrs base) error)
(rnrs lists)
(srfi :23 error)
(srfi private include)
(srfi :64 testing))
(include/resolve ("srfi" "%3a64") "srfi-64-test.scm")
|
2da1f05fb7e1a30cf25bb3a604ad81701ec17b868e866c941ce86ad2bb19c25f | schell/gelatin | Shapes.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
{-# LANGUAGE TypeSynonymInstances #-}
module Gelatin.Picture.Shapes where
import Control.Monad.State.Strict
import Data.Vector.Unboxed (Unbox)
import qualified Data.Vector.Unboxed ... | null | https://raw.githubusercontent.com/schell/gelatin/04c1c83d4297eac4f4cc5e8e5c805b1600b3ee98/gelatin/src/Gelatin/Picture/Shapes.hs | haskell | # LANGUAGE TypeSynonymInstances #
------------------------------------------------------------------------------
Shapes (at the level of Vertices)
------------------------------------------------------------------------------
| Create an arched sequence of vertices along an ellipse.
^ Width of the ellipse.
^ Height... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
module Gelatin.Picture.Shapes where
import Control.Monad.State.Strict
import Data.Vector.Unboxed (Unbox)
import qualified Data.Vector.Unboxed as V
import Gelatin.Core
imp... |
573e6a1d6b2ef294c453c79585484412620ba1b6d34b1d2dabb32918884cbc16 | jeffshrager/biobike | cr-genetic-name-code.lisp | (in-package :bio)
(defun remove-crs-from-orgs ()
(loop for org in (available-organisms)
as dir = (#^organism-data-directory org)
as genes-dir = (append-subdir dir "genes")
as genes-file = (merge-pathnames "genes.tbl" genes-dir)
as oldfile = (merge-pathnames "old-genes.tbl" genes-dir)
... | null | https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Organisms/cr-genetic-name-code.lisp | lisp | (in-package :bio)
(defun remove-crs-from-orgs ()
(loop for org in (available-organisms)
as dir = (#^organism-data-directory org)
as genes-dir = (append-subdir dir "genes")
as genes-file = (merge-pathnames "genes.tbl" genes-dir)
as oldfile = (merge-pathnames "old-genes.tbl" genes-dir)
... | |
43fd27c8a3ad335b4c68986950c8b428939c120340588ce05c162fd58a99c4a3 | racket/plot | info.rkt | #lang info
(define collection 'multi)
(define deps '("base"
"plot-lib"
"math-lib"
["gui-lib" #:version "1.18"]
"snip-lib"
"typed-racket-lib"
"typed-racket-more"))
(define build-deps '())
(define pkg-desc "Plot GUI interface")
... | null | https://raw.githubusercontent.com/racket/plot/20f4a99fa43b84aa72fdc58b2ae357dbf5199d1a/plot-gui-lib/info.rkt | racket | #lang info
(define collection 'multi)
(define deps '("base"
"plot-lib"
"math-lib"
["gui-lib" #:version "1.18"]
"snip-lib"
"typed-racket-lib"
"typed-racket-more"))
(define build-deps '())
(define pkg-desc "Plot GUI interface")
... | |
275e51b9b60029895fafbc126e399800ac560d5a07f2600259015f2174ac21a2 | wargrey/graphics | multiple-composite.rkt | #lang typed/racket
(require "../../constructor.rkt")
(require "../../composite.rkt")
(require "../../font.rkt")
(require "../../color.rkt")
(require "../../paint.rkt")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define ring-thickness : Flonum 32.0)
(define ring... | null | https://raw.githubusercontent.com/wargrey/graphics/1ef71dead83418339c6da8dd3cc26d45f6290cba/bitmap/tamer/composite/multiple-composite.rkt | racket | #lang typed/racket
(require "../../constructor.rkt")
(require "../../composite.rkt")
(require "../../font.rkt")
(require "../../color.rkt")
(require "../../paint.rkt")
(define ring-thickness : Flonum 32.0)
(define ring-colors : (Listof Symbol) '(royalblue crimson lime purple chocolate khaki))
(define monospace : Font... | |
02c00c1c87f250e8f302c9ea9ec39217dfb02a7ec2ed100188c0c9b9b13c7459 | steveshogren/cis-194-yorgey-course | Guesser.hs | module Guesser (winner, identify, parseHand, Suit(..), Hand(..), FaceValue(..), Card(..)) where
import Data.List
import Data.Maybe
import Data.Either
import Control.Monad
import Helpers
data Suit = Clubs | Spades | Hearts | Diamonds
deriving (Eq, Ord, Show)
type FaceValue = Int
data Hand = HighCard Card
... | null | https://raw.githubusercontent.com/steveshogren/cis-194-yorgey-course/01592a39cdacccaba0438b1cc3c9e176b1b098b2/chap12/Guesser.hs | haskell | parse "H2" | module Guesser (winner, identify, parseHand, Suit(..), Hand(..), FaceValue(..), Card(..)) where
import Data.List
import Data.Maybe
import Data.Either
import Control.Monad
import Helpers
data Suit = Clubs | Spades | Hearts | Diamonds
deriving (Eq, Ord, Show)
type FaceValue = Int
data Hand = HighCard Card
... |
0d3776127a70bf15f71f2f911fbfbdbe0126aa830ffb8bcaf07f396055619d0f | andrewMacmurray/haskell-book-solutions | uniqueInhabitants.hs | module UniqueInhabitants where
data Quad =
One
| Two
| Three
| Four
deriving (Eq, Show)
product type , has 4 * 4 ( 16 ) unique inhabitants
eQuad :: Either Quad Quad
eQuad = undefined
-- same as above but is an anonymous product
prodQuad :: (Quad, Quad)
prodQuad = undefined
-- functions obey exponenti... | null | https://raw.githubusercontent.com/andrewMacmurray/haskell-book-solutions/f4fd386187c03828d1736d9a43642ab4f0ec6462/src/ch11/uniqueInhabitants.hs | haskell | same as above but is an anonymous product
functions obey exponential laws for cardinality | module UniqueInhabitants where
data Quad =
One
| Two
| Three
| Four
deriving (Eq, Show)
product type , has 4 * 4 ( 16 ) unique inhabitants
eQuad :: Either Quad Quad
eQuad = undefined
prodQuad :: (Quad, Quad)
prodQuad = undefined
4 ^ 4 ( 256 )
funcQuad :: Quad -> Quad
funcQuad = undefined
2 * 2 *... |
4624108ee2c5cac85c836a625f9c6b6b3f104313f5deb2ebd329b68592d3eeac | seanirby/koeeoadi | core_test.clj | (ns todo.core-test
(:require [clojure.test :refer :all]
[todo.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| null | https://raw.githubusercontent.com/seanirby/koeeoadi/481dc31e023e0a54ee5248bd2ef06a56e7d1d64d/test/todo/core_test.clj | clojure | (ns todo.core-test
(:require [clojure.test :refer :all]
[todo.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| |
a2852e435c7f7b936a97238e01ca206adf695d9bae2cdb414de43c4cfaa88bf6 | wavewave/hoodle | Type.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
module Graphics.Hoodle.Render.Type
( module Graphics.Hoodle.Render.Type.Background,
module Graphics.Hoodle.Render.Type.Hoodle,
module Graphics.Hoodle.Render.Type.Item,
module Graphics.Hoodle.Render.Type.Renderer,
module Graphics.Hoodle.Rend... | null | https://raw.githubusercontent.com/wavewave/hoodle/d5c8787d1e4c1ddaa41836a26e251f3716a59e34/render/src/Graphics/Hoodle/Render/Type.hs | haskell | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
module Graphics.Hoodle.Render.Type
( module Graphics.Hoodle.Render.Type.Background,
module Graphics.Hoodle.Render.Type.Hoodle,
module Graphics.Hoodle.Render.Type.Item,
module Graphics.Hoodle.Render.Type.Renderer,
module Graphics.Hoodle.Rend... | |
39d568cb351b78f8e15ea99b05596944943da02adf1668c02fff7e87eba3f3be | flosell/lambdacd | utils.cljs | (ns lambdacd.utils
(:require [cljs.core.async :as async]
[clojure.string :as string]
[clojure.walk :as walk]))
(defn click-handler [handler]
(fn [evt]
(handler)
(.stopPropagation evt)))
(defn append-components [a b]
(vec (concat a b)))
(defn classes [& cs]
(if (vector? (first ... | null | https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/src/cljs/lambdacd/utils.cljs | clojure | (ns lambdacd.utils
(:require [cljs.core.async :as async]
[clojure.string :as string]
[clojure.walk :as walk]))
(defn click-handler [handler]
(fn [evt]
(handler)
(.stopPropagation evt)))
(defn append-components [a b]
(vec (concat a b)))
(defn classes [& cs]
(if (vector? (first ... | |
43ae769f1e31ed2b33d8135c5cce4c498916719b764756d7c3ce2896f4b2722a | fuchsto/drool | ViewOptions.hs | -----------------------------------------------------------------------------
--
Module : ViewOptions
-- Copyright :
License : MIT
--
Maintainer :
-- Stability : experimental
-- Portability : Win32, POSIX
--
-- |
--
-----------------------------------------------------------------------... | null | https://raw.githubusercontent.com/fuchsto/drool/d9318c641a6a94a8450b5118db7b3213a93209ea/src/Drool/UI/ViewOptions.hs | haskell | ---------------------------------------------------------------------------
Copyright :
Stability : experimental
Portability : Win32, POSIX
|
---------------------------------------------------------------------------
# OPTIONS -O2 -Wall #
Initializes GUI component for view options.
Lights | Module : ViewOptions
License : MIT
Maintainer :
module Drool.UI.ViewOptions (
initComponent, updateSettings
) where
import Data.IORef
import qualified Graphics.UI.Gtk as Gtk
import qualified Graphics.UI.Gtk.Builder as GtkBuilder
import Graphics.Rendering.OpenGL
import qualified Drool.... |
0dbbb0e6eac02c84143f2c0800a686a9fc0b04a928b5281b49c8f5a721064c48 | mtolly/pokemid | MidiToAssembly.hs | {-# LANGUAGE CPP #-}
# LANGUAGE DeriveFunctor #
module MidiToAssembly where
import qualified Assembly as A
import qualified Midi as M
-- event-list
import qualified Data.EventList.Relative.TimeBody as RTB
-- non-negative
import qualified Numeric.NonNegative... | null | https://raw.githubusercontent.com/mtolly/pokemid/698d0fe939ed4adac80c517d281da9637ae09b69/src/MidiToAssembly.hs | haskell | # LANGUAGE CPP #
event-list
non-negative
containers
base
| A more standard fraction string.
| All possible lengths that can be encoded in the music engine format.
speed=1 ticks=1 breaks the engine for some reason,
the note/rest lasts much longer than it should.
| The set of all note lengths that can ... | # LANGUAGE DeriveFunctor #
module MidiToAssembly where
import qualified Assembly as A
import qualified Midi as M
import qualified Data.EventList.Relative.TimeBody as RTB
import qualified Numeric.NonNegative.Class as NNC
import qualified Numeric.NonNegative.Wra... |
68d855d69c36ea71f018ee826c184cb00e1b41af1d31bbf5dbb948184d7849ea | oetr/racket-opencv | VideoSobel.rkt | #! /usr/bin/env racket
#lang racket
Author :
Date : 2013
Description : detection on camera images
Tested with iSight camera of my MacBook Pro
;;; Includes
(require opencv/core
opencv/types
opencv/highgui
opencv/imgproc
opencv/videoio)
;; Open video capture of camera 0
(... | null | https://raw.githubusercontent.com/oetr/racket-opencv/8124eb6b620769137656547e83f9d9587ab37c23/tutorials/03_imgproc/VideoSobel.rkt | racket | Includes
Open video capture of camera 0
Get parameters from the captured image to initialize
copied images
it must have a higher bit width than 8U of the original image
because of potential overflow
so that we can display and modify it
Show the frame on the screen
Break out from the loop if any key has been pr... | #! /usr/bin/env racket
#lang racket
Author :
Date : 2013
Description : detection on camera images
Tested with iSight camera of my MacBook Pro
(require opencv/core
opencv/types
opencv/highgui
opencv/imgproc
opencv/videoio)
(define capture (cvCaptureFromCAM 0))
Init va... |
bdec2c46f42a2eb2cec990b88af2f29748b20362b7c3a790f8ec0cebfec687e0 | manuel-serrano/bigloo | lambda.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / comptime / Expand / lambda.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Expand/lambda.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The lambda macro-expansion. */
*===========================... | * serrano / prgm / project / bigloo / comptime / Expand / lambda.scm * /
* Author : * /
* Creation : We d Dec 28 15:44:53 1994 * /
* Last change : Mon Oct 18 08:37:41 2010 ( serrano ) * /
* Cop... |
0ca62f3b0021075f72f0e94986412530f2210dd87478cf79f293dd6ea953f9ca | matsen/pplacer | test_gaussian.ml | open OUnit
open Test_util
let rng = make_rng 1
let n_samples = 1000
let criterion = Placement.ml_ratio
let weighting = Mass_map.Spread
let p = 1.
(* Just a little regression test. *)
let test_gaussian correct fname1 fname2 =
let pr1 = Placerun_io.of_any_file (tests_dir^fname1)
and pr2 = Placerun_io.of_any_file (t... | null | https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/tests/guppy/test_gaussian.ml | ocaml | Just a little regression test. | open OUnit
open Test_util
let rng = make_rng 1
let n_samples = 1000
let criterion = Placement.ml_ratio
let weighting = Mass_map.Spread
let p = 1.
let test_gaussian correct fname1 fname2 =
let pr1 = Placerun_io.of_any_file (tests_dir^fname1)
and pr2 = Placerun_io.of_any_file (tests_dir^fname2)
in
let t = Place... |
25628914e9a2da6f0a39ceaa56a174903168de30b1923c88118c7633e2d0dc39 | srid/emanote.obelisk | Parser.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveFunctor #
{-# LANGUAGE GADTs #-}
module Emanote.Markdown.WikiLink.Parser
( wikiLinkSpec,
WikiLinkID,
WikiLinkLabel (..),
WikiLinkContext,
parseWikiLinkUrl,
renderWikiLinkUrl,
Directed (..),
isParent,
isBranch,
isReverse,
)
where
import qu... | null | https://raw.githubusercontent.com/srid/emanote.obelisk/de935cff82fc57085adef1904094c7129c02d995/lib/emanote/src/Emanote/Markdown/WikiLink/Parser.hs | haskell | # LANGUAGE GADTs #
All neuron type links; not propagating link type for now. | # LANGUAGE DataKinds #
# LANGUAGE DeriveFunctor #
module Emanote.Markdown.WikiLink.Parser
( wikiLinkSpec,
WikiLinkID,
WikiLinkLabel (..),
WikiLinkContext,
parseWikiLinkUrl,
renderWikiLinkUrl,
Directed (..),
isParent,
isBranch,
isReverse,
)
where
import qualified Commonmark as C... |
cff5af6fc519877c54a5dcf534b99921db678bcf6f2f9beb0448d13941e1027a | TrustInSoft/tis-interpreter | allocates.ml | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_internals/typing/allocates.ml | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
680a8e0bd3814b4fdfbf0a740dcef8819c884e3b1e64fc6106ff1987147803ef | let-def/ttx | ttx_types.ml | open Ttx_def
class virtual ['self] binding_iter = object (self : 'self)
inherit ['self] Binding.iter
method visit_vd_type_binding = self#visit_binding
method visit_vc_def_binding = self#visit_binding
method visit_rl_def_binding = self#visit_binding
method visit_td_body_binding = self#visit_binding
method v... | null | https://raw.githubusercontent.com/let-def/ttx/0a50ba7253056d1202f108b67faf4d9cc78e020d/lib/ttx/ttx_types.ml | ocaml | type
type
type
type | open Ttx_def
class virtual ['self] binding_iter = object (self : 'self)
inherit ['self] Binding.iter
method visit_vd_type_binding = self#visit_binding
method visit_vc_def_binding = self#visit_binding
method visit_rl_def_binding = self#visit_binding
method visit_td_body_binding = self#visit_binding
method v... |
c9ab635431a3c52a17bda989caac28c12200cbff3c90406c33dfa2d2aa83c68f | expipiplus1/vulkan | Promoted_From_VK_EXT_subgroup_size_control.hs | {-# language CPP #-}
-- No documentation found for Chapter "Promoted_From_VK_EXT_subgroup_size_control"
module Vulkan.Core13.Promoted_From_VK_EXT_subgroup_size_control ( PhysicalDeviceSubgroupSizeControlFeatures(..)
, PhysicalDeviceSubgroupSizeControlPro... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Core13/Promoted_From_VK_EXT_subgroup_size_control.hs | haskell | # language CPP #
No documentation found for Chapter "Promoted_From_VK_EXT_subgroup_size_control"
| VkPhysicalDeviceSubgroupSizeControlFeatures - Structure describing the
subgroup size control features that can be supported by an
implementation
= Members
This structure describes the following features:
= Descr... | module Vulkan.Core13.Promoted_From_VK_EXT_subgroup_size_control ( PhysicalDeviceSubgroupSizeControlFeatures(..)
, PhysicalDeviceSubgroupSizeControlProperties(..)
, PipelineShaderStageRequir... |
80658f786e1604179ac3fc241d6bce82a0438b2914c96820ba33921679ecda93 | mzp/coq-ide-for-ios | micromega_plugin_mod.ml | let _=Mltop.add_known_module"Sos_types"
let _=Mltop.add_known_module"Mutils"
let _=Mltop.add_known_module"Micromega"
let _=Mltop.add_known_module"Mfourier"
let _=Mltop.add_known_module"Certificate"
let _=Mltop.add_known_module"Persistent_cache"
let _=Mltop.add_known_module"Coq_micromega"
let _=Mltop.add_known_mo... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/micromega/micromega_plugin_mod.ml | ocaml | let _=Mltop.add_known_module"Sos_types"
let _=Mltop.add_known_module"Mutils"
let _=Mltop.add_known_module"Micromega"
let _=Mltop.add_known_module"Mfourier"
let _=Mltop.add_known_module"Certificate"
let _=Mltop.add_known_module"Persistent_cache"
let _=Mltop.add_known_module"Coq_micromega"
let _=Mltop.add_known_mo... | |
b61ce009c00666bcfa887fb19b1299b9a288d39f91cd2600a5c83f8cb84ee2a1 | hspec/HUnit | Lang.hs | # LANGUAGE CPP #
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE FlexibleContexts #
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE ConstraintKinds #-}
#define HasCallStack_ HasCallStack =>
#else
#define HasCallStack_
#endif
module Test.HUnit.Lang (
Assertion,
assertFailure,
assertEqual,
Result (..),
performTes... | null | https://raw.githubusercontent.com/hspec/HUnit/f28ba094f18504579fa29efe247af3a31108cd3c/src/Test/HUnit/Lang.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE ConstraintKinds #
* Internals
|
/Note:/ This is not part of the public API! It is exposed so that you can
| When an assertion is evaluated, it will output a message if and only if the
assertion fails.
| Unconditionally signals that a failure has occurred.
^ A message ... | # LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
#if __GLASGOW_HASKELL__ >= 704
#define HasCallStack_ HasCallStack =>
#else
#define HasCallStack_
#endif
module Test.HUnit.Lang (
Assertion,
assertFailure,
assertEqual,
Result (..),
performTestCase,
tinker with the internals of HUnit , but do not expect it to... |
b79230098723e67e42f92da7854e071f15f68604310314872d0f460f79bd79db | facebookarchive/pfff | ast_nw.ml |
type program = Ast_fuzzy.trees
| null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_nw/parsing/ast_nw.ml | ocaml |
type program = Ast_fuzzy.trees
| |
54515b33792d30bbbafef0842248192139cfdaa6e5b5c97e70262ea65097e23d | melange-re/melange | test_cpp.ml | # 1 "test.tpl.ml"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 328 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test.tpl.ml" 2
type t = int
let f (x : t) y = Pervasives.compare x y
| null | https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/test_cpp.ml | ocaml | # 1 "test.tpl.ml"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 328 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test.tpl.ml" 2
type t = int
let f (x : t) y = Pervasives.compare x y
| |
75280887c0778d4e7c61419d406b8b8e5317441ad267a5df3b8d2c8c35683572 | racket/old-plt | parse-quasi.scm | ;; This library is used by match.ss
(module parse-quasi mzscheme
(provide (all-defined))
(require "match-error.ss"
"match-helper.ss"
(lib "etc.ss")
(lib "stx.ss" "syntax"))
(require-for-template mzscheme
"match-error.ss"
"match-he... | null | https://raw.githubusercontent.com/racket/old-plt/a580d75deae2a0d2f3d8a93bc3c4f8f1f619b5b7/collects/mzlib/private/parse-quasi.scm | scheme | This library is used by match.ss
Raise an error from a quasi-pattern
!(function parse-quasi
(form (parse-quasi syn) -> syntax)
(contract syntax -> syntax))
This function parses a quasi pattern in to a regular pattern
and returns it. This function does not parse the quasi pattern
recursively in... | (module parse-quasi mzscheme
(provide (all-defined))
(require "match-error.ss"
"match-helper.ss"
(lib "etc.ss")
(lib "stx.ss" "syntax"))
(require-for-template mzscheme
"match-error.ss"
"match-helper.ss"
(li... |
e51f26d5229f513d1f9566c255a2ee18cf256fbde5e83a6e13e4f1eec34d4006 | erlio/vmq_server | vmq_graphite.erl | Copyright 2016 Erlio GmbH Basel Switzerland ( )
%%
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/erlio/vmq_server/d008c6dcc62fe985d08456caa4024750e1febf38/src/vmq_graphite.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.
See the License for the specific language governing perm... | Copyright 2016 Erlio GmbH Basel Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_graphite).
-behaviour(gen_server).
-export([start_link/0]).
-export([init/1,
handle_call/3,
... |
3576c5198e0d98021cc4f9e6a7b98a5374a562a16ec93e0821a53ccaaf430c41 | webnf/dwn | reader.clj | (ns webnf.dwn.mvn.reader
(:require [clojure.java.io :as io]
[clojure.pprint :as pp]
[webnf.nix.data :as nix-data])
(:import
org.apache.maven.model.io.xpp3.MavenXpp3Reader))
(defn read-model [path]
(with-open [rdr (io/reader path)]
(.read (MavenXpp3Reader.) rdr)))
(def exclusion
... | null | https://raw.githubusercontent.com/webnf/dwn/31ae2b016d2e2978a4f08c0201572225dc72eb53/src/mvn.reader/src/webnf/dwn/mvn/reader.clj | clojure | (ns webnf.dwn.mvn.reader
(:require [clojure.java.io :as io]
[clojure.pprint :as pp]
[webnf.nix.data :as nix-data])
(:import
org.apache.maven.model.io.xpp3.MavenXpp3Reader))
(defn read-model [path]
(with-open [rdr (io/reader path)]
(.read (MavenXpp3Reader.) rdr)))
(def exclusion
... | |
386b9f2016a24925d6871c9e3d9e9fe1961c25caae3ad21aed3888692a52bc37 | derekmcloughlin/pearls | chap14f.hs | import Data.List
import Debug.Trace
debug = flip trace
maxtail :: Ord a => [a] -> [a]
maxtail = foldl op []
op :: Ord a => [a] -> a -> [a]
op ys x = maximum [zs ++ [x] | zs <- borders ys]
Borders
borders :: Ord a => [a] -> [[a]]
borders [] = [[]]
borders xs = xs : borders (border xs)
-- Border... | null | https://raw.githubusercontent.com/derekmcloughlin/pearls/42bc6ea0fecc105386a8b75789f563d44e05b772/chap14/chap14f.hs | haskell | Border
Cocktail
Reducing the problem size
| import Data.List
import Debug.Trace
debug = flip trace
maxtail :: Ord a => [a] -> [a]
maxtail = foldl op []
op :: Ord a => [a] -> a -> [a]
op ys x = maximum [zs ++ [x] | zs <- borders ys]
Borders
borders :: Ord a => [a] -> [[a]]
borders [] = [[]]
borders xs = xs : borders (border xs)
after :... |
78978de2feb47db584d146ae48289fe07c0314af416d7995ae6ce56c4045d0ac | agda/agda | Pretty.hs |
{-| Pretty printing functions.
-}
module Agda.Utils.Pretty
( module Agda.Utils.Pretty
, module Text.PrettyPrint
-- This re-export can be removed once <GHC-8.4 is dropped.
, module Data.Semigroup
) where
import Prelude hiding (null)
import qualified Data.Foldable as Fold
import Data.Int (Int32)
im... | null | https://raw.githubusercontent.com/agda/agda/dd89d485c366053393bceff9a3dd1e4eddcd9aca/src/full/Agda/Utils/Pretty.hs | haskell | | Pretty printing functions.
This re-export can be removed once <GHC-8.4 is dropped.
* Pretty class
'Pretty' is for displaying data to the world, i.e., the
user and the environment.
Atomic data has no inner document structure, so just
| Use instead of 'show' when printing to world.
* Pretty instances
* ... |
module Agda.Utils.Pretty
( module Agda.Utils.Pretty
, module Text.PrettyPrint
, module Data.Semigroup
) where
import Prelude hiding (null)
import qualified Data.Foldable as Fold
import Data.Int (Int32)
import Data.IntSet (IntSet)
import qualified Data.IntSet as IntSet
import Data.IntMap (IntMap)
impo... |
e7f081cef9a9ed2cdc34485175776b2faadf984eb5909b7574a042259fd695bd | ocaml/ocaml | test.ml | (* TEST
flags = "-strict-sequence"
* expect
*)
external a : (int [@untagged]) -> unit = "a" "a_nat"
external b : (int32 [@unboxed]) -> unit = "b" "b_nat"
external c : (int64 [@unboxed]) -> unit = "c" "c_nat"
external d : (nativeint [@unboxed]) -> unit = "d" "d_nat"
external e : (float [@unboxed]) -> unit = "e" "e... | null | https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-unboxed/test.ml | ocaml | TEST
flags = "-strict-sequence"
* expect
Should output a warning: no native implementation provided
Bad: attributes not reported in the interface
Bad: attributes in the interface but not in the implementation
Bad: claiming something is a primitive when it isn't
Good: not claiming something is a primiti... | external a : (int [@untagged]) -> unit = "a" "a_nat"
external b : (int32 [@unboxed]) -> unit = "b" "b_nat"
external c : (int64 [@unboxed]) -> unit = "c" "c_nat"
external d : (nativeint [@unboxed]) -> unit = "d" "d_nat"
external e : (float [@unboxed]) -> unit = "e" "e_nat"
type t = private int
external f : (t [@untagg... |
93bd77a68f25812ce18a5e593e45676dded0aedf3bcc9546fec568e1c9b887d3 | babashka/pod-babashka-etaoin | test_script.clj | (require '[babashka.pods :as pods])
(pods/load-pod ["lein" "run" "-m" "pod.babashka.etaoin"])
#_(pods/load-pod "./pod-babashka-etaoin")
(require '[pod.babashka.etaoin :as eta]
'[pod.babashka.etaoin.keys :as k])
here , a Firefox window should appear
#_(def driver (eta/chrome))
(def driver (eta/firefox-headl... | null | https://raw.githubusercontent.com/babashka/pod-babashka-etaoin/8167e0064fcd6edae79f051df52301a5d1a7ad06/test-resources/test_script.clj | clojure | screenshot | (require '[babashka.pods :as pods])
(pods/load-pod ["lein" "run" "-m" "pod.babashka.etaoin"])
#_(pods/load-pod "./pod-babashka-etaoin")
(require '[pod.babashka.etaoin :as eta]
'[pod.babashka.etaoin.keys :as k])
here , a Firefox window should appear
#_(def driver (eta/chrome))
(def driver (eta/firefox-headl... |
a2ad256c559f55f7e4b70941fe19c2346e464a80c4abd563ca5055a39c40750f | vernemq/vmq-discovery | vmq_discovery_dns.erl | Copyright 2018 Octavo Labs AG Zurich Switzerland ( )
%%
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... | null | https://raw.githubusercontent.com/vernemq/vmq-discovery/6d25de3c0923c49bf6704543f537b1da56e8588d/src/backends/vmq_discovery_dns.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.
See the License for the specific language governing perm... | Copyright 2018 Octavo Labs AG Zurich Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_discovery_dns).
-author("Dairon Medina <>").
-behaviour(vmq_discovery_backend).
-export([list_nodes/0, re... |
50823485d60ee73805171d2a14ece80edb2e0dc086329f3676b5f8ed6f3b838a | reuk/rayverb | ApplicativeBinaryOp.hs | module ApplicativeBinaryOp where
import Control.Applicative
abop :: Applicative f => (a1 -> a -> b) -> f a1 -> f a -> f b
abop f = (<*>) . (<$>) f
-- abop f a b = a `seq` b `seq` (f <$> a <*> b)
| null | https://raw.githubusercontent.com/reuk/rayverb/e9aa02a422446728625d5c4f88ac6b11ce393005/src/ApplicativeBinaryOp.hs | haskell | abop f a b = a `seq` b `seq` (f <$> a <*> b) | module ApplicativeBinaryOp where
import Control.Applicative
abop :: Applicative f => (a1 -> a -> b) -> f a1 -> f a -> f b
abop f = (<*>) . (<$>) f
|
0e7bb379db842552f06cbdc179d31374b849b87110eabaa8dc058e333960594f | haskell-github/github | PullRequests.hs | -----------------------------------------------------------------------------
-- |
-- License : BSD-3-Clause
Maintainer : < >
--
-- The pull requests API as documented at
-- </>.
module GitHub.Endpoints.PullRequests (
pullRequestsForR,
pullRequestR,
pullRequestDiffR,
pullRequestPatchR,
... | null | https://raw.githubusercontent.com/haskell-github/github/81d9b658c33a706f18418211a78d2690752518a4/src/GitHub/Endpoints/PullRequests.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-3-Clause
The pull requests API as documented at
</>.
| List pull requests.
See </#list-pull-requests>
| Query a single pull request to obtain the diff
See </#get-a-single-pull-request>
| Query a single pull reques... | Maintainer : < >
module GitHub.Endpoints.PullRequests (
pullRequestsForR,
pullRequestR,
pullRequestDiffR,
pullRequestPatchR,
createPullRequestR,
updatePullRequestR,
pullRequestCommitsR,
pullRequestFilesR,
isPullRequestMergedR,
mergePullRequestR,
module GitHub.Data
... |
32b9f8d70295ac2ed36cf92980e8da5601903b838756a5a1b0b45e6e105e18a1 | jbclements/RSound | manual-test-big-draw.rkt | #lang racket
(require "../draw.rkt"
"../rsound.rkt"
"../util.rkt")
;; is the scrolling adequate?
(module+ main
;; make a long sound of noise
(define n (noise (* 10 44100)))
(rs-draw n))
| null | https://raw.githubusercontent.com/jbclements/RSound/c699db1ffae4cf0185c46bdc059d7879d40614ce/rsound/test/manual-test-big-draw.rkt | racket | is the scrolling adequate?
make a long sound of noise | #lang racket
(require "../draw.rkt"
"../rsound.rkt"
"../util.rkt")
(module+ main
(define n (noise (* 10 44100)))
(rs-draw n))
|
90a43dbd1c53a2bce911087d38645c4faf7929bb70de3ec1b3ddb0d944e0aaaf | strint/sicpAns | 1003_elements_sum_of_biggertwo.scm | (define (sum-of-biggertwo a b c)
(- (+ a b c)
(little a
(little b c))))
(define (little x y)
(if (< x y)
x
y))
| null | https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.1.1-6_BasicScheme/1003_elements_sum_of_biggertwo.scm | scheme | (define (sum-of-biggertwo a b c)
(- (+ a b c)
(little a
(little b c))))
(define (little x y)
(if (< x y)
x
y))
| |
ea4c3a7b859039f069455861dd2a237b0823f83816464ee864e1a0bad7f2449b | clyfe/clara-eav | eav.cljc | (ns clara-eav.eav
"This namespace is about defining EAVs and converting to EAVs from various
representations (mainly from an entity map)."
(:require
[medley.core :as medley]
#?@(:clj [[clojure.spec.alpha :as s]
[clojure.core.match :as match]]
:cljs [[cljs.spec.alpha :as s]
... | null | https://raw.githubusercontent.com/clyfe/clara-eav/1a2255a3aaac303f71a2867998453853673bc6ce/src/clara_eav/eav.cljc | clojure | allows vector destructuring | (ns clara-eav.eav
"This namespace is about defining EAVs and converting to EAVs from various
representations (mainly from an entity map)."
(:require
[medley.core :as medley]
#?@(:clj [[clojure.spec.alpha :as s]
[clojure.core.match :as match]]
:cljs [[cljs.spec.alpha :as s]
... |
14aac6a1336333be20cd123122af017f4be1aee9dba48e2e702760363e95342b | simonmar/parconc-examples | KMeansCore.hs | --
Adapted from the K - Means example in the remote-0.1.1 package ,
( c ) < >
--
{-# LANGUAGE DeriveDataTypeable #-}
module KMeansCore where
import Data.List
import Data.Typeable (Typeable)
import Data.Data (Data)
import qualified Data.ByteString.Char8 as B
import Data.Binary
import Control.DeepSeq
-- -----... | null | https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/kmeans/KMeansCore.hs | haskell |
# LANGUAGE DeriveDataTypeable #
-----------------------------------------------------------------------------
Points
#UNPACK#
#UNPACK#
compatibility define it manually.
all fields are strict
<<point-ops
>>
---------------------------------------------------------------------------
Clusters
# UNPACK #
# UNPACK... | Adapted from the K - Means example in the remote-0.1.1 package ,
( c ) < >
module KMeansCore where
import Data.List
import Data.Typeable (Typeable)
import Data.Data (Data)
import qualified Data.ByteString.Char8 as B
import Data.Binary
import Control.DeepSeq
deriving (Show,Read,Eq)
deepseq changed in... |
0a37692973f7bf60c5af598eead1f7cfd538cf123a4861df5438bb618d3b9410 | argonaut-io/argonaut-hs | Argonaut.hs | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
module Data.Argonaut
(
module Data.Argonaut.Core
, module Data.Argonaut.Printer
, module Data.Argonaut.Parser
, module Data.Argonaut.Encode
, module Data.Argonaut.Decode
) where
import Data.A... | null | https://raw.githubusercontent.com/argonaut-io/argonaut-hs/41bfd798fce9178951abff1536ca290dee23a2cc/src/Data/Argonaut.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings #
# LANGUAGE BangPatterns # |
module Data.Argonaut
(
module Data.Argonaut.Core
, module Data.Argonaut.Printer
, module Data.Argonaut.Parser
, module Data.Argonaut.Encode
, module Data.Argonaut.Decode
) where
import Data.Argonaut.Core
import Data.Argonaut.Printer
import Data.Argonaut.Parser
import Data.Argonaut.Encode
imp... |
afeed7d93d5555d4ce3fd041e83df651c0e1b0d22aba7d55ab4ff3ef091349ab | tsloughter/rebar3_tests | exometer.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved .
%%
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 obtai... | null | https://raw.githubusercontent.com/tsloughter/rebar3_tests/af19097d597b061a0fde5c58ce354a623ca05f38/ptrans_deporder/_checkouts/exometer_core/src/exometer.erl | erlang | -------------------------------------------------------------------
-------------------------------------------------------------------
@doc API and behaviour for metrics instances
<h2>Predefined templates</h2>
It is possible to define a set of defaults for exometer.
Example: Putting the following in a sys.... | Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved .
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 /.
{ [ ' _ ' ] , , [ { module , exometer_folsom } ]... |
2295c87ad0fad7d12f44682b143417637803d06bc96ef8f0b689dbc526164e67 | erlang/otp | ct_hooks_lock.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2004 - 2022 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/common_test/src/ct_hooks_lock.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 2004 - 2022 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(ct_hooks_lock).
-behaviour(gen_server).
-export([start/1, stop/1, request/0, release/0]).
-export([init/1... |
4748e39cbf4e51238f7cb7ce5959610ea4c45c017a6bc83b0fe689bd3058cdaf | ocaml/ocamlbuild | a.ml | (***********************************************************************)
(* *)
(* ocamlbuild *)
(* *)
, , projet Galliu... | null | https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test3/a.ml | ocaml | *********************************************************************
ocamlbuild
... | , , projet Gallium , INRIA Rocquencourt
Copyright 2007 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
module X = B
|
33e9fceef5d7bbf25c95643fb60c36bb1104b0c7f389b640dccc56f6a58c0015 | alexbs01/OCaml | lib.mli |
exception Function_not_defined of string
val get_function : string -> (float -> float)
| null | https://raw.githubusercontent.com/alexbs01/OCaml/92a28522a8467d8ed87ef380b6175f1c21616f85/p12/lib.mli | ocaml |
exception Function_not_defined of string
val get_function : string -> (float -> float)
| |
19dd9ebe8da15a2e1d78e4fce6752be3e6e42bead61248041de6c6bbd54b1631 | cobalamin/simple-om-draggable | core.cljs | (ns simple-om-draggable.core
(:require [cljs.core.async :as async :refer [put! <! mult untap tap chan]]
[om.core :as om :include-macros true]
[om-tools.dom :as dom :include-macros true]
[goog.events :as events]
[clojure.set :as set])
(:require-macros [cljs.core.async.... | null | https://raw.githubusercontent.com/cobalamin/simple-om-draggable/2429ef01492401916362afc17d9cd0625d9e556e/src/simple_om_draggable/core.cljs | clojure | Global event channels
Handlers
save the offset (cursor pos inside element pos) in local state
start listening to global mouse events
transact the cursor state
stop listening to global mouse events
reset local dragging state
we have to set :dragging to true on move, because you should be
able to mousedown witho... | (ns simple-om-draggable.core
(:require [cljs.core.async :as async :refer [put! <! mult untap tap chan]]
[om.core :as om :include-macros true]
[om-tools.dom :as dom :include-macros true]
[goog.events :as events]
[clojure.set :as set])
(:require-macros [cljs.core.async.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.