_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
e15e31a50506689f554f38a4711e0202cc63c3bfe945878d938e25c09fdfe86e
waddlaw/TAPL
Bool.hs
{-# LANGUAGE OverloadedStrings #-} module UntypedLambda.Lib.Bool where import Language.UntypedLambda.Lib.Bool import RIO import Test.Tasty import Test.Tasty.HUnit import Utils test_ul :: TestTree test_ul = testGroup "UntypedLambda.Lib.Base" [ testCase "test" $ do evalAllStrategy (mkTest tru tru fls...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-untyped/test/UntypedLambda/Lib/Bool.hs
haskell
# LANGUAGE OverloadedStrings #
module UntypedLambda.Lib.Bool where import Language.UntypedLambda.Lib.Bool import RIO import Test.Tasty import Test.Tasty.HUnit import Utils test_ul :: TestTree test_ul = testGroup "UntypedLambda.Lib.Base" [ testCase "test" $ do evalAllStrategy (mkTest tru tru fls) tru evalAllStrategy (mkTe...
62666a62bb99ee3074dbd53b907a9a54e1dcb9edef77a9f41ec685b645120032
kwrooijen/gungnir
util.clj
(ns gungnir.test.util "This namespace is used to setup a testing environment. This namespace should be included in all test namespaces. " (:require [gungnir.database :refer [*datasource*]] [orchestra.spec.test :as st] [gungnir.test.util.database :as database] [gungnir.test.util.migrations :as migratio...
null
https://raw.githubusercontent.com/kwrooijen/gungnir/d27dd81b68067cb52bf1b5ebcd91f006b8c87398/test/gungnir/test/util.clj
clojure
(ns gungnir.test.util "This namespace is used to setup a testing environment. This namespace should be included in all test namespaces. " (:require [gungnir.database :refer [*datasource*]] [orchestra.spec.test :as st] [gungnir.test.util.database :as database] [gungnir.test.util.migrations :as migratio...
7750f796e78a4276eb0e1ba4a49f14a7bc7a8bee5e88ad9de83bc32535ae65c2
BekaValentine/SimpleFP
Eval.hs
{-# OPTIONS -Wall #-} # LANGUAGE MultiParamTypeClasses # module Eval where import Control.Monad.Reader type Evaluator e = ReaderT e (Either String) environment :: Evaluator e e environment = ask class Eval e a where eval :: a -> Evaluator e a
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP/3cff456be9f0b99509e5cbe809be1055009b32df/src/Eval.hs
haskell
# OPTIONS -Wall #
# LANGUAGE MultiParamTypeClasses # module Eval where import Control.Monad.Reader type Evaluator e = ReaderT e (Either String) environment :: Evaluator e e environment = ask class Eval e a where eval :: a -> Evaluator e a
68870cbab815100d9fa435decdb03894808422876f17d49cd8753543ab4cac90
arsalan0c/cdp-hs
Memory.hs
{-# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # {- | = Memory -} module CDP.Domains.Memory (module CDP.Domains.Mem...
null
https://raw.githubusercontent.com/arsalan0c/cdp-hs/f946d706485b0dd16360a753321c46d6f098649d/src/CDP/Domains/Memory.hs
haskell
# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections # | = Memory | Type 'Memory.PressureLevel'. Memory pressure level. | Type 'Memory.SamplingProfileNode'. | Size of the sampled allocation. | Total bytes attributed to this sample. | Execution stack at the point of allocation. | Type 'Memory.Samplin...
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # module CDP.Domains.Memory (module CDP.Domains.Memory) where import Control.Applicative ((<$>)) import Control.Mo...
afb740335f4f8a33035907c4ac1a998e20034c09d6806b21bfa49159c8ac618a
backtracking/ocamlgraph
md.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/md.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking module P(...
320a3ed18759ac45b4577234bcfa8e3402edcfef8c0631c26a5f9ea9a18398c7
votinginfoproject/data-processor
election_administrations.clj
(ns vip.data-processor.db.translations.v5-2.election-administrations (:require [korma.core :as korma] [vip.data-processor.db.postgres :as postgres] [vip.data-processor.db.translations.util :as util] [vip.data-processor.db.translations.v5-2.departments :as ds] [vip.data-...
null
https://raw.githubusercontent.com/votinginfoproject/data-processor/b4baf334b3a6219d12125af8e8c1e3de93ba1dc9/src/vip/data_processor/db/translations/v5_2/election_administrations.clj
clojure
(ns vip.data-processor.db.translations.v5-2.election-administrations (:require [korma.core :as korma] [vip.data-processor.db.postgres :as postgres] [vip.data-processor.db.translations.util :as util] [vip.data-processor.db.translations.v5-2.departments :as ds] [vip.data-...
8aa3183322caec5c985e40fd95039a7d798cea090f7f3a64dad1c23bab0723ae
graninas/Functional-Design-and-Architecture
Service.hs
module Andromeda.Service ( module Andromeda.Service.Remote ) where import Andromeda.Service.Remote
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/1736abc16d3e4917fc466010dcc182746af2fd0e/First-Edition/BookSamples/CH05/5.3.2%20Impure%20State%20with%20STM/Andromeda/Service.hs
haskell
module Andromeda.Service ( module Andromeda.Service.Remote ) where import Andromeda.Service.Remote
e4e0f9e2199abd480caae2aa244ba132908ca7b3a48ef1cc6c129501e6ddd3d5
Copilot-Language/copilot
C99.hs
-- | Compile Copilot specifications to C99 code. module Copilot.Compile.C99 ( compile , compileWith , CSettings(..) , mkDefaultCSettings ) where import Copilot.Compile.C99.Compile import Copilot.Compile.C99.Settings
null
https://raw.githubusercontent.com/Copilot-Language/copilot/619ecd77a2a022396fd4b062271f73b2098d9fff/copilot-c99/src/Copilot/Compile/C99.hs
haskell
| Compile Copilot specifications to C99 code.
module Copilot.Compile.C99 ( compile , compileWith , CSettings(..) , mkDefaultCSettings ) where import Copilot.Compile.C99.Compile import Copilot.Compile.C99.Settings
85e0aa1d2d9d110de3ab7c4f88d2069c10c29a11a7d81eed7db9d66562068b07
chef/chef-server
oc_chef_authz_tests.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > @author < > %% @doc authorization - Interface to the opscode authorization servize %% Copyright 2011 - 2015 Chef , Inc. All Rights Reserved . %% This file is provided to you under the Apac...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_authz/test/oc_chef_authz_tests.erl
erlang
ex: ts=4 sw=4 et @doc authorization - Interface to the opscode authorization servize Version 2.0 (the "License"); you may not use this file 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 specific language g...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > @author < > Copyright 2011 - 2015 Chef , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed un...
3dadb1fe6dc24693c95bf07dc3a860fdccd70955ff995540321d1c5754a98277
newque/newque
connector.ml
open Core open Lwt type 'a t = { table: 'a Lwt.u String.Table.t; in seconds } let create expiration = let table = String.Table.create () in { table; expiration; } let submit connector uid outbound = let thread, wakener = wait () in String.Table.add_exn connector.table ~key:uid ~data:wakener; fun () -> ...
null
https://raw.githubusercontent.com/newque/newque/dee73e2cb7be8700847f9e5cf900731cc20b1b8c/src/persistence/fifo/connector.ml
ocaml
open Core open Lwt type 'a t = { table: 'a Lwt.u String.Table.t; in seconds } let create expiration = let table = String.Table.create () in { table; expiration; } let submit connector uid outbound = let thread, wakener = wait () in String.Table.add_exn connector.table ~key:uid ~data:wakener; fun () -> ...
c21fdff3928a852a1a4f61ffc81bfd738c5afc44791f5a35eaf5bc3984290ae0
haskell-tools/haskell-tools
MinimalPragma.hs
module Decl.MinimalPragma where class A x where f, g :: x -> () {-# MINIMAL f,g #-} class B x where fb, gb :: x -> () fb = gb gb = fb {-# MINIMAL fb | gb #-} class C x where fc, gc, hc :: x -> x gc = fc hc = fc fc = gc . hc # MINIMAL fc | ( gc , hc ) # class D x where fd :: x -> x fd = id # ...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Decl/MinimalPragma.hs
haskell
# MINIMAL f,g # # MINIMAL fb | gb #
module Decl.MinimalPragma where class A x where f, g :: x -> () class B x where fb, gb :: x -> () fb = gb gb = fb class C x where fc, gc, hc :: x -> x gc = fc hc = fc fc = gc . hc # MINIMAL fc | ( gc , hc ) # class D x where fd :: x -> x fd = id # MINIMAL #
0004b108558838ec129c79a68fb8b26edb781b3acff9cde511e4c9dac8c8b998
kitnil/dotfiles
kubernetes.scm
(define-module (home services kubernetes) #:use-module (gnu home services) #:use-module (gnu home services mcron) #:use-module (guix gexp) #:use-module (guix records) #:use-module (guix store) #:use-module (home config) #:use-module (guile pass) #:export (kubernetes-service-type)) (define-record-type* ...
null
https://raw.githubusercontent.com/kitnil/dotfiles/23e64c8e70a65ef72fc1a3ab4f7d8d30a823c84e/dotfiles/guixsd/modules/home/services/kubernetes.scm
scheme
string string
(define-module (home services kubernetes) #:use-module (gnu home services) #:use-module (gnu home services mcron) #:use-module (guix gexp) #:use-module (guix records) #:use-module (guix store) #:use-module (home config) #:use-module (guile pass) #:export (kubernetes-service-type)) (define-record-type* ...
3d5e6ae4da78644a561013c9defcef23c4057c3d5ee56cc7e36713e7dbf6a068
egri-nagy/kigen
diagsgp.clj
(ns kigen.diagsgp (:require [kigen.pbr :as pbr] [kigen.sgp :as sgp] [kigen.transf :as transf])) (defn full-ts "Full transformation monoid of degree n." [n] (sgp/sgp-by-gens (transf/full-ts-gens n) pbr/mul)) (defn full-pbr1 [] (sgp/sgp-by-gens (map pbr/ext->int [ [ [[-1] ...
null
https://raw.githubusercontent.com/egri-nagy/kigen/5248499fab9d8af05d7d0b07626d0676dfe580c9/src/kigen/diagsgp.clj
clojure
(ns kigen.diagsgp (:require [kigen.pbr :as pbr] [kigen.sgp :as sgp] [kigen.transf :as transf])) (defn full-ts "Full transformation monoid of degree n." [n] (sgp/sgp-by-gens (transf/full-ts-gens n) pbr/mul)) (defn full-pbr1 [] (sgp/sgp-by-gens (map pbr/ext->int [ [ [[-1] ...
5c25b2ebadd69fed588427f1f509bba33142270c0428f98f671baacc28e49dc4
serokell/avl-plus
AVL.hs
| AVL+ tree . To use it , you need to implement ' KVRetrieve ' , ' KVStore ' and , optionally , ' KVMutate ' typeclasses for a monad you want to run actions in . Do not use methods from KVWhatever - instances yourself ! Use methods exported from this module . The tree consis...
null
https://raw.githubusercontent.com/serokell/avl-plus/3fb3933f4f11f282e8c498d128c3e5c79518ea9b/src/Data/Tree/AVL.hs
haskell
see ' Data . Tree . AVL.Store . Pure ' ( pure see 'Data.Tree.AVL.Store.Pure' (pure * Required interfaces * Some base constraints * Exceptions * Main type ('Map') and all other types * Constructors/toList * Root hash signature * Operations over AVL+ * Operations that change storage or request current state *...
| AVL+ tree . To use it , you need to implement ' KVRetrieve ' , ' KVStore ' and , optionally , ' KVMutate ' typeclasses for a monad you want to run actions in . Do not use methods from KVWhatever - instances yourself ! Use methods exported from this module . The tree consis...
6b650742059c303a6ed842fe230a6f45ea8ec5daa969f3662f7dbdab0abaf0fd
mhwombat/grid
TriangularInternal.hs
------------------------------------------------------------------------ -- | -- Module : Math.Geometry.TriGridInternal Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -- A module containing private @TriGrid@ inter...
null
https://raw.githubusercontent.com/mhwombat/grid/b8c4a928733494f4a410127d6ae007857de921f9/src/Math/Geometry/Grid/TriangularInternal.hs
haskell
---------------------------------------------------------------------- | Module : Math.Geometry.TriGridInternal License : BSD-style Maintainer : Stability : experimental Portability : portable A module containing private @TriGrid@ internals. Most developers should use @TriGrid@ instead. This ...
Copyright : ( c ) 2012 - 2022 # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Math.Geometry.Grid.TriangularInternal where import Prelude hiding (null) import Data.List (nub) import GHC.Generics (Generic) import Math.Geometry.GridInternal...
6c10f7b520e847b42f982fcc1631166815f63a32a09dd01cf5183f0067896d56
mbutterick/pollen
pollen.rkt
#lang racket/base (require pollen/setup) (provide (all-defined-out)) (module setup racket/base (provide (all-defined-out)) (define poly-targets '(html txt)) (define compile-cache-active #f))
null
https://raw.githubusercontent.com/mbutterick/pollen/a4910a86dc62d1147f3aad94b56cecd6499d7aa6/pollen/test/data/subtemplate/pollen.rkt
racket
#lang racket/base (require pollen/setup) (provide (all-defined-out)) (module setup racket/base (provide (all-defined-out)) (define poly-targets '(html txt)) (define compile-cache-active #f))
5e7bfb0058a0342dbc512f07d7568a6e7441fed9b67b00cc30aac06cc66b7fa5
0xc1c4da/narjure
truth_value.clj
(ns nal.truth-value (:refer-clojure :exclude [== < >]) (:require [clojure.core.logic :refer [project fresh == defne]] [clojure.core.logic.arithmetic :refer [< >]] [nal.utils :refer :all])) (declare f-exp f-neg f-cnv f-cnt f-ded f-ana f-res f-abd f-exe f-com f-int f-uni f-dif f-pnn ...
null
https://raw.githubusercontent.com/0xc1c4da/narjure/0fb047d8b2ccf0c5591703dde5afd502df49f308/src/nal/truth_value.clj
clojure
(ns nal.truth-value (:refer-clojure :exclude [== < >]) (:require [clojure.core.logic :refer [project fresh == defne]] [clojure.core.logic.arithmetic :refer [< >]] [nal.utils :refer :all])) (declare f-exp f-neg f-cnv f-cnt f-ded f-ana f-res f-abd f-exe f-com f-int f-uni f-dif f-pnn ...
b9bb2a35e8f16e879d4271af554d592721bd18d076b4786944c5ba891818937e
ndmitchell/catch
Req.hs
module Req(module Req, module Val) where import Val import Yhc.Core import General import Data.Proposition -- DATA DEFINITIONS type Scopes = [Scope] data Scope = Scope CoreFuncName Vals deriving (Ord, Eq) type Reqs = PropSimple Req data Req = Req {reqExpr :: CoreExpr, reqVals :: Vals} deriv...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/gadget/Req.hs
haskell
DATA DEFINITIONS do not define anything, its a pretty bad PropLit!
module Req(module Req, module Val) where import Val import Yhc.Core import General import Data.Proposition type Scopes = [Scope] data Scope = Scope CoreFuncName Vals deriving (Ord, Eq) type Reqs = PropSimple Req data Req = Req {reqExpr :: CoreExpr, reqVals :: Vals} deriving (Ord, Eq) type...
d35eaba4cd8ae9660efd2869d7aa163ea3f436bd8ad43ac4dfdf479ef3c3b67e
mikera/vectorz-clj
matrix_api.clj
(ns mikera.vectorz.matrix-api "Namespace for vectorz-clj core.matrix implementation. Loading this namespace either directly or indirectly is required to enable the :vectorz implementation for core.matrix." (:use clojure.core.matrix) (:use clojure.core.matrix.utils) (:require [clojure.core.matrix.implementat...
null
https://raw.githubusercontent.com/mikera/vectorz-clj/cf98ff89c7f1d26b98eb9bc18b1b0a3e53176dca/src/main/clojure/mikera/vectorz/matrix_api.clj
clojure
====================================================================== General implementation notes unboxed double primitives for speed, however boxing may be required for return values, passing to other core.matrix protocols etc. so we need to coerce to appropriate forms before use. This ensures that we can wo...
(ns mikera.vectorz.matrix-api "Namespace for vectorz-clj core.matrix implementation. Loading this namespace either directly or indirectly is required to enable the :vectorz implementation for core.matrix." (:use clojure.core.matrix) (:use clojure.core.matrix.utils) (:require [clojure.core.matrix.implementat...
2e8bd5892a47d51237c2a014d801d749f6cca4cc740b5d1ab0440eb319e8bf17
RefactoringTools/HaRe
FooExpected.hs
main = case 1 > 10 of True -> do putStrLn "hello" putStrLn "there" False -> do putStrLn "blah" putStrLn "blah"
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Case/FooExpected.hs
haskell
main = case 1 > 10 of True -> do putStrLn "hello" putStrLn "there" False -> do putStrLn "blah" putStrLn "blah"
55bb746af5baae3fd24f9878457ce44f092336cc9808a0b401c50e1dba3b3d24
boomerang-lang/boomerang
env.ml
(***************************************) The Harmony Project (* *) (* env.ml - Focal environments *) (***************************************) (* $Id $ *) open Ubase module type S = sig type key type 'a t (** Abstract type of ...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/hbase/env.ml
ocaml
************************************* env.ml - Focal environments ************************************* $Id $ * Abstract type of environments * [empty ()] yields a fresh environment. * [update ev q r] extends [ev] with a binding for [qid] and [rv]. Returns a n...
The Harmony Project open Ubase module type S = sig type key type 'a t val empty : unit -> 'a t val update : 'a t -> key -> 'a -> 'a t val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b val lookup : 'a t -> key -> 'a option val format_t : 'a t ->...
914bd747e1526f83cd50a28a68d8cb23cea16b9f3cd9b55f61acfa2dfef953fe
GaloisInc/ivory
ModelCheck.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} # LANGUAGE CPP # module Ivory.ModelCheck where import Prelude () import Prelude.Compat import qualified Ivory.Language.Proc as I import qualified Ivory.Language.Syntax as I import Ivory.Language.Syntax.Concrete.Location imp...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory-model-check/src/Ivory/ModelCheck.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # ------------------------------------------------------------------------------ ^ Should we inline `call`s or just assume the `ensures`? ------------------------------------------------------------------------------ ------------------------------------------...
# LANGUAGE CPP # module Ivory.ModelCheck where import Prelude () import Prelude.Compat import qualified Ivory.Language.Proc as I import qualified Ivory.Language.Syntax as I import Ivory.Language.Syntax.Concrete.Location import Text.Printf import Ivory.ModelCheck.Ivory2CVC4...
17ce232e45625e92d3ad0f96a7ca3f093775d007be116ca7923a0373da34e908
tbsschroeder/clojure-webshop-app
articles_test.clj
(ns metro.db.articles-test (:require [io.pedestal.test :refer [response-for]] [clojure.test :refer [deftest is are testing]] [metro.components.db.articles :as articles] [metro.system-test :as test])) (defn- get-first-count [] (:count (first (articles/query-all)))) (deftest db-t...
null
https://raw.githubusercontent.com/tbsschroeder/clojure-webshop-app/acedaceae794b8c9bd0805356880169e19a66b86/test/metro/db/articles_test.clj
clojure
not working right now (deftest get-count-tests (test/with-system (testing "Get count of basket" (is (= 0 article_count)))) (testing "Increase element and get count" (is (= 1 article_count_new)))) (testing "Decrease element and get count" (is (= 0 ...
(ns metro.db.articles-test (:require [io.pedestal.test :refer [response-for]] [clojure.test :refer [deftest is are testing]] [metro.components.db.articles :as articles] [metro.system-test :as test])) (defn- get-first-count [] (:count (first (articles/query-all)))) (deftest db-t...
77d94256ebdd94fef9584741ba1505d9e215fa4a8cffacf118390f674d1b151a
hpyhacking/openpoker
mod_login_test.erl
-module(mod_login_test). -include("openpoker.hrl"). -include("openpoker_test.hrl"). login_timeout_test_() -> {setup, fun sim:setup/0, fun sim:clean/1, fun() -> sim_client:start(?MODULE, 100), ?assert(is_pid(whereis(?MODULE))), ?SLEEP, ?assertNot(is_pid(whereis(?MODULE))), ?asser...
null
https://raw.githubusercontent.com/hpyhacking/openpoker/643193c94f34096cdcfcd610bdb1f18e7bf1e45e/test/integration/mod_login_test.erl
erlang
-module(mod_login_test). -include("openpoker.hrl"). -include("openpoker_test.hrl"). login_timeout_test_() -> {setup, fun sim:setup/0, fun sim:clean/1, fun() -> sim_client:start(?MODULE, 100), ?assert(is_pid(whereis(?MODULE))), ?SLEEP, ?assertNot(is_pid(whereis(?MODULE))), ?asser...
02bdcc78914a2b14b85e7bdc803c1f96028d7bae0e020efbd5e37e298058350c
calyau/maxima
transf.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/src/transf.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; TRANSLATION ...
(in-package :maxima) (macsyma-module transf) (defun translate-with-flonum-op (form can-branch-p) (declare (special *flonum-op*)) (let ((arg (translate (cadr form))) (lisp-function (gethash (caar form) *flonum-op*))) (if (and (eq (car arg) '$float) lisp-function) (let ((call `(...
f01708a0929791e191c76714b2afb00a5ed1b545fe57e8e6507771e405e27a7a
mabragor/cl-vhdl
tests.lisp
(in-package :cl-user) (defpackage :cl-vhdl-tests (:use :alexandria :cl :cl-vhdl :fiveam :iterate :optima :fare-quasiquote) (:shadowing-import-from :fiveam :fail) these are symbols that occasionally end up in CL - VHDL , but we want them here (:shadowing-import-from :cl-vhdl :default :case-insensitive-string) ...
null
https://raw.githubusercontent.com/mabragor/cl-vhdl/1ce015c90e02a6379ae5fc69b6b936988c564bc2/tests.lisp
lisp
I don't know if this line is actually correct and, furthermore, now it deviates from the book -- probably later there will be problem with case-sensitivity ") "))) ") ") ") ") ") ") ") ") ") ") ") ") "))) "))) ")) ") TODO : actually make the in-ports not to be constant -- I wonder how...
(in-package :cl-user) (defpackage :cl-vhdl-tests (:use :alexandria :cl :cl-vhdl :fiveam :iterate :optima :fare-quasiquote) (:shadowing-import-from :fiveam :fail) these are symbols that occasionally end up in CL - VHDL , but we want them here (:shadowing-import-from :cl-vhdl :default :case-insensitive-string) ...
103bf101c93aea149dc47c3340ad28848e5132647e59a819013f76ab7fc81ed7
aufishgrp/cowpaths
cwpths_types.erl
-module(cowpaths_types). -include("cowpaths.hrl"). -export_type([ host/0, hosts/0, port_number/0, match/0, handler/0, metadata/0, constraint/0, constraints/0, socket/0, sockets/0, path/0, paths/0, cowpath/0, cowpaths/0 ]). -type host() :: iodata(). -type host...
null
https://raw.githubusercontent.com/aufishgrp/cowpaths/04d2639eccd66183dccd45a457a4b69dc18acb56/src/cwpths_types.erl
erlang
-module(cowpaths_types). -include("cowpaths.hrl"). -export_type([ host/0, hosts/0, port_number/0, match/0, handler/0, metadata/0, constraint/0, constraints/0, socket/0, sockets/0, path/0, paths/0, cowpath/0, cowpaths/0 ]). -type host() :: iodata(). -type host...
40220542544b9b0cc8fa30fef49839a62a8f8b31e970980c8a1367f4a27a56ed
esl/erlang-web
wpart_date.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/wparts-1.4.1/src/wpart_date.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
364f9fa359e9144462471f724408959e777c71079ff05cebf4fd00dd9b0543fd
cojna/iota
SuffixArraySpec.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # module Data.ByteString.SuffixArraySpec (main, spec) where import qualified Data.ByteString as B import Data.ByteString.SuffixArray import qualified Data.List as L import qualified Data.Vector.Unboxed as U...
null
https://raw.githubusercontent.com/cojna/iota/f0f649300a5e30a52975add27d80b5641c596fb4/test/Data/ByteString/SuffixArraySpec.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE ViewPatterns # module Data.ByteString.SuffixArraySpec (main, spec) where import qualified Data.ByteString as B import Data.ByteString.SuffixArray import qualified Data.List as L import qualified Data.Vector.Unboxed as U import Test.Prelude main :: IO () main = hspec spec spec :: S...
dfbb4342cf652e8bc97bec09dc8d70be5fb09c3dbc23b4c437e283363e7f4e0d
fpottier/pprint
OldPPrintEngine.mli
(******************************************************************************) (* *) PPrint (* *)...
null
https://raw.githubusercontent.com/fpottier/pprint/fbf9ed81e6de690f60f20c8c16a1374753722868/bench/OldPPrintEngine.mli
ocaml
**************************************************************************** Lice...
PPrint , Copyright 2007 - 2022 Inria . All rights reserved . This file is distributed under the terms of the ...
7359f9c1f8bfc910b8d2d5e87801738fa26609245908d3129db106a98e7b764f
ryanpbrewster/haskell
P013.hs
module TestData.P013 (txt) where txt = unlines [ "37107287533902102798797998220837590246510135740250" , "46376937677490009712648124896970078050417018260538" , "74324986199524741059474233309513058123726617309629" , "91942213363574161572522430563301811072406154908250" , "2306758820753934617117198031042104751...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/TestData/P013.hs
haskell
module TestData.P013 (txt) where txt = unlines [ "37107287533902102798797998220837590246510135740250" , "46376937677490009712648124896970078050417018260538" , "74324986199524741059474233309513058123726617309629" , "91942213363574161572522430563301811072406154908250" , "2306758820753934617117198031042104751...
6b71d84a3819c334b10b200e19a48779a33ebc73a20ee28eb81043e89ce04ebb
Et7f3/ocalc
moteur.mli
type context val empty_context: context val texte_depuis_expr : Nouveau_type.expr -> string val evaluate_with_history: string -> context -> string * context module Expr : sig type t = Nouveau_type.expr val zero : t val unit : t val symb : string -> t val neg : t -> t val est_zero : t -> bool val depui...
null
https://raw.githubusercontent.com/Et7f3/ocalc/667da625676829307fc59542906ed2075fe818bd/src/noyau/moteur.mli
ocaml
type context val empty_context: context val texte_depuis_expr : Nouveau_type.expr -> string val evaluate_with_history: string -> context -> string * context module Expr : sig type t = Nouveau_type.expr val zero : t val unit : t val symb : string -> t val neg : t -> t val est_zero : t -> bool val depui...
d0806c44bc920cd9fed0573712df532895ab0e457db5ff0cb9fa32f26838b370
patricoferris/ocaml-iocp
sockaddr.mli
* Copyright ( C ) 2020 - 2021 Anil Madhavapeddy * * 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 " ...
null
https://raw.githubusercontent.com/patricoferris/ocaml-iocp/7b1f661465acd7ff7c77f013d566182647f626d4/src/sockaddr.mli
ocaml
Borrowed from the IO_URING bindings * Holder for the peer's address in {!accept}.
* Copyright ( C ) 2020 - 2021 Anil Madhavapeddy * * 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 " ...
e01f40fbabc0cf7a3d93bc0614711b75424f62d2a9898b8bb457d2b8a2d26eed
ThoughtWorksInc/stonecutter
oauth.clj
(ns stonecutter.test.controller.oauth (:require [midje.sweet :refer :all] [net.cgrand.enlive-html :as html] [ring.mock.request :as r] [clauth.client :as cl-client] [clauth.token :as cl-token] [clauth.auth-code :as cl-auth-code] [cheshire.core :as...
null
https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/test/stonecutter/test/controller/oauth.clj
clojure
the csrf-token key in session will stop clauth from refreshing the csrf-token in request To mock a form post stale csrf token can cause session to be lost
(ns stonecutter.test.controller.oauth (:require [midje.sweet :refer :all] [net.cgrand.enlive-html :as html] [ring.mock.request :as r] [clauth.client :as cl-client] [clauth.token :as cl-token] [clauth.auth-code :as cl-auth-code] [cheshire.core :as...
712fb204e50e0edd43e3f1fb9668d8e5212922a9bd6a76283941897c6c917f6f
sjl/chancery
quickutils-package.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (unless (find-package "CHANCERY.QUICKUTILS") (defpackage "CHANCERY.QUICKUTILS" (:documentation "Package that contains Quickutil utility functions.") (:use :cl)))) (in-package "CHANCERY.QUICKUTILS") need to define this here so will shut the he...
null
https://raw.githubusercontent.com/sjl/chancery/87cb53cd791d4d60a6c41bc0b02345739b82abb0/vendor/quickutils-package.lisp
lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (unless (find-package "CHANCERY.QUICKUTILS") (defpackage "CHANCERY.QUICKUTILS" (:documentation "Package that contains Quickutil utility functions.") (:use :cl)))) (in-package "CHANCERY.QUICKUTILS") need to define this here so will shut the he...
9718464742c9aa97b07b6a7a3d6ae06c3cef578ba79d6bab00d4d4f52fc9e19e
racket/drracket
ellipsis-snip.rkt
#lang racket/base (require racket/gui/base racket/contract racket/class (for-syntax racket/base) (prefix-in r: racket/base) framework) (provide ellipsis-snip%) (define ellipsis-snip% (class snip% (init-field extra [insertion-done? #f]) (define str-snip (make-objec...
null
https://raw.githubusercontent.com/racket/drracket/af503d44a810df05119f53bdc5b8168e10b64a97/drracket/drracket/private/ellipsis-snip.rkt
racket
#lang racket/base (require racket/gui/base racket/contract racket/class (for-syntax racket/base) (prefix-in r: racket/base) framework) (provide ellipsis-snip%) (define ellipsis-snip% (class snip% (init-field extra [insertion-done? #f]) (define str-snip (make-objec...
7e5b8c0ca3edea88e53e911cc8829b97d89b129225c982aa5985af73617ed473
mbutterick/aoc-racket
star2.rkt
1841 25/13 4/43 42/42 39/40 17/18 30/7 12/12 32/28 9/28 1/1 16/7 47/43 34/16 39/36 6/4 3/2 10/49 46/50 18/25 2/23 3/21 5/24 46/26 50/19 26/41 1/50 47/41 39/50 12/14 11/19 28/2 38/47 5/5 38/34 39/39 17/34 42/16 32/23 13/21 28/6 6/20 1/30 44/21 11/28 14/17 33/33 17/43 31/13 11/21 31/39 0/9 13/50 10/14 16/10 3/24 7/0 50...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d24/star2.rkt
racket
1841 25/13 4/43 42/42 39/40 17/18 30/7 12/12 32/28 9/28 1/1 16/7 47/43 34/16 39/36 6/4 3/2 10/49 46/50 18/25 2/23 3/21 5/24 46/26 50/19 26/41 1/50 47/41 39/50 12/14 11/19 28/2 38/47 5/5 38/34 39/39 17/34 42/16 32/23 13/21 28/6 6/20 1/30 44/21 11/28 14/17 33/33 17/43 31/13 11/21 31/39 0/9 13/50 10/14 16/10 3/24 7/0 50...
3304f7723d8ae289c540d6e0e482ec3eeac760db4a31b33e52e14bb5df067619
static-analysis-engineering/codehawk
bCHARMMetrics.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT )...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/8f49bb5b93bd4925b16ee8e31650c2a9080310aa/CodeHawk/CHB/bchlibarm32/bCHARMMetrics.mli
ocaml
chutil bchlib bchlibarm32
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT )...
c5559980810f5b6f751beb65eaac64e2357beb98b691e32942ab4d2ffe39a90d
fetburner/Coq2SML
fset.ml
module Make = functor (X : Set.OrderedType) -> struct type elt = X.t type t = Empty | Node of t * elt * t * int Sets are represented by balanced binary trees ( the heights of the children differ by at most 2 children differ by at most 2 *) let height = function Empty -> 0 ...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/lib/fset.ml
ocaml
Same as merge, but does not assume anything about l and r. Splitting Implementation of the set operations
module Make = functor (X : Set.OrderedType) -> struct type elt = X.t type t = Empty | Node of t * elt * t * int Sets are represented by balanced binary trees ( the heights of the children differ by at most 2 children differ by at most 2 *) let height = function Empty -> 0 ...
6c5e8ab16d4e63aa8ed8d9f385790750d616e62428a6ddf077492fedfca39498
Chris00/ocaml-dropbox
dropbox_date.ml
type wday = Sun | Mon | Tue | Wed | Thu | Fri | Sat let string_of_wday = function | Sun -> "Sun" | Mon -> "Mon" | Tue -> "Tue" | Wed -> "Wed" | Thu -> "Thu" | Fri -> "Fri" | Sat -> "Sat" type month = Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec let index_of_month = function | Jan ->...
null
https://raw.githubusercontent.com/Chris00/ocaml-dropbox/36b222269e6bc7e5486cbb69738841d87a1212fb/src/dropbox_date.ml
ocaml
∈ {1,...,31} When the parsing fails, return the Epoch FIXME: return an option instead??
type wday = Sun | Mon | Tue | Wed | Thu | Fri | Sat let string_of_wday = function | Sun -> "Sun" | Mon -> "Mon" | Tue -> "Tue" | Wed -> "Wed" | Thu -> "Thu" | Fri -> "Fri" | Sat -> "Sat" type month = Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec let index_of_month = function | Jan ->...
e2e63f98febe4dbc0b2cf219dd886d7fa3d3b0426f7e3309715a37b61992e9ea
ekmett/hask
Adjunction.hs
# LANGUAGE ExplicitNamespaces , PolyKinds , KindSignatures , MultiParamTypeClasses , FunctionalDependencies , TypeFamilies , TypeOperators , NoImplicitPrelude # module Hask.Adjunction ( type (-|)(..) , swap -- , Curried(..) ) where import Hask.Category import Hask.Iso -----------------------------------------...
null
https://raw.githubusercontent.com/ekmett/hask/54ea964af8e0c1673ac2699492f4c07d977cb3c8/src/Hask/Adjunction.hs
haskell
, Curried(..) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ instance (,) e -| (->) e where adj = dimap (. swap) (. swap) . curried ------------------------------------------------------------------------...
# LANGUAGE ExplicitNamespaces , PolyKinds , KindSignatures , MultiParamTypeClasses , FunctionalDependencies , TypeFamilies , TypeOperators , NoImplicitPrelude # module Hask.Adjunction ( type (-|)(..) , swap ) where import Hask.Category import Hask.Iso * class (Functor f, Functor g, Dom f ~ Cod g, Cod g ~ Do...
6b8db56def4ecd83656369d76479f40a1b1168fa2f160a74ae129cf8966f90ea
haskell/haskell-ide-engine
HieInstall.hs
module HieInstall where import Development.Shake import Control.Monad import System.Environment ( unsetEnv ) import BuildSystem import Stack import Cabal import Version import Env import Help defaultMain :...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/install/src/HieInstall.hs
haskell
unset GHC_PACKAGE_PATH for cabal used for cabal-based targets used for stack-based targets general purpose targets stack specific targets TODO: Enable for windows when it uses ghc-8.8.3 cabal specific targets macos specific targets | update the submodules that the project is in the state as required by the `st...
module HieInstall where import Development.Shake import Control.Monad import System.Environment ( unsetEnv ) import BuildSystem import Stack import Cabal import Version import Env import Help defaultMain :...
7b4c013329a42c48427576c72ef365b8496b5d0b40315f1833c4429866413019
commsor/titanoboa-sample-workflows
boa_server_config.clj
(in-ns 'titanoboa.server) (log/info "Hello, I am core.async server-config and I am being loaded...") (defonce archival-queue-local (clojure.core.async/chan (clojure.core.async/dropping-buffer 1024))) (alter-var-root #'server-config (constantly {:systems-catalogue ...
null
https://raw.githubusercontent.com/commsor/titanoboa-sample-workflows/3602561fa8a0c797d0c205d23f589ec46563e1b7/deploy-to-aws/other-resources/boa_server_config.clj
clojure
(in-ns 'titanoboa.server) (log/info "Hello, I am core.async server-config and I am being loaded...") (defonce archival-queue-local (clojure.core.async/chan (clojure.core.async/dropping-buffer 1024))) (alter-var-root #'server-config (constantly {:systems-catalogue ...
3b696c775d4e3a0797ee6aa1e294d8163da713482f5e896c7bfdc41877a8b2e6
input-output-hk/ouroboros-network
ChainDB.hs
-- | Chain DB tests. -- -- The chain DB is the most complicated part of the storage layer, and this is -- visible in the tests also. We have separate tests for: -- * The GC schedule : the chain database occassionally garbage collects blocks -- from the volatile DB that it is sure it won't need anymore (because adop...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/6fcd153ba865e5efc2c31b547ae07d84a7150f87/ouroboros-consensus-test/test-storage/Test/Ouroboros/Storage/ChainDB.hs
haskell
| Chain DB tests. The chain DB is the most complicated part of the storage layer, and this is visible in the tests also. We have separate tests for: from the volatile DB that it is sure it won't need anymore (because adopting them would result in switching to a fork that is too distant from our own chain)...
* The GC schedule : the chain database occassionally garbage collects blocks * The model of the chain DB /itself/ is reasonably complex also , and so we module Test.Ouroboros.Storage.ChainDB (tests) where import System.Info (os) import Test.Tasty import qualified Test.Ouroboros.Storage.ChainD...
bb01b17cc0ae4e5fd7654577ea6c729c9997ad57dadc4508510eba2ccc1b55d3
AmpersandTarski/Ampersand
Parser.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # module Ampersand.Input.ADL1.Parser ( AmpParser, Include (..), pContext, pContent, pPopulations, pTerm, pRule, ) where import Ampersand.Basics hiding (many, try) import Ampersand.Core.ParseTree import Ampersand.Input.ADL1.Lexe...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/8a1c00e3b0aeccd7ea6283b20097a8b73310b138/src/Ampersand/Input/ADL1/Parser.hs
haskell
| Parses a list of populations | The population list parser | Parses a context | The result is the parsed context and a list of include filenames The patterns defined in this context All user defined rules in this context, but outside patterns The relations defined in this context, outside the scope of patterns ...
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # module Ampersand.Input.ADL1.Parser ( AmpParser, Include (..), pContext, pContent, pPopulations, pTerm, pRule, ) where import Ampersand.Basics hiding (many, try) import Ampersand.Core.ParseTree import Ampersand.Input.ADL1.Lexe...
02e5e578494a4c993015a478fed7ff3b186ffcd20df37111960913bfae54b822
janestreet/expect_test_helpers_async
test_with_env.ml
open! Core open! Async open! Import let print_env keys = let snapshot = List.map keys ~f:(fun key -> key, Unix.getenv key) in print_s [%sexp (snapshot : (string * string option) list)] ;; let%expect_test "[with_env]" = let foo = "EXPECT_TEST_FOO" in let bar = "EXPECT_TEST_BAR" in let baz = "EXPECT_TEST_BAZ"...
null
https://raw.githubusercontent.com/janestreet/expect_test_helpers_async/417d1ba2436a2a214aab9aaf107e7702110d1f4d/test/test_with_env.ml
ocaml
open! Core open! Async open! Import let print_env keys = let snapshot = List.map keys ~f:(fun key -> key, Unix.getenv key) in print_s [%sexp (snapshot : (string * string option) list)] ;; let%expect_test "[with_env]" = let foo = "EXPECT_TEST_FOO" in let bar = "EXPECT_TEST_BAR" in let baz = "EXPECT_TEST_BAZ"...
219ce15c9ad57b57523edf88e8797369aaa4e1b5139afe756493de337ed59730
reanimate/reanimate
Flip.hs
{-# LANGUAGE ApplicativeDo #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE RecordWildCards # HLINT ignore | Copyright : Written by License : Unlicense Maintainer : Stability : experimental Portability : POSIX Copyright : Written by David Himmel...
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/src/Reanimate/Builtin/Flip.hs
haskell
# LANGUAGE ApplicativeDo # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # | Control structure with parameters for the blender script. | Project two animations on each side of a plane and flip the plane upside down. | 3D flip transition.
# LANGUAGE RecordWildCards # HLINT ignore | Copyright : Written by License : Unlicense Maintainer : Stability : experimental Portability : POSIX Copyright : Written by David Himmelstrup License : Unlicense Maintainer : Stability : experimental Portability : POSIX -} module Rea...
8ecea7ac3ff72545226ce3e8311dcba0452a862762dde64f05239925584e2355
ocaml-ppx/ocamlformat
Toplevel_lexer.mli
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/lib/Toplevel_lexer.mli
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in val repl_file : Lexing.lexbuf -> Parser_extended.Parsetree.repl_phrase list
6339e7fe22519ac4e7209cfe00efa1f28e06d5bc6fed9651aa45dca84db87255
atgreen/lisp-openshift
cruft.lisp
;;;; Copyright ( c ) 2008 - 2009 < > ;;;; ;;;; All rights reserved. ;;;; ;;;; See LICENSE for details. ;;;; (in-package :editor-hints.named-readtables) (defmacro define-cruft (name lambda-list &body (docstring . alternatives)) (assert (typep docstring 'string) (docstring) "Docstring missing!") (assert (not ...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/named-readtables-20101006-darcs/cruft.lisp
lisp
All rights reserved. See LICENSE for details. Mapping between a readtable object and its readtable-name. Mapping between a readtable-name and the actual readtable object. nicely on their infrastructure. arbitrary symbols. Reader-macro related predicates each readtable copy. if not declared inline. (defun ...
Copyright ( c ) 2008 - 2009 < > (in-package :editor-hints.named-readtables) (defmacro define-cruft (name lambda-list &body (docstring . alternatives)) (assert (typep docstring 'string) (docstring) "Docstring missing!") (assert (not (null alternatives))) `(progn (declaim (inline ,name)) (defun ,n...
0b331457a86bd51abd002be6dc029993e55641067c0e07e9768cedaaf4099108
bobeff/playground
005.rkt
Exercise 5 . Use the 2htdp / image library to create the image of a simple boat ; or tree. Make sure you can easily change the scale of the entire image. #lang racket (require 2htdp/image) (define (boat-image scale-factor) (scale scale-factor (overlay/xy (crop 5 0 5 25 (ellipse 10 25 "solid"...
null
https://raw.githubusercontent.com/bobeff/playground/7072dbd7e0acd690749abe1498dd5f247cc21637/htdp-second-edition/exercises/005.rkt
racket
or tree. Make sure you can easily change the scale of the entire image.
Exercise 5 . Use the 2htdp / image library to create the image of a simple boat #lang racket (require 2htdp/image) (define (boat-image scale-factor) (scale scale-factor (overlay/xy (crop 5 0 5 25 (ellipse 10 25 "solid" "mediumgray")) -20 0 (overlay/xy (rectangle 2 30 "soli...
310547a0425d2002f9d42fd3ea8d18fffd5d3fc05617ae4e63c581003e787c83
brendanhay/gogol
Delete.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-securitycenter/gen/Gogol/SecurityCenter/Organizations/NotificationConfigs/Delete.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Deletes a notification config. /See:/ < Security Command Center API Reference> for @securitycenter.organizations.notificationConfigs.delete@. * Resource ** Constructing a Request | Deletes a notification config. /See:/ 'new...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
910a9cfb0aa4e3469874df7051af475463cfef2ab83201f744e69e2a230bd662
mvaldesdeleon/aoc18
Day9Main.hs
module Day9Main where import Day9 (day9) main :: IO () main = day9
null
https://raw.githubusercontent.com/mvaldesdeleon/aoc18/1a6f6de7c482e5de264360e36f97a3c7487e2457/app/Day9Main.hs
haskell
module Day9Main where import Day9 (day9) main :: IO () main = day9
e32186455f2c25e0d5249328452f4297e48f633b2180aecd4f069197538aedec
careercup/CtCI-6th-Edition-Clojure
chapter_2_q7_test.clj
(ns ^{:author "Leeor Engel"} chapter-2.chapter-2-q7-test (:require [clojure.test :refer :all] [data-structures.mutable-linked-list :refer :all] [chapter-2.chapter-2-q7 :refer :all])) (deftest intersect-test (is (nil? (intersect? (create-linked-list 1) (create-l...
null
https://raw.githubusercontent.com/careercup/CtCI-6th-Edition-Clojure/ef151b94978af82fb3e0b1b0cd084d910870c52a/test/chapter_2/chapter_2_q7_test.clj
clojure
(ns ^{:author "Leeor Engel"} chapter-2.chapter-2-q7-test (:require [clojure.test :refer :all] [data-structures.mutable-linked-list :refer :all] [chapter-2.chapter-2-q7 :refer :all])) (deftest intersect-test (is (nil? (intersect? (create-linked-list 1) (create-l...
81b8ad9f2c7fd7dc655338a84186da4e8d8f03b90b7275029c977a94e96a8a5f
default-kramer/fission-flare
state.rkt
#lang typed/racket (provide make-initial-state make-empty-state state-get state-width state-height state-apply state-next-spawns state-waiting-frame parse-state) (require "data.rkt" "grid.rkt" "../typed-utils.rkt" (prefix-in tr: (only-in typed/racket random shuffle))) The top 2 ...
null
https://raw.githubusercontent.com/default-kramer/fission-flare/56969185f9daf8788698b93a5cd01823fdd7b4c2/src/core/state.rkt
racket
We could just silently discard the event too, but right now I never intend to do that so crash instead. mover current-combo previous-combo game-over? be obvious from the return value). The color distribution for spawned catalysts is modeled as a stack of cards. When the stack is empty, we simply reshuffle it a...
#lang typed/racket (provide make-initial-state make-empty-state state-get state-width state-height state-apply state-next-spawns state-waiting-frame parse-state) (require "data.rkt" "grid.rkt" "../typed-utils.rkt" (prefix-in tr: (only-in typed/racket random shuffle))) The top 2 ...
8ee5eee59857fce6e30e410a475342029e0a0f656459b35ca1abfab5f2b51105
Bogdanp/koyo
info.rkt
#lang info (define license 'BSD-3-Clause) (define collection 'multi) (define deps '("koyo-doc" "koyo-lib")) (define implies '("koyo-doc" "koyo-lib"))
null
https://raw.githubusercontent.com/Bogdanp/koyo/0c3ff367bfb87b0e3d9376c7bf34df026d6da1f0/koyo/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define collection 'multi) (define deps '("koyo-doc" "koyo-lib")) (define implies '("koyo-doc" "koyo-lib"))
eff4d7fe1efb80c8282633e2ae5d1181ff157ec99fce008c76f4c6e375bee51a
facebook/flow
expensive.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/common/audit/expensive.ml
ocaml
Use this token to describe expensive calls that are deemed OK. For example, shared memory accesses that happen in (short-lived, parallel) worker processes are usually OK, since they happen, well, in parallel (so time cost is OK) and their memory is reclaimed after they die (so memory cost is OK).
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
2361e51d9c9accfd0660358548ee2d447a401b8b3a4fa4e8b83ceb742b58b051
geneweb/geneweb
test.ml
open OUnit2 let _ = run_test_tt_main ("Geneweb" >::: [] @ Test_calendar.suite @ Test_mergeInd.suite @ Test_place.suite @ Test_sosa.suite @ Test_utils.suite @ Test_wiki.suite)
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/test/test.ml
ocaml
open OUnit2 let _ = run_test_tt_main ("Geneweb" >::: [] @ Test_calendar.suite @ Test_mergeInd.suite @ Test_place.suite @ Test_sosa.suite @ Test_utils.suite @ Test_wiki.suite)
3faad6569955ce9a3cd1094c34f296af1ea33d2e30ccf773f00fe1ffb1226ded
NetComposer/nksip
all_test.erl
%% ------------------------------------------------------------------- %% %% basic_test: Basic Test Suite %% Copyright ( c ) 2013 . All Rights Reserved . %% 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...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/all_test.erl
erlang
------------------------------------------------------------------- basic_test: Basic Test Suite Version 2.0 (the "License"); you may not use this file 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 specif...
Copyright ( c ) 2013 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(all_test). -includ...
23452f3ed6784947784dc3247ca96689792d9b611c23a4cf295fd15f58d575aa
ocaml/dune
string.ml
Because other the syntax ] causes trouble module String = Stdlib.String include StringLabels let compare a b = Ordering.of_int (String.compare a b) module T = struct type t = StringLabels.t let compare = compare let equal (x : t) (y : t) = x = y let hash (s : t) = Poly.hash s let to_dyn s = Dyn.Strin...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/string.ml
ocaml
Because other the syntax ] causes trouble module String = Stdlib.String include StringLabels let compare a b = Ordering.of_int (String.compare a b) module T = struct type t = StringLabels.t let compare = compare let equal (x : t) (y : t) = x = y let hash (s : t) = Poly.hash s let to_dyn s = Dyn.Strin...
0230a85bef26799fd9c2ed577df6e945d772f1ad1dc6521a8c9f48dfbd9952f7
mbj/stratosphere
HomeDirectoryMapEntryProperty.hs
module Stratosphere.Transfer.User.HomeDirectoryMapEntryProperty ( HomeDirectoryMapEntryProperty(..), mkHomeDirectoryMapEntryProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratos...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/transfer/gen/Stratosphere/Transfer/User/HomeDirectoryMapEntryProperty.hs
haskell
module Stratosphere.Transfer.User.HomeDirectoryMapEntryProperty ( HomeDirectoryMapEntryProperty(..), mkHomeDirectoryMapEntryProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratos...
30686406022df0aa28137df90e5172574aaeff941b7072d9e5b0dc531734ad10
schmidt73/guidescan-web
structure.clj
(ns guidescan-web.genomics.structure "A genome structure map specificies the names and lengths of all the chromosomes for a given organism. It is necessary for mapping between absolute and relative coordinates. A raw genome structure looks like this: [[chr1 chr1-length] ... [chrN chrN-length]]") (defn- f...
null
https://raw.githubusercontent.com/schmidt73/guidescan-web/130f189c88aadcce7a2d857943d16be54f789059/src/guidescan_web/genomics/structure.clj
clojure
(ns guidescan-web.genomics.structure "A genome structure map specificies the names and lengths of all the chromosomes for a given organism. It is necessary for mapping between absolute and relative coordinates. A raw genome structure looks like this: [[chr1 chr1-length] ... [chrN chrN-length]]") (defn- f...
7ad7022d8ce8668d6522ca216ef40f58f41f3ed61f0cd1fe114dfed4e68cc4d4
draperlaboratory/VIBES
opt.ml
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/7f978d66d0b022d1a9262fdfc608b7a2b7c95dff/tools/vibes-as/lib/opt.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . open Core open Bap.Std open Vibes_ir.Types let filter_empty_blocks (ir : t) : t = let...
ad375bf6430eaccc2e03f9e65cfb8d6d5535f69b8846c3e0b68958f41a4db0da
hercules-ci/hercules-ci-agent
FailureGraph.hs
{-# LANGUAGE DeriveAnyClass #-} module Hercules.API.Build.FailureGraph where import Hercules.API.Derivation (Derivation) import Hercules.API.Prelude -- | A graph where each node is a failed (directly/indirectly) derivation -- and edges represent a dependencies on other directly or indirectly failed -- derivation...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/216a1d178d57471b05f60bf3e21ce46d3fdc5f94/hercules-ci-api/src/Hercules/API/Build/FailureGraph.hs
haskell
# LANGUAGE DeriveAnyClass # | A graph where each node is a failed (directly/indirectly) derivation and edges represent a dependencies on other directly or indirectly failed derivations. | A derivation and any dependencies that caused it to fail, if applicable. | Dependency paths to failed dependencies that, if...
module Hercules.API.Build.FailureGraph where import Hercules.API.Derivation (Derivation) import Hercules.API.Prelude data Graph = Graph { nodes :: [Node] } deriving (Generic, Show, Eq, NFData, ToJSON, FromJSON, ToSchema) data Node = Node { derivation :: Derivation, failedDependencies :: [Text] } der...
7ac1d34f2d7c9aa33bcdb546181a32593337cef49b0a2a4601c3a20f174bcbba
Psi-Prod/ppx_system
test_ppx_system.ml
assert ( match [%get_system] with | Darwin when [%system { darwin = "darwin" }] = "darwin" -> true | FreeBSD when [%system { free_bsd = "free_bsd" }] = "free_bsd" -> true | NetBSD when [%system { net_bsd = "net_bsd" }] = "net_bsd" -> true | OpenBSD when [%system { open_bsd = "open_bsd" }] = "open_bsd" -> true...
null
https://raw.githubusercontent.com/Psi-Prod/ppx_system/5a0189e44c45c5dbf671d46f106f310728c09c23/test/test_ppx_system.ml
ocaml
assert ( match [%get_system] with | Darwin when [%system { darwin = "darwin" }] = "darwin" -> true | FreeBSD when [%system { free_bsd = "free_bsd" }] = "free_bsd" -> true | NetBSD when [%system { net_bsd = "net_bsd" }] = "net_bsd" -> true | OpenBSD when [%system { open_bsd = "open_bsd" }] = "open_bsd" -> true...
a2c9f9162d221c1294293c9899cca389be7076e8c3a352fc203eacd2dc60d48d
coq/coq
logic_monad.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/beca096d1c078970de15ec73bd6d559f0ebe10f6/engine/logic_monad.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
65640a238f42cd1a88c9b6e194ec3bb78e920e49e472d5acbc2eb5131aa83ec3
parsimony-ide/parsimony
neg_intersect.clj
(ns parsimony.rdag.xform.rewrite.neg-intersect (:require [parsimony.rdag.tree-visitor :refer [reverse-preorder-visit skip-leaves on]])) (defn- edit [] (fn [[_ x y] state] {:node [:groupexp [:posinterexp x [:tildeexp [:groupexp y]]]]})) (defn neg-intersect "Rewrite !& to...
null
https://raw.githubusercontent.com/parsimony-ide/parsimony/1744e8b4a921a50dfbd0815499cf3af1059590c8/src/parsimony/rdag/xform/rewrite/neg_intersect.clj
clojure
(ns parsimony.rdag.xform.rewrite.neg-intersect (:require [parsimony.rdag.tree-visitor :refer [reverse-preorder-visit skip-leaves on]])) (defn- edit [] (fn [[_ x y] state] {:node [:groupexp [:posinterexp x [:tildeexp [:groupexp y]]]]})) (defn neg-intersect "Rewrite !& to...
6776064afe96a99e5b9d08915f30e3b5003c8f5154911ded31023f904e498059
alanmarazzi/perfect
reader.clj
(ns perfect.reader (:require [perfect.reader.full :as full :reload true] [perfect.reader.table :as tbl :reload true] [perfect.reader.fast :as fast :reload true])) (set! *warn-on-reflection* true) (defn read-workbook "Read an Excel file to get a Clojure data representation. There are 3 reading options...
null
https://raw.githubusercontent.com/alanmarazzi/perfect/c3caecbf64383a1befd0dc1fef8f414e55d3dfa2/src/perfect/reader.clj
clojure
(ns perfect.reader (:require [perfect.reader.full :as full :reload true] [perfect.reader.table :as tbl :reload true] [perfect.reader.fast :as fast :reload true])) (set! *warn-on-reflection* true) (defn read-workbook "Read an Excel file to get a Clojure data representation. There are 3 reading options...
385578cedeb773d9975117e724d8630220a80c672475761b81c3e25b93171635
Deaf-Clojurian/sudoku-solver
verifier.clj
(ns sudoku-solver.logic.verifier (:require [schema.core :as s] [sudoku-solver.common :as common] [sudoku-solver.wire.in.verifier :as wire.in.verifier])) (s/defn valid-value? :- s/Bool "In a Sudoku game, valid value are between 1 to 9 and the 'null' value" [value :- (s/maybe s/Int)] (reduce #(or %1 %2)...
null
https://raw.githubusercontent.com/Deaf-Clojurian/sudoku-solver/223ef9fd178f96f13747fc99a32d76c94d890729/src/sudoku_solver/logic/verifier.clj
clojure
(ns sudoku-solver.logic.verifier (:require [schema.core :as s] [sudoku-solver.common :as common] [sudoku-solver.wire.in.verifier :as wire.in.verifier])) (s/defn valid-value? :- s/Bool "In a Sudoku game, valid value are between 1 to 9 and the 'null' value" [value :- (s/maybe s/Int)] (reduce #(or %1 %2)...
16507d0e9eaaca03cc970c1aa61a6a080fb9ca6d339526d33485212898b4a3c7
yallop/ocaml-ctypes
driver.ml
* 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. *) Stub generation driver for ...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-oo_style/stub-generator/driver.ml
ocaml
* 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. *) Stub generation driver for ...
827ec35773cfaa180b30bb5c4f51f8d7673e55a893fbd3bdc968b155f7f1e125
scrintal/heroicons-reagent
backward.cljs
(ns com.scrintal.heroicons.outline.backward) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/backward.cljs
clojure
(ns com.scrintal.heroicons.outline.backward) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
104efa14886cbc3a9ad96fc1ff56695324482c2df16ae1395961d4b5f3746b9a
kelsey-sorrels/robinson
timbre.clj
{ ;;; Control log filtering by namespace patterns (e.g. ["my-app.*"]). ;;; Useful for turning off logging in noisy libraries, etc. :ns-whitelist [] :ns-blacklist [] Fns ( applied right - to - left ) to transform / filter appender fn args . ;; Useful for obfuscating credentials, pattern filtering, etc. ...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/config/timbre.clj
clojure
Control log filtering by namespace patterns (e.g. ["my-app.*"]). Useful for turning off logging in noisy libraries, etc. Useful for obfuscating credentials, pattern filtering, etc. Control :timestamp format SimpleDateFormat pattern A Locale object, or nil Output formatter used by built-in appenders. Custom appen...
:ns-whitelist [] :ns-blacklist [] Fns ( applied right - to - left ) to transform / filter appender fn args . :middleware [] :fmt-output-fn (fn [{:keys [level throwable message timestamp hostname ns]} & [{:keys [nofonts?] :as appender-fmt-output-opts}]] (format "%s %s %s [%s] - %s%s" ...
a080385dbf7ca5fb568ada39d4c2a274ff8cc93a22aaba33769e343b47021bbf
haskell-gi/haskell-gi
genBuildInfo.hs
{-# LANGUAGE OverloadedStrings #-} -- Generate the cabal info for the given subdirectories, assuming -- the existence of appropriate "pkg.info" files. import System.Environment (getArgs,getExecutablePath) import System.FilePath ((</>), (<.>)) import System.IO (hPutStrLn, stderr, hFlush, stdout) import System.Exit (ex...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/4699c25e1cd897b9be1db86e4a430430c29b2e09/bindings/genBuildInfo.hs
haskell
# LANGUAGE OverloadedStrings # Generate the cabal info for the given subdirectories, assuming the existence of appropriate "pkg.info" files. setup-depends dependencies when constructing the build plan. See -gi/haskell-gi/issues/124 for the reasoning behind this. GHC 8.2.x panics when building the overloaded bind...
import System.Environment (getArgs,getExecutablePath) import System.FilePath ((</>), (<.>)) import System.IO (hPutStrLn, stderr, hFlush, stdout) import System.Exit (exitFailure, ExitCode(..)) import System.Process (rawSystem) #if !MIN_VERSION_base(4,13,0) import Data.Monoid ((<>)) #endif import Control.Monad (forM_...
6a5520489de4d8f7d767526ac2fea9020cfdaa7e86ce2332d620cbebcd9f592c
WhatsApp/erlfmt
erlfmt_scan.erl
Copyright ( c ) Facebook , Inc. and its affiliates . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing,...
null
https://raw.githubusercontent.com/WhatsApp/erlfmt/8efa327491aef58f149c032b24588e211975862d/src/erlfmt_scan.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) Facebook , Inc. and its affiliates . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlfmt_scan). -include("erlfmt_scan.hrl"). -export([ io_node/1, string_node/1, continue/1, last_...
2a5a7a069b3c99f6c0ddeaea1447cfd8fb99470bd666ee3696f2a8c4de9f3b9a
oriansj/mes-m2
begin.scm
GNU --- Maxwell Equations of Software Copyright © 2016,2018 Jan ( janneke ) Nieuwenhuizen < > ;;; This file is part of GNU . ;;; GNU 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...
null
https://raw.githubusercontent.com/oriansj/mes-m2/b44fbc976ae334252de4eb82a57c361a195f2194/test/test012/begin.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Setup output file
GNU --- Maxwell Equations of Software Copyright © 2016,2018 Jan ( janneke ) Nieuwenhuizen < > This file is part of GNU . under the terms of the GNU General Public License as published by GNU is distributed in the hope that it will be useful , but You should have received a copy of the GNU General Public...
be07775c0edbf838818dc313fa9c51c4cf76ddfc3d49e6954cc4db372bfe2114
cirodrig/triolet
Error.hs
module Common.Error where internalError :: String -> a internalError msg = error $ "Internal error:\n" ++ msg
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/Common/Error.hs
haskell
module Common.Error where internalError :: String -> a internalError msg = error $ "Internal error:\n" ++ msg
10ea45bd2d8b5822faca7ea89732b2af2d5a8d89db9b31b179616d521b691ea5
MassD/pearls
all_lcp.ml
let prepare l n = let rec prep a i = function | [] | _::[] -> a | x1::x2::tl -> if x1 = x2 then a.(i).(i+1) <- 1 + (if i = 0 then 0 else a.(i-1).(i)) else a.(i).(i+1) <- 0; prep a (i+1) (x2::tl) in prep (Array.make_matrix n n (-1)) 0 l let update a i j cp = a.(i).(j) <- cp let rec lcp...
null
https://raw.githubusercontent.com/MassD/pearls/da73f49ffe61125c1def4f2b3ed339963318dbec/15_all_common_prefixes/all_lcp.ml
ocaml
let prepare l n = let rec prep a i = function | [] | _::[] -> a | x1::x2::tl -> if x1 = x2 then a.(i).(i+1) <- 1 + (if i = 0 then 0 else a.(i-1).(i)) else a.(i).(i+1) <- 0; prep a (i+1) (x2::tl) in prep (Array.make_matrix n n (-1)) 0 l let update a i j cp = a.(i).(j) <- cp let rec lcp...
29d472d374269ee074531504aeb1ede56307b0abe5854cc69e37438039b89e72
shnarazk/mios
Solver.hs
# LANGUAGE BangPatterns , FlexibleInstances , MultiParamTypeClasses , RecordWildCards , ScopedTypeVariables , TupleSections , ViewPatterns # BangPatterns , FlexibleInstances , MultiParamTypeClasses , RecordWildCards , ScopedTypeVariables , TupleSections , ViewPatterns ...
null
https://raw.githubusercontent.com/shnarazk/mios/d032d761d73224f981a07ec2ea90936db6f495e8/MultiConflict/SAT/Mios/Solver.hs
haskell
# LANGUAGE Safe # * Solver * State Modifiers * Activities , claDecayActivity * Stats Public Interface ^ If found, this vector has the model ^ Set of literals in the case of conflicts Clause Database ^ List of problem constraints. ^ List of learnt clauses. ^ list of constraint w...
# LANGUAGE BangPatterns , FlexibleInstances , MultiParamTypeClasses , RecordWildCards , ScopedTypeVariables , TupleSections , ViewPatterns # BangPatterns , FlexibleInstances , MultiParamTypeClasses , RecordWildCards , ScopedTypeVariables , TupleSections , ViewPatterns ...
830ca30c8553933f39cd6f9c2b97bfd070ff93804c5b8d719bc3abc277d3fbcc
hammerlab/biokepi
common.ml
(**************************************************************************) Copyright 2014 , < > (* *) Licensed under the Apache License , Version 2.0 ( the " License " ) ; (* you may not use this file except i...
null
https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/run_environment/common.ml
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , include Nonstd module String = struct include Sosa.Native_string end let (//) = Filename.concat let debug_mo...
871bbf760becf80ca8312300590b8c72a9c860aacbd8266906ff7b26a29e39a3
Lysxia/first-class-families
Combinators.hs
{-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, TypeInType, TypeOperators, UndecidableInstances #-} -- | General fcf combinators. -- See also " Fcf . Data . Function " for more . module Fcf.Combinators ( Pure , Pure1 , Pure2 , Pure3 , type (=<<) , type (<=<) , LiftM , LiftM2 ...
null
https://raw.githubusercontent.com/Lysxia/first-class-families/ba5447939927054dda71828eb5ff2a1b9abd1856/src/Fcf/Combinators.hs
haskell
# LANGUAGE DataKinds, PolyKinds, TypeFamilies, TypeInType, TypeOperators, UndecidableInstances # | General fcf combinators.
See also " Fcf . Data . Function " for more . module Fcf.Combinators ( Pure , Pure1 , Pure2 , Pure3 , type (=<<) , type (<=<) , LiftM , LiftM2 , LiftM3 , Join , type (<$>) , type (<*>) , Flip , ConstFn , type ($) ) where import Fcf.Core * * Monadic operations infixl 1 >>= infixr ...
3f4620ce897cc41b08f27b77bacb19e92b9f64cca1983b01287b93925a51eda1
brendanhay/gogol
Get.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-bigquery/gen/Gogol/BigQuery/Routines/Get.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Gets the specified routine resource by routine ID. /See:/ </ BigQuery API Reference> for @bigquery.routines.get@. * Resource ** Constructing a Request 'BigQueryRoutinesGet' request conforms to. | Gets the specified routine r...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
bc3e1e3998f34e9b60537641b3961ff548fbaf811cbb79e4d0c9047dcfdaa974
namin/clpsmt-miniKanren
mk.scm
(define c->S (lambda (c) (car c))) (define c->D (lambda (c) (cadr c))) (define c->A (lambda (c) (caddr c))) (define c->T (lambda (c) (cadddr c))) (define c->M (lambda (c) (cadddr (cdr c)))) (define empty-c '(() () () () ())) (define-syntax lambdag@ (syntax-rules (:) ((_ (c) e) (lambda (c) e)) ((_ (c : S...
null
https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/mk.scm
scheme
(define c->S (lambda (c) (car c))) (define c->D (lambda (c) (cadr c))) (define c->A (lambda (c) (caddr c))) (define c->T (lambda (c) (cadddr c))) (define c->M (lambda (c) (cadddr (cdr c)))) (define empty-c '(() () () () ())) (define-syntax lambdag@ (syntax-rules (:) ((_ (c) e) (lambda (c) e)) ((_ (c : S...
ccd8af7e3825a39aaab750b1e4a98112458ddb31a4601587b43d72da55e9befd
roburio/builder-web
http_status_metrics.ml
open Lwt.Infix let create ~f = let data : (string, int) Hashtbl.t = Hashtbl.create 7 in (fun x -> let key = f x in let cur = match Hashtbl.find_opt data key with | None -> 0 | Some x -> x in Hashtbl.replace data key (succ cur)), (fun () -> let data, total = Hashtbl.f...
null
https://raw.githubusercontent.com/roburio/builder-web/71a016fdae5775205ef8ed340f86a7c9fffa9dce/http_status_middleware/http_status_metrics.ml
ocaml
open Lwt.Infix let create ~f = let data : (string, int) Hashtbl.t = Hashtbl.create 7 in (fun x -> let key = f x in let cur = match Hashtbl.find_opt data key with | None -> 0 | Some x -> x in Hashtbl.replace data key (succ cur)), (fun () -> let data, total = Hashtbl.f...
df405a59042108cd3382318f295dfcfc11835ee7519902ebf2c64463bc3ddd24
wwezhuimeng/kazoo
rabbit_msg_store.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/wwezhuimeng/kazoo/06a15811dbf123ae1601dc7a4ced956a7e04f58a/deps/rabbitmq_server-3.3.5/src/rabbit_msg_store.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. internal upgra...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
80634eca35d6a1fc184a29d7f600251995103ca579504b5025071571cfa7d011
0install/0install
packagekit.ml
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils type package_info = { version : Version.t; machine : Arch.machine option; installed : bool; retrieval_method : Impl.distro_ret...
null
https://raw.githubusercontent.com/0install/0install/b3d7e5fdabb42c495c0ba3a97056b21264064f4f/src/zeroinstall/packagekit.ml
ocaml
* Wait for a task to complete, but ignore the actual return value. Gets filled in later * Convert short names to PackageKit IDs (e.g. "gnupg" -> "gnupg;2.0.22;x86_64;arch") * Get the sizes of the candidate packages. PackageKit can't handle empty queries * Install distribution packages. Notify the start of all ...
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils type package_info = { version : Version.t; machine : Arch.machine option; installed : bool; retrieval_method : Impl.distro_ret...
79e2cb1ec4133c043abfbf8df72e471e25ed712f96345afefcd9336aec2b80d0
aprolog-lang/aprolog
dependency_graph.ml
module A = Absyn type t = (bool * String_set.t) String_map.t let empty = String_map.empty let add_node pred dep_graph = if String_map.mem pred dep_graph then dep_graph else String_map.add pred (false,String_set.empty) dep_graph ;; let add_directed_edge pred dep dep_graph = if String_map.mem p...
null
https://raw.githubusercontent.com/aprolog-lang/aprolog/410327a615919eb6827d71661e69de14279b8c50/src/dependency_graph.ml
ocaml
;; print_string ("CatchAll2: " ^ (A.t2s goal) ^ "\n");
module A = Absyn type t = (bool * String_set.t) String_map.t let empty = String_map.empty let add_node pred dep_graph = if String_map.mem pred dep_graph then dep_graph else String_map.add pred (false,String_set.empty) dep_graph ;; let add_directed_edge pred dep dep_graph = if String_map.mem p...
860d3fa6ada3caa919a7f414962d715635889345e4724c1a96ac5261bf5228a7
tweag/ormolu
n-plus-k-pattern.hs
# LANGUAGE NPlusKPatterns # singleline :: Int singleline (n + 1) = n multiline :: Int multiline(n + 1) = n n :: Int (n + 1) = 3
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/pattern/n-plus-k-pattern.hs
haskell
# LANGUAGE NPlusKPatterns # singleline :: Int singleline (n + 1) = n multiline :: Int multiline(n + 1) = n n :: Int (n + 1) = 3
71bc1fb8475853f21ee1725aeca83a0e122be08b381d976f6a424fcded495ddf
pbl64k/gpif-datakinds
ShowInstances.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | Module : Control . IxFunctor . ShowInstances Description : For debugging purposes Copyright : , 2015...
null
https://raw.githubusercontent.com/pbl64k/gpif-datakinds/1ae07ec5274f258c6bdf6633bd88532f6c3c1e04/src/Control/IxFunctor/ShowInstances.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | Module : Control . IxFunctor . ShowInstances Description : For debugging purposes Copyright : , 2015 License : BSD2 ...
c55dec96e9d41d5f5c8b757172b5a5304366c254efe80920ce85cbbf898706ce
hjcapple/reading-sicp
exercise_2_27.scm
#lang racket P74 - [ 练习 2.27 ] (define (deep-reverse items) (define (iter items result) (if (null? items) result (iter (cdr items) (cons (deep-reverse (car items)) result)))) (if (pair? items) (iter items null) items)) (define (deep-reverse-2 items) (cond ((n...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_2/exercise_2_27.scm
scheme
#lang racket P74 - [ 练习 2.27 ] (define (deep-reverse items) (define (iter items result) (if (null? items) result (iter (cdr items) (cons (deep-reverse (car items)) result)))) (if (pair? items) (iter items null) items)) (define (deep-reverse-2 items) (cond ((n...
223000bb87d934b5a384618d30b757f287fb735bccca5624e9e496bc7859b53a
ocaml/dune
bytes_unit_tests.ml
open Stdune let () = We assert some properties of the conversion table here . It should be sorted by the values in the second component and the suffix list must be non - empty . by the values in the second component and the suffix list must be non-empty. *) let rec loop = function | [] ...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/test/bytes_unit_tests.ml
ocaml
open Stdune let () = We assert some properties of the conversion table here . It should be sorted by the values in the second component and the suffix list must be non - empty . by the values in the second component and the suffix list must be non-empty. *) let rec loop = function | [] ...
7cd6687e600062eae49ee3f9a0cf72274379f0f3dcaafdc6e8c1cce1a24e9ef7
utahstreetlabs/risingtide
feed_build_bolt.clj
(ns risingtide.storm.feed-build-bolt (:require [risingtide.config :as config] [risingtide.action.persist.solr :as solr] [risingtide.action.recent :refer [find-recent-actions]] [risingtide.storm [story-bolts :refer [action-to-story]] [feed-bolts :refer [fee...
null
https://raw.githubusercontent.com/utahstreetlabs/risingtide/bc5b798396679739469b1bd8ee1b03db76178cde/src/risingtide/storm/feed_build_bolt.clj
clojure
(ns risingtide.storm.feed-build-bolt (:require [risingtide.config :as config] [risingtide.action.persist.solr :as solr] [risingtide.action.recent :refer [find-recent-actions]] [risingtide.storm [story-bolts :refer [action-to-story]] [feed-bolts :refer [fee...
45b2f72fe069f787e419bfa30b37ffb8c9b2973a994ee56912bc722880b60c28
OCamlPro/typerex-lint
lint_parse_args.ml
(**************************************************************************) (* *) (* OCamlPro Typerex *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/tools/ocp-lint/utils/lint_parse_args.ml
ocaml
************************************************************************ OCamlPro Typerex This file is distributed ...
Copyright OCamlPro 2011 - 2016 . All rights reserved . ( GNU General Public Licence version 3.0 ) . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE...
686f1351c9e2a71011fd67c2521e368fdf51eb8f4b7415031986fb285486aea9
ltoth/unison
fspath.mli
Unison file synchronizer : src / fspath.mli Copyright 1999 - 2010 , ( see COPYING for details ) (* Defines an abstract type of absolute filenames (fspaths) *) type t val child : t -> Name.t -> t val concat : t -> Path.local -> t val canonize : string option -> t val toString : t -> string val toPrintString :...
null
https://raw.githubusercontent.com/ltoth/unison/e763510165e3d93c5140a4c5f2ea0dcbf5825a0c/fspath.mli
ocaml
Defines an abstract type of absolute filenames (fspaths) of the symlink's target; otherwise return the parent dir of path. If in the user interface. Escaped fspath (to pass as shell parameter) CASE-SENSITIVE comparison between fspaths CASE-SENSITIVE has...
Unison file synchronizer : src / fspath.mli Copyright 1999 - 2010 , ( see COPYING for details ) type t val child : t -> Name.t -> t val concat : t -> Path.local -> t val canonize : string option -> t val toString : t -> string val toPrintString : t -> string val toDebugString : t -> string val toSysPath : t ...
bea1db53a7eb309d8319253e52612e698503ed7a2a36d79b2702152323694767
tolysz/ghcjs-stack
PSQ.hs
# LANGUAGE DeriveFunctor , , DeriveTraversable # module Distribution.Client.Dependency.Modular.PSQ ( PSQ(..) -- Unit test needs constructor access , Degree(..) , casePSQ , cons , degree , delete , dminimumBy , length , lookup , filter , filterKeys , firstOnly , from...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/cabal-install/Distribution/Client/Dependency/Modular/PSQ.hs
haskell
Unit test needs constructor access Priority search queues. I am not yet sure what exactly is needed. But we need a data structure with key-based lookup that can be sorted. We're using a sequence right now with (inefficiently implemented) lookup, because I think that queue-based operations and sorting turn out to...
# LANGUAGE DeriveFunctor , , DeriveTraversable # module Distribution.Client.Dependency.Modular.PSQ , Degree(..) , casePSQ , cons , degree , delete , dminimumBy , length , lookup , filter , filterKeys , firstOnly , fromList , isZeroOrOne , keys , map , map...
718106469f4bd50e66eca3b1ad1f93c94ac9150f3084c4dbcaa44e3484268bac
haskus/haskus-system
Config.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} module Haskus.Apps.System.Build.Config ( readSystemConfig , SystemConfig (..) , LinuxConfig (..) , linuxConfigHash , linuxConfigVersion , LinuxSource (..) , LinuxOptions (..) , SyslinuxConfig (..) ,...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system-build/src/apps/Haskus/Apps/System/Build/Config.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveAnyClass # | System configuration ^ Linux configuration ^ Syslinux configuration ^ Ramdisk configuration ----------------------------------------------------------- ----------------------------------------------------------- | Linux source ^ Linux x.y.z from kernel....
# LANGUAGE DeriveGeneric # module Haskus.Apps.System.Build.Config ( readSystemConfig , SystemConfig (..) , LinuxConfig (..) , linuxConfigHash , linuxConfigVersion , LinuxSource (..) , LinuxOptions (..) , SyslinuxConfig (..) , syslinuxConfigHash , RamdiskConfig (..) , QEMUConfig (..) ...
28d8bb858b924e6b99b74f0fa716d9582ad04d126984df2024e0320d09e87a47
elektronaut/advent-of-code
day08.clj
(ns advent-of-code.2022.08 (:require [clojure.string :as str] [clojure.set :as set])) (def trees (->> (slurp "2022/day08/input.txt") (str/split-lines) (map (fn [line] (vec (map #(Integer/parseInt %) (str/split line #""))))) (vec))) (defn coordinates [grid] (for [x (range 0 (coun...
null
https://raw.githubusercontent.com/elektronaut/advent-of-code/a8bb7bbadc8167ebb1df0d532493317705bb7f0d/2022/day08/day08.clj
clojure
(ns advent-of-code.2022.08 (:require [clojure.string :as str] [clojure.set :as set])) (def trees (->> (slurp "2022/day08/input.txt") (str/split-lines) (map (fn [line] (vec (map #(Integer/parseInt %) (str/split line #""))))) (vec))) (defn coordinates [grid] (for [x (range 0 (coun...
42b8f29b6e697621c663553e4df483f3ccc81a37f79e4e822f7003c7d522fdca
manuel-serrano/bigloo
regutils.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / SawMill / regutils.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/SawMill/regutils.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Compute the liveness analysis of the rtl instructions */ *===========================...
* serrano / prgm / project / bigloo / comptime / SawMill / regutils.scm * / * Author : * / * Creation : Mon Jan 31 09:56:21 2005 * / * Last change : Mon Jul 24 12:45:43 2017 ( serrano ) * / * Copy...
f4d9693d4b988b4c44e0eb8c7699197b460c7c835d75441375b8b406ad271337
timcherganov/zip-conduit
Internal.hs
module Codec.Archive.Zip.Internal where import Prelude hiding (readFile) import Control.Monad (unless) import Data.ByteString (ByteString) import qualified Data.ByteString as B (hGet, hPut, length, pack, empty) import Data.Serialize (Get, Put, getByteString, getWord16le, getWord...
null
https://raw.githubusercontent.com/timcherganov/zip-conduit/7a7a4c9ffb243ac46fea883b57c995237ea61e09/src/Codec/Archive/Zip/Internal.hs
haskell
---------------------------------------------------------------------------- Overall zipfile format: [local file header + file data + data_descriptor] . . . [central directory] end of central directory record ---------------------------------------------------------------------------- Local file header: versi...
module Codec.Archive.Zip.Internal where import Prelude hiding (readFile) import Control.Monad (unless) import Data.ByteString (ByteString) import qualified Data.ByteString as B (hGet, hPut, length, pack, empty) import Data.Serialize (Get, Put, getByteString, getWord16le, getWord...
7bcdd2fc9a2c9b8fa87027d708fd5d3433445fd12cd910fe02a1d3e0d7935834
heshrobe/joshua-dist
defsystem.lisp
-*-Mode : Lisp ; Syntax : ANSI - Common - lisp ; Package : CL - USER ; Base : 10 ; Lowercase : Yes -*- (in-package :cl-user) ;;; ;;; DEFSYSTEM Utility ;;; Copyright ( c ) 1986 Regents of the University of California ;;; ;;; Permission to use, copy, modify, and distribute this software and its ;;; documentation fo...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-env/aisl-defsystem/defsystem.lisp
lisp
Syntax : ANSI - Common - lisp ; Package : CL - USER ; Base : 10 ; Lowercase : Yes -*- DEFSYSTEM Utility Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that ...
(in-package :cl-user) Copyright ( c ) 1986 Regents of the University of California supporting documentation , and that the name of the University of California not be used in advertising or publicity pertaining to permission . The University of California makes no representations implementation of ( part ...
6a61dcd43d0f54980b73e44adabd717016e81bdaaef71f48aea5353760af51d5
duncanatt/detecter
cow_spdy.erl
Copyright ( c ) 2013 - 2018 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/duncanatt/detecter/95b6a758ce6c60f3b7377c07607f24d126cbdacf/experiments/coordination_2022/src/cowlib/cow_spdy.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2013 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cow_spdy). -export([deflate_init/0]). -expor...
e90bb680f6ed97f6b301a23407e1ecf0f43624fc1489a4a40a29d6c90241d8c1
conal/functor-combo
Pair.hs
{-# LANGUAGE DeriveFunctor, DeriveDataTypeable #-} {-# LANGUAGE TypeOperators, TypeFamilies #-} # OPTIONS_GHC -Wall # { - # OPTIONS_GHC -fno - warn - unused - imports # - } -- TEMP { - # OPTIONS_GHC -fno - warn - unused - binds # - } -- TEMP ---------------------------------------------------------------------...
null
https://raw.githubusercontent.com/conal/functor-combo/e83af37cc2cc3b9a88dae032e19c731cf7b7b63d/src/FunctorCombo/Pair.hs
haskell
# LANGUAGE DeriveFunctor, DeriveDataTypeable # # LANGUAGE TypeOperators, TypeFamilies # TEMP TEMP -------------------------------------------------------------------- | Maintainer : Stability : experimental Pair functor -------------------------------------------------------------------- ---------------...
# OPTIONS_GHC -Wall # Module : FunctorCombo . Pair Copyright : ( c ) 2012 Conal Elliott module FunctorCombo.Pair ( Pair(..) , fstP, sndP, swapP, fromP, toP, inP , firstP, secondP, zipA, unzipA, inZipA , curryP, uncurryP , preScanP, sufScanP ) where TODO : consider using standard names...