_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
48d6bf8077860540504e7d3f8fc4bc4580cb8d92e18f70c09528eb51db4088a1
bvaugon/ocapic
stream.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/lib/stream.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type 'a t exception Failure * Raised by parsers when none of the first components of the stream patterns ...
40e4d9bb9cb7f6617cf76774b8b8c1f5d283bd72cfa0f615ebe92bf5432b219b
zoomhub/zoomhub
LogLevel.hs
module ZoomHub.Log.LogLevel ( LogLevel (..), parse, ) where data LogLevel = Debug | Info | Warning | Error deriving (Eq, Ord) instance Show LogLevel where show Debug = "debug" show Info = "info" show Warning = "warning" show Error = "error" parse :: String -> Maybe LogLevel parse "debug" = ...
null
https://raw.githubusercontent.com/zoomhub/zoomhub/2c97e96af0dc2f033793f3d41fc38fea8dff867b/src/ZoomHub/Log/LogLevel.hs
haskell
module ZoomHub.Log.LogLevel ( LogLevel (..), parse, ) where data LogLevel = Debug | Info | Warning | Error deriving (Eq, Ord) instance Show LogLevel where show Debug = "debug" show Info = "info" show Warning = "warning" show Error = "error" parse :: String -> Maybe LogLevel parse "debug" = ...
e98ba95d1a972363153f1774a794fc6e646a3ba3b283c67a5a00767c5298df9d
acl2/acl2
guard-theorem-no-simplify-dollar-tests@useless-runes.lsp
(FOO (197 91 (:REWRITE DEFAULT-+-2)) (127 91 (:REWRITE DEFAULT-+-1)) (72 18 (:REWRITE COMMUTATIVITY-OF-+)) (72 18 (:DEFINITION INTEGER-ABS)) (72 9 (:DEFINITION LENGTH)) (45 9 (:DEFINITION LEN)) (31 23 (:REWRITE DEFAULT-<-2)) (27 23 (:REWRITE DEFAULT-<-1)) (18 18 (:REWRITE DEFAULT-UNARY-MINUS)) (14 14 (:REWRIT...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/std/system/.sys/guard-theorem-no-simplify-dollar-tests%40useless-runes.lsp
lisp
(FOO (197 91 (:REWRITE DEFAULT-+-2)) (127 91 (:REWRITE DEFAULT-+-1)) (72 18 (:REWRITE COMMUTATIVITY-OF-+)) (72 18 (:DEFINITION INTEGER-ABS)) (72 9 (:DEFINITION LENGTH)) (45 9 (:DEFINITION LEN)) (31 23 (:REWRITE DEFAULT-<-2)) (27 23 (:REWRITE DEFAULT-<-1)) (18 18 (:REWRITE DEFAULT-UNARY-MINUS)) (14 14 (:REWRIT...
b6968831e97422bd3315f1d087a150657c8315fa87c3d784439f3ad13c294164
UU-ComputerScience/uu-cco
TcArithBool.hs
import CCO.ArithBool (checkTy) import CCO.Component (component, printer, ioWrap) import CCO.Tree (parser, Tree (fromTree, toTree)) import Control.Arrow (Arrow (arr), (>>>)) main = ioWrap $ parser >>> component toTree >>> component checkTy >>> arr fromTree >>> printer
null
https://raw.githubusercontent.com/UU-ComputerScience/uu-cco/cca433c8a6f4d27407800404dea80c08fd567093/uu-cco-examples/src/TcArithBool.hs
haskell
import CCO.ArithBool (checkTy) import CCO.Component (component, printer, ioWrap) import CCO.Tree (parser, Tree (fromTree, toTree)) import Control.Arrow (Arrow (arr), (>>>)) main = ioWrap $ parser >>> component toTree >>> component checkTy >>> arr fromTree >>> printer
51709bf5c9ab54f7c0d9020b722be65e71569b2e3bf590e8c0fbbad357e5b127
ygrek/mldonkey
url.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/utils/lib/url.ml
ocaml
encode using RFC 1738 form if not raw decode '+' -> ' ' else don't change char redefine s to remove all leading slashes
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
25611f11d1ada5eec16087aa834c6e73abe046a050221a6fc53b6b706b1bbbee
dyoo/whalesong
m1.rkt
#lang s-exp "../../lang/base.rkt"
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/older-tests/require-test/m1.rkt
racket
#lang s-exp "../../lang/base.rkt"
1124c7f681b75779e17145f116a39f5f2792f5b4c40283870302a3c211bcb53b
igorhvr/bedlam
schemechan.scm
(import file-manipulation) (define-record-type :schemer (make-schemer at-repl env queue) schemer? (at-repl schemer-at-repl? schemer-at-repl!) (env schemers-env set-schemers-env!) (queue schemers-queue set-schemers-queue!)) (define-record-type :scheme-channel (make-scheme-channel schemers) scheme-channel...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-contrib/irc/scheme/sarah/plugins/schemechan.scm
scheme
(import file-manipulation) (define-record-type :schemer (make-schemer at-repl env queue) schemer? (at-repl schemer-at-repl? schemer-at-repl!) (env schemers-env set-schemers-env!) (queue schemers-queue set-schemers-queue!)) (define-record-type :scheme-channel (make-scheme-channel schemers) scheme-channel...
db4143c0be3782099334b36a42d67cd9018e54344c7fbf643a1a3d0034c0d94f
erlef/rebar3_hex
rebar3_hex_SUITE.erl
-module(rebar3_hex_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). all() -> [task_args_test, task_state_test, gather_opts_test, init_test, help_test, repo_opt]. gather_opts_test(_Config) -> State = rebar_state:new(), CmdArgs = {[{foo,"bar...
null
https://raw.githubusercontent.com/erlef/rebar3_hex/17137b87050a3f24b60caa5abed93a3635621769/test/rebar3_hex_SUITE.erl
erlang
Smoke test to ensure we don't crash Silent output during our tests
-module(rebar3_hex_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). all() -> [task_args_test, task_state_test, gather_opts_test, init_test, help_test, repo_opt]. gather_opts_test(_Config) -> State = rebar_state:new(), CmdArgs = {[{foo,"bar...
88f199b71466de6c5f1982d92c173e5f87bcfdddae74c9851ea9bb175b6fb6d9
bsaleil/lc
pnpoly.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->f64vector lst)) (def-macro (FLOATvector? x) `(f64vector? ,x)) (def-macro (FLOATvector...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultVMIL-lc-gsc-lc/LCf64naive/pnpoly.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks PNPOLY - Test if a point is co...
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->f64vector lst)) (def-macro (FLOATvector? x) `(f64vector? ,x)) (def-macro (FLOATvector . lst) `(f64vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make...
ae38bd8ca6a8cab5d7a6089392c4c02e741eb26c0a90e3f0bca07917387d7cb2
a-sassmannshausen/guile-config
config.scm
config.scm --- tests for config -*- coding : utf-8 -*- ;; Copyright ( C ) 2015 < > ;; Author : < > Created : 23 November 2016 ;; ;; This file is part of Config. ;; ;; Config is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
null
https://raw.githubusercontent.com/a-sassmannshausen/guile-config/b05957743ee8ab8d111683697a56e46a82429b6f/tests/config.scm
scheme
This file is part of Config. Config is free software; you can redistribute it and/or modify it under the either version 3 of the License , or ( at your option ) any later version. Config is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT...
config.scm --- tests for config -*- coding : utf-8 -*- Copyright ( C ) 2015 < > Author : < > Created : 23 November 2016 terms of the GNU General Public License as published by the Free Software You should have received a copy of the GNU General Public License along 59 Temple Place - Suite 330 ...
58a89a548b77edbc3ca3c17207bed3519f1c7de5907c7649a1ecb627c377fa4e
domenkozar/paddle
SubscriptionUsersUpdate.hs
-- -reference/subscription-api/subscription-users/updateuser module Paddle.Client.SubscriptionUsersUpdate where import Data.Aeson (ToJSON, toJSON, genericToJSON) import Protolude import Prelude () import Paddle.FieldModifier (customJSONOptions) data SubscriptionUsersUpdate = SubscriptionUsersUpdate { vendorId :: ...
null
https://raw.githubusercontent.com/domenkozar/paddle/4f20a7b3cebe72d68f18d7dd72ef802f4b1821c4/src/Paddle/Client/SubscriptionUsersUpdate.hs
haskell
-reference/subscription-api/subscription-users/updateuser
module Paddle.Client.SubscriptionUsersUpdate where import Data.Aeson (ToJSON, toJSON, genericToJSON) import Protolude import Prelude () import Paddle.FieldModifier (customJSONOptions) data SubscriptionUsersUpdate = SubscriptionUsersUpdate { vendorId :: Int , vendorAuthCode :: Text , subscriptionId :: Integer ...
92f3573146ae956224194d25227fe88c868d06a0a9d4cfaa3bc657680d438e81
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Email.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Email/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Email.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Dimensions.Types import Duckling.Email.Corpus import Duckling.Testing.Asserts import qualified Duckling.Email.DE.Tests as DE import qualified Ducklin...
5a0a3a1c6822786c0b8c22f92be8ba0e987682ea93b881b890d6bc57142ccafb
IagoAbal/haskell-z3
ParserInterface.hs
| Parse AST from SMTLIB string module Example.Monad.ParserInterface ( run ) where import Z3.Monad run :: IO () run = evalZ3 script >>= print -- Toy example SMTLIB string smtStr1 :: String smtStr1 = "(declare-const x Int)\n(assert (< x 5))" smtStr2 :: String smtStr2 = "(declare-const x Int)\n(assert (> x 5))" ...
null
https://raw.githubusercontent.com/IagoAbal/haskell-z3/247dac33c82b52f6ca568c1cdb3ec5153351394d/examples/Example/Monad/ParserInterface.hs
haskell
Toy example SMTLIB string
| Parse AST from SMTLIB string module Example.Monad.ParserInterface ( run ) where import Z3.Monad run :: IO () run = evalZ3 script >>= print smtStr1 :: String smtStr1 = "(declare-const x Int)\n(assert (< x 5))" smtStr2 :: String smtStr2 = "(declare-const x Int)\n(assert (> x 5))" script :: Z3 Result script ...
1edadc92f0cdf39257e6ce4e82258d49b7d3c9633fb3882057ab92e53ee66f70
ixmatus/prizm
Types.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE TypeFamilies #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Prizm.Color.RGB.Types Copyright : ( C ) 2017 Parnell Springmeyer -- License : BSD3 Maintainer : Parnell Springmeyer < > -- Stabil...
null
https://raw.githubusercontent.com/ixmatus/prizm/8baceff70b44a14bc67bac9efdd5270620567cec/src/Data/Prizm/Color/RGB/Types.hs
haskell
# LANGUAGE TypeFamilies # --------------------------------------------------------------------------- | Module : Data.Prizm.Color.RGB.Types License : BSD3 Stability : stable --------------------------------------------------------------------------- 0. ^ Red color channel ^ Green color channe...
# LANGUAGE FlexibleInstances # Copyright : ( C ) 2017 Parnell Springmeyer Maintainer : Parnell Springmeyer < > module Data.Prizm.Color.RGB.Types where import Data.Prizm.Types import Data.Word | Clamp a ' Word8 ' with an upper - bound of 255 and a lower - bound of clamp :: Integral ...
e1ab545159f438ee2dad2fc1310def96ab5c1f78781df73271e8e28ad73c6237
input-output-hk/project-icarus-importer
Context.hs
| Whole in - memory state of UpdateSystem . module Pos.Update.Context ( UpdateContext(..) , mkUpdateContext ) where import Universum import Pos.Core (HasProtocolConstants) import Pos.DB.Class (MonadDBRead) import Pos.Slotting (MonadSlots) import ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/update/Pos/Update/Context.hs
haskell
| A semaphore which is unlocked when update data is downloaded and ready to apply. | In-memory state of update-system-as-block-component.
| Whole in - memory state of UpdateSystem . module Pos.Update.Context ( UpdateContext(..) , mkUpdateContext ) where import Universum import Pos.Core (HasProtocolConstants) import Pos.DB.Class (MonadDBRead) import Pos.Slotting (MonadSlots) import ...
bb0598459a911080d40fb86e5acf552a48a76bdd1822bd8a7fa77ce6a87b75b0
dalaing/little-languages
Rules.hs
{-# LANGUAGE GADTs #-} module Rules where import Control.Applicative import Data.Foldable import Data.List (partition) import Data.Maybe (fromMaybe) import Data.Profunctor import Test.QuickCheck - Rules should have a Gen t that matches the rule - We could use a GADT to make the matching prism available - ...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/arith/src/Rules.hs
haskell
# LANGUAGE GADTs # for app data R t a = R { s :: t -> t , a :: Rule t a } for alt data R t a = R { s :: t -> t , a :: [Rule t a] } step :: R (t -> t) would be nice to have a combinator to access the step function, which pushes something from an axiom to a rule do we want to use alternative here ?
module Rules where import Control.Applicative import Data.Foldable import Data.List (partition) import Data.Maybe (fromMaybe) import Data.Profunctor import Test.QuickCheck - Rules should have a Gen t that matches the rule - We could use a GADT to make the matching prism available - - Would be nice to b...
0ad843216e1bd5bc01061ee91b12684a65f6c41563b5276100746e72550f46e6
haskell/aeson
Internal.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} #if __GLASGOW_HASKELL__ <= 800 && __GLASGOW_HASKELL__ >= 706 -- Work around a compiler bug {-# OPTIONS_GHC -fsimpl-tick-factor=300 #-} #endif -- | Module : Data . Aeson . . Internal Copyright : ...
null
https://raw.githubusercontent.com/haskell/aeson/78c2338c20d31ba5dd46036d10d6c4815c12185d/src/Data/Aeson/Parser/Internal.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # Work around a compiler bug # OPTIONS_GHC -fsimpl-tick-factor=300 # | Stability: experimental Portability: portable Efficiently and correctly parse a JSON string. The string must be * Lazy parsers * Strict parsers * Helpers ** Handling objects with du...
# LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # #if __GLASGOW_HASKELL__ <= 800 && __GLASGOW_HASKELL__ >= 706 #endif Module : Data . Aeson . . Internal Copyright : ( c ) 2011 - 2016 ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > encoded as UTF-8 . module Data.A...
c7e0076a1312d3781cb8d1716596f864a7a268290e19ad739b92add37725edd6
Andromedans/andromeda
desugar.ml
* Conversion from sugared to desugared input syntax . The responsibilities of this phase is to : * resolve all names to levels and indices * check arities of constructors and operations Note that we do not check arities of derivations here because those are first - class and are not boun...
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/src/parser/desugar.ml
ocaml
* Arity of an ML exception * Information about names Partially evaluated nested modules the locally bound values, referred to by indices There should always be at least the top module Convert a context to a module. Lookup functions named [find_XYZ] return optional results, while those named [get_XYZ] re...
* Conversion from sugared to desugared input syntax . The responsibilities of this phase is to : * resolve all names to levels and indices * check arities of constructors and operations Note that we do not check arities of derivations here because those are first - class and are not boun...
8ab6663bc1fb10c37de30a29c2e24a8e43a5cda17dd37d891dbfbd88fb881744
ocaml-ppx/ppx_import
types_signature_item_ge_408.ml
type signature_item_407 = | Sig_value of Ident.t * Types.value_description | Sig_type of Ident.t * Types.type_declaration * Types.rec_status | Sig_typext of Ident.t * Types.extension_constructor * Types.ext_status | Sig_module of Ident.t * Types.module_declaration * Types.rec_status | Sig_modtype of Ident.t *...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_import/3373bf551f3016d1b1c58b2b3b463a63328c38a7/src/compat/types_signature_item_ge_408.ml
ocaml
type signature_item_407 = | Sig_value of Ident.t * Types.value_description | Sig_type of Ident.t * Types.type_declaration * Types.rec_status | Sig_typext of Ident.t * Types.extension_constructor * Types.ext_status | Sig_module of Ident.t * Types.module_declaration * Types.rec_status | Sig_modtype of Ident.t *...
3d996f83a04812f1a45cb0db24de719d740a09ad3b2ec12258eaa429cf38f2b3
mhallin/graphql_ppx
interface.ml
module QueryWithFragments = [%graphql {| query { users { id ... on AdminUser { name } ... on AnonymousUser { anonymousId } } } |}] type user = [ | `User of < id : string > | `AdminUser of < id : string; name: string > | `AnonymousUser of < id : string;...
null
https://raw.githubusercontent.com/mhallin/graphql_ppx/5796b3759bdf0d29112f48e43a2f0623f7466e8a/tests_native/interface.ml
ocaml
module QueryWithFragments = [%graphql {| query { users { id ... on AdminUser { name } ... on AnonymousUser { anonymousId } } } |}] type user = [ | `User of < id : string > | `AdminUser of < id : string; name: string > | `AnonymousUser of < id : string;...
1ca6301abdaad7494ab11e37188b5ec39773d6de963baab45bb8e353f534cdf1
spurious/sagittarius-scheme-mirror
%3a141.scm
(import (rnrs) (srfi :141) (srfi :27) (srfi :64)) (define-syntax assert-eqv (identifier-syntax test-eqv)) (define-syntax assert-< (syntax-rules () ((_ a b) (test-assert (< a b))))) (define-syntax value-assert (syntax-rules () ((_ pred type value) (test-assert type (pred value))))) (define-syntax de...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/srfi/%253a141.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 documenta...
(import (rnrs) (srfi :141) (srfi :27) (srfi :64)) (define-syntax assert-eqv (identifier-syntax test-eqv)) (define-syntax assert-< (syntax-rules () ((_ a b) (test-assert (< a b))))) (define-syntax value-assert (syntax-rules () ((_ pred type value) (test-assert type (pred value))))) (define-syntax de...
65c2024594d7657dc6561847357417e1a251a4ab38ee257d1713336d17922cfc
conjure-cp/conjure
AttributeAsConstraint.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.AttributeAsConstraint where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Str...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/AttributeAsConstraint.hs
haskell
aeson unordered-containers vector attribute name it's value can check more here
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.AttributeAsConstraint where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpAttributeAsConstraint x = OpAttributeAsConstraint x deriving (Eq, Ord, Show, ...
eeabbd3e8c9dd9315b18d9a130d04138ad4bf5b14cdfb5c95af01efb51f59ab6
soegaard/metapict
pointilism2.rkt
#lang racket ;;; Pointilism - Animation ;;; ; Inspired by ; The image shows on the moon saluting the american flag . (require metapict (only-in racket/gui image-snip%) (only-in 2htdp/universe big-bang on-tick to-draw) (only-in 2htdp/image overlay empty-scene)) (def bm (read-bitma...
null
https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/examples/pointilism2.rkt
racket
Inspired by read bitmap from disk determine width and height set logical coordinate system draw n circles of radius size generate random point (w,h) find color of that point draw disk of that color
#lang racket Pointilism - Animation The image shows on the moon saluting the american flag . (require metapict (only-in racket/gui image-snip%) (only-in 2htdp/universe big-bang on-tick to-draw) (only-in 2htdp/image overlay empty-scene)) tell the physical size (for/draw ([n n]) ...
ca347d084ad3829f89460375474180ffade2d6a176f560c3a85e9990ca8b9ed9
facebookarchive/duckling_old
helpers.clj
(ns duckling.helpers "This namespace contains the common helpers used in rules" (:require [clj-time.core :as t] [duckling.util :as util])) (defmacro fn& [dim & args-body] (let [meta-map (when (-> args-body first map?) (first args-body)) args-body (if meta-map ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/src/duckling/helpers.clj
clojure
(ns duckling.helpers "This namespace contains the common helpers used in rules" (:require [clj-time.core :as t] [duckling.util :as util])) (defmacro fn& [dim & args-body] (let [meta-map (when (-> args-body first map?) (first args-body)) args-body (if meta-map ...
7d947919242c2fd13d3593799c48e85871a90173abef918e60154cf97e5f1ce1
faylang/fay
Compiler.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE ViewPatterns # | The Haskell→Javascript compiler . module Fay.Compiler (run...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/src/Fay/Compiler.hs
haskell
# LANGUAGE ScopedTypeVariables # ------------------------------------------------------------------------------ Top level entry points Reset imports after initialPass so the modules can be imported during code generation. ------------------------------------------------------------------------------ Compilers | C...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # | The Haskell→Javascript compiler . module Fay.Compiler (runCompileModule ,compileViaStr ,compi...
777ff2404859668be0b3f5f9bab724c8ade2dc5828470ae3715c17585619b8e3
serokell/ariadne
AccountSettings.hs
module Ariadne.UI.Qt.Widgets.Dialogs.AccountSettings ( RenameHandler , DeleteHandler , runAccountSettings ) where import qualified Data.Text as T import Graphics.UI.Qtah.Core.HSize (HSize(..)) import Graphics.UI.Qtah.Core.Types (QtCursorShape(..)) import Graphics.UI.Qtah.Signal (connect_) import qualified Gra...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/AccountSettings.hs
haskell
Let user resize the dialog, but not too much This unfocuses any focused widget when user clicks outside input fields, essentially triggering editingFinished signal.
module Ariadne.UI.Qt.Widgets.Dialogs.AccountSettings ( RenameHandler , DeleteHandler , runAccountSettings ) where import qualified Data.Text as T import Graphics.UI.Qtah.Core.HSize (HSize(..)) import Graphics.UI.Qtah.Core.Types (QtCursorShape(..)) import Graphics.UI.Qtah.Signal (connect_) import qualified Gra...
c12572409e06d7aa7a2e572ee974d8b21aeae5c9fe510935deb72b9f6d38d814
kuberlog/holon
Daemon.lisp
(defpackage :holon.Daemon (:use :cl)) (in-package :holon.Daemon) (defclass Daemon () ( (name :initarg :name :accessor name) (description :initarg :description) (approx-marginal-cost :initarg :approx-marginal-cost :initform nil))) (defun print-daemon (dae...
null
https://raw.githubusercontent.com/kuberlog/holon/380fe5ccd83a014389c15b7d238164d20430a360/lisp/ecosystem/Daemon.lisp
lisp
(defpackage :holon.Daemon (:use :cl)) (in-package :holon.Daemon) (defclass Daemon () ( (name :initarg :name :accessor name) (description :initarg :description) (approx-marginal-cost :initarg :approx-marginal-cost :initform nil))) (defun print-daemon (dae...
42524d95433edb54db9a8fc4862b3f665c30a994caec11a0227d13fce8f0c711
Clozure/ccl
apropos-window.lisp
;;;-*-Mode: LISP; Package: GUI -*- ;;; ;;; Copyright 2007 Clozure Associates ;;; 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...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/apropos-window.lisp
lisp
-*-Mode: LISP; Package: GUI -*- Copyright 2007 Clozure Associates 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 ...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "GUI") (defclass package-combo-box (ns:ns-combo-box) ((packages :initform nil)) (:metaclass ns:+ns-object)) (objc:defmethod (#/becomeFirstResponder :<BOOL>) ((self package-combo-box)) (with-slots (packages) self (setf packag...
8dbd55595d1257df5e26a8b7c18b16e75c2c804c9311102cb59cd834fdeadb13
Ptival/chick
DefinitionObjectKind.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module PrettyPrinting.Chick.DefinitionObjectKind where import Control.Monad.Reader (runReader) import Data.Default (def) import DefinitionObjectKind (DefinitionObjectKind (..)) im...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/lib/PrettyPrinting/Chick/DefinitionObjectKind.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - orphans # module PrettyPrinting.Chick.DefinitionObjectKind where import Control.Monad.Reader (runReader) import Data.Default (def) import DefinitionObjectKind (DefinitionObjectKind (..)) import Language (Language (Chick)) im...
4d8696fee422bb5393bbf0be9a6c5a9c3d981953b9acaa0925d2d5bec7809aba
tlaplus/tlapm
mltoll.mli
Copyright 2004 INRIA val translate : string -> Phrase.phrase list -> Mlproof.proof -> Llproof.proof;; val is_meta : string -> bool;; val get_meta_type : string -> string;;
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/zenon/mltoll.mli
ocaml
Copyright 2004 INRIA val translate : string -> Phrase.phrase list -> Mlproof.proof -> Llproof.proof;; val is_meta : string -> bool;; val get_meta_type : string -> string;;
3488e3a0fc98fe5d9a0caf7108f92fe1a5d3312417368fcd6ffb80291ef605b4
melisgl/try
testable.lisp
(in-package :try) (defsection @try/testables (:title "Testables") "Valid first arguments to TRY are called testables. A testable may be: - a @FUNCTION-DESIGNATOR - the name of a global test - the name of a global function - a function object - a trial - a list of testables - a PACKA...
null
https://raw.githubusercontent.com/melisgl/try/a37c61f8b81d4bdf38f559bca54eef3868bb87a1/src/testable.lisp
lisp
it is the list of symbols in that package with DEFTEST events are produced within a trial. If no wrapping is required, equivalent of (TRY TESTABLE), hence in most cases that's exactly what's returned. Do nothing in an extra trial. DEFTEST establishes a trial. No need for wrapping. We can't return a...
(in-package :try) (defsection @try/testables (:title "Testables") "Valid first arguments to TRY are called testables. A testable may be: - a @FUNCTION-DESIGNATOR - the name of a global test - the name of a global function - a function object - a trial - a list of testables - a PACKA...
5e9136ce339088c62b9b7a3dad488ce81e79333aac0c5e886533c8e19050bdd4
Frama-C/Frama-C-snapshot
TacChoice.mli
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/TacChoice.mli
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
0bac22aa86bd4f5cb23348af7f566923c0a161b6ad9fac1bf3c9ce7bc62ec006
avsm/mirage-duniverse
config.ml
open Nocrypto open Utils open Core open Sexplib.Std type certchain = X509.t list * Rsa.priv [@@deriving sexp] type own_cert = [ | `None | `Single of certchain | `Multiple of certchain list | `Multiple_default of certchain * certchain list ] [@@deriving sexp] type session_cache = SessionID.t -> epoch_data ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tls/lib/config.ml
ocaml
signatures : Packet.signature_algorithm_type list ; A good place for various pre-baked cipher lists and helper functions to * slice and groom those lists. TODO: verify that certificates are x509 v3 if TLS_1_2 TODO: verify that certificates are x509 v3 if TLS_1_2
open Nocrypto open Utils open Core open Sexplib.Std type certchain = X509.t list * Rsa.priv [@@deriving sexp] type own_cert = [ | `None | `Single of certchain | `Multiple of certchain list | `Multiple_default of certchain * certchain list ] [@@deriving sexp] type session_cache = SessionID.t -> epoch_data ...
b8375c80904db5f25cc6a82c61a5e1872b81be3e1aa1a2bdc9e897d40851f1a5
xoken/xoken-node
Service.hs
module Network.Xoken.Node.Service ( module X ) where import Network.Xoken.Node.Service.Address as X import Network.Xoken.Node.Service.Allegory as X import Network.Xoken.Node.Service.Block as X import Network.Xoken.Node.Service.Chain as X import Network.Xoken.Node.Service.Transaction as X import Network.Xoken.N...
null
https://raw.githubusercontent.com/xoken/xoken-node/99124fbe1b1cb9c2fc442c788c7c2bac06f5e900/node/src/Network/Xoken/Node/Service.hs
haskell
module Network.Xoken.Node.Service ( module X ) where import Network.Xoken.Node.Service.Address as X import Network.Xoken.Node.Service.Allegory as X import Network.Xoken.Node.Service.Block as X import Network.Xoken.Node.Service.Chain as X import Network.Xoken.Node.Service.Transaction as X import Network.Xoken.N...
2ec044128af2831787bea6e938f8cca7c5f753ea52fdc0ccee3b5fe21eced8f6
dwayne/eopl3
parser.rkt
#lang eopl ;; Program ::= Expression ;; ;; Expression ::= Number ;; ;; ::= Identifier ;; ;; ::= -(Expression, Expression) ;; ;; ::= zero?(Expression) ;; ;; ::= if Expression then Expression else Expression ;; ;; ::= let Identifier = Expression in Expression ;; ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/PROC-3.26/parser.rkt
racket
Program ::= Expression Expression ::= Number ::= Identifier ::= -(Expression, Expression) ::= zero?(Expression) ::= if Expression then Expression else Expression ::= let Identifier = Expression in Expression ::= proc (Identifier) Expres...
#lang eopl (provide AST program a-program expression expression? const-exp var-exp diff-exp zero?-exp if-exp let-exp proc-exp call-exp Parser parse) (define scanner-spec '((number (digit (arbno digit)) number) (identifier (letter (arbno letter)) symbol) (ws ((arbno whitespace)) skip))) ...
a85c16ba779f777960a503f1089d37ff9eeb24fa8bedfec4b3e1640804cab62c
TrustInSoft/tis-interpreter
source_manager.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/gui/source_manager.mli
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...
415ec5ace6f99fed8e9f9a18d4ce70e82f07d25dc3419afd3fb40c5363beecdd
ghc/nofib
TypeCheck5.hs
-- ==========================================================-- = = = A type - checker -- v5 File : TypeCheck5.m ( 1 ) = = = -- -- === Corrected version for 0.210a ===-- -- ==========================================================-- module TypeCheck5 where import BaseDefs import Utils...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/anna/TypeCheck5.hs
haskell
==========================================================-- v5 File : TypeCheck5.m ( 1 ) = = = -- === Corrected version for 0.210a ===-- ==========================================================-- ==========================================================-- === Formatting of result...
module TypeCheck5 where import BaseDefs import Utils import MyUtils 1.3 tcMapAnnExpr :: (a -> b) -> AnnExpr c a -> AnnExpr c b tcMapAnnExpr f (ann, node) = (f ann, mapAnnExpr' node) where mapAnnExpr' (AVar v) = AVar v mapAnnExpr' (ANum n) = ANum n ...
4e0cb142b90fa3a2fc8fd079ec428d75f858c375b313b59659c4a1fbbe56e1b4
techascent/tech.datatype
mmap.clj
(ns tech.v2.datatype.mmap (:require [clojure.java.io :as io] [tech.resource :as resource] [tech.v2.datatype.base :as dt-base] [tech.v2.datatype.protocols :as dtype-proto] [tech.v2.datatype.casting :as casting] [tech.v2.datatype.jna :as dtype-jna] ...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/src/tech/v2/datatype/mmap.clj
clojure
Forward protocol methods that are efficiently implemented by the buffer Forward protocol methods that are efficiently implemented by the buffer Size is in elements, not in bytes no further offsetting required for native buffers Check if managed heap or native heap Mapping to read-only means pages can be shared between ...
(ns tech.v2.datatype.mmap (:require [clojure.java.io :as io] [tech.resource :as resource] [tech.v2.datatype.base :as dt-base] [tech.v2.datatype.protocols :as dtype-proto] [tech.v2.datatype.casting :as casting] [tech.v2.datatype.jna :as dtype-jna] ...
8857fa634932e57af1dcc7a70121ac1e289d207230061d3b2bea8807880a5078
bradlucas/ads-txt-crawler
project.clj
(defproject com.bradlucas/ads-txt-crawler "0.0.9" :description "An implementation of a crawler for Ads.txt files written in Clojure" :url "-txt-crawler" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.cli "0....
null
https://raw.githubusercontent.com/bradlucas/ads-txt-crawler/1deae9e8d976280b2aa01a41f7db06777b9e69b5/project.clj
clojure
(defproject com.bradlucas/ads-txt-crawler "0.0.9" :description "An implementation of a crawler for Ads.txt files written in Clojure" :url "-txt-crawler" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.cli "0....
b3cda4d152a20c479888ebb037a1127c8805ac0eaf784bee4e7c82dd5a531a36
nikita-volkov/rerebase
Internal.hs
module Data.ByteString.Builder.Internal ( module Rebase.Data.ByteString.Builder.Internal ) where import Rebase.Data.ByteString.Builder.Internal
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/ByteString/Builder/Internal.hs
haskell
module Data.ByteString.Builder.Internal ( module Rebase.Data.ByteString.Builder.Internal ) where import Rebase.Data.ByteString.Builder.Internal
89f190b20b8107dc273adba8358888179f32df64834dee19248514a2aab076af
vaclavsvejcar/headroom
FileSupport.hs
{-# LANGUAGE MultiWayIf #-} # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # -- | Module : Headroom . FileSupport -- Description : Support for handling various source code file types Copyright : ( c ) 2019 - 2022 -- License : BSD-3-Clause -- Maintainer : -- Sta...
null
https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/src/Headroom/FileSupport.hs
haskell
# LANGUAGE MultiWayIf # | Description : Support for handling various source code file types License : BSD-3-Clause Maintainer : Stability : experimental Portability : POSIX /Headroom/ currently supports working with file types defined in 'FileType' type, and because every type of source code file requi...
# LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # Module : Headroom . FileSupport Copyright : ( c ) 2019 - 2022 file type and exposed as instance of ' FileSupport ' data type . module Headroom.FileSupport ( fileSupport , analyzeSourceCode ) where import...
cd554c3ee6b769d1909eadc80f70c05af772c21b333035bb5b9c9a8a87b898c0
janestreet/krb
tgt0.ml
open Core open Async open Import module Cache_type = Internal.Cache_type module Credentials = Internal.Credentials module Cross_realm = struct empirically it seems tgts must be valid for more than 122 seconds . let check_expiration ?(valid_for_at_least = Time.Span.of_min 10.) tgt = let tgt_expiration = Credent...
null
https://raw.githubusercontent.com/janestreet/krb/8fdd7ca4f18973555e37237c140a2704b1963415/src/tgt0.ml
ocaml
Intentionally don't pass along [valid_for_at_least] to [get_cached_tgt] - we don't care how long it is valid for because we're going to immediately renew it. Instead, we check the time of the credentials after renewal.
open Core open Async open Import module Cache_type = Internal.Cache_type module Credentials = Internal.Credentials module Cross_realm = struct empirically it seems tgts must be valid for more than 122 seconds . let check_expiration ?(valid_for_at_least = Time.Span.of_min 10.) tgt = let tgt_expiration = Credent...
cd562c21acc45266712379cd9dc953bf347fe5017a3498cd125fa97e9bfa8889
nikita-volkov/rebase
Arr.hs
module Rebase.GHC.Arr ( module GHC.Arr ) where import GHC.Arr
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/Arr.hs
haskell
module Rebase.GHC.Arr ( module GHC.Arr ) where import GHC.Arr
81e667a3f22e67942a490c7a1151ab2522442e398a135cda2ddf7d5fe2395d31
ocheron/cryptostore
Instances.hs
# OPTIONS_GHC -fno - warn - orphans # -- | Orphan instances. module PKCS12.Instances ( arbitraryPassword , arbitraryAlias , arbitraryIntegrityParams , arbitraryPKCS12 ) where import qualified Data.ByteArray as B import Data.ByteString (ByteString) import Data.Semigroup import T...
null
https://raw.githubusercontent.com/ocheron/cryptostore/5ed61ad9566f4a7ce3ab8d8d58eecd77b158e32b/tests/PKCS12/Instances.hs
haskell
| Orphan instances. fake content, tested with PKCS8
# OPTIONS_GHC -fno - warn - orphans # module PKCS12.Instances ( arbitraryPassword , arbitraryAlias , arbitraryIntegrityParams , arbitraryPKCS12 ) where import qualified Data.ByteArray as B import Data.ByteString (ByteString) import Data.Semigroup import Test.Tasty.QuickCheck i...
eb89e85d7730c01f908a73903cdacc28ba608d1f837b2857de7f95003b35ab72
ijvcms/chuanqi_dev
loop_notice_config.erl
%%%------------------------------------------------------------------- @author zhengsiying %%% @doc %%% 自动生成文件,不要手动修改 %%% @end Created : 2016/10/12 %%%------------------------------------------------------------------- -module(loop_notice_config). -include("common.hrl"). -include("config.hrl"). -compile([export...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/loop_notice_config.erl
erlang
------------------------------------------------------------------- @doc 自动生成文件,不要手动修改 @end -------------------------------------------------------------------
@author zhengsiying Created : 2016/10/12 -module(loop_notice_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all]). get_list_conf() -> [ loop_notice_config:get(X) || X <- get_list() ]. get_list() -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]. get(1) -> #loop_n...
1b9dd9074660e6aac1d271662e4a49fdc8b56760a7dcec9b961854e6324fd845
paf31/typescript-docs
Comments.hs
----------------------------------------------------------------------------- -- -- Module : Language.TypeScript.Docs.Comments Copyright : ( c ) DICOM Grid Inc. 2013 License : MIT -- Maintainer : < > -- Stability : experimental -- Portability : -- -- | -- ------------------------------...
null
https://raw.githubusercontent.com/paf31/typescript-docs/d7fb77e3ffa7eb61a58835377b63aa6cc83d450d/src/Language/TypeScript/Docs/Comments.hs
haskell
--------------------------------------------------------------------------- Module : Language.TypeScript.Docs.Comments Stability : experimental Portability : | ---------------------------------------------------------------------------
Copyright : ( c ) DICOM Grid Inc. 2013 License : MIT Maintainer : < > module Language.TypeScript.Docs.Comments ( appendComments ) where import Data.Data import Data.Generics import Text.Parsec import Text.Parsec.Pos import qualified Data.Map as M import Control.Applicative (Applicative(.....
78aeefc7d539e0468c8a9a39c76443f746a8b81ca1623b076699b665f8bb4168
Tyruiop/syncretism
project.clj
(defproject datops-backend "0.1.0-SNAPSHOT" :description "Minimal backend to serve live option data" :license {:name "GNU AGPL-V3 or later" :url "-3.0.html"} :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/data.json "1.0.0"] ...
null
https://raw.githubusercontent.com/Tyruiop/syncretism/ef15736f246e9c2bd4b76328cc63345987efc93a/datops-backend/project.clj
clojure
(defproject datops-backend "0.1.0-SNAPSHOT" :description "Minimal backend to serve live option data" :license {:name "GNU AGPL-V3 or later" :url "-3.0.html"} :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/data.json "1.0.0"] ...
9e895778e314886390ce2678326a91189b714b8072a22c989cf5e908d3ef7255
chrisdone/sandbox
finite-list.hs
# LANGUAGE ViewPatterns # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # -- | Lists that are of finite length. module Data.List.Finite ( FiniteList(Empty, (:%)) , maxed , cons , empty ) where -- | A list of ...
null
https://raw.githubusercontent.com/chrisdone/sandbox/c43975a01119a7c70ffe83c49a629c45f7f2543a/finite-list.hs
haskell
# LANGUAGE DeriveTraversable # | Lists that are of finite length. | A list of finite length. | Make a finite list. | Is the list maxed out? | A bidirectional pattern synonym matching an empty sequence. | A bidirectional pattern synonym viewing the front of a finite list.
# LANGUAGE ViewPatterns # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # module Data.List.Finite ( FiniteList(Empty, (:%)) , maxed , cons , empty ) where data FiniteList a = FiniteList { finiteListMaxLength :: !Int , finiteList :: !...
1f4b6366558e22fb6ae7d5b8b983b30a9ca7cf9b17f701f8a47e8f8caf281b66
sansarip/owlbear
rules.cljs
(ns owlbear.parse.rules "General utility tooling around any Tree-sitter tree") (defn range-in-node? "Given a node, a start offset, and a stop offset, returns true if the range is within the given node (inclusive)" ([^js node start] (range-in-node? node start start)) ([^js node start stop] {:pre [(<= ...
null
https://raw.githubusercontent.com/sansarip/owlbear/55cea7550a564ce8bf90db10e07ddd47d7f293e9/src/cljs/owlbear/parse/rules.cljs
clojure
Start at parent Start at previous sibling Start at next sibling
(ns owlbear.parse.rules "General utility tooling around any Tree-sitter tree") (defn range-in-node? "Given a node, a start offset, and a stop offset, returns true if the range is within the given node (inclusive)" ([^js node start] (range-in-node? node start start)) ([^js node start stop] {:pre [(<= ...
bc0d081f0cc16fe59fb08f8ccae21b6f7c91f9465b8ff6878cf1ee58ea23236c
royneary/mod_push
mod_push_SUITE.erl
%%============================================================================== Copyright 2010 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/royneary/mod_push/d43e9c6efd6a9f5eda691ca4aac0577eeb6413e3/test/mod_push_SUITE.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 ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_push_SUITE). -compile(export_all). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl"). ...
f9867a2ca4fd853570a32f192d02fd7f524f927c1f24852cdb2592d3c91e346c
quark-lang/quark
Quark.hs
module Core.Quark (module Quark) where import Core.Parser.Parser as Quark import Core.Macro.Compiler as Quark import Core.Macro.Initializing as Quark import Core.Macro.Definition as Quark import Core.Import.Duplicates as Quark import Core.Import.Remover as Quark
null
https://raw.githubusercontent.com/quark-lang/quark/e3dc7fff4e4dfba3e5c9ab71f10ede8bc5a30a44/app/Core/Quark.hs
haskell
module Core.Quark (module Quark) where import Core.Parser.Parser as Quark import Core.Macro.Compiler as Quark import Core.Macro.Initializing as Quark import Core.Macro.Definition as Quark import Core.Import.Duplicates as Quark import Core.Import.Remover as Quark
d86ffd8a1644454ce59250fee4c4fd2d4f56d33f10febb9d7790fbaf1a2e5b54
jrh13/hol-light
forster.ml
(* ======== translation of "The shortest?" from Examples/forster.ml ======== *) horizon := 0;; let FORSTER_PUZZLE_1 = thm `; let f be num->num; thus (!n. f(n + 1) > f(f(n))) ==> !n. f(n) = n proof assume !n. f(n + 1) > f(f(n)); !n. f(f(n)) < f(SUC n) [1] by -,GT,ADD1; !m n. m <= f(n + m) [2] pro...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/miz3/Samples/forster.ml
ocaml
======== translation of "The shortest?" from Examples/forster.ml ======== ======== long-winded informal proof ===================================== ======== formal proof sketch of this proof ============================== ======== formalization from this formal proof sketch ==================== ======== ... an...
horizon := 0;; let FORSTER_PUZZLE_1 = thm `; let f be num->num; thus (!n. f(n + 1) > f(f(n))) ==> !n. f(n) = n proof assume !n. f(n + 1) > f(f(n)); !n. f(f(n)) < f(SUC n) [1] by -,GT,ADD1; !m n. m <= f(n + m) [2] proof !n. 0 <= f(n + 0) [3] by LE_0,ADD_CLAUSES,LE_SUC_LT; now let m be...
bc5bba60abe806ca53f7c107783234a9f890b1baaab8de00f4d207e35c62dd5b
biocaml/phylogenetics
nelder_mead.ml
* Implements method as described in some tests from original publication : A simplex method for function minimization and Implements method as described in some tests from original publication: A simplex method for function minimization J. A. Nelder and R. Mead *) open...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/e225616a700b03c429c16f760dbe8c363fb4c79d/lib/nelder_mead.ml
ocaml
outside contraction inside contraction
* Implements method as described in some tests from original publication : A simplex method for function minimization and Implements method as described in some tests from original publication: A simplex method for function minimization J. A. Nelder and R. Mead *) open...
f319699673e2229e9b316da4b99ba31a4c5badcdfd688d6d3d14cddb6e2bd869
mzp/coq-ruby
lexer.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/parsing/lexer.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id: lexer.mli 7732 2005-12-26 13:...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util type er...
947979c0ad85a1d162e92b2ff75f3fae23e1450a3d219ac2997c6858715d2da4
opencog/opencog
filter-#17.scm
;; anaphor is reflexive ;; The parse tree structure is: ;; verb ;; to / \ by ;; / \ ;; antecedent anaphor ;; This antecedent should be rejected ;; Examples: " went to the party by himself . " ;; "himself" should not refer to "party" (define filter-#17 (...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/filters/filter-%2317.scm
scheme
anaphor is reflexive The parse tree structure is: verb to / \ by / \ antecedent anaphor This antecedent should be rejected Examples: "himself" should not refer to "party" filter
" went to the party by himself . " (define filter-#17 (BindLink (VariableList (TypedVariableLink (VariableNode "$word-inst-antecedent") (TypeNode "WordInstanceNode") ) (TypedVariableLink (VariableNode "$word-inst-a...
56f7227fe6ab0e6afdad3aefbfa0b2fa8b3a8fb665e930d97ad7a05eb40b3686
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("scheme-lib" ("base" #:version "8.2.0.7") "at-exp-lib"))) (define pkg-desc "Language for text with embedded Racket code") (define pkg-authors (quote (mflatt eli))) (define version "1.1") (define license (quote (Apache-2.0 ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/scribble-text-lib/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("scheme-lib" ("base" #:version "8.2.0.7") "at-exp-lib"))) (define pkg-desc "Language for text with embedded Racket code") (define pkg-authors (quote (mflatt eli))) (define version "1.1") (define license (quote (Apache-2.0 ...
a1752565f9f6a40867389e2979a6087f0fc79764f682cbed0cfdc51d0fbe8ed7
yrashk/erlang
ts.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/test_server/src/ts.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ts). -export([run/0, run/1, run/...
012645fd00b8c2ed935ed120b32c8280e02f703d66267da90bdc4ce0b56b0fed
YoshikuniJujo/test_haskell
VulkanSamplerEnum.hs
# LANGUAGE QuasiQuotes # # OPTiONS_GHC -Wall -fno - warn - tabs # module VulkanSamplerEnum where import Text.Nowdoc import MakeEnum make :: IO () make = createFile'' vulkanCore "Sampler.Enum" ["Data.Bits", "Data.Word"] [ ( [("CreateFlagsZero", Int 0)], ( "CreateFlagBits", "VkSamplerCreateFlagBits", ["Show", "...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/6ea44c1048805a62979669c185ab32ba9f4d2e02/themes/gui/vulkan/try-vulkan-middle/tools/VulkanSamplerEnum.hs
haskell
# LANGUAGE QuasiQuotes # # OPTiONS_GHC -Wall -fno - warn - tabs # module VulkanSamplerEnum where import Text.Nowdoc import MakeEnum make :: IO () make = createFile'' vulkanCore "Sampler.Enum" ["Data.Bits", "Data.Word"] [ ( [("CreateFlagsZero", Int 0)], ( "CreateFlagBits", "VkSamplerCreateFlagBits", ["Show", "...
0dde1f71230eb01992e72a481bf25a335329dc4bdef1733e52ec7a97f2495a88
racket/frtime
lang.rkt
#lang s-exp frtime/lang-utils (provide value-nowable? behaviorof (all-from-out frtime/lang-utils) (except-out (all-from-out frtime/lang-ext) lift)) (require frtime/lang-ext) (require (as-is:unchecked (except-in frtime/core/frp undefined undefined?) event-set? signal-value)) (define (value-nowable...
null
https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/lang.rkt
racket
#lang s-exp frtime/lang-utils (provide value-nowable? behaviorof (all-from-out frtime/lang-utils) (except-out (all-from-out frtime/lang-ext) lift)) (require frtime/lang-ext) (require (as-is:unchecked (except-in frtime/core/frp undefined undefined?) event-set? signal-value)) (define (value-nowable...
739b9219814a124cfa775166814122641623282f5a28c4bf64c002ac53d50829
patricoferris/ocaml-multicore-monorepo
effect.compat.ml
include Stdlib.EffectHandlers type 'a t = 'a eff = ..
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/624b3293ee41e83736fe7ac3a79f810c2b70f68b/duniverse/eio/lib_eio/effect.compat.ml
ocaml
include Stdlib.EffectHandlers type 'a t = 'a eff = ..
d034ce1b4f56333ba8046507db9a3cf46df326fbd2e0ab88bef3b9e5ed9dec13
cbaggers/cepl
texture-samplers.lisp
(in-package :cepl.textures) ;; These only exist so the sampler objects can use them they are neccesary in cases where the GL version is less that 3.3 ;; In those cases proper sampler objects are not available and we have ;; to use our standins. ;; ;; We could allow using the methods below to set the sampling params ...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/textures/texture-samplers.lisp
lisp
These only exist so the sampler objects can use them In those cases proper sampler objects are not available and we have to use our standins. We could allow using the methods below to set the sampling params on the texture directly but this makes for a less consistant api with no other benefit.
(in-package :cepl.textures) they are neccesary in cases where the GL version is less that 3.3 (defun+ (setf tex-lod-bias) (value texture) (%with-scratch-texture-bound texture (%gl:tex-parameter-f (texture-type texture) :texture-lod-bias value)) texture) (defun+ (setf tex-min-lod) (value texture) (%with-...
4cd6ef1202b4f650b4bd8b30d47f198335cd4c2dde6cdb2867d89379ce1a6554
arenadotio/pgx
pgx_async.ml
open Core_kernel open Async_kernel open Async_unix Pgx allows to generate bindings from any module implementing their THREAD signature which encompasses monadic concurrency + IO . The implementation that we 've chosen here is a deferred represents an asynchronous value returned by pgx and Writer.t / R...
null
https://raw.githubusercontent.com/arenadotio/pgx/cdef3ff4eba56ea9b2a74c2b3bbfe652b4864a39/pgx_async/src/pgx_async.ml
ocaml
The unix getlogin syscall can fail Fail if PGDATABASE environment variable is not set.
open Core_kernel open Async_kernel open Async_unix Pgx allows to generate bindings from any module implementing their THREAD signature which encompasses monadic concurrency + IO . The implementation that we 've chosen here is a deferred represents an asynchronous value returned by pgx and Writer.t / R...
373cff30143ceab2e225c80f9fed5a325fb643e4a061020f1a8fb985faed3a60
fukamachi/clozure-cl
l0-aprims.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the ...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/l0-aprims.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at l0-aprims.lisp This weak list is used to track semaphores as well as locks....
Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed with Clozure CL as ...
12b6fc8ec0bca3066190e4dc46d65aa3834588939b21908e05adac522f559228
ghcjs/ghcjs-dom
HTMLFrameSetElement.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.HTMLFrameSetElement (js_setCols, setCols, js_getCols, getCols, js_setRows, setRows, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLFrameSetElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/HTMLFrameSetElement.cols Mozilla HTMLFrameSetElement.cols documentation> | <-US/docs/Web/API/HTMLFrameSetElement.cols Mozilla HTMLFrameSetElement.cols documentation> | <-US/docs/Web/API/HTMLFrameSetElem...
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.HTMLFrameSetElement (js_setCols, setCols, js_getCols, getCols, js_setRows, setRows, js_getRows, getRows, blur, error, focus, focusin, focusout, load, resize, scroll, webK...
5ca956964915a7f3a2a3caae4808d3bdcf580a72663cea82b08c222d9d6a0ae9
RedHatQE/katello.auto
systems.clj
(ns katello.systems (:require [webdriver :as browser] [clj-webdriver.core :as action] [clojure.string :refer [blank?]] [clojure.data :as data] [slingshot.slingshot :refer [throw+]] [katello.tasks :refer [expecting-error]] [test.assert :as assert]...
null
https://raw.githubusercontent.com/RedHatQE/katello.auto/79fec96581044bce5db5350d0da325e517024962/src/katello/systems.clj
clojure
Locators new system form content system-edit details system-facts custom-info ui/save-button locator doesn't work subscriptions pane Nav Tasks use rest if also in the remove, it's an update TODO: composite actions fixme process removes Removed some details, New UI doesn't show these under details tab like: "Las...
(ns katello.systems (:require [webdriver :as browser] [clj-webdriver.core :as action] [clojure.string :refer [blank?]] [clojure.data :as data] [slingshot.slingshot :refer [throw+]] [katello.tasks :refer [expecting-error]] [test.assert :as assert]...
2f131866324a84b6fd6489fb55972eb297b32c56a514c347d80d758783b4c241
ItsMeijers/Lambdabox
Extended.hs
# LANGUAGE DeriveGeneric , OverloadedStrings , ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving , ExistentialQuantification # # LANGUAGE UndecidableInstances , FlexibleInstances , TypeSynonymInstances # # LANGUAGE NamedFieldPuns # module Network.Wreq.Extended ( module Network.Wreq , get , post ...
null
https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Network/Wreq/Extended.hs
haskell
Continuation Request | Return timestamp in milliseconds | Sign the request by hashing the url parameters and secret key using SHA256 | Build the options for the http request based on a list of key value parameters and setting the option of not checking the response and throwing an IO error. | Fold the response ...
# LANGUAGE DeriveGeneric , OverloadedStrings , ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving , ExistentialQuantification # # LANGUAGE UndecidableInstances , FlexibleInstances , TypeSynonymInstances # # LANGUAGE NamedFieldPuns # module Network.Wreq.Extended ( module Network.Wreq , get , post ...
a992f520be26f8ac7280679aa382d44c4b7f70d626e09f31ce9c15acf8ca0e21
BitGameEN/bitgamex
rest_pastebin_app.erl
%% Feel free to use, reuse and abuse the code in this file. @private -module(rest_pastebin_app). -behaviour(application). %% API. -export([start/2]). -export([stop/1]). %% API. start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {"/[:paste_id]", toppage_handler, []} ]} ]), {ok, _} = cowboy...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/cowboy/examples/rest_pastebin/src/rest_pastebin_app.erl
erlang
Feel free to use, reuse and abuse the code in this file. API. API.
@private -module(rest_pastebin_app). -behaviour(application). -export([start/2]). -export([stop/1]). start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {"/[:paste_id]", toppage_handler, []} ]} ]), {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ env => #{dispatch => Dispatch} }), ...
c734649a00b0e0241a92fea629dbd9d2d6666b67c498662984199a9e10df2eb8
marianoguerra/tanodb
tanodb_console.erl
%% @doc Interface for riak_searchng-admin commands. -module(tanodb_console). -export([staged_join/1, down/1, ringready/1]). -ignore_xref([join/1, leave/1, remove/1, ringready/1]). staged_join([NodeStr]) -> Node = list_to_atom(NodeStr), join(NodeStr, f...
null
https://raw.githubusercontent.com/marianoguerra/tanodb/7b8bb0ddc0fd1e67b2522cff8a0dac40b412acdb/apps/tanodb/src/tanodb_console.erl
erlang
@doc Interface for riak_searchng-admin commands.
-module(tanodb_console). -export([staged_join/1, down/1, ringready/1]). -ignore_xref([join/1, leave/1, remove/1, ringready/1]). staged_join([NodeStr]) -> Node = list_to_atom(NodeStr), join(NodeStr, fun riak_core:staged_join/1, "Success: stage...
0e7d16fe1fdd2716fd0a94ee7c24446e30fcb80b9b7f4e7343f76a5b7e860848
mirage/ocaml-ipaddr
macaddr_cstruct.ml
* Copyright ( c ) 2019 Anil Madhavapeddy * Copyright ( c ) 2014 * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFT...
null
https://raw.githubusercontent.com/mirage/ocaml-ipaddr/1a9da1cf1e922dad5aafdd41ca61d7c1b2275b9c/lib/macaddr_cstruct.ml
ocaml
* Copyright ( c ) 2019 Anil Madhavapeddy * Copyright ( c ) 2014 * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFT...
58540da16b4b3f11b05fcd410a6f508d7310ff65ac06c6225c8156c3debe5770
avsm/platform
posix.mli
RE - A regular expression library Copyright ( C ) 2001 email : This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , with linking exception ; either version ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/re.1.9.0/lib/posix.mli
ocaml
parse a line groups can be obtained directly by index within [substrings] regex didn't match * XXX Character classes * Errors that can be raised during the parsing of the regular expression * Regular expression compilation * [compile r] is defined as [Core.compile (Core.longest r)]
RE - A regular expression library Copyright ( C ) 2001 email : This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , with linking exception ; either version ...
b64d45913254978cd7bdf8956234998eecc020cd9ce1fbb29b09cd43d7e05982
static-analysis-engineering/codehawk
cCHDsAssumption.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copyrig...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/f2891d9120d5a776ea9ac1feec7bf98cce335e12/CodeHawk/CHC/cchpre/cCHDsAssumption.ml
ocaml
chutil cchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copyrig...
70994c098963d1380cfc925d702d6d2f28f3c8f569a87f5326ebf52819d117d9
weblocks-framework/weblocks
tableview.lisp
(in-package :weblocks) (export '(table table-view table-scaffold table-view-default-summary table-view-header-row-prefix-fn table-view-header-row-suffix-fn table-view-field with-table-view-header with-table-view-header-row render-table-view-header-row render-view-field-header ...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/views/tableview.lisp
lisp
Table view Table view field Make scaffolding system happy Table heading Table header row Table body The table itself
(in-package :weblocks) (export '(table table-view table-scaffold table-view-default-summary table-view-header-row-prefix-fn table-view-header-row-suffix-fn table-view-field with-table-view-header with-table-view-header-row render-table-view-header-row render-view-field-header ...
b28396bb0e5eadc21d6c9a61cd69d4cd848570bb630436d4e6982e4dcb422586
music-suite/music-suite
Pitch.hs
# LANGUAGE FlexibleContexts # -- | Common pitch. module Music.Pitch.Common.Pitch ( -- * Accidentals Accidental, natural, flat, sharp, doubleFlat, doubleSharp, -- ** Inspecting accidentals isNatural, isFlattened, isSharpened, isStandardAccidental, -- ** Name Name ...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Music/Pitch/Common/Pitch.hs
haskell
| Common pitch. * Accidentals ** Inspecting accidentals ** Name * Pitch ** Diatonic and chromatic pitch
# LANGUAGE FlexibleContexts # module Music.Pitch.Common.Pitch Accidental, natural, flat, sharp, doubleFlat, doubleSharp, isNatural, isFlattened, isSharpened, isStandardAccidental, Name (..), Pitch, mkPitch, name, accidental, upDiatonicP, downDiato...
c1ef7df8819c052cdf7beee15f7a2c0550ec6e5ddb8effca27ced03d572ef33f
imitator-model-checker/imitator
AlgoEFopt.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : " EF optimize...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/AlgoEFopt.ml
ocaml
********************************************************** ********************************************************** Modules ********************************************************** ********************************************************** ********************************************************** ***************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : " EF optimize...
4a04723a24633089e0e58c264f9eda02a6029728b06e1bfa9a4d62d7f193509c
jnoll/gantt
DateRange.hs
module DateRange where import Parse import Control.Monad.Reader import Data.Time.Calendar (addDays, diffDays, addGregorianMonthsClip, addGregorianMonthsRollOver, addGregorianYearsRollOver, fromGregorian, toGregorian, gregorianMonthLength,) import Data.Time.Calendar.WeekDate (toWeekDate) import Data.Time.Clock (utctDay,...
null
https://raw.githubusercontent.com/jnoll/gantt/e7099e1786177580526d8da43d62e0182f00e681/DateRange.hs
haskell
calcPeriods is for calendar 'window' view, so use window start calcEnd is for calendar 'window' view, so used window start actually the *end* of the previous period. no adjustment necessary? after a b = if diffDays a b >= 0 then True else False XXX should never happen
module DateRange where import Parse import Control.Monad.Reader import Data.Time.Calendar (addDays, diffDays, addGregorianMonthsClip, addGregorianMonthsRollOver, addGregorianYearsRollOver, fromGregorian, toGregorian, gregorianMonthLength,) import Data.Time.Calendar.WeekDate (toWeekDate) import Data.Time.Clock (utctDay,...
be3572160d271bd3b5c7804f0afa9ccaf92b62ea5fa87a67fbee0133f9d5fd77
monadfix/ormolu-live
NameEnv.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 \section[NameEnv]{@NameEnv@ : name environments } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[NameEnv]{@NameEnv@: name environments} -} # LANGUAGE C...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/basicTypes/NameEnv.hs
haskell
** Manipulating these environments ** Dependency analysis ************************************************************************ * * \subsection{Name environment} * * **********...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 \section[NameEnv]{@NameEnv@ : name environments } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[NameEnv]{@NameEnv@: name environments} -} # LANGUAGE C...
23b1abdaccfd6893cf11744b7e077af3f76b7274405caf67b9b168f2eead5a90
jyh/metaprl
itt_field2.mli
* Fields . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . * * See the file doc / htmlman / default.html or vi...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/applications/algebra/itt_field2.mli
ocaml
*********************************************************************** * SYNTAX * *********************************************************************** *********************************************************************** * TACTICS ...
* Fields . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . * * See the file doc / htmlman / default.html or vi...
b0b65cc59717606779eff5219a4c084bb19074a20d344a020282cf7d12a57f1b
lemenkov/erlrtpproxy
ser_proto.erl
%%%---------------------------------------------------------------------- %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the %%% License, or (at your option) any late...
null
https://raw.githubusercontent.com/lemenkov/erlrtpproxy/47b0bb92f6cf9dbc012ea6f1bb757d07ea06734d/src/ser_proto.erl
erlang
---------------------------------------------------------------------- This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH...
modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA -module(ser_proto). -author(''). ...
b5301ea9a04944625133ed6ca16b5bef3189f236de265b5c9891da0a15e2ab34
TerrorJack/ghc-alter
Zip.hs
{-# LANGUAGE Safe #-} # LANGUAGE TypeOperators # ----------------------------------------------------------------------------- -- | Module : Control . . Zip Copyright : ( c ) 2011 , ( c ) 2011 ( c ) University Tuebingen 2011 -- License : BSD-style (see the f...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Control/Monad/Zip.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------------- Instance...
# LANGUAGE TypeOperators # Module : Control . . Zip Copyright : ( c ) 2011 , ( c ) 2011 ( c ) University Tuebingen 2011 Monadic zipping ( used for monad comprehensions ) module Control.Monad.Zip where import Control.Monad (liftM, liftM2) import Data.Functor.I...
a50805a8c8bced0b01747517203c8001ee8c69b1728c275d9e97e2f7e906d758
wz1000/hie-lsp
DynamicWriter.hs
module Reflex.DynamicWriter # DEPRECATED " Use ' Reflex . DynamicWriter . Class ' and ' Reflex . DynamicWrite . Base ' instead , or just import ' Reflex ' " # ( module X ) where import Reflex.DynamicWriter.Base as X import Reflex.DynamicWriter.Class as X
null
https://raw.githubusercontent.com/wz1000/hie-lsp/dbb3caa97c0acbff0e4fd86fc46eeea748f65e89/reflex-0.6.1/src/Reflex/DynamicWriter.hs
haskell
module Reflex.DynamicWriter # DEPRECATED " Use ' Reflex . DynamicWriter . Class ' and ' Reflex . DynamicWrite . Base ' instead , or just import ' Reflex ' " # ( module X ) where import Reflex.DynamicWriter.Base as X import Reflex.DynamicWriter.Class as X
b28c03730630808c8247f934ecea5faad01ae37b1f7ecac4d18be919bf22e110
alekras/erl.mqtt.server
mqtt_rest_tests.erl
%% Copyright ( C ) 2015 - 2022 by ( ) %% 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 ...
null
https://raw.githubusercontent.com/alekras/erl.mqtt.server/8d3d2a24a089ccb502e3be8ab56f430358a7952c/apps/mqtt_rest/test/mqtt_rest_tests.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 per...
Copyright ( C ) 2015 - 2022 by ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @since 2022 - 06 - 01 2015 - 2022 @author < > [ / ] -module(mqtt_rest_tests). -include_lib("eunit/include/eunit.hrl"). -in...
01543c1b76740f1b7f67c00657b7e1f9eb465aa1b04cd37c0af7916d8e7f1495
theodormoroianu/SecondYearCourses
LambdaChurch_20210415164230.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415164230.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
9a9f0740c193810fd0e84cc123f1dc8ab1b894291ae9568abccf2fb9688a8e75
Gbury/archsat
index_test.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . val correct_qtests : QCheck.Test.t list (** Serie of tests to verify the soundeness of the various indexes. *) val complete_qtests : QCheck.Test.t list (** Serie of tests to verify the soundeness of the various indexes. *)
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/test/index_test.mli
ocaml
* Serie of tests to verify the soundeness of the various indexes. * Serie of tests to verify the soundeness of the various indexes.
This file is free software , part of Archsat . See file " LICENSE " for more details . val correct_qtests : QCheck.Test.t list val complete_qtests : QCheck.Test.t list
40ec1ecce832c09985008999f9b5d444a9c1f5e63ee733cad60f26a9d32dadaf
judah/haskeline
Completion.hs
module System.Console.Haskeline.Completion( CompletionFunc, Completion(..), noCompletion, simpleCompletion, fallbackCompletion, -- * Word completion ...
null
https://raw.githubusercontent.com/judah/haskeline/bcce5ca0878df935282cc9a1aca9b344a8b1eacc/System/Console/Haskeline/Completion.hs
haskell
* Word completion * Filename completion | Performs completions from the given line state. reversed. ^ Text to insert in line. ^ Text to display when listing alternatives. ^ Whether this word should be followed by a space, end quote, etc. | Disable completion altogether. ------------ Word break functions ...
module System.Console.Haskeline.Completion( CompletionFunc, Completion(..), noCompletion, simpleCompletion, fallbackCompletion, completeWord, ...
ba4e2486ba2543869ed3733a4295ee73a832aa93f50372e6ffd0afa0f09ab306
ejgallego/coq-lsp
parsing.mli
module Parsable : sig type t val make : ?loc:Loc.t -> (unit, char) Gramlib.Stream.t -> t val loc : t -> Loc.t end val parse : st:State.t -> Parsable.t -> (Ast.t option, Loc.t) Protect.E.t val discard_to_dot : Parsable.t -> unit
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/f72982922d55689f9397283c525485ad26e952de/coq/parsing.mli
ocaml
module Parsable : sig type t val make : ?loc:Loc.t -> (unit, char) Gramlib.Stream.t -> t val loc : t -> Loc.t end val parse : st:State.t -> Parsable.t -> (Ast.t option, Loc.t) Protect.E.t val discard_to_dot : Parsable.t -> unit
2b3a59a5bdd3b1be264f81e3f56a77a0971638395e0efb9bb606cb96b462c89b
Decentralized-Pictures/T4L3NT
test_gas_costs.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/test_gas_costs.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
f652f25398a8db00db13398be29d4fe1c6b76eb0e5dfc189f9026ebf6f687e1c
hirokai/PaperServer
Resource.hs
# LANGUAGE TemplateHaskell # -- Handler.Resource module Handler.Resource ( getResourceR , getResourcesForPaperR , postUploadResourceR , postAttachFileR , getAttachmentR ) where import Import import qualified Data.Text as T import Data.List hiding (insert) import System.Directory ...
null
https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Handler/Resource.hs
haskell
Handler.Resource Returns the resource list for the specified paper. Client will download the image files (if not yet) and send them to server. liftIO $ putStrLn hash FIXME: Currently this does not have any effect. _ -> typeGif Not supported yet. probably by separating users. $(logInfo) $ T.pack ...
# LANGUAGE TemplateHaskell # module Handler.Resource ( getResourceR , getResourcesForPaperR , postUploadResourceR , postAttachFileR , getAttachmentR ) where import Import import qualified Data.Text as T import Data.List hiding (insert) import System.Directory (doesFileExist) impo...
9fa6f31b05867f61f886a5f5bed060c63924bdede9d0036334985d9675d089dd
j3pic/lisp-binary
integer.lisp
(defpackage :lisp-binary/integer (:use :common-lisp :lisp-binary-utils) (:export :get-lsb-byte :encode-lsb :decode-lsb :encode-msb :decode-msb :signed->unsigned :unsigned->signed :unsigned->signed/bits :signed->unsigned/bits :read-integer :write-integer :read-bytes :write-bytes :pop-bits :split-bit...
null
https://raw.githubusercontent.com/j3pic/lisp-binary/d92325a9176bcc3f48bf60d3098336e96de9c9f9/integer.lisp
lisp
(declare (type (simple-array (unsigned-byte 8) (*)) bytes)) byte for the fractional part. Note: SBCL 1.4.13.debian claims that both the message "deleting unreachable code" for them. Yet, I have confirmed through extensive tracing that the code is indeed executed, and removing it changes the return value of REA...
(defpackage :lisp-binary/integer (:use :common-lisp :lisp-binary-utils) (:export :get-lsb-byte :encode-lsb :decode-lsb :encode-msb :decode-msb :signed->unsigned :unsigned->signed :unsigned->signed/bits :signed->unsigned/bits :read-integer :write-integer :read-bytes :write-bytes :pop-bits :split-bit...
c726b81812d81133275ccd90bf21ab448e0fd6180660d2c6a2a66762c9a860b7
portnov/wacom-intuos-pro-scripts
Kde.hs
# LANGUAGE TemplateHaskell , ScopedTypeVariables , DeriveDataTypeable , ExistentialQuantification # | This module contains implementation of switching Wacom tablet settings profiles via KDE4 or KDE5 kcm_wacomtablet systemsettings module ( via dbus ) . module XMonad.Wacom.Kde ( KDE (..), getProfile, s...
null
https://raw.githubusercontent.com/portnov/wacom-intuos-pro-scripts/78b85c09888d7031af73ede686f68cf97cea8a77/xmonad/xmonad-wacom/XMonad/Wacom/Kde.hs
haskell
| Supported KDE versions | Dummy type for API implementation | Return existing dbus connection to KDE's daemon or create new connection | Return name of current profile. Returns Nothing if there is no tablet attached or no profile selected. | Set profile by name
# LANGUAGE TemplateHaskell , ScopedTypeVariables , DeriveDataTypeable , ExistentialQuantification # | This module contains implementation of switching Wacom tablet settings profiles via KDE4 or KDE5 kcm_wacomtablet systemsettings module ( via dbus ) . module XMonad.Wacom.Kde ( KDE (..), getProfile, s...
ad695ece5a7f23e0ff8f283dd59a045af62d4d0394d4036b416fcb93e9f2a2d2
dbushenko/sitecompiler
selmer.clj
(ns sitecompiler.renderers.selmer (:require [selmer.parser :as selmer]) (:use sitecompiler.common)) (defrecord SelmerRenderer [] Supported (supported? [this ext] (= "selmer" ext)) Renderer (render [this templ data] (selmer/render templ data))) (defn new-selmer-renderer [] (SelmerRenderer.))
null
https://raw.githubusercontent.com/dbushenko/sitecompiler/ff916d4539a3c4694a1664f087a45cfdf847ecdc/src/sitecompiler/renderers/selmer.clj
clojure
(ns sitecompiler.renderers.selmer (:require [selmer.parser :as selmer]) (:use sitecompiler.common)) (defrecord SelmerRenderer [] Supported (supported? [this ext] (= "selmer" ext)) Renderer (render [this templ data] (selmer/render templ data))) (defn new-selmer-renderer [] (SelmerRenderer.))
d07444746b03d3e16dddd65a0e327d65feeaaec4f8957201fc669b0f58e820dc
LCBH/UKano
types.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/types.mli
ocaml
Types module declares types of the abstract syntax tree and of sets of messages. There are recursive dependencies between these types, that is why they are included in the same module Types Information for predicates. The integer argument corresponds to the phase of the predicate value of p_prop Iden...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
2e2cefe77639ca70203d9e2f238324f4b1bdea476223a2db294de3a985a31f7a
monadbobo/ocaml-core
stringable.ml
module type S = sig type t val of_string : string -> t val to_string : t -> string end
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/stringable.ml
ocaml
module type S = sig type t val of_string : string -> t val to_string : t -> string end
af944cceeea0b9d82ceda0a9518b873c630cf8a011896ce2fe936edcab5af1e2
rd--/hsc3
abs.help.hs
-- abs abs (syncSaw ar 100 440 * 0.1)
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/abs.help.hs
haskell
abs
abs (syncSaw ar 100 440 * 0.1)
c7b19296f16c93d929774624c149a8b5434a46519f34a315ab921e010e396b2c
jvf/scalaris
db_mnesia.erl
2013 - 2015 Zuse Institute Berlin , 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 ...
null
https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/src/db_mnesia.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 gov...
2013 - 2015 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author @doc DB back - end using . Two keys K and L are considered equal if K = = L yields true . -module(db_mn...
ec7f22c86f3dcfc6aa34b6a9fb1f38daf87dd6688758c01192f29716feb466e7
making/clj-gae-ds
core.clj
(ns am.ik.clj-gae-ds.core (:use [clojure.test] [clojure.contrib.singleton]) (:import [com.google.appengine.api.datastore DatastoreServiceFactory DatastoreService Entity Key KeyFactory KeyRange Text Query Query$FilterOperator Query$SortDirection PreparedQuer...
null
https://raw.githubusercontent.com/making/clj-gae-ds/4f50697d750118a00abce37ed9f0d246664e3e85/src/am/ik/clj_gae_ds/core.clj
clojure
Key Entity Query Datestore
(ns am.ik.clj-gae-ds.core (:use [clojure.test] [clojure.contrib.singleton]) (:import [com.google.appengine.api.datastore DatastoreServiceFactory DatastoreService Entity Key KeyFactory KeyRange Text Query Query$FilterOperator Query$SortDirection PreparedQuer...
75a00fc3d3ef931be6f1530ff933af769d7bc9ec2a29cb4bf6a07a26e6280a98
obsidiansystems/beam-automigrate
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Exception (bracket) import Control.Monad.IO.Class (liftIO) import Criterion.Main import qualified Data.Map.Strict as M import Database.Beam.AutoMigrate import Database.Beam.AutoMigrate.BenchUtil import Database.Beam.AutoMigrate.Postgres (getSchema) i...
null
https://raw.githubusercontent.com/obsidiansystems/beam-automigrate/93f86a29b81150ac356107b82225ac7f151d6e51/bench/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Exception (bracket) import Control.Monad.IO.Class (liftIO) import Criterion.Main import qualified Data.Map.Strict as M import Database.Beam.AutoMigrate import Database.Beam.AutoMigrate.BenchUtil import Database.Beam.AutoMigrate.Postgres (getSchema) import Database.Beam.Postgres (runBe...
0b7a3f9abc079d22938ed07966ffac11ce717ccd61bf32512cb07478a28c8111
ghcjs/jsaddle-dom
TextEncoder.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TextEncoder (newTextEncoder, encode, encode_, getEncoding, TextEncoder(..), gTypeTextEncoder) where ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/TextEncoder.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TextEncoder (newTextEncoder, encode, encode_, getEncoding, TextEncoder(..), gTypeTextEncoder) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromInteg...
18b780721b7ea9c3781bbb60063b8b40671814f18dd63c20193c1d7c25ac6b44
input-output-hk/project-icarus-importer
Property.hs
{-# LANGUAGE RankNTypes #-} -- | Helpers for 'BlockProperty'. module Test.Pos.Block.Property ( blockPropertySpec ) where import Universum import Test.Hspec (Spec) import Test.Hspec.QuickCheck (prop) import Pos.Configuration (HasNodeConfiguration) import ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/generator/test/Test/Pos/Block/Property.hs
haskell
# LANGUAGE RankNTypes # | Helpers for 'BlockProperty'.
module Test.Pos.Block.Property ( blockPropertySpec ) where import Universum import Test.Hspec (Spec) import Test.Hspec.QuickCheck (prop) import Pos.Configuration (HasNodeConfiguration) import Pos.Core (HasConfiguration) import Pos.Delegation...
63014e7aadbd71d9ae27f3cf5dfd221ff6e01455b2e9c874850d55c722be4970
LexiFi/csml
tast.ml
This file is released under the terms of an MIT - like license . (* See the attached LICENSE file. *) Copyright 2016 by LexiFi . type cs_bind = Ast.cs_bind type flags = Ast.flags type typ = | Int | Int64 | Double | Single |...
null
https://raw.githubusercontent.com/LexiFi/csml/1bdffc60b937b0cd23730589b191940cd1861640/src/tast.ml
ocaml
See the attached LICENSE file.
This file is released under the terms of an MIT - like license . Copyright 2016 by LexiFi . type cs_bind = Ast.cs_bind type flags = Ast.flags type typ = | Int | Int64 | Double | Single | Date | String | Bool | ML2CS_T of string * string * pmanifest |...
148a54ffd5b1f3509364740de56b8c4331cd0ccefdb3f6d537e567c7757a338b
polytypic/rea-ml
Signatures.ml
type 'a ok = [`Ok of 'a] type 'e error = [`Error of 'e] type ('l, 'r) branch = [`Fst of 'l | `Snd of 'r] type ('e, 'a) res = ['a ok | 'e error] type ('d, 'c) cps = ('d -> 'c) -> 'c type 'a op'1 = 'a -> 'a type 'a op'2 = 'a -> 'a -> 'a type 'a lazy_op'2 = (unit -> 'a) -> (unit -> 'a) -> 'a (* *) type nothing = | (* *...
null
https://raw.githubusercontent.com/polytypic/rea-ml/56235733ada478f266f666db229bb6b0ae2ff80b/src/main/Rea/Signatures.ml
ocaml
type 'a ok = [`Ok of 'a] type 'e error = [`Error of 'e] type ('l, 'r) branch = [`Fst of 'l | `Snd of 'r] type ('e, 'a) res = ['a ok | 'e error] type ('d, 'c) cps = ('d -> 'c) -> 'c type 'a op'1 = 'a -> 'a type 'a op'2 = 'a -> 'a -> 'a type 'a lazy_op'2 = (unit -> 'a) -> (unit -> 'a) -> 'a type nothing = | type ('R,...