_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
6f5554ef225a1ce3b799327e945c576c34d0f0813ee66a9886980ab8515685e8
ucsd-progsys/liquidhaskell
Soundness.hs
{-@ LIQUID "--higherorder" @-} {-@ LIQUID "--totality" @-} {-@ LIQUID "--exact-data-cons" @-} module Soundness where import Prelude hiding (Maybe(..)) import Proves data Maybe a = Nothing | Just a deriving (Show, Eq) {-@ data Maybe a = Nothing | Just {select_Just_1 :: a} @-} {-@ measure is...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/benchmarks/popl18/nople/todo/Soundness.hs
haskell
@ LIQUID "--higherorder" @ @ LIQUID "--totality" @ @ LIQUID "--exact-data-cons" @ @ data Maybe a = Nothing | Just {select_Just_1 :: a} @ @ measure is_Nothing @ @ measure is_Just @ | Data Types @ data Type [tsize] = TBool | TFun { tFunArg :: Type, tFunRes :: Type } @ @ measure is_EAbs @ @ me...
module Soundness where import Prelude hiding (Maybe(..)) import Proves data Maybe a = Nothing | Just a deriving (Show, Eq) is_Nothing Nothing = True is_Nothing _ = False is_Just (Just _) = True is_Just _ = False data Type = TBool | TFun { tFunArg :: Type, tFunRes :: Type } deriving (Eq, ...
2b9d7ffc73ed51bdca0209087f37c4adf7a7002c2fcaa776443b4e491bf273f9
input-output-hk/smash
PGConfig.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Cardano.SMASH.DBSync.Db.PGConfig ( PGConfig (..) , PGPassFile (..) , readPGPassFileEnv , readPGPassFile , readPGPassFileExit , toConnectionString ) where import Cardano.Prelude import qualified Control.Exception as Exc...
null
https://raw.githubusercontent.com/input-output-hk/smash/4b71cf933d70c4b2dcbeb7f79f314f6abe99e6ee/smash/src/Cardano/SMASH/DBSync/Db/PGConfig.hs
haskell
# LANGUAGE OverloadedStrings # | Read the PostgreSQL configuration from the file at the location specified by the | Read the PostgreSQL configuration from the specified file. If it fails it will raise an error. If it succeeds, it will set the 'PGPASSFILE' environment variable.
# LANGUAGE ScopedTypeVariables # module Cardano.SMASH.DBSync.Db.PGConfig ( PGConfig (..) , PGPassFile (..) , readPGPassFileEnv , readPGPassFile , readPGPassFileExit , toConnectionString ) where import Cardano.Prelude import qualified Control.Exception as Exception import qualified Data.ByteS...
5d123c221a1ceaa94ce6db57cbd45246960c93d776c4e3e0b3c96700a3f978ea
mirage/irmin
test_gc.mli
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/0a6fbbeb1a4d132ef25a09a41c904cc7942bae5b/test/irmin-pack/test_gc.mli
ocaml
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
8b48002ea9b4fd17b975112ed7ab3ec1fce3f3ae876a3e58a69f513ba9495cb5
manuel-serrano/hop
propcce.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / js2scheme / propcce.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/a62327e2423acdafba486a4b8e1902cc978a1a2c/js2scheme/propcce.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Property common caching elimination optimization */ *===========================...
* serrano / prgm / project / hop / hop / js2scheme / propcce.scm * / * Author : * / * Creation : Sun Apr 2 19:46:13 2017 * / * Last change : We d Dec 29 09:21:57 2021 ( serrano ) * / * Co...
d273fec21d93d06b680bb42dfa90da69bdc87d346d7f8261367c93b6e13b1976
scrintal/heroicons-reagent
building_office.cljs
(ns com.scrintal.heroicons.mini.building-office) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4 16.5v-13h-.25a.75.75 0 010-1.5h12.5a.75.75 0 010 1.5H16v13h.25a.75.75 0 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/building_office.cljs
clojure
(ns com.scrintal.heroicons.mini.building-office) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4 16.5v-13h-.25a.75.75 0 010-1.5h12.5a.75.75 0 010 1.5H16v13h.25a.75.75 0 ...
beacdc4c075a6499b49e0304c213891d7a607ab449a2afbf3d5bfcc49636e152
ekmett/bytes
Put.hs
# LANGUAGE CPP # # LANGUAGE DefaultSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # -------------------------------------------------------------------- -- | Copyright : ( c ) 2013 - 2015 -- License...
null
https://raw.githubusercontent.com/ekmett/bytes/ab86ccca280b0d1000efe725e523e22ba129c92c/src/Data/Bytes/Put.hs
haskell
------------------------------------------------------------------ | License : BSD3 Stability : experimental Portability: non-portable This module generalizes the @binary@ 'B.PutM' and @cereal@ 'S.PutM' monads in an ad hoc fashion to permit code to be written that is compatible across them. Moreover, this...
# LANGUAGE CPP # # LANGUAGE DefaultSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # Copyright : ( c ) 2013 - 2015 Maintainer : < > module Data.Bytes.Put ( MonadPut(..) , runPutL , runPu...
f1ed657d8836bb7d4e248ff5fe75928a0e59109344f35891a1ced6d28c892aed
jackfirth/rebellion
binding.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [module-binding (-> module-path? phase? symbol? module-binding?)] [module-binding? predicate/c] [module-binding-source (-> module-binding? module-path?)] [module-binding-name (-> module-binding? symbol?)] [module-binding-phase (-> modu...
null
https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/module/binding.rkt
racket
@------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [module-binding (-> module-path? phase? symbol? module-binding?)] [module-binding? predicate/c] [module-binding-source (-> module-binding? module-path?)] [module-binding-name (-> module-binding? symbol?)] [module-binding-phase (-> modu...
bd5508e5f93074e4f70f0c8a6064aa51a6e1f59866bb4a4fbf986e4b9f6b6bac
anton-k/handle-pattern-servant-app
GetMessage.hs
-- | Get message by id handler module Server.GetMessage ( Env(..) , Db(..) , handle ) where import DI.Log import Types ----------------------------------------- -- Env data Env = Env { db :: Db , log :: Log } data Db = Db { getMessage :: MessageId -> IO (Maybe Message) } ------------------------...
null
https://raw.githubusercontent.com/anton-k/handle-pattern-servant-app/4a9b6a4635e5555bd3b7a2ca9de76f06491104f4/src/Server/GetMessage.hs
haskell
| Get message by id handler --------------------------------------- Env --------------------------------------- Handler
module Server.GetMessage ( Env(..) , Db(..) , handle ) where import DI.Log import Types data Env = Env { db :: Db , log :: Log } data Db = Db { getMessage :: MessageId -> IO (Maybe Message) } handle :: Env -> MessageId -> IO Message handle (Env Db{..} Log{..}) messageId = do logInfo $ "get by...
e570adca8beaa751b356e02766579b5eae3d6d24c462150b555e5143f5e5e1a0
jyh/metaprl
itt_struct3.ml
doc <:doc< @module[Itt_struct3] The @tt[Itt_struct3] module contains some @emph{derived} rules that are true under both pointwise and pairwise functionality semantics for sequents, but require different proofs under the two. @docoff ---------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/core/itt_struct3.ml
ocaml
*********************************************************************** * RULES * *********************************************************************** This rule is valid both in pointwise and pairwise functionality, but the proof of this rule is * di...
doc <:doc< @module[Itt_struct3] The @tt[Itt_struct3] module contains some @emph{derived} rules that are true under both pointwise and pairwise functionality semantics for sequents, but require different proofs under the two. @docoff ---------------------------------------------------------------- ...
42d0cf7fc38b235b80eedc79a2558b319681a20f2864fb1c3fb6eb0e86beb903
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. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.BG.Tests ( tests ) where import Data.Aeson imp...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Time/BG/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. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.BG.Tests ( tests ) where import Data.Aeson import Data.Aeson.Types ((.:), parseMaybe, withObject) import Data.String import Data.Text (Text) import Prelude import Test.Tasty import Test.Tasty.HUnit import Duckling.Dimensions.Types import D...
0b9ff60e9df461fa617793b5a437c33e35ea442b611f583de6f24a6fd389da38
metaocaml/ber-metaocaml
gen_test.ml
(* This programs generate stubs with various prototype combinations *) open StdLabels type boxed_integer = Pnativeint | Pint32 | Pint64 type native_repr = | Same_as_ocaml_repr | Unboxed_float | Unboxed_integer of boxed_integer | Untagged_int (* Generate primitives with up to this number of arguments *) let ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/unboxed-primitive-args/gen_test.ml
ocaml
This programs generate stubs with various prototype combinations Generate primitives with up to this number of arguments for "value" Doesn't really matters what we choose for this case Doesn't really matters what we choose for this case
open StdLabels type boxed_integer = Pnativeint | Pint32 | Pint64 type native_repr = | Same_as_ocaml_repr | Unboxed_float | Unboxed_integer of boxed_integer | Untagged_int let test_all_combination_up_to_n_args = 6 Generate primitives using all combination of these argument representations . No need t...
828e6853b5847aa292e45ee00b63c7790539db8d887397d7fe4cc5eff3b4b2c8
facebookincubator/hsthrift
FilePath.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module Util.FilePath ( DirEnv(..) , getDirEnv , absolutise , absolutiseWith , mnameToPath , pathToMName ) where import Data.Char (isAsciiUpper) import Data.Text (Text) import Data.Text as Text (pack, unpack) import System.Directory import System.Fi...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/Util/FilePath.hs
haskell
| Makes a path absolute, handling home directories | Given a module name, returns the FilePath
Copyright ( c ) Facebook , Inc. and its affiliates . module Util.FilePath ( DirEnv(..) , getDirEnv , absolutise , absolutiseWith , mnameToPath , pathToMName ) where import Data.Char (isAsciiUpper) import Data.Text (Text) import Data.Text as Text (pack, unpack) import System.Directory import System.Fi...
1a0dfff7d3285bb7ade09d3d68e8fcfa2c84b50967c2fb17fe88cf91472a9028
mfelleisen/RacketSchool
gui.rkt
#lang racket/gui (provide make-gui gui-add! boolean-widget money-widget text-widget) ;; A GUI is represented by a `survey-frame%` object (define (make-gui name) (new survey-frame% [label (format "~s" name)])) (define survey-frame% (class frame% (inherit show) ...
null
https://raw.githubusercontent.com/mfelleisen/RacketSchool/ada599f31d548a538a37d998b32d80aa881d699a/Plan/ql/gui.rkt
racket
A GUI is represented by a `survey-frame%` object ---------------------------------------- An individual question is housed in a `question-panel%` ---------------------------------------- Different datatypes corresponds to widgets that are used within question-panel:
#lang racket/gui (provide make-gui gui-add! boolean-widget money-widget text-widget) (define (make-gui name) (new survey-frame% [label (format "~s" name)])) (define survey-frame% (class frame% (inherit show) (define questions null) (define/public (...
afad360b34a2b24b0dfb40e5ff66186f8f28e69c72a96a01a96869e62e4b3291
clj-commons/kibit
control_structures.clj
(ns kibit.test.control-structures (:require [kibit.check :as kibit]) (:use [clojure.test])) (deftest control-structures-are (are [expected-alt-form test-form] (= expected-alt-form (:alt (kibit/check-expr test-form))) '(when test then) '(if test then nil) '(when-not test else) '(if test nil else) ...
null
https://raw.githubusercontent.com/clj-commons/kibit/be27e6db625564d045e71a6e13e459eb7651813b/kibit/test/kibit/test/control_structures.clj
clojure
(ns kibit.test.control-structures (:require [kibit.check :as kibit]) (:use [clojure.test])) (deftest control-structures-are (are [expected-alt-form test-form] (= expected-alt-form (:alt (kibit/check-expr test-form))) '(when test then) '(if test then nil) '(when-not test else) '(if test nil else) ...
24dc0649312914558c890bfc7fd527ca84c93b343e7ab31734f369950d3ffc80
morpheusgraphql/morpheus-graphql
Validation.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedT...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/1d3ab7e3bc723e29ef8bd2a0c818a03ae82ce8ad/morpheus-graphql-core/src/Data/Morpheus/Validation/Document/Validation.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # - - -
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE NoImplici...
b7ba780414c95063e7d62fb4505b87201cc421a7baa56ddafcf3a23a8f65e86f
thierry-martinez/stdcompat
filename.mli
val current_dir_name : string val parent_dir_name : string val dir_sep : string val concat : string -> string -> string val is_relative : string -> bool val is_implicit : string -> bool val check_suffix : string -> string -> bool val chop_suffix : string -> string -> string val extension : string -> string val remove_e...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/4.06/filename.mli
ocaml
val current_dir_name : string val parent_dir_name : string val dir_sep : string val concat : string -> string -> string val is_relative : string -> bool val is_implicit : string -> bool val check_suffix : string -> string -> bool val chop_suffix : string -> string -> string val extension : string -> string val remove_e...
f2dc10be12f4cbe96f80ae7983d3ca2e434e5b11d2a93001ec6307317bd1aa05
haskell/attoparsec
TextFastSet.hs
{-# LANGUAGE BangPatterns #-} ------------------------------------------------------------------------------ -- | Module : Data . Attoparsec . FastSet Copyright : , 2007 - 2015 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- Fast set memb...
null
https://raw.githubusercontent.com/haskell/attoparsec/85510bdf2c0a42daaf2ab5ef126d5d94a648993a/benchmarks/TextFastSet.hs
haskell
# LANGUAGE BangPatterns # ---------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental Portability : unknown collision resolution. The set representation is unboxed, and the characters and hashes interleaved, for efficiency. -...
Module : Data . Attoparsec . FastSet Copyright : , 2007 - 2015 Fast set membership tests for ' ' values . We test for membership using a hashtable implemented with module TextFastSet ( FastSet , fromList , set , member , charClass ) where import Data.Bits ((....
75bd38b43c967bdb3e13c99f44cec021a22eca0ad5b701d5d4403856e71c6a0c
UU-ComputerScience/uhc
95-prefix1.hs
test prelude , variant 1 , to be prefixed to source which request this by means of ' -- # # inline test ( XXX ) -- ' in first line infixr 3 && data PackedString data [] a = ''[]'' | a : [a] data Bool = False | True data Ordering = LT | EQ | GT type String = [Char] foreign import ccall "primCStringToString" pack...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/95-prefix1.hs
haskell
# # inline test ( XXX ) -- ' in first line
test prelude , variant 1 , to be prefixed to source which request this infixr 3 && data PackedString data [] a = ''[]'' | a : [a] data Bool = False | True data Ordering = LT | EQ | GT type String = [Char] foreign import ccall "primCStringToString" packedStringToString :: PackedString -> String foreign import ccal...
ce27089ff8d72f6d3fc2bc057e48bc3411168102319fafd03728a51859f47a6f
jyh/metaprl
itt_hoas_sequent_tactics.ml
doc <:doc< ---------------------------------------------------------------- @begin[license] Copyright (C) 2005 Mojave Group, Caltech 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...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/reflection/experimental/itt_hoas_sequent_tactics.ml
ocaml
*********************************************************************** * Basic rules tactics. *********************************************************************** * Tactics for proving well-formedness of rule checkers. ! * @docoff * * -*- * Local Variables: * Caml-master: "compile" * End: * -*-
doc <:doc< ---------------------------------------------------------------- @begin[license] Copyright (C) 2005 Mojave Group, Caltech 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...
61425807ac71fd9b14c56875714c4425d93b060100276861449e4d3cddf38fdc
lspitzner/brittany
Test497.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func = do s <- mGet mSet $ s { _lstate_indent = _lstate_indent state , _lstate_foo = _lstate_foo state }
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test497.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func = do s <- mGet mSet $ s { _lstate_indent = _lstate_indent state , _lstate_foo = _lstate_foo state }
d7a3a86ff4c032c938d8da2bf91abdefd493487b1672f9a1684e0bda3045e97e
janestreet/merlin-jst
msupport.mli
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/src/ocaml/typing/msupport.mli
ocaml
* Raise an error that can be caught: normal flow is resumed if a [catch_errors] handler was installed. * Resume after error: like [raise_error], but if a handler was provided a Resume exception is raised. This allows to specify a special case when an error is caught. * Installing (and removing) error han...
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
97383e5cea5bc549feb9ca5d8e40fb5666422c790cdc5e6246c44670c0cba589
alesaccoia/festival_flinger
cmu_us_gka_phrasing.scm
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_gka_cg/festvox/cmu_us_gka_phrasing.scm
scheme
## distribute, sublicense, and/or sell copies of this work, and to ## ## the following conditions: ## ## Email: ## Load any necessary files here The name and filename off the ngram with the a priori ngram model for pre...
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
6341fa5b94b712ab255ee6fbebbf7036e28e7cf91d5b70ce542981b588efafea
lojic/RacketCon2020
example-axio-env.rkt
#lang racket/base (require racket/contract racket/match) ;; Environment specific (e.g. production, staging, development) values. ;; This file is not kept in source control, so it can also be used for secrets. (provide axio-smtp-password axio-smtp-port axio-smtp-server axio-smtp-us...
null
https://raw.githubusercontent.com/lojic/RacketCon2020/310e0ab01d8c3e1546029720f6bb66e6d1a5fb1e/TodoApp/axio/example-axio-env.rkt
racket
Environment specific (e.g. production, staging, development) values. This file is not kept in source control, so it can also be used for secrets. axio-web-app-secret Commented out to ensure a proper secret is used (define axio-web-app-secret #"replace-this-with-random-characters") Create a custodian outside the sc...
#lang racket/base (require racket/contract racket/match) (provide axio-smtp-password axio-smtp-port axio-smtp-server axio-smtp-username axio-worker-custodian get-app-env (struct-out app-env)) (struct app-env (port-base db-database ...
2ff1bddc6f89ef3743dedaae2a164ca58faccc0f2bd9284eded2d6d4e53d12b5
NetworkVerification/nv
Memoization.ml
open Nv_lang.Syntax module type MEMOIZER = sig type t val memoize : size:int -> (t -> 'a) -> t -> 'a end module Memoize (K : Lru_cache.Key) : MEMOIZER with type t = K.t = struct module L = Lru_cache.Make (K) type t = K.t let memoize ~size (f : 'a -> 'b) : 'a -> 'b = let map = L.init size in fun x...
null
https://raw.githubusercontent.com/NetworkVerification/nv/aa48abcd1bf9d4b7167cfe83a94b44e446a636e8/src/lib/interpreter/Memoization.ml
ocaml
open Nv_lang.Syntax module type MEMOIZER = sig type t val memoize : size:int -> (t -> 'a) -> t -> 'a end module Memoize (K : Lru_cache.Key) : MEMOIZER with type t = K.t = struct module L = Lru_cache.Make (K) type t = K.t let memoize ~size (f : 'a -> 'b) : 'a -> 'b = let map = L.init size in fun x...
09c8f12b12d0893b4af7852a2d6f518575bc7110f2e4884d96a1678dae869636
spechub/Hets
CreateTheories.hs
# LANGUAGE CPP # | Module : ./Isabelle / CreateTheories.hs Description : creating Isabelle thoeries via translations Copyright : ( c ) , Uni Bremen 2005 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable(Logi...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Isabelle/CreateTheories.hs
haskell
# LANGUAGE CPP # | Module : ./Isabelle / CreateTheories.hs Description : creating Isabelle thoeries via translations Copyright : ( c ) , Uni Bremen 2005 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable(Logi...
c2f2d8cb7628c5744a03f3c50ef2d6067ba60f82a02d5e72849da1187a9546f2
johnelse/ocaml-osc
osc_types.ml
type time = { seconds: int32; fraction: int32; } type timetag = | Immediate | Time of time type argument = | Float32 of float | Int32 of int32 | String of string | Blob of string | Timetag of timetag type message = { address: string; arguments: argument list; } type bundle = { timetag: timet...
null
https://raw.githubusercontent.com/johnelse/ocaml-osc/2f2aec6cf7383b83aabd9e272362ae0b3fc085b3/src/core/osc_types.ml
ocaml
type time = { seconds: int32; fraction: int32; } type timetag = | Immediate | Time of time type argument = | Float32 of float | Int32 of int32 | String of string | Blob of string | Timetag of timetag type message = { address: string; arguments: argument list; } type bundle = { timetag: timet...
06e551e8c81f9b372d8964310a4b37b19ca22c6b3c5e83b2bd1e272c9a96374e
gsakkas/rite
0037.ml
TupleG [AppG [EmptyG],AppG [EmptyG]] (buildAverage (build (rand , depth - 1) , build (rand , depth - 1)) , build (rand , depth - 1)) (buildAverage (build (rand , depth - 1) , build (rand , depth - 1)) , buildSine (build (rand , depth - 1))) (build (rand , depth - 1) , build (rand , depth - 1) , build (rand , depth - 1)...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/clusters/0037.ml
ocaml
TupleG [AppG [EmptyG],AppG [EmptyG]] (buildAverage (build (rand , depth - 1) , build (rand , depth - 1)) , build (rand , depth - 1)) (buildAverage (build (rand , depth - 1) , build (rand , depth - 1)) , buildSine (build (rand , depth - 1))) (build (rand , depth - 1) , build (rand , depth - 1) , build (rand , depth - 1)...
8b4df6e4de2929735e738c5b25aa26843c15760f49e87d52e43aa074bf6800d0
ghuysmans/ocaml-fet
class.ml
module Year = struct type t = [`Year] No_plus.t let of_string = No_plus.of_string end module Group = struct type t = [`Group] No_plus.t let of_string = No_plus.of_string end module Subgroup = struct type t = [`Subgroup] No_plus.t let of_string = No_plus.of_string end type t = [`Year | `Group | `Subgroup]...
null
https://raw.githubusercontent.com/ghuysmans/ocaml-fet/e1f2ce9e500e16e6d181baf9e440ede21d740ef7/lib/class.ml
ocaml
module Year = struct type t = [`Year] No_plus.t let of_string = No_plus.of_string end module Group = struct type t = [`Group] No_plus.t let of_string = No_plus.of_string end module Subgroup = struct type t = [`Subgroup] No_plus.t let of_string = No_plus.of_string end type t = [`Year | `Group | `Subgroup]...
101360ca6a5ff56e33abf0899d500204f3f271473db51d55cde2776cca5cf0c1
yallop/ocaml-ctypes
cstubs_public_name.mli
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) (* Publicly visible names for...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/src/cstubs/cstubs_public_name.mli
ocaml
Publicly visible names for type values The type that should appear in the extern signature The path to a value that represents the primitive type The path to a constructor that represents the primitive type
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) val ident_of_ml_prim : 'a Ct...
98df6f6ccbf475bc048eff6524a91a13f927f62386c66b85a50b3e5c3c76555e
zcaudate-me/gita
core_test.clj
(ns gita.core-test (:require [clojure.test :refer :all] [gita.core :refer :all])) (comment (first (git :log )) (git :status) (git :checkout :name "gh-pages") (git) [:add :apply :archive :blame :branch :checkout :cherry :clean :clone :commit :describe :diff :fetch :gc :init :log :ls ...
null
https://raw.githubusercontent.com/zcaudate-me/gita/6d2cc3b66e6b8d404dda3032d7bcf4da6241893b/test/gita/core_test.clj
clojure
Oops.. I made an error: => {:git-dir java.lang.String, :directory java.lang.String, :bare boolean}
(ns gita.core-test (:require [clojure.test :refer :all] [gita.core :refer :all])) (comment (first (git :log )) (git :status) (git :checkout :name "gh-pages") (git) [:add :apply :archive :blame :branch :checkout :cherry :clean :clone :commit :describe :diff :fetch :gc :init :log :ls ...
70fae121502a39c5a40fdc79fd6e6329941dfdca192804373a568fd31deb22ce
kovtun1/DependenciesGraph
main.ml
open Swift open Str open Unix open Graph open Utils type swift_type = { name : string ; inherited_types : string list ; types_in_body : string list } let tokenize file_path = let input = open_in file_path in let tokens = Parser.main Lexer.lex (Lexing.from_channel input) in close_in input; ...
null
https://raw.githubusercontent.com/kovtun1/DependenciesGraph/cec4d2b7a29746ad7b61d76b3662afd5c39f26ff/main.ml
ocaml
Foo.Bar.Buzz -> Foo usage graph inheritance graph
open Swift open Str open Unix open Graph open Utils type swift_type = { name : string ; inherited_types : string list ; types_in_body : string list } let tokenize file_path = let input = open_in file_path in let tokens = Parser.main Lexer.lex (Lexing.from_channel input) in close_in input; ...
ff3ea97fdab7e57e65a5752d61c3e0c3e5789cb46a74f41e122f1019bb6c3ae7
pedestal/pedestal-app
diff.clj
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing to be bound by ; the terms of this licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/test/clj/io/pedestal/app/perf/model/diff.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns ^:shared io.pedestal.app.perf.model.diff) (declare diff-map) (defn- diff [prefix o n] (cond (identical? o n) nil (= o n) nil (map? n) (diff-map prefix o n) (nil? o) [[prefix :added]] (and (map? o) (nil? n))...
244ad898e7e09481f3a3be7270877e9402bb0fc2e142ca4e8f456c3cc17f8540
jeromesimeon/Galax
fn_doc.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/stdlib/fn_doc.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : fn_doc.ml , v 1.32 2007/09/07 19:03:40 mff Exp $ open Error open Galax_io open Datatypes open Dm open Monitoring_context open Processing_context Note : This module performs two main tasks : ( 1 ) it dispatches URL 's to ...
b519967e471936927e88d884f152a4bf7bf66847de01fb93a8ff397b3e7dc9ca
haskell-opengl/OpenGLRaw
TextureFloat.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.TextureFloat Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/TextureFloat.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.TextureFloat License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.TextureFloat ( glGetARBTextureFloat, gl_ARB_texture_float, pattern GL_ALPHA16F_ARB, pattern GL_ALPHA32F_ARB, pattern GL_INTENSITY16F_ARB, pattern GL_INTENSITY32F_ARB, pattern GL_LUMINANCE16F_ARB,...
f0ea8696153bcb3e0f320e39a4b19702a47bfa6c9853611552d48cc428fa4068
tisnik/clojure-examples
core_test.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns spec-demo2.core-test (:require...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/spec-demo2/test/spec_demo2/core_test.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (ns spec-demo2.core-test (:require [clojure.test :refer :all] [spec-demo2.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
e0677f44e2d94b0071e00808cf193e84a11ed98f9ecdc4376eae8101bf5f2cd4
haskus/packages
FreeVars.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Haskus.Calculus.FreeVars ( FreeVarsF (..) , freeVars ) where import Haskus.Utils.Types import Haskus.Utils.EADT imp...
null
https://raw.githubusercontent.com/haskus/packages/40ea6101cea84e2c1466bc55cdb22bed92f642a2/haskus-calculus/src/lib/Haskus/Calculus/FreeVars.hs
haskell
| Get the free variables of an expression
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Haskus.Calculus.FreeVars ( FreeVarsF (..) , freeVars ) where import Haskus.Utils.Types import Haskus.Utils.EADT imp...
9108f969c48f842a0293171176f72567de561f1b4a5c90cee558090be4592160
jpalmucci/clj-yield
test.clj
(ns test (:use yield clojure.test)) (deftest with-yielding-test ;; check that the sequence is correctly generated (is (= (apply + (with-yielding [out 10] (loop [x 1000] (if (pos? x) (do (yield out x) ...
null
https://raw.githubusercontent.com/jpalmucci/clj-yield/a5fd514ffbfccf401e535c4ec01bac5e518811c7/test/test.clj
clojure
check that the sequence is correctly generated Throw an exception, but don't read far enough to get it. checks lazy semantics hit the exception to test the exception throwing mechanism make sure we get an exception if the sequence becomes garbage collectable make sure we get an exception if we try to yield after...
(ns test (:use yield clojure.test)) (deftest with-yielding-test (is (= (apply + (with-yielding [out 10] (loop [x 1000] (if (pos? x) (do (yield out x) (recur (dec x))))))) 500500)) (is (...
135f67632cad46e16d1961a0d53ede3bcb2c0b9f64fb34cbc9f4e78a9ef2cf6e
equill/restagraph
dispatcher-auth.lisp
Copyright 2022 < > ; Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) (debug 3))) (defun auth-dis...
null
https://raw.githubusercontent.com/equill/restagraph/9038d0a4065b87fa147553f22e50a009ab7fc0c1/src/dispatcher-auth.lisp
lisp
Are we even doing authentication? Login - create session Note that we're sanitising the username in exactly the same way as for UIDs: Do this even if we don't have a corresponding resource, to mitigate the effectiveness of a timing-based user-enumeration attack. This needs to come afterward, to ensure we validat...
Copyright 2022 < > Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) (debug 3))) (defun auth-dispa...
f2da5ca316b406284056153ba5ddf631309e891c84ea3396d076bda46a0a92de
psholtz/MIT-SICP
exercise2-27.scm
;; Exercise 2.27 ;; Modify your " reverse " procedure of exercise 2.18 to produce a " deep - reverse " procedure ;; that takes a list as argument and returns as its value the list with its elements ;; reversed and with all sublists deep-reversed as well. For example: ;; ( define x ( list ( list 1 2 ) ( list 3 4 ...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-2.2/mit-scheme/exercise2-27.scm
scheme
that takes a list as argument and returns as its value the list with its elements reversed and with all sublists deep-reversed as well. For example: (reverse x) (deep-reverse x) The simplest way to implement this procedure is to simply check whether each element is itself a list, and if so, then recursi...
Exercise 2.27 Modify your " reverse " procedure of exercise 2.18 to produce a " deep - reverse " procedure ( define x ( list ( list 1 2 ) ( list 3 4 ) ) ) = = > ( ( 1 2 ) ( 3 4 ) ) ( ( 3 4 ) ( 1 2 ) ) ( ( 4 3 ) ( 2 1 ) ) The " reverse " procedure of 2.18 (define (reverse original) (if (null? original) ...
bc7da5c220bc3f802208c5c17464c73be9fd9c171f9f8fa1ab0c41f0e97386dd
cxphoe/SICP-solutions
3.19.rkt
(define (contains-cycle? seq) (define (safe-cdr s) (if (pair? s) (cdr s) s)) (define (iter a b) (cond ((not (pair? a)) #f) ((not (pair? b)) #f) ((eq? a b) #t) (else (iter (safe-cdr a) (safe-cdr (safe-cdr b)))))) (cond ((not (pair? seq)) #f) ((iter (saf...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/3.Changed%20Data/3.19.rkt
racket
(define (contains-cycle? seq) (define (safe-cdr s) (if (pair? s) (cdr s) s)) (define (iter a b) (cond ((not (pair? a)) #f) ((not (pair? b)) #f) ((eq? a b) #t) (else (iter (safe-cdr a) (safe-cdr (safe-cdr b)))))) (cond ((not (pair? seq)) #f) ((iter (saf...
627f27699c42435646d2aa0d86e003d3c06e8cb9c028035c538221d754c23c37
deadcode/Learning-CL--David-Touretzky
10.3.lisp
(setf *friends* nil) (setf *already-met* 0) (defun meet (person) (cond ((equal person (first *friends*)) (incf *already-met*) 'we-just-met) ((member person *friends*) (incf *already-met*) 'we-know-each-other) (t (push person *friends*) 'please...
null
https://raw.githubusercontent.com/deadcode/Learning-CL--David-Touretzky/b4557c33f58e382f765369971e6a4747c27ca692/Chapter%2010/10.3.lisp
lisp
(setf *friends* nil) (setf *already-met* 0) (defun meet (person) (cond ((equal person (first *friends*)) (incf *already-met*) 'we-just-met) ((member person *friends*) (incf *already-met*) 'we-know-each-other) (t (push person *friends*) 'please...
ab772f083d79c992d59d8be5646bbe3d9c48aefdbd0b42f8b002b3644d8b7258
skanev/playground
18.scm
SICP exercise 1.18 ; Using the results of exercises 1.16 and 1.17 , devise a procedure that generates an iterative process for multiplying two integers in terms of ; adding, doubling and halving and uses a logarithmic number of steps. ; Say we want to multiply a by b. We are going to do this iteratively and our ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/01/18.scm
scheme
adding, doubling and halving and uses a logarithmic number of steps. Say we want to multiply a by b. We are going to do this iteratively and our apply the following transformations: ab + c = { 2a(b/2) + c if b is even { a(b-1) + a + c if b is odd
SICP exercise 1.18 Using the results of exercises 1.16 and 1.17 , devise a procedure that generates an iterative process for multiplying two integers in terms of invariant quantitiy will be ab + c , with c initially being 0 . We iteratively We conclude the result is c when b is zero . (define (double a) (...
73cabeded8ca98d0a291c587f1d7285bf15e92cdc5061286d2ade7f387ea5a39
racket/pkg-build
same-checksums.rkt
#lang racket/base (require racket/file pkg/lib (prefix-in db: pkg/db)) (provide check-same-checksums) (define (check-same-checksums snapshot-catalog archive-catalog pkgs-for-version) (define temp-snapshot-db (make-temporary-file "snapshot...
null
https://raw.githubusercontent.com/racket/pkg-build/71c379d2997049780186d104e5464780c28efb27/private/same-checksums.rkt
racket
#lang racket/base (require racket/file pkg/lib (prefix-in db: pkg/db)) (provide check-same-checksums) (define (check-same-checksums snapshot-catalog archive-catalog pkgs-for-version) (define temp-snapshot-db (make-temporary-file "snapshot...
af0c17bcccb8b767ae50079cfe75cb70e3a4aa92caaa6fe66ab5c8d0e8b0381b
haskell-mafia/tinfoil
Sodium.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Test.IO.Tinfoil.Internal.Sodium where import Disorder.Core.IO (testIO) import P import System.IO import Test.QuickCheck import Tinfoil.Internal.Sodium import X.Control.Monad.Trans.Either ...
null
https://raw.githubusercontent.com/haskell-mafia/tinfoil/f46b2ea0b9984ac9a97073932b5584ce0a2e0554/test/Test/IO/Tinfoil/Internal/Sodium.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Test.IO.Tinfoil.Internal.Sodium where import Disorder.Core.IO (testIO) import P import System.IO import Test.QuickCheck import Tinfoil.Internal.Sodium import X.Control.Monad.Trans.Either ...
2a2e72e096011624b3b3ed58a6a0aa201aa0be1f56c3f22b5fa9c7b34c775545
gsakkas/rite
3142.ml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3142.ml
ocaml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
678a05ea0dbd63dd390eabc9812ea59669b0f91c96dbdc770d7f15372b972b15
jqueiroz/lojban.io
Core.hs
# LANGUAGE TemplateHaskell , PackageImports , TypeFamilies , FlexibleContexts , FlexibleInstances , TupleSections # FlexibleInstances, TupleSections #-} module Text.Papillon.Core ( -- * For Text.Papillon library papillonCore, Source(..), SourceList(..), -- ** For parse error message ParseError, mkParseErr...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/libs/papillon/src/Text/Papillon/Core.hs
haskell
* For Text.Papillon library ** For parse error message * For papillon command
# LANGUAGE TemplateHaskell , PackageImports , TypeFamilies , FlexibleContexts , FlexibleInstances , TupleSections # FlexibleInstances, TupleSections #-} module Text.Papillon.Core ( papillonCore, Source(..), SourceList(..), ParseError, mkParseError, peDerivs, peReading, peMessage, peCode, peComment, pe...
a7aed56f3443fe9e74e496f92ec707be7faf396ffa86f405493ece7370a4f854
atdixon/me.untethr.nostr-relay
metrics.clj
(ns me.untethr.nostr.common.metrics (:require [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.common.ws-registry :as ws-registry] [me.untethr.nostr.util :as util] [metrics.core :as metrics-core :refer [new-registry]] [metrics.counters :refer [counter inc! dec!]] [metrics.gauges :...
null
https://raw.githubusercontent.com/atdixon/me.untethr.nostr-relay/724a2af1599b630de413d78555e70bc57073552c/src/me/untethr/nostr/common/metrics.clj
clojure
arity for testing we want any last bytes sent or received to get noted in our peak rates:
(ns me.untethr.nostr.common.metrics (:require [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.common.ws-registry :as ws-registry] [me.untethr.nostr.util :as util] [metrics.core :as metrics-core :refer [new-registry]] [metrics.counters :refer [counter inc! dec!]] [metrics.gauges :...
f2726cae45e5111acb9f9bb4208104dc19fcafe2e87e98dd0b5c9d416fcda9ec
feliciofilipe/university
List.hs
( c ) MP - I ( 1998/9 - 2006/7 ) and CP ( 2005/6 - 2018/9 ) module List where import Cp import Nat ( 1 ) Datatype definition ----------------------------------------------------- --- Haskell lists are already defined, so the following is a dummy, informal declaration: --- data [a] = [] | (a : [a]) inList = e...
null
https://raw.githubusercontent.com/feliciofilipe/university/f2b5a00921c97d48033edbe21488ac829927caae/2nd/CP/src/List.hs
haskell
--------------------------------------------------- - Haskell lists are already defined, so the following is a dummy, informal declaration: - data [a] = [] | (a : [a]) ----------------------------------------------------- this is F f for this data type ------------------------------------------------------------------...
( c ) MP - I ( 1998/9 - 2006/7 ) and CP ( 2005/6 - 2018/9 ) module List where import Cp import Nat inList = either nil cons outList [] = i1 () outList (a:x) = i2(a,x) cataList g = g . recList (cataList g) . outList anaList g = inList . recList (anaList g) . g hyloList h g = cataList h . anaLis...
392ebc1ff1dbd1c49a5bf6db1ce9547033064876f4a0b1cb5cdd11a73ed0ca61
ygmpkk/house
Ix.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Ix Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : stable -- Portability : portable -- -- Class of...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/base/Data/Ix.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Ix License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable Class of index types. The 'Ix' class is used to map a continuous subrange of value...
Copyright : ( c ) The University of Glasgow 2001 integers . It is used primarily for array indexing ( see Section 6 class contains the methods range , index , and inRange . The ' index ' operation subscripts ; the ' inRange ' operation tells whether a particular subscript module Data.Ix ( Ix ) I...
a6722345e94d82050b0c886d1cdda392a28dd0aba07d7a2d043b3b3674d7b511
camfort/camfort
Core.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE KindSignatures # {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE CPP ...
null
https://raw.githubusercontent.com/camfort/camfort/861646ae5af61a41d1519049cfeda60ac82f3d98/src/Language/Fortran/Model/Op/Core/Core.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # # OPTIONS_GHC -Wall # TODO: Function calls ------------------------------------------------------------------------------ -----------------...
# LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # module Language.Fortran.Model.Op.Core.Core where #if MIN_VERSION_singletons(3,0,0) import GHC.TypeLits.Singletons #else import Data.Singletons.TypeLits #e...
8de5df541ae0d0b408eb2afcf25092c9220d3b4adbf7da307c5d826c15b142bd
AccelerateHS/accelerate-io
Primitive.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE GADTs # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # -- | -- Module : Data.Array.Accelerate.IO.Data.Vector.Primitive Copyright : [ 2017 .. 2020 ] The Acce...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-io/9d72bfb041ee2c9ffdb844b479f082e8993767f8/accelerate-io-vector/src/Data/Array/Accelerate/IO/Data/Vector/Primitive.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | Module : Data.Array.Accelerate.IO.Data.Vector.Primitive License : BSD3 Stability : experimental Efficient conversion between 'Data.Vector.Primitive' vectors and Accelerate 'Array's. | A family of types which represent a collection ...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # Copyright : [ 2017 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.IO.Data.Vector.Primitive (...
2c48787c21479020712c6c74f5769fe218676ace5148a0bb2e8da9bc48944696
mzp/coq-ruby
quote.ml
(************************************************************************) 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/contrib/ring/quote.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The `Quote' tactic i i recursive ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : quote.ml 10790 20...
0e2fb03d1dd3ba8e8350c8e39f92ce4b07b39a4bdeedaa117e763a7999105752
evturn/haskellbook
type-kwan-do.hs
1 . f :: Int -> String f = undefined g :: String -> Char g = undefined h :: Int -> Char h n = g . f $ n 2 . data A data B data C q :: A -> B q = undefined w :: B -> C w = undefined e :: A -> C e a = w . q $ a 3 . data X data Y data Z xz :: X -> Z xz = undefined yz :: Y -> Z yz = undefined xform :: (X, ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/05/chapter-exercises/type-kwan-do.hs
haskell
1 . f :: Int -> String f = undefined g :: String -> Char g = undefined h :: Int -> Char h n = g . f $ n 2 . data A data B data C q :: A -> B q = undefined w :: B -> C w = undefined e :: A -> C e a = w . q $ a 3 . data X data Y data Z xz :: X -> Z xz = undefined yz :: Y -> Z yz = undefined xform :: (X, ...
d7d92ae93f64eb753aa1efbf984ef7475cf5a946a55469d2305badc3681febba
damballa/parkour
repl.clj
(ns parkour.repl (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.tools.nrepl :as nrepl] [alembic.still :as alembic] [classlojure.core :as classlojure] [parkour (conf :as conf) (fs :as fs) (mapreduce :as mr)] [parkour.util :re...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/src/clojure/parkour/repl.clj
clojure
(ns parkour.repl (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.tools.nrepl :as nrepl] [alembic.still :as alembic] [classlojure.core :as classlojure] [parkour (conf :as conf) (fs :as fs) (mapreduce :as mr)] [parkour.util :re...
8b1c2da580ea09d35eda98d767316eedda7a1b6b79f6c51eca22b8d931362395
chef-boneyard/opscode-pushy-server
pushy_node_stats.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et %%% @doc %%% Node health statistics %%% @end Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may...
null
https://raw.githubusercontent.com/chef-boneyard/opscode-pushy-server/7272326960fcc35eaa99fa8d5f5bd58959755b3e/apps/pushy/src/pushy_node_stats.erl
erlang
ex: ts=4 sw=4 et @doc Node health statistics @end 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, KIND, either express or implied. See the License for the s...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CON...
507185d078989c4dac7fa710f0a54ced804414fb4a86f86ab59ad4f30751ac3a
appleshan/cl-http
cl-http-70-198.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- Patch file for CL - HTTP version 70.198 ;;; Reason: Function HTTP::%ABSOLUTIZE-RELATIVE-URL: new ;;; Function HTTP::ABSOLUTIZE-RELATIVE-URL: use it. ;;; Function HTTP::SET-URL-CONTEXT-REMAPPING: update. ;;; Function HTTP...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/server/patch/cl-http-70/cl-http-70-198.lisp
lisp
Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- Reason: Function HTTP::%ABSOLUTIZE-RELATIVE-URL: new Function HTTP::ABSOLUTIZE-RELATIVE-URL: use it. Function HTTP::SET-URL-CONTEXT-REMAPPING: update. Function HTTP::%DEFINE-URL-CONTEXT-REMAPPINGS: update Function HTTP:DEFINE-URL-CONTE...
Patch file for CL - HTTP version 70.198 Written by , 7/11/05 13:02:12 while running on FUJI - VLM from FUJI:/usr / lib / symbolics / Plus - CL - HTTP - A - CSAIL-8 - 5.vlod with Open Genera 2.0 , Genera 8.5 , Lock Simple 437.0 , Version Control 405.0 , Compare Merge 404.0 , VC Documentation 401.0 , Logical...
96f9bacd77fef4a8fce95232df6ed2d3f9add91215cfc0709f0df1eaec62918b
ericfinster/catt.io
mtl.ml
(*****************************************************************************) (* Monad Transformers *) (*****************************************************************************) module type Typ = sig type t end module type Functor = sig type 'a t va...
null
https://raw.githubusercontent.com/ericfinster/catt.io/0f2446860b7daba8ac2c343f933056195151a819/lib/mtl.ml
ocaml
*************************************************************************** Monad Transformers *************************************************************************** Now this is in global scope ... **********************************************************...
module type Typ = sig type t end module type Functor = sig type 'a t val map : ('a -> 'b) -> 'a t -> 'b t end module type Mnd = sig type 'a m val bind : 'a m -> ('a -> 'b m) -> 'b m val pure : 'a -> 'a m end module type Traverse = sig type 'a t type 'a m val traverse : ('a -> 'b m) -> 'a t -> 'b ...
35dd8b1e094e3b21dd777b72f95d3c838571313dcd313158c0f9bb849a1340cb
ros/roslisp
debug-levels.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Software License Agreement (BSD License) ;; Copyright ( c ) 2008 , Willow Garage , Inc. ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with ;; or without modification, are permitted provided that the ;; following cond...
null
https://raw.githubusercontent.com/ros/roslisp/559355a8d695e34e6dedae071a9af2c065411687/src/debug-levels.lisp
lisp
Software License Agreement (BSD License) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
Copyright ( c ) 2008 , Willow Garage , Inc. * Neither the name of Willow Garage , Inc. nor the names CONTRIBUTORS " AS IS " AND ANY EXPRESS OR COPYRIGHT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN (in-package :roslisp) (...
ff0622e5e5ec145ac8168911ae9291ce5b8296d293236d0d3392038fddf4e325
clojure-interop/google-cloud-clients
ApplicationServiceSettings.clj
(ns com.google.cloud.talent.v4beta1.ApplicationServiceSettings "Settings class to configure an instance of ApplicationServiceClient. The default instance has everything set to sensible defaults: The default service address (jobs.googleapis.com) and default port (443) are used. Credentials are acquired au...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.talent/src/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.clj
clojure
"
(ns com.google.cloud.talent.v4beta1.ApplicationServiceSettings "Settings class to configure an instance of ApplicationServiceClient. The default instance has everything set to sensible defaults: The default service address (jobs.googleapis.com) and default port (443) are used. Credentials are acquired au...
3753e22ed48d82fc6ec686d6cdb4f61b4f1507876ac3cf343c70d9ad1c45cd97
BranchTaken/Hemlock
test_diff.ml
open! Basis.Rudiments open! Basis open Set let test () = let test ms0 ms1 = begin let set0 = of_list (module Uns) ms0 in let set1 = of_list (module Uns) ms1 in let set = diff set0 set1 in let ms = to_list set in List.iter ms0 ~f:(fun m -> assert ((mem m set) || (mem m set1))); List.iter ms1 ~...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/07922d4658ca6ecf37dfd46f5aca31c8b58e06e4/bootstrap/test/basis/set/test_diff.ml
ocaml
open! Basis.Rudiments open! Basis open Set let test () = let test ms0 ms1 = begin let set0 = of_list (module Uns) ms0 in let set1 = of_list (module Uns) ms1 in let set = diff set0 set1 in let ms = to_list set in List.iter ms0 ~f:(fun m -> assert ((mem m set) || (mem m set1))); List.iter ms1 ~...
10b8bf2f89212620bb094456819b0f608b8e5be77f675e7606fb4af359018dfd
gvolpe/effects-playground
Cloud.hs
module Cloud ( cloudEcho ) where import Prelude hiding ( read ) import Control.Applicative ( (<|>) ) import Control.Monad.IO.Class ( liftIO ) import Data.Functor ( void ) import Data.Monoid ( ...
null
https://raw.githubusercontent.com/gvolpe/effects-playground/2b5600fe0378b6716282b59785c98a8a75445aa1/src/Cloud.hs
haskell
Not the best of the examples for Transient since it's more for concurrent and parallel computations To make it more interesting we write twice in parallel using <|> (alternative operator)
module Cloud ( cloudEcho ) where import Prelude hiding ( read ) import Control.Applicative ( (<|>) ) import Control.Monad.IO.Class ( liftIO ) import Data.Functor ( void ) import Data.Monoid ( ...
098b858b2135b5655b004ebd8139c74dc13cc03699fa34b3c9452700821fdc33
choener/BiobaseXNA
Convert.hs
-- | This module gives functionality to convert between different variants -- of secondary structure elements. module Biobase.Secondary.Convert where import Biobase.Types.BioSequence import Biobase.Primary.Letter import Biobase.Primary.Nuc.RNA import Biobase.Secondary.Basepai...
null
https://raw.githubusercontent.com/choener/BiobaseXNA/ebec70a3906106a50c29cdbbce9a3247d6ebb15f/Biobase/Secondary/Convert.hs
haskell
| This module gives functionality to convert between different variants of secondary structure elements. | @basepairConvert@ converts between different secondary structure base pair representations. In general, the conversion is lossy, in particular ** @(RNA,RNA) <-> Basepair@ ** @(RNA,RNA) <-> ViennaPair@ ** @B...
module Biobase.Secondary.Convert where import Biobase.Types.BioSequence import Biobase.Primary.Letter import Biobase.Primary.Nuc.RNA import Biobase.Secondary.Basepair import Biobase.Secondary.Vienna (ViennaPair(..)) import qualified Biobase.Secondary.Vienna as SV im...
617eee9dae959ef6da397851f348733de757f6671b9ec6c325a640a606e2a622
uim/sigscheme
test-letstar.scm
;; Filename : test-letstar.scm About : unit test for R5RS let * ;; Copyright ( C ) 2005 - 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-letstar.scm
scheme
Filename : test-letstar.scm 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 fo...
About : unit test for R5RS let * Copyright ( C ) 2005 - 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above cop...
d7052f6092ed0bc585de49c700ce6b3250e8f486525f1766c5ee87ca49697dfd
jonsterling/dreamtt
Frontend.mli
open Basis * { 1 The source language } We begin by defining a naive source language . We begin by defining a naive source language. *) include module type of Code (** {1 Elaboration} *) module R := Core.Refiner module Elaborator : sig type resolver include Reader.S with type local = resolver ...
null
https://raw.githubusercontent.com/jonsterling/dreamtt/aa30a57ca869e91a295e586773a892c6601b5ddb/frontend/Frontend.mli
ocaml
* {1 Elaboration} * The main entry-point: check a piece of code against a type. * Checking introduction forms against their types. * Elaborating an elimination form. * Elaborate a type * {1 Distillation} * The distiller takes a core-language term and turns it into a source language code.
open Basis * { 1 The source language } We begin by defining a naive source language . We begin by defining a naive source language. *) include module type of Code module R := Core.Refiner module Elaborator : sig type resolver include Reader.S with type local = resolver val elab_chk_code : cod...
19cc6ac80b907444e32af7b0fed5e77468d3178b77314d5049028ed1213f8746
andrewmcveigh/cljs-time
version.clj
(ns boot.version) (defn read-version [] (let [[version qualifier] (-> (slurp "VERSION") (string/split #"-")) [major minor patch] (string/split version #"\.") snapshot? (re-find #"SNAPSHOT" qualifier) numerics (mapv #(Integer. %) [major minor patch])] (cond-> (zipmap [:major :minor :patch...
null
https://raw.githubusercontent.com/andrewmcveigh/cljs-time/7f86226ef2bc5e1c8e00ab9c36096e76f84a73e1/dev/boot/version.clj
clojure
(ns boot.version) (defn read-version [] (let [[version qualifier] (-> (slurp "VERSION") (string/split #"-")) [major minor patch] (string/split version #"\.") snapshot? (re-find #"SNAPSHOT" qualifier) numerics (mapv #(Integer. %) [major minor patch])] (cond-> (zipmap [:major :minor :patch...
5db16ae3ff3d5721a9821e16bc9c74b70fb450a9630626bdda827236b2622734
xvw/muhokama
user_views.ml
open Lib_service module Create = struct let user_email_input ?(placeholder = "") () = let open Tyxml.Html in div ~a:[ a_class [ "field" ] ] [ label ~a:[ a_class [ "label" ]; a_label_for "register_user_email" ] [ txt "Adresse électronique" ] ; div ~a:[ a_class [...
null
https://raw.githubusercontent.com/xvw/muhokama/ad2f9961a66a5738d68f80c41502b9d56773def7/app/views/user_views.ml
ocaml
open Lib_service module Create = struct let user_email_input ?(placeholder = "") () = let open Tyxml.Html in div ~a:[ a_class [ "field" ] ] [ label ~a:[ a_class [ "label" ]; a_label_for "register_user_email" ] [ txt "Adresse électronique" ] ; div ~a:[ a_class [...
8e369c99f99183a922e73ec9355c12c8789e6f84241c95ec2fc8a4a884d15bc7
McCLIM/McCLIM
demodemo.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 2002 by ( c ) copyright 2017 - 2020 by ( c ) copyright 2018 - 2020...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/cb1622a27988c1441d2623ab042130069ab62a5e/Examples/demodemo.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- I broke this logic, sorry....
( c ) copyright 2002 by ( c ) copyright 2017 - 2020 by ( c ) copyright 2018 - 2020 Jan Moringen < > Launcher application for various demos and graphical tests . (in-package #:clim-demo) (defun make-demo-button (title demo-frame-class) (make-pane 'push-button :label title :a...
1532f2e24be49f5ea3450287b68d6fa0f11e8e14d2e8e1f49b143b65fa88d668
dvdt/xvsy
utils.cljc
(ns xvsy.utils (:require [schema.core :as s] [clojure.walk] [clojure.data.json] [clojure.set])) (defn css "inspired by hiccup example: (css [\"div\" \".my-class\"] {:font \"10px sans-serif\"}) -> \"div .my-class { font: 10px sans-serif;\"" ([selector style] (le...
null
https://raw.githubusercontent.com/dvdt/xvsy/ff29b96affc6723bb9c66da1011f31900af679dd/src/cljc/xvsy/utils.cljc
clojure
\""
(ns xvsy.utils (:require [schema.core :as s] [clojure.walk] [clojure.data.json] [clojure.set])) (defn css "inspired by hiccup example: (css [\"div\" \".my-class\"] {:font \"10px sans-serif\"}) -> \"div .my-class { ([selector style] (let [selector-str (apply str (map #(s...
4a1767706295eb8ba0fcd689728137a2498d37bafa0085e7956bd365db53dcad
tbsschroeder/clojure-webshop-app
routes_test.clj
(ns metro.web.routes-test (:require [io.pedestal.test :refer [response-for]] [clojure.test :refer [deftest is are testing]] [clojure.string :as string] [metro.components.server.routes :as routes] [metro.system-test :as test])) (deftest greeting-test (testing "Greetin...
null
https://raw.githubusercontent.com/tbsschroeder/clojure-webshop-app/acedaceae794b8c9bd0805356880169e19a66b86/test/metro/web/routes_test.clj
clojure
(ns metro.web.routes-test (:require [io.pedestal.test :refer [response-for]] [clojure.test :refer [deftest is are testing]] [clojure.string :as string] [metro.components.server.routes :as routes] [metro.system-test :as test])) (deftest greeting-test (testing "Greetin...
63427ad8ec0fd65d0f79098440f9c4f606213eb0abd9ab521fe7453ba00e3991
fishcakez/sbroker
sbroker_statem2_queue.erl
%%------------------------------------------------------------------- %% Copyright ( c ) 2015 , < > %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may obtain %% a copy of the License at %% %% -2.0 ...
null
https://raw.githubusercontent.com/fishcakez/sbroker/10f7e3970d0a296fbf08b1d1a94c88979a7deb5e/test/sbroker_statem2_queue.erl
erlang
------------------------------------------------------------------- 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, KIND, either express or implied. See the Lic...
Copyright ( c ) 2015 , < > This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(sbroker_statem2_queue). -behaviour(sbroker_queue). -export([init/3]). -export([handle_in/5]). -exp...
2b2937a54f50a3bd868a36ab6b6e1c2a47f5aed005e888de553faaa64f7e5e03
inconvergent/weir
path.lisp
(in-package :math) (defun line-from (a r &optional (s 1d0)) (declare (vec:vec a r) (double-float s)) (list a (vec:from a r s))) (defun path-tangents (aa &key closed (default vec:*zero*) &aux (aa* (if (equal (type-of aa) 'cons) (make-adjustable-vec...
null
https://raw.githubusercontent.com/inconvergent/weir/3c364e3a0e15526f0d6985f08a57b312b5c35f7d/src/math/path.lisp
lisp
----- STIPPLE ----- more or less as suggested in
(in-package :math) (defun line-from (a r &optional (s 1d0)) (declare (vec:vec a r) (double-float s)) (list a (vec:from a r s))) (defun path-tangents (aa &key closed (default vec:*zero*) &aux (aa* (if (equal (type-of aa) 'cons) (make-adjustable-vec...
6dac2900f1baabf2b78758598882a94f7f6a64d29cdac4ae52ab4994d11ffff8
MinaProtocol/mina
transaction_snark_tests_verify_simple_test.ml
open Core_kernel open Mina_base let `VK { With_hash.data = vk; hash = _ }, `Prover p = Transaction_snark.For_tests.create_trivial_snapp ~constraint_constants:Genesis_constants.Constraint_constants.compiled () let vk = vk |> Binable.to_string (module Pickles.Side_loaded.Verification_key.Stable.Latest)...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d84d63a0a2522603f3183eb0a49321399763c43a/src/lib/transaction_snark/test/verify-simple-test/transaction_snark_tests_verify_simple_test.ml
ocaml
open Core_kernel open Mina_base let `VK { With_hash.data = vk; hash = _ }, `Prover p = Transaction_snark.For_tests.create_trivial_snapp ~constraint_constants:Genesis_constants.Constraint_constants.compiled () let vk = vk |> Binable.to_string (module Pickles.Side_loaded.Verification_key.Stable.Latest)...
4f21126868dbde7a741f926f8a94739bb954dc198fa9cd6cc2fb9f822fd2ccd5
gas2serra/cldk
package.lisp
(defpackage :cldk-render (:use :cldk) (:import-from :cldk ;; colors #:octet #:octet-mult #:octet-blend-function #:octet-rgba-blend-function #:octet-rgb-blend-function #:octet-gray-blend-function #:octet-alpha-blend-function #:rgba->rgb #:rgba->gray #:rgba->gray-alp...
null
https://raw.githubusercontent.com/gas2serra/cldk/c979a1f2d4422ae9fb765b3a177474bc5719b036/mcclim/render/package.lisp
lisp
colors image operations images colors image operations colors image design image ops opticl image ch image colors image #:image #:image-mixin #:rgb-image-mixin #:rgba-image-mixin #:gray-image-mixin #:basic-image design opticl image backend #:truetype-font-size #:truetype-font-face ...
(defpackage :cldk-render (:use :cldk) (:import-from :cldk #:octet #:octet-mult #:octet-blend-function #:octet-rgba-blend-function #:octet-rgb-blend-function #:octet-gray-blend-function #:octet-alpha-blend-function #:rgba->rgb #:rgba->gray #:rgba->gray-alpha #:rgba->alpha #:rgb-...
57eee3c58abaa40388f457f13e9b29dd2b6d77ce30356ce787572d3674384ef9
facebook/infer
printer.ml
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/facebook/infer/c16e1ccebeed0220b1aeefc338cd2f273b0a8fe9/infer/src/backend/printer.ml
ocaml
* Printers for the analysis results * Current formatter for the html output * Return true if the node was visited during analysis * Print information into html files for nodes when starting and finishing the processing of a node load payloads eagerly as we need them to print them all Only used in debug html mode...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
a913c083934408328aaabb1d33f488233f8b2d752cd929da7c992b94ca4739a0
LPCIC/matita
ocamlExtraction.mli
open OcamlExtractionTable (* These commands have an effect iff OCAML_EXTRACTION is set *) val print_open: #status as 'status -> NUri.uri list -> 'status val print_ocaml_of_obj: #status as 'status -> NCic.obj -> 'status val open_file: #status as 'status -> baseuri:string -> string -> 'status val close_file: #status as...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_extraction/ocamlExtraction.mli
ocaml
These commands have an effect iff OCAML_EXTRACTION is set
open OcamlExtractionTable val print_open: #status as 'status -> NUri.uri list -> 'status val print_ocaml_of_obj: #status as 'status -> NCic.obj -> 'status val open_file: #status as 'status -> baseuri:string -> string -> 'status val close_file: #status as 'status -> 'status
429a2d737e088ae8739911088dc1f72f02489a1068eab8b1e5ed319bb955dd3a
Plisp/vico
specials.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / specials.lisp , v 1.43 2009/10/28 07:36:15 edi Exp $ ;;; globally declared special variables Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved . ;;; Redistribution and use in ...
null
https://raw.githubusercontent.com/Plisp/vico/40606aea583ef9db98941ee337feb47f10c9696c/src/cl-ppcre-custom/specials.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- globally declared special variables Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright n...
$ Header : /usr / local / cvsrep / cl - ppcre / specials.lisp , v 1.43 2009/10/28 07:36:15 edi Exp $ Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-packa...
45721130044126b150693e0188a2043468c75dc97e011571edb8e659c986cbe4
fstamour/breeze
documentation.lisp
(in-package #:common-lisp-user) (defpackage #:breeze.test.documentation (:use :cl #:breeze.documentation) (:import-from #:parachute #:define-test #:is #:true #:false)) (in-package #:breeze.test.documentation) (defun find-undocumented-symbols-in-dumm...
null
https://raw.githubusercontent.com/fstamour/breeze/eb25eccd91481e907d31b2cd8afdc2a5eaf4265b/tests/documentation.lisp
lisp
Sort Find in Dummy package
(in-package #:common-lisp-user) (defpackage #:breeze.test.documentation (:use :cl #:breeze.documentation) (:import-from #:parachute #:define-test #:is #:true #:false)) (in-package #:breeze.test.documentation) (defun find-undocumented-symbols-in-dumm...
9342cf8242ef950aa457d6cfbdc114d843bdefdd3d9042612c51e6435ce15420
helium/erlang-libp2p
libp2p_transport_tcp.erl
-module(libp2p_transport_tcp). -behaviour(libp2p_connection). -behavior(gen_server). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -type listen_opt() :: {backlog, non_neg_integer()} | {buffer, non_neg_integer()} | {delay_send, boolean()} | ...
null
https://raw.githubusercontent.com/helium/erlang-libp2p/3d81f62ba1c036e417237fb4e9e1ac6cddd8d3f2/src/libp2p_transport_tcp.erl
erlang
List of non-publicly routable IP address blocks in CIDR notation: {IP, bits in mask}. libp2p_transport gen_server libp2p_connection for tcp sockets libp2p_transport Same kind of IP address to a straight compare they're the same different, so return if A is a default route address or not Different, A <= B if ...
-module(libp2p_transport_tcp). -behaviour(libp2p_connection). -behavior(gen_server). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -type listen_opt() :: {backlog, non_neg_integer()} | {buffer, non_neg_integer()} | {delay_send, boolean()} | ...
7b8584940244b53ae907d075322de5df3be79c29efeee9d722f60dceb17bd207
metosin/kekkonen
main.clj
(ns sample.main (:require [reloaded.repl :refer [set-init! go]]) (:gen-class)) (defn -main [& [port]] (let [port (or port 3000)] (require 'sample.system) (set-init! #((resolve 'sample.system/new-system) {:http {:port port}})) (go)))
null
https://raw.githubusercontent.com/metosin/kekkonen/5a38c52af34a0eb0f19d87e9f549e93e6d87885f/examples/component/src/sample/main.clj
clojure
(ns sample.main (:require [reloaded.repl :refer [set-init! go]]) (:gen-class)) (defn -main [& [port]] (let [port (or port 3000)] (require 'sample.system) (set-init! #((resolve 'sample.system/new-system) {:http {:port port}})) (go)))
368e95f352174339458cf3097eac2b9de22e2852dcbaaef0c3369100c69b9013
comtihon/social_network_example
sn_logger.erl
%%%------------------------------------------------------------------- @author tihon ( C ) 2017 , < COMPANY > %%% @doc %%% This module is responsible for logging. It should be called for %%% logging all over this application. %%% @end %%%------------------------------------------------------------------- -module(s...
null
https://raw.githubusercontent.com/comtihon/social_network_example/eed32f43947fc8d88c41e38fc2d31d2371be0c2b/src/support/sn_logger.erl
erlang
------------------------------------------------------------------- @doc This module is responsible for logging. It should be called for logging all over this application. @end ------------------------------------------------------------------- API
@author tihon ( C ) 2017 , < COMPANY > -module(sn_logger). -author("tihon"). -export([init/0]). -export([log_debug/2, log_info/2, log_warn/2, log_err/2]). -export([log_debug/1, log_info/1, log_warn/1, log_err/1]). log_debug(A) -> log_debug(A, []). log_debug(_A, _B) -> erlang:error(not_implemented). log_info(A)...
5f9b016f4b58550ba0604c9505dc76a63f7a280b1e8bbcf857bc7930f5de2bfe
ryanpbrewster/haskell
package_problem.hs
-- package_problem.hs - - Package Problem - Challenge Description : - - You want to send your friend a package with different things . - Each thing you put inside of a package has such parameters as index number , weight and cost . - The package has a weight limitation . - Your goal is to determ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/CodeEval/package_problem.hs
haskell
package_problem.hs --------------- Problem Setup --------------- ------------------ Data definitions ------------------ ------------------- Parsing Functions -------------------
- - Package Problem - Challenge Description : - - You want to send your friend a package with different things . - Each thing you put inside of a package has such parameters as index number , weight and cost . - The package has a weight limitation . - Your goal is to determine which things to pu...
1ee443fa2f93de826df6ccb4481d2ddfb4d5361ae73c6c3a91d064dda8bd9da4
openvstorage/alba
rocks_store.ml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Key_value_store module Rocks_key_value_store_ = struct type t = Rock...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/rocks_store.ml
ocaml
maybe we jumped to far...
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Key_value_store module Rocks_key_value_store_ = struct type t = Rock...
fe03c0f0c96f2dfb1b55ef384ce599446c5579deb747b9bd8d28fe3ea8367b02
reasonml-old/bs-containers
blist_ref.ml
type 'a t = 'a list ref let push l x = l := x :: !l let pop l = match !l with | [] -> None | x::tail -> l := tail; Some x let popOrRaise l = match !l with | [] -> failwith "BList.Ref.popOrRaise" | x::tail -> l := tail; x let create() = ref [] let clear l = l := [...
null
https://raw.githubusercontent.com/reasonml-old/bs-containers/dfd1360dc74ede57c09e9f9d837ce59285af6fd2/src/blist_ref.ml
ocaml
type 'a t = 'a list ref let push l x = l := x :: !l let pop l = match !l with | [] -> None | x::tail -> l := tail; Some x let popOrRaise l = match !l with | [] -> failwith "BList.Ref.popOrRaise" | x::tail -> l := tail; x let create() = ref [] let clear l = l := [...
6b2724a90749bc2c9e7b65b31b99829243217f93ea60f40a2c51fb5c0a609146
tmattio/spin
dec_project.ml
open Dec_common type t = { source : Source.t ; configs : (string * string) list } module Config = struct module Errors = struct let unexpected_format = "Expected an s-expression of the for (<config-name> <config-value>)" end let decode sexp = match sexp with | Sexplib.Sexp.List ...
null
https://raw.githubusercontent.com/tmattio/spin/092ab5979d4f1d01f538743443b70465a2d5ed23/lib/spin/decoders/dec_project.ml
ocaml
open Dec_common type t = { source : Source.t ; configs : (string * string) list } module Config = struct module Errors = struct let unexpected_format = "Expected an s-expression of the for (<config-name> <config-value>)" end let decode sexp = match sexp with | Sexplib.Sexp.List ...
b83aa9f00726e53a0031a392d69f61bae6cd39cde4bcd4c0e7201bafc57fac1c
functionally/mantis-oracle
Client.hs
----------------------------------------------------------------------------- -- -- Module : $Headers Copyright : ( c ) 2021 License : MIT -- Maintainer : < > -- Stability : Experimental Portability : Portable -- -- | Client access for the general-purpose oracle. -- -----------...
null
https://raw.githubusercontent.com/functionally/mantis-oracle/10331c6720d8413fd9a01b8c7fb6dc0ef0f20f31/src/Mantra/Oracle/Client.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental | Client access for the general-purpose oracle. --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies #...
Copyright : ( c ) 2021 License : MIT Maintainer : < > Portability : Portable # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Mantra.O...
ca1cf33356d5a25abab29f9818f166cd68c756b7ddf47c76fd538a8ced1eabff
BinaryAnalysisPlatform/bap
bap_mips_target.ml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Bap.Std let package = "bap" type r128 and r80 and r64 and r32 and r16 and r8 type 'a bitv = 'a Theory.Bitv.t Theory.Value.sort let r128 : r128 bitv = Theory.Bitv.define 128 let r80 : r80 bitv = Theory.Bitv.define 80 let r64 : r64 bitv = Theory.Bitv.define ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/4d019ce6f26764cc39b4252eb866908094d2ca10/lib/bap_mips/bap_mips_target.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Bap.Std let package = "bap" type r128 and r80 and r64 and r32 and r16 and r8 type 'a bitv = 'a Theory.Bitv.t Theory.Value.sort let r128 : r128 bitv = Theory.Bitv.define 128 let r80 : r80 bitv = Theory.Bitv.define 80 let r64 : r64 bitv = Theory.Bitv.define ...
246967ebc35eeebeafa62214dcb08242ccad30207977e7702329a64b87cb5455
RolfRolles/PandemicML
X86Encode.ml
* Open issues : * * How to incorporate 0x6A ? * * How to do ( 0xD7 ) ? Predicated(PRED_AddrSize(Direct(Xlat,[oMbBx]),Direct(Xlat,[oMbEbx ] ) ) ) ; * * How to represent near and far jumps and calls in the tables ? * Open issues: * * How to incorporate 0x6A? * * How to do XLAT (0xD7)? Predicated(P...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/X86/X86Encode.ml
ocaml
FIX THESE Despite nomenclature, these things require *address prefixes* This one might seem to be out of place, but I am rather confused about x64 encoding at the moment Add the stem to the encoding
* Open issues : * * How to incorporate 0x6A ? * * How to do ( 0xD7 ) ? Predicated(PRED_AddrSize(Direct(Xlat,[oMbBx]),Direct(Xlat,[oMbEbx ] ) ) ) ; * * How to represent near and far jumps and calls in the tables ? * Open issues: * * How to incorporate 0x6A? * * How to do XLAT (0xD7)? Predicated(P...
02ebcf9acf6f275391841ebcc30338a4e6b3c037f5471a01f18486cdf37f28a4
metabase/metabase
test_util.clj
(ns metabase.cmd.test-util (:require [metabase.util.files :as u.files])) (set! *warn-on-reflection* true) (def fixture-db-file-path (delay (let [original-file "frontend/test/__runner__/test_db_fixture.db.mv.db"] (u.files/copy-file! (u.files/get-path original-file) (u.files/get-path (System/getPropert...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/cmd/test_util.clj
clojure
(ns metabase.cmd.test-util (:require [metabase.util.files :as u.files])) (set! *warn-on-reflection* true) (def fixture-db-file-path (delay (let [original-file "frontend/test/__runner__/test_db_fixture.db.mv.db"] (u.files/copy-file! (u.files/get-path original-file) (u.files/get-path (System/getPropert...
76dea88ddb6fe598b0ec716f4d2ae37513e22c89e3693654fa3a547ca3c65975
scotty-web/scotty-tls
TLS.hs
{-# LANGUAGE RankNTypes #-} module Web.Scotty.TLS * A method for running over TLS scottyTLS -- * Transformer version , scottyTLSSettings , scottyTTLS , module Web.Scotty.Trans ) where import Control.Monad ((<=<)) import Control.Monad.IO.Class (Mon...
null
https://raw.githubusercontent.com/scotty-web/scotty-tls/83c3455a0e919006aff5f0603d637be88c45ecbf/Web/Scotty/TLS.hs
haskell
# LANGUAGE RankNTypes # * Transformer version
module Web.Scotty.TLS * A method for running over TLS scottyTLS , scottyTLSSettings , scottyTTLS , module Web.Scotty.Trans ) where import Control.Monad ((<=<)) import Control.Monad.IO.Class (MonadIO (liftIO)) import Network.Wai ...
8ca1bd79dafcb56184ce8b839a3dd7dbe3c846fc1be8ab6afc3704bcef331536
emqx/emqx
emqx_retainer_proto_v1.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_retainer/src/proto/emqx_retainer_proto_v1.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_retainer_proto_v1). -behaviour(emqx_bpapi). -include_lib("emqx/include/bpapi.hrl"...
a9d3fac7d8b190c277ce478a284b6a062fccfd4696ad1cd6dbd85dff5bacdc6a
MLanguage/mlang
mir_interface.ml
Copyright ( C ) 2019 - 2021 Inria , contributors : < > < > 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 la...
null
https://raw.githubusercontent.com/MLanguage/mlang/b33f71fd9956dd77cb948f552a62bed7cc0cd067/src/mlang/m_ir/mir_interface.ml
ocaml
ignore this case
Copyright ( C ) 2019 - 2021 Inria , contributors : < > < > 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 la...
03e3f79c3e2a6a770e54a359d707e87507336019e3a78a91621e2ec5896f81b7
robstewart57/rdf4h
RDF.hs
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.RDF where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qualif...
null
https://raw.githubusercontent.com/robstewart57/rdf4h/22538a916ec35ad1c46f9946ca66efed24d95c75/src/Data/RDF/Vocabulary/RDF.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.RDF where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qualif...
6bfc4f052b030c74e93d6bc490e99005618459f8a879eeafef594da55d8dc2c0
nedap/formatting-stack
clean_ns.clj
(ns formatting-stack.formatters.clean-ns (:require [formatting-stack.formatters.clean-ns.impl :as impl] [formatting-stack.formatters.how-to-ns] [formatting-stack.protocols.formatter :as formatter] [formatting-stack.protocols.linter :as linter] [formatting-stack.util :refer [ensure-sequential process-in...
null
https://raw.githubusercontent.com/nedap/formatting-stack/6699eb137f54ffc0ce41476f2ccbdf231cb40f8d/src/formatting_stack/formatters/clean_ns.clj
clojure
lazy-loading in order to support unconfigured consumers
(ns formatting-stack.formatters.clean-ns (:require [formatting-stack.formatters.clean-ns.impl :as impl] [formatting-stack.formatters.how-to-ns] [formatting-stack.protocols.formatter :as formatter] [formatting-stack.protocols.linter :as linter] [formatting-stack.util :refer [ensure-sequential process-in...
9eea03e1eac26728e3b4cc2e8af83a54b9f91120c72ba0056973820e544dbd18
spawnfest/eep49ers
wxJoystickEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxJoystickEvent.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxJoystickEvent). -include("wxe.hrl"). -export([buttonDown/1,buttonDown/2,buttonIsDown/1,buttonIsDown/2,butt...
b137dceffcfb1a885b6bdb49f58a35c6a799243e632390f1e7a8ec93647f8c4c
themattchan/haskell-tiger
AST.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveFoldable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE FlexibleInstances # module Language.Tiger.AST where import Control.L...
null
https://raw.githubusercontent.com/themattchan/haskell-tiger/cdf439a45e51783b3d2023c261426abdd7cd1067/src/Language/Tiger/AST.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveTraversable # # LANGUAGE NamedFieldPuns # ^ lvalue ^ exp (leaf) ^ exp (leaf) ^ exp (leaf) ^ app ^ record ^ sequence ^ assign ^ control ^ control ^ control ^ control ^ control ^ array * Lenses ...
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # module Language.Tiger.AST where import Control.Lens.TH (makeLenses, makePrisms) import qualified Data.ByteString.Lazy.Char8 as B import Data.Hashable import Control.Comonad import GHC.Generics import Data.String import Lang...
88e8bd4ec63fb03000626b686a7d3dea519a1724a524ea1f57c5f793b65c8271
dmitryvk/sbcl-win32-threads
cold-error.lisp
;;;; miscellaneous error stuff that needs to be in the cold load This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/cold-error.lisp
lisp
miscellaneous error stuff that needs to be in the cold load more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. type specifier will not lead to infinite recursion when Give the user a chance to...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!KERNEL") (defvar *break-on-signals* nil #!+sb-doc "When (TYPEP condition *BREAK-ON-SIGNALS*) is true, th...
5c65e61c60ec23a4db84853388915e8ee5dbd034a22f4e27b18c60ac6453a52a
Workiva/eva
core.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/v2/system/peer_connection/core.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.v2.system.peer-connection.core (:require [eva.v2.messaging.node.manager.alpha :as messenger-node] [eva.v2.messaging.node.manager.types :as messenger] [eva.v2.storage.system :as ...
9d3cc5942011c2fd12f784946920cf9ef63ab17cbf91c2f3bc85ec3b65c9af02
motoshira/lib_for_competitive_programming
xorshift.lisp
;;; BOF ;;; ;; xorshift32 ;; reference: (defpackage xorshift (:use #:cl) (:nicknames #:xor) (:export #:build #:next)) (in-package #:xorshift) (deftype uint32 () '(unsigned-byte 32)) (defstruct (xor32 (:constructor build ())) (seed #.(1+ (random (1- (ash 1 32)))) :type uint32)) (declaim (ft...
null
https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/e7d466918ef52affa24cb5b19304dc7985eee6f1/experimental/xorshift.lisp
lisp
xorshift32 reference:
BOF (defpackage xorshift (:use #:cl) (:nicknames #:xor) (:export #:build #:next)) (in-package #:xorshift) (deftype uint32 () '(unsigned-byte 32)) (defstruct (xor32 (:constructor build ())) (seed #.(1+ (random (1- (ash 1 32)))) :type uint32)) (declaim (ftype (function (xor32) uint32) next)) (d...
435ee77ba8037991505e75dfbde20c839215c110ff08df00b7ddbfa5fd038854
bufferswap/ViralityEngine
common.lisp
(in-package #:virality-examples) ;;; Prefabs (v:define-prefab "cameras" (:library ptp-base) ("ortho" (comp:camera :active-p t :mode :orthographic)) ("perspective" (comp:camera :active-p t :mode :perspective)) ("iso" (comp:transform :rotate (q:orient :local ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/examples/src/protect-the-planets/common.lisp
lisp
Prefabs
(in-package #:virality-examples) (v:define-prefab "cameras" (:library ptp-base) ("ortho" (comp:camera :active-p t :mode :orthographic)) ("perspective" (comp:camera :active-p t :mode :perspective)) ("iso" (comp:transform :rotate (q:orient :local ...
464d14ba18cc43f418a4c9371931359066b834731b7db570b51e36f9ad0bd20d
composewell/streamly
Type.hs
# LANGUAGE UnboxedTuples # -- | Module : Streamly . Internal . Data . Array . Generic . Mut . Type Copyright : ( c ) 2020 Composewell Technologies License : BSD3 - 3 - Clause -- Maintainer : -- Stability : experimental Portability : GHC -- module Streamly.Internal.Data.Array.Generic.Mut.Type ...
null
https://raw.githubusercontent.com/composewell/streamly/7263d811534b62615e8d1ad8cc14cfa49abe8081/core/src/Streamly/Internal/Data/Array/Generic/Mut/Type.hs
haskell
| Maintainer : Stability : experimental * Type $arrayNotes * Constructing and Writing ** Construction , nil *** Uninitialized Arrays , newArrayWith *** From streams , writeWith , write , writeRevN , writeRev ** From containers , fromListN , fromList , fromStreamDN , fromStreamD * Random writes...
# LANGUAGE UnboxedTuples # Module : Streamly . Internal . Data . Array . Generic . Mut . Type Copyright : ( c ) 2020 Composewell Technologies License : BSD3 - 3 - Clause Portability : GHC module Streamly.Internal.Data.Array.Generic.Mut.Type ( MutArray (..) , new , writeNUnsafe ...