_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
89b9a1949b01eda6db3d2d7cf484286b9f9081dd392709e74361537207ec3bb8
zjhmale/Ntha
Encoding.hs
-- | Prviding some Z3 encoding for certain language constructs Require a Class . SMT context to work module Ntha.Z3.Encoding ( -- ** Heterogenous list, a hack to encode different "term" into a list -- Used to encode function argument list HeteroList(..), -- ** encode function application encodeApp, -- ...
null
https://raw.githubusercontent.com/zjhmale/Ntha/dc47fafddf67cf821c90c5cd72566de67d996238/src/Ntha/Z3/Encoding.hs
haskell
| ** Heterogenous list, a hack to encode different "term" into a list Used to encode function argument list ** encode function application ** encode datatype definition recognizer. e.g. is_None None = True, is_None (Some _) = False XXX: non-rec
Prviding some Z3 encoding for certain language constructs Require a Class . SMT context to work module Ntha.Z3.Encoding ( HeteroList(..), encodeApp, encodeDataType ) where import Ntha.Z3.Class import Z3.Monad hiding (mkMap, App) data HeteroList where Cons :: forall a. (Z3Sorted a, Z3Encoded a) => a -> ...
7bbbdde091da34897c3711256d4c2d670aaa7181d7e4924363f89807e086fbdb
gfngfn/SATySFi
type.ml
type t = | TyCon0 of { cname: string; sname: string } cname = name , sname = SATySFi name | TyCon1 of { cname: string; sname: string; t: t } | Product of { ts: t list } | Fun of { dom: t; cod: t } | TyVar of { name: string } | Forall of { var: string; t: t } let none_precedence = 0 let fun_precedence = ...
null
https://raw.githubusercontent.com/gfngfn/SATySFi/8a1b1fbefae9c6958d06ee64218619e00ef0afc7/tools/gencode/type.ml
ocaml
type t = | TyCon0 of { cname: string; sname: string } cname = name , sname = SATySFi name | TyCon1 of { cname: string; sname: string; t: t } | Product of { ts: t list } | Fun of { dom: t; cod: t } | TyVar of { name: string } | Forall of { var: string; t: t } let none_precedence = 0 let fun_precedence = ...
ed7a8247eae0e267ad4c97067c0b8e8724e253bd1abd96d209a1b53aba510244
ocamllabs/ocaml-modular-implicits
typemod.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/typemod.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Types open Format val type_modul...
f17399fc9f2e422492b96620688c277a83f58c08cdbb84f455b431d0abb9ae5e
brendanhay/terrafomo
Types.hs
-- This module was auto-generated. If it is modified, it will not be overwritten. -- | Module : . Bitbucket . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generated Portability : non - portable ( GHC...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-bitbucket/src/Terrafomo/Bitbucket/Types.hs
haskell
This module was auto-generated. If it is modified, it will not be overwritten. | Stability : auto-generated import Formatting (Format, (%))
Module : . Bitbucket . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.Bitbucket.Types where import Data . Text ( Text ) import Terrafomo import Terr...
20afa1141ea2bbe4e8fff8857066955edd8d71c4e1723a492371277e4c8ca2a4
chaoxu/fancy-walks
48.hs
powMod :: Integer -> Integer -> Integer -> Integer powMod m _ 0 = 1 powMod m a p = (`mod` m) $ if p `mod` 2 == 1 then x*x*a else x*x where x = powMod m a (p `div` 2) m = 10^10 norm str | length str > 10 = norm $ tail str norm str | length str < 10 = norm $ '0':str norm str = str problem_48 = norm $ show $ sum...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/48.hs
haskell
powMod :: Integer -> Integer -> Integer -> Integer powMod m _ 0 = 1 powMod m a p = (`mod` m) $ if p `mod` 2 == 1 then x*x*a else x*x where x = powMod m a (p `div` 2) m = 10^10 norm str | length str > 10 = norm $ tail str norm str | length str < 10 = norm $ '0':str norm str = str problem_48 = norm $ show $ sum...
4a4fafe306b14c3d243cdfded9890e45fda3dc660d879f93ff1ead6195301e04
pa-ba/compdata-param
Annotation.hs
# LANGUAGE TypeOperators , MultiParamTypeClasses , FlexibleInstances , UndecidableInstances , Rank2Types , GADTs , ScopedTypeVariables # UndecidableInstances, Rank2Types, GADTs, ScopedTypeVariables #-} -------------------------------------------------------------------------------- -- | Module : Data . ...
null
https://raw.githubusercontent.com/pa-ba/compdata-param/5d6b0afa95a27fd3233f86e5efc6e6a6080f4236/src/Data/Comp/Param/Annotation.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : experimental This module defines annotations on signatures. ------------------------------------------------------------------------------ | Transform a function with a domain constructed from a fun...
# LANGUAGE TypeOperators , MultiParamTypeClasses , FlexibleInstances , UndecidableInstances , Rank2Types , GADTs , ScopedTypeVariables # UndecidableInstances, Rank2Types, GADTs, ScopedTypeVariables #-} Module : Data . Comp . . Annotation Copyright : ( c ) 2010 - 2011 , Maintainer : <...
5f52f095cd30b1370b4e7d3d4e8e5ec2cd1ea9274128eb3c54f497cc6fef5c52
nuprl/gradual-typing-performance
checked-cell.rkt
#lang typed/racket (require typed/racket/gui) (require/typed htdp/error [tp-error ((U Symbol String) String Any * -> Nothing)]) (require/typed mzlib/pconvert [print-convert (Any -> String)] [constructor-style-printing (Parameter Any)] [booleans-as-true/false ...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/private/checked-cell.rkt
racket
a string is the name of the state display window x coordinate (throw away) y coordinate for next snip is this beginner or beginner+quote turn s into lines and display them in pb Symbol Any -> ok? Symbol Any -> Void effect: set value to v if distinct, also display it if pb exists when the world doesn't change...
#lang typed/racket (require typed/racket/gui) (require/typed htdp/error [tp-error ((U Symbol String) String Any * -> Nothing)]) (require/typed mzlib/pconvert [print-convert (Any -> String)] [constructor-style-printing (Parameter Any)] [booleans-as-true/false ...
87c738f821df591892df029ccb61e6690698a6a07800be42f447542277e11d49
rubenbarroso/EOPL
5-4-4.scm
This is 5-4-4.scm : flat methods (let ((time-stamp "Time-stamp: <2001-02-24 10:31:05 dfried>")) (eopl:printf "5-4-4.scm - flat methods ~a~%" (substring time-stamp 13 29))) ;;;;;;;;;;;;;;;; classes ;;;;;;;;;;;;;;;; (define-datatype class class? (a-class (class-name symbol?) (super-name symbol?) ...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/interps/5-4-4.scm
scheme
classes ;;;;;;;;;;;;;;;; constructing classes ; ; This may change for second printing . objects ;;;;;;;;;;;;;;;; an object is now just a single part, with a vector representing the managed storage for the all the fields. methods ;;;;;;;;;;;;;;;; method environments ;;;;;;;;;;;;;;;; class environments ;;;;;;;;...
This is 5-4-4.scm : flat methods (let ((time-stamp "Time-stamp: <2001-02-24 10:31:05 dfried>")) (eopl:printf "5-4-4.scm - flat methods ~a~%" (substring time-stamp 13 29))) (define-datatype class class? (a-class (class-name symbol?) (super-name symbol?) (field-length integer?) (field-i...
3f13cd0540dbd12b93b467f9ad26c62c3103f8c14279f78a7f994d8ce2a10f7a
dgiot/dgiot
emqx_mod_rewrite_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 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/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/lib-ce/emqx_modules/test/emqx_mod_rewrite_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 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_mod_rewrite_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_l...
0b33cbeab78a7c77b0a14cc06deb7e897cf19710ef714aeaab9ddaae23ee49e4
dcastro/haskell-flatbuffers
DecodeVectors.hs
# LANGUAGE TypeApplications # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # # OPTIONS_GHC -Wno - incomplete - patterns # HLINT ignore " Avoid lambda " HLINT ignore " Use > = > " module DecodeVectors where import Control.Monad import Criterion import Data.Functor ...
null
https://raw.githubusercontent.com/dcastro/haskell-flatbuffers/cea6a75109de109ae906741ee73cbb0f356a8e0d/bench/DecodeVectors.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # # LANGUAGE LambdaCase # # OPTIONS_GHC -Wno - incomplete - patterns # HLINT ignore " Avoid lambda " HLINT ignore " Use > = > " module DecodeVectors where import Control.Monad import Criterion import Data.Functor ( (<&>) ) import Data.I...
9907a35bf8ffe24d8bef537e2d9e6a0e8d0db02fa649af6a0703bfad4e708a1d
input-output-hk/rscoin-haskell
Main.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # {-# LANGUAGE TypeOperators #-} module Main where import Control.Concurrent (forkIO) import Control.Concurrent.Async (forConcurrently) import Control.Monad (...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/bench/Local/Main.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # workaround to make stylish-haskell work :(
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Main where import Control.Concurrent (forkIO) import Control.Concurrent.Async (forConcurrently) import Control.Monad (forM_, replicateM, void) import Data.Maybe ...
a46135f683d1dccc00e1286a58a7c740f5c653ed5140586ac914b3f0b15d0c94
tarides/dune-release
vcs.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/lib/vcs.mli
ocaml
* [equal a b] returns [true] if [a] and [b] are the same tag. No check whether these commits point to the same data is done. * [to_string v] returns the [string] representation of the tag. * [of_string v] reads the specified [v] without any validation. This should be done only in rare cases, for most usag...
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
46aac79715189ca649cb864edb81eee43950102129e7c27cd788280385d6445d
fjvallarino/monomer
TestUtil.hs
| Module : Monomer . TestUtil Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Helper functions for testing Monomer widgets . Module : Monomer.TestUtil Copyright : (c) 2018 Francisco ...
null
https://raw.githubusercontent.com/fjvallarino/monomer/5b90aebae9f8d1d6c11265750823c016fdd3d785/test/unit/Monomer/TestUtil.hs
haskell
Path Context management Overlays Raw overlays Scissor operations Translation Scale Rotation Path Winding Strokes Fill Drawing Text Image Do NOT test code involving SDL Window functions Do NOT test code involving SDL Window functions
| Module : Monomer . TestUtil Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Helper functions for testing Monomer widgets . Module : Monomer.TestUtil Copyright : (c) 2018 Francisco ...
015844242529d74f1f330bf4fc4454a673b54dccb2719328e0e55c90b906cbe8
patperry/hs-linear-algebra
Vector.hs
module Vector ( tests_Vector ) where import Data.AEq import Debug.Trace import Test.Framework import Test.Framework.Providers.QuickCheck2 import Test.QuickCheck hiding ( vector ) import qualified Test.QuickCheck as QC import Numeric.LinearAlgebra.Vector( Vector ) import qualified Numeric.LinearAlgebra.Vector ...
null
https://raw.githubusercontent.com/patperry/hs-linear-algebra/887939175e03687b12eabe2fce5904b494242a1a/tests/Vector.hs
haskell
----------------------- Vector Construction ------------------------------ ------------------------ Accessing Vectors ------------------------------ ----------------------- Incremental Updates ------------------------------ ------------------------ Derived Vectors ------------------------------ ------------------------...
module Vector ( tests_Vector ) where import Data.AEq import Debug.Trace import Test.Framework import Test.Framework.Providers.QuickCheck2 import Test.QuickCheck hiding ( vector ) import qualified Test.QuickCheck as QC import Numeric.LinearAlgebra.Vector( Vector ) import qualified Numeric.LinearAlgebra.Vector ...
256c6628bb6c0cc4465f391bf7baa909b6f2e176d3ec2b48996cea278d42651b
bytekid/mkbtt
proof.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/ttt2/src/strategy/proof.ml
ocaml
** OPENS ******************************************************************* ** MODULES ***************************************************************** ** TYPES ******************************************************************* ** FUNCTIONS *************************************************************** Constructor...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
861ed13a3777673bb9f25de3b4e8503cf185f9e65738b87b063351148b93f95e
biscuit-auth/biscuit-haskell
Utils.hs
| Module : Auth . Biscuit . Utils Copyright : , 2021 License : MIT Maintainer : Module : Auth.Biscuit.Utils Copyright : © Clément Delafargue, 2021 License : MIT Maintainer : -} module Auth.Biscuit.Utils ( maybeToRight , rightToMaybe ) where -- | Exactly ...
null
https://raw.githubusercontent.com/biscuit-auth/biscuit-haskell/fca1c26c4468f1977ea39b3afea0b45942c736ef/biscuit/src/Auth/Biscuit/Utils.hs
haskell
| Exactly like `maybeToRight` from the `either` package, but without the dependency footprint | Exactly like `rightToMaybe` from the `either` package, but without the dependency footprint
| Module : Auth . Biscuit . Utils Copyright : , 2021 License : MIT Maintainer : Module : Auth.Biscuit.Utils Copyright : © Clément Delafargue, 2021 License : MIT Maintainer : -} module Auth.Biscuit.Utils ( maybeToRight , rightToMaybe ) where maybeToRight ...
dc23554f963b607129d1af747717dcbf0b633c0988f1be7d54b213664aac626f
marigold-dev/deku
tezos.ml
module Michelson = Michelson module Address = Address module Ticket_id = Ticket_id module Tezos_operation_hash = Tezos_operation_hash
null
https://raw.githubusercontent.com/marigold-dev/deku/21ec2bf05ce688c5b6012be16545175e75403f06/deku-p/src/core/tezos/tezos.ml
ocaml
module Michelson = Michelson module Address = Address module Ticket_id = Ticket_id module Tezos_operation_hash = Tezos_operation_hash
b669fc0577cdda5e9dab4115757e060017d376a49fd773014bf8dd8ad735f17c
schell/editor
Load.hs
# LANGUAGE TypeFamilies # module Graphics.Texture.Load where import Codec.Picture import Graphics.Utils import Graphics.Rendering.OpenGL import Control.Monad (when, unless) import Data.Vector.Storable (unsafeWith, Storable) import Data.Maybe (isNothing) initTexture :: FilePat...
null
https://raw.githubusercontent.com/schell/editor/0f0d2eb67df19e8285c6aaeeeca96bff3110f68d/src/Graphics/Texture/Load.hs
haskell
^ The texture to load. ^ The index of the texture unit to hold the texture in. Load our texture or die. Set the texture params on our bound texture. Get our texture object. Buffer our texture data. No proxy Size of the image No borders
# LANGUAGE TypeFamilies # module Graphics.Texture.Load where import Codec.Picture import Graphics.Utils import Graphics.Rendering.OpenGL import Control.Monad (when, unless) import Data.Vector.Storable (unsafeWith, Storable) import Data.Maybe (isNothing) -> IO (May...
570750be8851dac7d74a62efe96726d64f9a1c7a46e6b279d386ab3cdb06fea3
Bogdanp/racket-gui-easy
operator.rkt
#lang racket/base (require (for-syntax racket/base) syntax/parse/define "observable.rkt") (provide define/obs @ := λ:= <~ λ<~ ~>) (define-syntax-parser define/obs [(_ name:id init-expr:expr) #'(define name (let ([e init-expr]) (if (obs? e) (obs-rename e 'name) ...
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-easy/50e187f84a8c163e00caca337152e28a67979fcf/gui-easy-lib/gui/easy/operator.rkt
racket
#lang racket/base (require (for-syntax racket/base) syntax/parse/define "observable.rkt") (provide define/obs @ := λ:= <~ λ<~ ~>) (define-syntax-parser define/obs [(_ name:id init-expr:expr) #'(define name (let ([e init-expr]) (if (obs? e) (obs-rename e 'name) ...
15ffcf1176892a14fa32147886070e8691455860e8215b68b0b0368d763a2c2a
typeclasses/dsv
AttoView.hs
module DSV.AttoView ( attoByteStringView ) where import DSV.AttoParser import DSV.ByteString import DSV.Validation import DSV.ViewType attoparsec import qualified Data.Attoparsec.ByteString as A attoByteStringView :: e -> AttoParser a -> View e ByteString a attoByteStringView e p = View $ \bs -> case A.p...
null
https://raw.githubusercontent.com/typeclasses/dsv/ae4eb823e27e4c569c4f9b097441985cf865fbab/dsv/library/DSV/AttoView.hs
haskell
module DSV.AttoView ( attoByteStringView ) where import DSV.AttoParser import DSV.ByteString import DSV.Validation import DSV.ViewType attoparsec import qualified Data.Attoparsec.ByteString as A attoByteStringView :: e -> AttoParser a -> View e ByteString a attoByteStringView e p = View $ \bs -> case A.p...
f94b56f8cc52c4dd4d5d51be5fb07838a542dda58df429503b661fb9277d6dde
galdor/tungsten
binary.lisp
(in-package :core) ;;; It would be nice to implement floating point decoding and encoding the right way . But the right way is very tricky , so we let the FFI layer ( and ;;; therefore the CPU) do all the work. Another advantage is that we let the implementation handle special values such as NaN or infinity ; mean...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-core/src/binary.lisp
lisp
It would be nice to implement floating point decoding and encoding the therefore the CPU) do all the work. Another advantage is that we let the meaning that We cannot depend on the ffi system because it would cause a circular dependency, but code duplication is minimal, and it is not as if there was We have to c...
(in-package :core) right way . But the right way is very tricky , so we let the FFI layer ( and binary coding and FFI layer will be consistent . dozens of implementations to support . (define-condition unknown-binary-type (error) ((type :initarg :type)) (:report (lambda (condition stream) (with-...
3e62a33850ae7b3ff8f1c3e28ce577011bf405ea06aa549d18d9e31f773f869e
BillHallahan/G2
Trivial.hs
module Trivial where {-@ f :: Int -> Int @-} f :: Int -> Int f 0 = 0 f _ = die 0 {-@ die :: {x:Int | false} -> a @-} die :: Int -> a die x = error "die"
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/Liquid/Trivial.hs
haskell
@ f :: Int -> Int @ @ die :: {x:Int | false} -> a @
module Trivial where f :: Int -> Int f 0 = 0 f _ = die 0 die :: Int -> a die x = error "die"
ba3d0fea5e99d1357455daedd63e4b8ca0bc1ef1f17c247918b735ca996f40fa
TrustInSoft/tis-kernel
pdgIndex.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/pdg_types/pdgIndex.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
346c9e1e85d676452276ac54afc0ec062e77de3a6d5f73e37903bbd0e428ffa1
lep/jhcr
Ast.hs
{-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE InstanceSigs # module Jass.Ast ( Ast (..) , Expr , Stmt , LVar , VarDef , Toplevel , Programm , Name , Type , Lit , Constant (..) , fmap, foldMap, traverse , s2i, s2r, rawc...
null
https://raw.githubusercontent.com/lep/jhcr/4a1da99439a688824db37f28c1e69ec3985fbb30/Jass/Ast.hs
haskell
# LANGUAGE GADTs # where f' :: Ast a r -> Ast b r f' = getAst . F.fmap f . FAst where f' = (F.fmap getAst . T.traverse f . FAst)
# LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE InstanceSigs # module Jass.Ast ( Ast (..) , Expr , Stmt , LVar , VarDef , Toplevel , Programm , Name , Type , Lit , Constant (..) , fmap, foldMap, traverse , s2i, s2r, rawcode2int , eliminate...
8abf8fbf1766c332022a10baabaf89ab255bfab80082e1c319bb5feef516e1db
JeffreyBenjaminBrown/hode
Util.hs
# LANGUAGE ScopedTypeVariables # module Hode.UI.Util ( unEitherSt -- ^ Either String St -> St -> St , emptySubgraphBuffer -- ^ Buffer , bufferFrom_viewQuery -- ^ ViewQuery -> Buffer , buffer_from_exprRowTree -- ^ PTree ViewExprNode -- -> Either S...
null
https://raw.githubusercontent.com/JeffreyBenjaminBrown/hode/79a54a6796fa01570cde6903b398675c42954e62/hode-ui/Hode/UI/Util.hs
haskell
^ Either String St -> St -> St ^ Buffer ^ ViewQuery -> Buffer ^ PTree ViewExprNode -> Either String Buffer ^ ViewForkType -> ViewFork ^ ViewQuery -> ExprRow ^ St -> ViewExprNode
# LANGUAGE ScopedTypeVariables # module Hode.UI.Util ( - > Either ^ ViewExprNode - > ^ ViewOptions ) where import qualified Data.List.PointedList as P import Data.Map (Map) import qualified Data.Map as M import Data.Set (Set) import qualified Data.Set ...
582295ffd61c438481f13f5b08021129830045ccd6884af71eae5227c498a1e6
Perry961002/SICP
exa1.3.4-prodedure-as-the-return-value.scm
(load "Chap1\\example\\exa1.3.3-Process-as-general-method.scm") 平均阻尼过程 , 返回求一个过程f在某一处的平均阻尼过程 (define (average-damp f) (lambda (x) (/ (+ x (f x)) 2))) (define (sqrt1 x) (fixed-point (average-damp (lambda (y) (/ x y))) 1.0)) ;------------------------------------------------...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap1/example/exa1.3.4-prodedure-as-the-return-value.scm
scheme
--------------------------------------------------------------------- 得到g的导数, 返回g的导函数过程 将g(x) = 0 ==> f(x) = x - g(x) / Dg(x) --------------------------------------------------------------
(load "Chap1\\example\\exa1.3.3-Process-as-general-method.scm") 平均阻尼过程 , 返回求一个过程f在某一处的平均阻尼过程 (define (average-damp f) (lambda (x) (/ (+ x (f x)) 2))) (define (sqrt1 x) (fixed-point (average-damp (lambda (y) (/ x y))) 1.0)) 牛顿法 (define dx 0.00001) (define (deriv g) (la...
d74d61681f3cd1b8e4610a0d9ab00716861fb48a65cad45828ebba8d3f26b725
lipas-liikuntapaikat/lipas
handler_test.clj
(ns lipas.backend.handler-test (:require [cheshire.core :as j] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.test :refer [deftest testing is] :as t] [cognitect.transit :as transit] [dk.ative.docjure.spreadsheet :as excel] [lipas.backend.config :as config] [lipas.backend....
null
https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/779934b723ec1e0cf52d6a7778b0b7e9f5d15c6b/webapp/test/clj/lipas/backend/handler_test.clj
clojure
to see effect between timestamps TODO how to test side-effects? (sending email) make sure token expires Updating permissions has side-effect of publshing drafts the user has done earlier to sites where permissions are now being granted Add 'draft' which is expected to get publshed as side-effect Note returned e...
(ns lipas.backend.handler-test (:require [cheshire.core :as j] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.test :refer [deftest testing is] :as t] [cognitect.transit :as transit] [dk.ative.docjure.spreadsheet :as excel] [lipas.backend.config :as config] [lipas.backend....
2446c24c72d234267c3421545f21e3c8531d67f2299768bfa68e31f5311015a3
danidiaz/really-small-backpack-example
Intermediate2.hs
module Intermediate2 (bazAsString) where import Intermediate1 (barAsString) bazAsString :: String bazAsString = "****** " ++ barAsString ++ " plus baz"
null
https://raw.githubusercontent.com/danidiaz/really-small-backpack-example/7b21ec1e2166995cc67375651d5883517d82c07b/lesson8-transitively-indefinite-packages/lib-intermediate2/Intermediate2.hs
haskell
module Intermediate2 (bazAsString) where import Intermediate1 (barAsString) bazAsString :: String bazAsString = "****** " ++ barAsString ++ " plus baz"
72c826e29f1fe6e990087a366faccb17e26c2fe060e7636b170e99cb9223b81e
openvstorage/alba
fragment_helper.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 Slice open Nsm_model open Encryption open Gcrypt open Lwt.Infix let ge...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/fragment_helper.ml
ocaml
consumes the input and returns a big_array consumes the input and returns a bigstring_slice returns a new bigarray returns a new big_array The lifetime of the returned data fragments is determined by the lifetime of the passed in chunk. The returned coding fragments are freshly created and should thus...
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 Slice open Nsm_model open Encryption open Gcrypt open Lwt.Infix let ge...
ccd332ed0d519a90042e1496430f5fa156afd2cbc6f06c5326841dc71fd7e2f3
LightTable/LightTable
auto_complete.cljs
(ns lt.plugins.auto-complete "Provide any auto-complete related functionality" (:require [lt.object :as object] [lt.objs.keyboard :as keyboard] [lt.objs.command :as cmd] [lt.util.load :as load] [lt.objs.thread :as thread] [lt.objs.sidebar.command :as scmd]...
null
https://raw.githubusercontent.com/LightTable/LightTable/3760844132a17fb0c9cf3f3b099905865aed7e3b/src/lt/plugins/auto_complete.cljs
clojure
HACK: line change events are sent *after* cursor move this means that we need to wait for those to fire and then check if we're out of bounds. ********************************************************* Mode extensions *********************************************************
(ns lt.plugins.auto-complete "Provide any auto-complete related functionality" (:require [lt.object :as object] [lt.objs.keyboard :as keyboard] [lt.objs.command :as cmd] [lt.util.load :as load] [lt.objs.thread :as thread] [lt.objs.sidebar.command :as scmd]...
a8dba04cc1a56175b81afae7ac3bc75d4083a822b6b8bcc77d3a21c42c1ff827
samply/blaze
arrays_support.clj
(ns blaze.db.impl.arrays-support "Reimplementation of some of `jdk.internal.util/ArraysSupport` functionality") (set! *unchecked-math* :warn-on-boxed) (def ^:const ^long soft-max-array-length (- Integer/MAX_VALUE 8)) (defn- huge-length ^long [^long old-length ^long min-growth] (let [min-length (+ old-length m...
null
https://raw.githubusercontent.com/samply/blaze/cbf6431a254f347a704f1abe1de4f4fe8a249ac9/modules/db/src/blaze/db/impl/arrays_support.clj
clojure
(ns blaze.db.impl.arrays-support "Reimplementation of some of `jdk.internal.util/ArraysSupport` functionality") (set! *unchecked-math* :warn-on-boxed) (def ^:const ^long soft-max-array-length (- Integer/MAX_VALUE 8)) (defn- huge-length ^long [^long old-length ^long min-growth] (let [min-length (+ old-length m...
02241836e3c4d88a86dc61ddc9a95ac4bcda67ba8c359ed8a45a2b618d05fcc2
zarkone/stumpwm.d
package.lisp
package.lisp (defpackage #:passwd (:use #:cl :stumpwm-user ))
null
https://raw.githubusercontent.com/zarkone/stumpwm.d/021e51c98a80783df1345826ac9390b44a7d0aae/modules/util/passwd/package.lisp
lisp
package.lisp (defpackage #:passwd (:use #:cl :stumpwm-user ))
47aca2cb51b178d0f1c35fba3498064edf8a1663f72c4c97a39a21d6f1fcf32b
imdea-software/leap
test_unionfind.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/tests/test_unionfind.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
5a39ca2dbf8bdffdc553e4f8fc1d2aea19cb6a6c73ad570cc9c3792191f8cc20
ghc/packages-containers
seq-properties.hs
# LANGUAGE CPP # # LANGUAGE PatternGuards # #include "containers.h" import Data.Sequence.Internal ( Sized (..) , Seq (Seq) , FingerTree(..) , Node(..) , Elem(..) , Digit (..) , node2 , node3 , deep ) import Data.Sequence import Control.Applicative (Applicative(..), liftA2) import Control.Arrow ((*...
null
https://raw.githubusercontent.com/ghc/packages-containers/97fe43c54c5c8a9b93ecf5abd7509e8085b63d41/containers-tests/tests/seq-properties.hs
haskell
---------------------------------------------------------------------- Arbitrary ---------------------------------------------------------------------- ---------------------------------------------------------------------- Valid trees ---------------------------------------------------------------------- ------------...
# LANGUAGE CPP # # LANGUAGE PatternGuards # #include "containers.h" import Data.Sequence.Internal ( Sized (..) , Seq (Seq) , FingerTree(..) , Node(..) , Elem(..) , Digit (..) , node2 , node3 , deep ) import Data.Sequence import Control.Applicative (Applicative(..), liftA2) import Control.Arrow ((*...
eb2b9bfed0ff3fe4092ca6ea16e57618848ec7364d03573147f5a9c8e57d00df
bluegraybox/examples
web_test.erl
#!/usr/local/bin/escript %% -*- erlang -*- %%! -smp enable -mode(compile). % for better performance main(_) -> inets:start(), get_url(":8000/newgame"), Tests = [ {"Joe", 4, "4"}, {"Joe", 9, "{invalid_total,13}"}, % bad input {"John", 4, "4"}, {"John", 5, "9"}, {"J...
null
https://raw.githubusercontent.com/bluegraybox/examples/20f238be10e2e987687d7289b2f4897cc7d95abd/bowling/erlang/web_test.erl
erlang
-*- erlang -*- ! -smp enable for better performance bad input spare strike strike interleaving players io:format("Testing URL: ~s~n", [Url]),
#!/usr/local/bin/escript main(_) -> inets:start(), get_url(":8000/newgame"), Tests = [ {"Joe", 4, "4"}, {"John", 4, "4"}, {"John", 5, "9"}, {"John", 6, "15"}, {"John", 4, "19"}, {"John", 2, "27"}, {"John", 10, "37"}, {"Fred", 3, "3"}, ...
bcab950f388f03a5a243da0ea1f81f03c1820d890cac7aaeb89343a94b2093b4
oakes/clojure-conj-2014
12-hosted.clj
(defscreen hosted-screen :on-show (fn [screen entities] (update! screen :renderer (stage) :camera (orthographic)) (let [ui-skin (skin "skin/uiskin.json") medium-font (skin! ui-skin :get-font "medium-font") medium-style (style :label medium-font (color :white)) small-font (skin!...
null
https://raw.githubusercontent.com/oakes/clojure-conj-2014/575e8eeced02d761f8d278b95906083f03ba9565/12-hosted.clj
clojure
(defscreen hosted-screen :on-show (fn [screen entities] (update! screen :renderer (stage) :camera (orthographic)) (let [ui-skin (skin "skin/uiskin.json") medium-font (skin! ui-skin :get-font "medium-font") medium-style (style :label medium-font (color :white)) small-font (skin!...
835f33d8172d04d8ffbc6ab4e154299cb403b18ae9cb32caea90cb907e4593ef
namin/logically
meta_test.clj
(ns logically.abs.meta_test (:use [logically.abs.meta] :reload) (:use [logically.abs.unif] :reload) (:use [logically.abs.ex_ack] :reload) (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [clojure.test])) ...
null
https://raw.githubusercontent.com/namin/logically/49e814e04ff0f5f20efa75122c0b869e400487ac/test/logically/abs/meta_test.clj
clojure
(ns logically.abs.meta_test (:use [logically.abs.meta] :reload) (:use [logically.abs.unif] :reload) (:use [logically.abs.ex_ack] :reload) (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [clojure.test])) ...
d73c22abfd7e72459f55793dd5bc64a7399444efd18ac310db38d948d806e9f2
pouyakary/Nota
BinaryOperator.hs
module Language.BackEnd.Evaluator.Nodes.BinaryOperator ( evalBinaryOperator ) where -- ─── IMPORTS ──────────────────────────────────────────────────────────────────── import Data.List import Data.Map ( Map ) import qualified Data.Map as Map import Language.BackEnd.Evaluator.Types impor...
null
https://raw.githubusercontent.com/pouyakary/Nota/d5e29eca7ea34d72835a9708977fa33c030393d1/source/Language/BackEnd/Evaluator/Nodes/BinaryOperator.hs
haskell
─── IMPORTS ──────────────────────────────────────────────────────────────────── ─── EVAL BINARY OPERATORS ────────────────────────────────────────────────────── ─── NON INTEGER REMAINING ────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────────────────────...
module Language.BackEnd.Evaluator.Nodes.BinaryOperator ( evalBinaryOperator ) where import Data.List import Data.Map ( Map ) import qualified Data.Map as Map import Language.BackEnd.Evaluator.Types import Language.FrontEnd.AST import Model evalBinaryOperator :: Ste...
47a40de6322dbe6a8ba9bdb1810d32d811de2152d6ea4c3602493507f3356f7f
spurious/sagittarius-scheme-mirror
kernel.scm
;;; kernel.scm ;;; Implementation of the sweet-expressions project by readable mailinglist. ;;; Copyright ( C ) 2005 - 2013 by and ;;; This software is released as open source software under the " MIT " license : ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a ;;; copy of this...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a110/kernel.scm
scheme
kernel.scm Implementation of the sweet-expressions project by readable mailinglist. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Softwar...
Copyright ( C ) 2005 - 2013 by and This software is released as open source software under the " MIT " license : to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the in all copies or substantial portions of the...
9542583317ce67e2568c6dd60972694f5b3f14865ae549ac24f497eae11f4ea1
dyzsr/ocaml-selectml
pr7269.ml
(* TEST * expect *) type s = [`A | `B] and sub = [`B];; type +'a t = T : [< `Conj of 'a & sub | `Other of string] -> 'a t;; (* ok *) let f (T (`Other msg) : s t) = print_string msg;; let _ = f (T (`Conj `B) :> s t);; (* warn *) [%%expect{| type s = [ `A | `B ] and sub = [ `B ] type +'a t = T : [< `Conj of 'a & sub...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-gadts/pr7269.ml
ocaml
TEST * expect ok warn warn warn warn warn
type s = [`A | `B] and sub = [`B];; let f (T (`Other msg) : s t) = print_string msg;; [%%expect{| type s = [ `A | `B ] and sub = [ `B ] type +'a t = T : [< `Conj of 'a & sub | `Other of string ] -> 'a t Line 4, characters 6-47: 4 | let f (T (`Other msg) : s t) = print_string msg;; ^^^^^^^^^^^^^^^^^^^^^^^^^^...
3542fc57ee0ad3c96446d8e6867e31ce8db7cdf7577b731106a9f52f40911079
s-expressionists/Cleavir
def-use-chains.lisp
(cl:in-package #:cleavir-def-use-chains) ;;; We return a list of def-use chains. Each def-use chain is ;;; represented by a list whose CAR is the DEFINITION (i.e, a CONS of a NODE and a VARIABLE ) , and whose CDR is a list of nodes where the ;;; definition is used. (defun def-use-chains (graph) (let ((reaching-de...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/e0293780d356a9d563af9abf9317019f608b4e1d/Def-use-chains/def-use-chains.lisp
lisp
We return a list of def-use chains. Each def-use chain is represented by a list whose CAR is the DEFINITION (i.e, a CONS of definition is used.
(cl:in-package #:cleavir-def-use-chains) a NODE and a VARIABLE ) , and whose CDR is a list of nodes where the (defun def-use-chains (graph) (let ((reaching-definitions (cleavir-reaching-definitions:reaching-definitions graph)) (def-use-chains (make-hash-table :test #'eq))) (cleavir-graph:with-graph (graph)...
1ea4a19ce322b511a6bfe0348c0a679812795efeb711fcef49023a6967c6abff
anoma/juvix
Base.hs
module Compilation.Base where import Base import Core.Eval.Base import Data.HashMap.Strict qualified as HashMap import Data.Text.IO qualified as TIO import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Core.Data.InfoTable qualified as Core import Juvix.Compiler.Core.Extra import Juvix.Compiler.Core.Info qua...
null
https://raw.githubusercontent.com/anoma/juvix/c93013229ab84e81298ced674961ff30a39b888b/test/Compilation/Base.hs
haskell
module Compilation.Base where import Base import Core.Eval.Base import Data.HashMap.Strict qualified as HashMap import Data.Text.IO qualified as TIO import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Core.Data.InfoTable qualified as Core import Juvix.Compiler.Core.Extra import Juvix.Compiler.Core.Info qua...
7843a4944adbb49a84ecdf836d0fe50a8932db1e08e7473bdfeba27e8412d13a
SanderSpies/ocaml-gist
marg.ml
open Std (** {1 Flag parsing utils} *) type 'a t = string list -> 'a -> (string list * 'a) type 'a table = (string, 'a t) Hashtbl.t let unit f : 'a t = fun args acc -> (args, (f acc)) let param ptype f : 'a t = fun args acc -> match args with | [] -> failwith ("expects a " ^ ptype ^ " argument") | arg :: arg...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/utils/marg.ml
ocaml
* {1 Flag parsing utils}
open Std type 'a t = string list -> 'a -> (string list * 'a) type 'a table = (string, 'a t) Hashtbl.t let unit f : 'a t = fun args acc -> (args, (f acc)) let param ptype f : 'a t = fun args acc -> match args with | [] -> failwith ("expects a " ^ ptype ^ " argument") | arg :: args -> args, f arg acc let unit...
1cf5b30bf51bae97af2f2f469bfe515fcebb26772ede9bbf81cbeb8b33d7e3fd
anmonteiro/caqti-eio
testlib.ml
Copyright ( C ) 2015 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/anmonteiro/caqti-eio/c709dadf22868f3c0e3d296547623d03e1fd1365/vendor/caqti/testlib/testlib.ml
ocaml
Needed for bytecode since plugins link against C libraries:
Copyright ( C ) 2015 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
7109dd68855c8c892195dc8c18fdcc18015826db897941b7623ad0a64ac6a8e3
digitallyinduced/ihp-forum
Show.hs
module Web.View.Comments.Show where import Web.View.Prelude data ShowView = ShowView { comment :: Comment } instance View ShowView where html ShowView { .. } = [hsx| <h1>Show Comment</h1> |]
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/ac36ad4ab5dfe7b3aa85ea92d642aec12e4fa6ad/Web/View/Comments/Show.hs
haskell
module Web.View.Comments.Show where import Web.View.Prelude data ShowView = ShowView { comment :: Comment } instance View ShowView where html ShowView { .. } = [hsx| <h1>Show Comment</h1> |]
50abfa4c0eaf0d29b4dceadfd23268cdc825595b1d539cc0cab7af5219cde72d
robert-strandh/SICL
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:sicl-environment (:use #:common-lisp) (:shadow #:get-setf-expansion type) (:shadowing-import-from #:clostrum . #.(loop for symbol being each external-symbol in '#:clostrum unless (member symbol '(clostrum:run-time-environment ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/59d8fa94811a0eac4ac747333ad9ecd976652c41/Code/Environment-Clostrum/packages.lisp
lisp
(cl:in-package #:common-lisp-user) (defpackage #:sicl-environment (:use #:common-lisp) (:shadow #:get-setf-expansion type) (:shadowing-import-from #:clostrum . #.(loop for symbol being each external-symbol in '#:clostrum unless (member symbol '(clostrum:run-time-environment ...
a62fdce8ee89bbe9ce8479f8b54aa4c966b3fba4665076de50b43069fd6bb56c
stevenvar/OMicroB
int32.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/stevenvar/OMicroB/e4324d0736ac677b3086741dfdefb0e46775642b/src/stdlib/int32.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * 32 - bit integers . This module provides operations on the type [ int32 ] of signed 32 - bit...
847e3073e66c1f757c472709f90cfb2299b33f491b13ab5122abffed70d12794
froggey/Mezzano
condition.lisp
;;;; The condition/error system. (in-package :mezzano.internals) (defmethod print-object ((object restart) stream) (cond (*print-escape* (print-unreadable-object (object stream :type t :identity t) (write (restart-name object) :stream stream))) (t (report-restart object stream)))) (defp...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/system/condition.lisp
lisp
The condition/error system. If a handler in this cluster declines, then no other handler There is a barrier here as this would capture the entire stack of handlers not just the ones inside the continuation. This should switch to a mechanism similar to %CATCH, but that is more difficult to handle because of the vi...
(in-package :mezzano.internals) (defmethod print-object ((object restart) stream) (cond (*print-escape* (print-unreadable-object (object stream :type t :identity t) (write (restart-name object) :stream stream))) (t (report-restart object stream)))) (defparameter *break-on-signals* nil) ...
a6471c34a62bc10feb4277d8fb97a7f4de0766b5c5a0de0c2a61adfd804ac8a6
ocaml/dune
dir_contents.ml
open Import we need to convince ocamldep that we do n't depend on the menhir rules module Menhir = struct end open Dune_file open Memo.O let loc_of_dune_file st_dir = Loc.in_file (Path.source (match let open Option.O in let* dune_file = Source_tree.Dir.dune_file st_dir in TODO no...
null
https://raw.githubusercontent.com/ocaml/dune/d429530c59f13ffdee023bc78ee607ac9850ce96/src/dune_rules/dir_contents.ml
ocaml
As a side-effect, setup user rules and copy_files rules. Manually add files generated by the (select ...) dependencies Interpret a few stanzas in order to determine the list of files generated by the user. CR-someday amokhov: Do not ignore directory targets. Also manually add files generated by...
open Import we need to convince ocamldep that we do n't depend on the menhir rules module Menhir = struct end open Dune_file open Memo.O let loc_of_dune_file st_dir = Loc.in_file (Path.source (match let open Option.O in let* dune_file = Source_tree.Dir.dune_file st_dir in TODO no...
342919e6c86135c9877fe9dabe5d6ab228dc0312cc84d2fcae5046136dc64e81
Kalimehtar/gir
glib.rkt
#lang racket/base (provide with-g-error raise-g-error) (require "loadlib.rkt" ffi/unsafe) GError (define-struct (exn:fail:g-error exn:fail) ()) (define-syntax-rule (with-g-error (g-error) body ...) (let ([g-error (malloc _pointer)]) body ...)) (define-cstruct _g-error ([domain _uint32] [code _int] ...
null
https://raw.githubusercontent.com/Kalimehtar/gir/a9854262a438070334cfd8ff98cb86dd3803d7e3/gir/glib.rkt
racket
g-error = GError**
#lang racket/base (provide with-g-error raise-g-error) (require "loadlib.rkt" ffi/unsafe) GError (define-struct (exn:fail:g-error exn:fail) ()) (define-syntax-rule (with-g-error (g-error) body ...) (let ([g-error (malloc _pointer)]) body ...)) (define-cstruct _g-error ([domain _uint32] [code _int] ...
b8f320d1a57ea7dca4940618a4d3283bf1f152b0a9319dbb7245536a9cafce87
damballa/parkour
word_count_test.clj
(ns parkour.word-count-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour.mapreduce :as mr] [parkour.fs :as fs] [parkour.io.avro :...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/test/parkour/word_count_test.clj
clojure
(ns parkour.word-count-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour.mapreduce :as mr] [parkour.fs :as fs] [parkour.io.avro :...
bbb71b53a24aa211d4ba545596b3a29afc62d9c17c286518def296c35a7c269a
dongcarl/guix
guile.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2014 , 2016 , 2018 < > Copyright © 2014 , 2017 , 2018 < > Copyright © 2015 , 2017 < > Copyright © 2016 Jan Nieuwenhuize...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/guile.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2014 , 2016 , 2018 < > Copyright © 2014 , 2017 , 2018 < > Copyright © 2015 , 2017 < > Copyright © 2016 Jan Nieuwenhuizen < > Copyright © 2016 , 2017 < > Copyright © 2...
c9c049468b9c28fdb2b21638ad628293d304731b86efd42902b9700cf47a4fb4
manuel-serrano/bigloo
pgp_decode.scm
;*=====================================================================*/ * ... /bigloo / bigloo / api / openpgp / src / Llib / pgp_decode.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/api/openpgp/src/Llib/pgp_decode.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * OpenPGP decode */ * -----------------------...
* ... /bigloo / bigloo / api / openpgp / src / Llib / pgp_decode.scm * / * Author : * / * Creation : We d Aug 18 10:24:37 2010 * / * Last change : Thu Jul 1 09:25:36 2021 ( serrano ) * / * Co...
744fc4dcda9aa27fad9465f45ce9b0dfb4d15c5799a286ada245d8e21f4643d0
luminus-framework/examples
env.clj
(ns multi-client-ws-http-kit.env (:require [selmer.parser :as parser] [clojure.tools.logging :as log] [multi-client-ws-http-kit.dev-middleware :refer [wrap-dev]])) (def defaults {:init (fn [] (parser/cache-off!) (log/info "\n-=[multi-client-ws-http-kit started successfully using the develo...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-http-kit/env/dev/clj/multi_client_ws_http_kit/env.clj
clojure
(ns multi-client-ws-http-kit.env (:require [selmer.parser :as parser] [clojure.tools.logging :as log] [multi-client-ws-http-kit.dev-middleware :refer [wrap-dev]])) (def defaults {:init (fn [] (parser/cache-off!) (log/info "\n-=[multi-client-ws-http-kit started successfully using the develo...
8ab76b5c93ae153ba24b64902ec4f0e3cce4880c4aad00d85e7c0d621800ae3e
exoscale/clojure-kubernetes-client
v1_ceph_fs_persistent_volume_source.clj
(ns clojure-kubernetes-client.specs.v1-ceph-fs-persistent-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-secret-reference :refer :all] ) (:import (java.io File))) (declare v1-ceph-fs-persistent-volume-source-...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_ceph_fs_persistent_volume_source.clj
clojure
(ns clojure-kubernetes-client.specs.v1-ceph-fs-persistent-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-secret-reference :refer :all] ) (:import (java.io File))) (declare v1-ceph-fs-persistent-volume-source-...
a8f3a8dff6e2307f6f679fce60030d03c0a9bf83cc73567d3e152ead5fa1e4f8
emqx/mria
mria_autoclean.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 - 2021 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/mria/3d3b4e2a4da140ad72f85e466ea8cbdbb1f8f72b/src/mria_autoclean.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 ) 2019 - 2021 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(mria_autoclean). -include("mria.hrl"). -export([init/0, check/1]). -record(autoclean,...
4e891d6ec69057b28f126d3f4c87857ca16f4b0941391b61238c91dc1cda96be
threatgrid/ctim
schema_version_test.cljc
(ns ctim.schemas.schema-version-test (:require #?(:clj [clojure.test :refer [deftest is testing use-fixtures]] :cljs [cljs.test :refer-macros [deftest is testing]]) [ctim.schemas.judgement :as j] [ctim.examples.judgements :as e] [flanders.schema :as fs] ...
null
https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/test/ctim/schemas/schema_version_test.cljc
clojure
(ns ctim.schemas.schema-version-test (:require #?(:clj [clojure.test :refer [deftest is testing use-fixtures]] :cljs [cljs.test :refer-macros [deftest is testing]]) [ctim.schemas.judgement :as j] [ctim.examples.judgements :as e] [flanders.schema :as fs] ...
f1eb6d64b848f587a32274891b258c53be28c1093ecdce0889c5f50daab30baa
rizo/snowflake-os
queue.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/libraries/stdlib/queue.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : queue.mli , v 1.16 2002 - 06 ...
b4cfb471b3ff87f06c2dbe0cb1de6cf1b2896a4e942007730e1c2d6ea22b6886
mirage/ocaml-cohttp
connection.ml
exception Retry (** Raised on failed requests that may be safely retried - even on non-idempotent requests. Raised for example on timeout or connection suhtdown by remote end. *) module Make (Net : S.Net) : S.Connection with module Net = Net = struct module Net = Net module IO = Net.IO module Response = ...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/628d8716b22bb7933863dd584673745c974707be/cohttp-lwt/src/connection.ml
ocaml
* Raised on failed requests that may be safely retried - even on non-idempotent requests. Raised for example on timeout or connection suhtdown by remote end. Waiting for the TCP handshake / TLS connection setup still in "full-duplex", but no new requests may be queued. * Will shutdown oc as soon as the...
exception Retry module Make (Net : S.Net) : S.Connection with module Net = Net = struct module Net = Net module IO = Net.IO module Response = Make.Response (IO) module Request = Make.Request (IO) module Header = Cohttp.Header open IO let src = Logs.Src.create "cohttp.lwt.client" ~doc:"Cohttp Lwt client"...
a15f41655e9470d796a2b4624b0cea9ed723cf076720a9ec4719dd7e875ad387
ocaml-multicore/parafuzz
test1.mli
external mycallback1 : ('a -> 'b) -> 'a -> 'b = "mycallback1" external mycallback2 : ('a -> 'b -> 'c) -> 'a -> 'b -> 'c = "mycallback2" external mycallback3 : ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'c -> 'd = "mycallback3" external mycallback4 : ('a -> 'b -> 'c -> 'd -> 'e) -> 'a -> 'b -> 'c -> 'd -> 'e = "mycallbac...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/callback/test1.mli
ocaml
external mycallback1 : ('a -> 'b) -> 'a -> 'b = "mycallback1" external mycallback2 : ('a -> 'b -> 'c) -> 'a -> 'b -> 'c = "mycallback2" external mycallback3 : ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'c -> 'd = "mycallback3" external mycallback4 : ('a -> 'b -> 'c -> 'd -> 'e) -> 'a -> 'b -> 'c -> 'd -> 'e = "mycallbac...
fa5b78550a0e829960392d669a100675d37522477f1a2ae98f6aa8b85b5e2516
zachallaun/datomic-cljs
macros.clj
(ns datomic-cljs.macros) (defmacro >!x "The same as (do (>! c val) (close! c))" [c val] `(let [c# ~c] (cljs.core.async/>! c# ~val) (cljs.core.async/close! c#))) (defmacro <? "Takes a value from a core.async channel, throwing the value if it is a js/Error." [c] `(let [val# (cljs.core.async/<! ~...
null
https://raw.githubusercontent.com/zachallaun/datomic-cljs/a2accf1d999b7d6a554a9322f52b230eae1b58b3/src/datomic_cljs/macros.clj
clojure
(ns datomic-cljs.macros) (defmacro >!x "The same as (do (>! c val) (close! c))" [c val] `(let [c# ~c] (cljs.core.async/>! c# ~val) (cljs.core.async/close! c#))) (defmacro <? "Takes a value from a core.async channel, throwing the value if it is a js/Error." [c] `(let [val# (cljs.core.async/<! ~...
f4bb88b7410a217c8427c30949512495d924bcfbb70272d0e0e984efc1bbd5db
kupl/VeriSmart-public
makeCfg.ml
open Lang open Options let nodesof : cfg -> node list = fun g -> G.fold_vertex (fun x l -> x :: l) g.graph [] (* unconditionally add edges *) let add_edge : node -> node -> cfg -> cfg = fun n1 n2 g -> {g with graph = G.add_edge g.graph n1 n2} let remove_edge : node -> node -> cfg -> cfg = fun n1 n2 g -> {g with grap...
null
https://raw.githubusercontent.com/kupl/VeriSmart-public/99be7ba88b61994f1ed4c0d3a8e6a6db0f790431/src/pre/makeCfg.ml
ocaml
unconditionally add edges must consider outer loop only. do-while with 'Break' or 'Continue' in loop-body tn: true branch assume node fn: false branch assume node should be n, not n1 !!e -> e !(e1 && e2) -> !e1 || !e2 !(e1 || e2) -> !e1 && !e2 assumed to be an atomic predicate assumed to be an atom...
open Lang open Options let nodesof : cfg -> node list = fun g -> G.fold_vertex (fun x l -> x :: l) g.graph [] let add_edge : node -> node -> cfg -> cfg = fun n1 n2 g -> {g with graph = G.add_edge g.graph n1 n2} let remove_edge : node -> node -> cfg -> cfg = fun n1 n2 g -> {g with graph = G.remove_edge g.graph n1 n2}...
73f3e03198a6c9525fd4952b47bf24d4241eadbd1fcc781cf9e2860a9aa6f6c7
ml4tp/tcoq
csymtable.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/csymtable.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This file manages the table of glob...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by for as part ...
8a79b98f6cdf139cb11207841e51658c2503207ffc3a6b50be1bc44aee8860f1
sigxcpu76/transcode-server
ffmpeg.erl
-module(ffmpeg). -include("commons.hrl").
null
https://raw.githubusercontent.com/sigxcpu76/transcode-server/8b5e5bd9c672ab22486c9853d8e6ec749745ec12/src/util/ffmpeg.erl
erlang
-module(ffmpeg). -include("commons.hrl").
d7a4a4012dc6a3793278519bfd2ab0436fe9d854eb48229091e6fc6db5c80098
dhleong/wish
compiler.cljs
(ns wish.sheets.compiler (:require [wish-engine.model :as engine-model])) (defn sheet-items [engine items] (reduce-kv (fn [m id item] (if-let [apply-fn (:! item)] (-> m (assoc-in [id :!] (engine-model/eval-source-form engine nil apply-fn)) (assoc-in [...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/sheets/compiler.cljs
clojure
(ns wish.sheets.compiler (:require [wish-engine.model :as engine-model])) (defn sheet-items [engine items] (reduce-kv (fn [m id item] (if-let [apply-fn (:! item)] (-> m (assoc-in [id :!] (engine-model/eval-source-form engine nil apply-fn)) (assoc-in [...
705aa93ef9dfd6c414119529a2335f45d8fb953534c9e8ab57d22dc95977b034
glondu/belenios
belenios_worker.ml
(**************************************************************************) (* BELENIOS *) (* *) Copyright © 2023 - 2023 Inria (* ...
null
https://raw.githubusercontent.com/glondu/belenios/a1f9e4cc8c9aa823f3d0f9ba1e21b8c700cd5522/src/web/clients/worker/belenios_worker.ml
ocaml
************************************************************************ BELENIOS This program is free softw...
Copyright © 2023 - 2023 Inria it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the exemption that compiling , linking , and/or using OpenSSL is allowed . You should have...
f66eb62ad606d13df45bc885b749b079a0b31a5ec56053c6a4050dcdf497642b
xh4/web-toolkit
package.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; package.lisp --- Toolchain DEFPACKAGE. ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, including w...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cffi_0.20.1/toolchain/package.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- package.lisp --- Toolchain DEFPACKAGE. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (uiop:define-package #:cffi-toolchain (:mix #:asdf ...
27eedd30c18d4a547342360b259de4bb3a404f284358e1a3281839b42bfebefb
coopernurse/cis194
Week4.hs
module Cis194.Hw.Week4 where fun1 :: [Integer] -> Integer fun1 [] = 1 fun1 (x:xs) | even x = (x - 2) * fun1 xs | otherwise = fun1 xs fun1' :: [Integer] -> Integer fun1' _ = 0 fun2 :: Integer -> Integer fun2 1 = 0 fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1) fun2' :: Integer -> Integer...
null
https://raw.githubusercontent.com/coopernurse/cis194/592f0ae06cf606d1c2fbe0d055a1e4b67dfc2d0f/src/Cis194/Hw/Week4.hs
haskell
module Cis194.Hw.Week4 where fun1 :: [Integer] -> Integer fun1 [] = 1 fun1 (x:xs) | even x = (x - 2) * fun1 xs | otherwise = fun1 xs fun1' :: [Integer] -> Integer fun1' _ = 0 fun2 :: Integer -> Integer fun2 1 = 0 fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1) fun2' :: Integer -> Integer...
9fbfafabf6dbad6645ffe3aecbaf12914c26a9d0e10d06980e610a0b9e773db9
sdiehl/write-you-a-haskell
interp.hs
-- Traditional call-by-value interpreter. data Expr = Var Int | Lam Expr | App Expr Expr | Lit Int | Prim PrimOp Expr Expr deriving Show data Value = VInt Int | VClosure Expr Env deriving Show data PrimOp = Add | Mul deriving Show type Env = [Value] eval :: Env -> Expr -> Value eval env term = ...
null
https://raw.githubusercontent.com/sdiehl/write-you-a-haskell/ae73485e045ef38f50846b62bd91777a9943d1f7/chapter6/interp.hs
haskell
Traditional call-by-value interpreter.
data Expr = Var Int | Lam Expr | App Expr Expr | Lit Int | Prim PrimOp Expr Expr deriving Show data Value = VInt Int | VClosure Expr Env deriving Show data PrimOp = Add | Mul deriving Show type Env = [Value] eval :: Env -> Expr -> Value eval env term = case term of Var n -> env !! n Lam a -...
58c02221b6060faa06a1d776514a0aad8023a90204322ab897286db65dddba96
wotbrew/relic
app.cljs
(ns examples.cljidle.app "Clojure Idle is a meme idle game to demonstrate the use of relic in the browser." (:require [com.wotbrew.relic :as rel] [reagent.dom :as rdom] [reagent.core :as r])) ;; ---- ;; reference data (def seed-state "This is the seed data for our database." {:Player [...
null
https://raw.githubusercontent.com/wotbrew/relic/a75d4791bdee22e5841456055b425a904d5d0d6c/dev/examples/cljidle/app.cljs
clojure
---- reference data ----- essential state and constraints the amount of money we have to spend the amount of money we have to spend + in assets the number of projects completed the name of the project used to determine the reward for completion used to determine how many parens are needed to complete the proj...
(ns examples.cljidle.app "Clojure Idle is a meme idle game to demonstrate the use of relic in the browser." (:require [com.wotbrew.relic :as rel] [reagent.dom :as rdom] [reagent.core :as r])) (def seed-state "This is the seed data for our database." {:Player [{:money 0, :wealth 0, :com...
b80379cb8bf628321d122a3e99f65edfc5a4057887b88bdcdeda59dde6f13c7a
meamy/feynman
Symbolic.hs
| Module : Symbolic Description : Symbolic verification based on path sums Copyright : ( c ) , 2020 Maintainer : Stability : experimental Portability : portable Module : Symbolic Description : Symbolic verification based on path sums Copyright : (c) Matthew Amy, 2020 Maintainer : ...
null
https://raw.githubusercontent.com/meamy/feynman/6aa7f9b1e24400329350f7589382b9040b55b556/src/Feynman/Verification/Symbolic.hs
haskell
----------------------------------- Path sum actions ----------------------------------- | Context for computing path sums of circuits | Retrieve the path sum representation of a primitive gate | Find the relevant index or allocate one for the given qubit | Apply a circuit to a state | Create an initial state gi...
| Module : Symbolic Description : Symbolic verification based on path sums Copyright : ( c ) , 2020 Maintainer : Stability : experimental Portability : portable Module : Symbolic Description : Symbolic verification based on path sums Copyright : (c) Matthew Amy, 2020 Maintainer : ...
6d3984cf9ac38d4f994a7ed79c8f1ba8e902fc24de24189512609ac40b0724d4
Apress/common-lisp-condition-system
debugger.lisp
;;;; t/debugger.lisp (in-package #:portable-condition-system/test) (defun run-debugger-command (command input-string &optional condition &rest args) (with-input-from-string (input input-string) (with-output-to-string (output) (let ((stream (make-two-way-stream input output))) (apply #'portable...
null
https://raw.githubusercontent.com/Apress/common-lisp-condition-system/7f4533e20d6397a59ca5bbfdc139b3389a135c34/Sources%20-%20PCS/t/debugger.lisp
lisp
t/debugger.lisp Debugger level 0 entered on PORTABLE-CONDITION-SYSTEM:CONDITION: Condition PORTABLE-CONDITION-SYSTEM:CONDITION was signaled. The value 42 is not of type Debugger level 0 entered on PORTABLE-CONDITION-SYSTEM:SIMPLE-CONDITION: #<error while reporting condition> There is no active ABORT restart....
(in-package #:portable-condition-system/test) (defun run-debugger-command (command input-string &optional condition &rest args) (with-input-from-string (input input-string) (with-output-to-string (output) (let ((stream (make-two-way-stream input output))) (apply #'portable-condition-system::ru...
a89c31907b49f38c0c2d4d10def1d0927d94e74b9c706cf95804f55ebc01ae16
dzaporozhets/clojure-web-application
crypt.clj
(ns sample.crypt (:require [clojurewerkz.scrypt.core :as sc])) (defn encrypt [string] (sc/encrypt string 16384 8 1)) (defn verify [string encrypted] (boolean (if (and string encrypted) (sc/verify string encrypted))))
null
https://raw.githubusercontent.com/dzaporozhets/clojure-web-application/8d813fc95080a8ebc9532c0a4067f540f7f91553/src/sample/crypt.clj
clojure
(ns sample.crypt (:require [clojurewerkz.scrypt.core :as sc])) (defn encrypt [string] (sc/encrypt string 16384 8 1)) (defn verify [string encrypted] (boolean (if (and string encrypted) (sc/verify string encrypted))))
f0269552f51e64c4677bd1a5dfb8a174becd34feeed6a48b61efb3a237edb04d
dbuenzli/topkg
topkg_vcs.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/topkg/ea1e0981a18ce4160ec21e8a73f67cb748059671/src/topkg_vcs.mli
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
f8ff9c20aa5dda9517fb9804c921c9ab9726d1ba2883449c3c429a3fa989ce64
Soostone/uri-bytestring
QQ.hs
# LANGUAGE CPP # {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module URI.ByteString.QQ ( uri, relativeRef, ) where import Data.ByteString.Char8 import Instances.TH.Lift () import Language.Haskell.TH.Quote import URI.ByteString -- | Allows uri literals via QuasiQuotes la...
null
https://raw.githubusercontent.com/Soostone/uri-bytestring/1c0134cb4a15a9740d5a54807f331f511a52d1d8/src/URI/ByteString/QQ.hs
haskell
# LANGUAGE GADTs # | Allows uri literals via QuasiQuotes language extension. >>> {-# LANGUAGE QuasiQuotes #-} >>> stackage :: URI >>> stackage = [uri||] ----------------------------------------------------------------------------- | Allows relative ref literals via QuasiQuotes language extension. >>> {-# LANGUA...
# LANGUAGE CPP # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module URI.ByteString.QQ ( uri, relativeRef, ) where import Data.ByteString.Char8 import Instances.TH.Lift () import Language.Haskell.TH.Quote import URI.ByteString uri :: QuasiQuoter uri = QuasiQuoter { quoteExp = \s -> ...
fb57d42212d5eb5b2f49f6e9709a8f917c823fe4d463ee46d1b4b5eb9a1221aa
latacora/recidiffist-cli
project.clj
(defproject recidiffist-cli "0.2.0-SNAPSHOT" :description "Diffs for structured data, from the CLI" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/tools.cli "0.4.1"] [cheshire "5.8.1"] ...
null
https://raw.githubusercontent.com/latacora/recidiffist-cli/0dd4d88332eea0a7f5cc9d53905be97abe4d8af8/project.clj
clojure
(defproject recidiffist-cli "0.2.0-SNAPSHOT" :description "Diffs for structured data, from the CLI" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/tools.cli "0.4.1"] [cheshire "5.8.1"] ...
234385857504d818245110bb2021ed79f92d91e097981c7b7b428e2edc3da979
babashka/babashka
udp_test.clj
(ns babashka.udp-test (:require [babashka.test-utils :as tu] [clojure.test :refer [deftest is]]) (:import [java.io StringWriter] [java.net DatagramPacket DatagramSocket])) (set! *warn-on-reflection* true) (deftest udp-test (let [server (DatagramSocket. 8125) sw (StringWriter.) ...
null
https://raw.githubusercontent.com/babashka/babashka/35e2cd9d057cef8a634d409c51ce78763d5ed56e/test/babashka/udp_test.clj
clojure
(ns babashka.udp-test (:require [babashka.test-utils :as tu] [clojure.test :refer [deftest is]]) (:import [java.io StringWriter] [java.net DatagramPacket DatagramSocket])) (set! *warn-on-reflection* true) (deftest udp-test (let [server (DatagramSocket. 8125) sw (StringWriter.) ...
5ef52db5b276cf4393f4bcdf22b593625b9d93211466f782bf40c7ac43591bb2
tarides/opam-monorepo
list.ml
include ListLabels
null
https://raw.githubusercontent.com/tarides/opam-monorepo/5b70c915f30fa3d8eb312fadf978b5f1aa9ab5b3/stdext/list.ml
ocaml
include ListLabels
762a937c136455e7ded14e443784e47ca864a7faf11608852b9b8d13c331cea9
kit-ty-kate/visitors
VisitorsRuntimeBootstrap.cppo.ml
type 'a option = | None | Some of 'a and 'a ref = { mutable contents: 'a } #if OCAML_VERSION >= (4, 03, 0) and 'a list = | Nil | Cons of 'a * 'a list and ('a, 'b) result = | Ok of 'a | Error of 'b #endif [@@deriving visitors { variety = "iter"; public = []; polymorphic = true; data = false; nude = t...
null
https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/test/VisitorsRuntimeBootstrap.cppo.ml
ocaml
type 'a option = | None | Some of 'a and 'a ref = { mutable contents: 'a } #if OCAML_VERSION >= (4, 03, 0) and 'a list = | Nil | Cons of 'a * 'a list and ('a, 'b) result = | Ok of 'a | Error of 'b #endif [@@deriving visitors { variety = "iter"; public = []; polymorphic = true; data = false; nude = t...
143910eb81057b5f7823451e98e459abf305afe0b0e4de5402751db05f98d958
baryluk/ex11
swFlashButton.erl
-module(swFlashButton). Copyright ( C ) 2004 by ( ) %% All rights reserved. %% The copyright holder hereby grants the rights of usage, distribution %% and modification of this software to everyone and for any purpose, as %% long as this license and the copyright notice above are preserved and %% not modified. The...
null
https://raw.githubusercontent.com/baryluk/ex11/be8abc64ab9fb50611f93d6631fc33ffdee08fdb/widgets/swFlashButton.erl
erlang
All rights reserved. The copyright holder hereby grants the rights of usage, distribution and modification of this software to everyone and for any purpose, as long as this license and the copyright notice above are preserved and not modified. There is no warranty for this software. State = {Fun,Expose,In} on e...
-module(swFlashButton). Copyright ( C ) 2004 by ( ) Create : 2004 - 01 - 01 by -export([make/9]). -import(ex11_lib, [eChangeGC/2, eConfigureWindow/2,reply/2, ePolyFillRectangle/3, ePolyText8/5,eUnmapWindow/1,eMapWindow/1, mkRectangle/4,rpc/2,sleep/1,xCreateGC/2, xClearArea/1,xColor/2, ...
d95b3380546cfb3c7ff829169bad1eefbe263bfbbd5ec32eb2725bde8d07e6ad
Eduap-com/WordMat
rat3e.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/rat3e.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; It includes t...
(in-package :maxima) (macsyma-module rat3e) This is the rational function package part 5 . (declare-top (special intbs* alflag var dosimp alc $myoptions vlist scanmapp radlist expsumsplit *ratsimp* mplc* $ratsimpexpons $expop $expon $negdistrib $gcd)) (defmvar genvar nil "List of gensyms used t...
3ea02e69b6576b84983a72f2d415cd572e1f08bffa6ea78185cc18614ed061ab
freckle/stackctl
AWS.hs
module Stackctl.AWS ( module X ) where import Stackctl.AWS.CloudFormation as X import Stackctl.AWS.Core as X import Stackctl.AWS.EC2 as X import Stackctl.AWS.STS as X
null
https://raw.githubusercontent.com/freckle/stackctl/158d7e43a5127654b7ce92d6a1fa6d33eac1d959/src/Stackctl/AWS.hs
haskell
module Stackctl.AWS ( module X ) where import Stackctl.AWS.CloudFormation as X import Stackctl.AWS.Core as X import Stackctl.AWS.EC2 as X import Stackctl.AWS.STS as X
80974f2705983d397f7263fd1ac937b171782bd8b0d73969ceb0c60336d34809
obfusk/koneko
Test.hs
-- ; { { { 1 -- File : / Test.hs -- Maintainer : FC Stegerman <> Date : 2022 - 02 - 12 -- -- Copyright : Copyright (C) 2022 FC Stegerman Version : v0.0.1 License : + -- -- ...
null
https://raw.githubusercontent.com/obfusk/koneko/fd6bf756d94c574d64d25ac77ceaea6fa1ef873a/src/Koneko/Test.hs
haskell
; { { { 1 Maintainer : FC Stegerman <> Copyright : Copyright (C) 2022 FC Stegerman ; } } } 1 # LANGUAGE OverloadedStrings # parsing -- safe! safe! safe! internal -- safe! stdio -- !!!
File : / Test.hs Date : 2022 - 02 - 12 Version : v0.0.1 License : + # LANGUAGE CPP # # LANGUAGE RecordWildCards # module Koneko.Test ( doctest, doctest', testFiles, testKoneko, testMarkdown, testKoneko_, testMarkdown_, testKonekoFile, testMarkdownFile, testKonekoFile_, te...
44f99e0066fd67d564d856cce6d1d42ed66f8efa0221efa972c6a63692cb4070
input-output-hk/ouroboros-network
Parser.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DisambiguateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TupleSections ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0dcda09b6958205fe362524a7e5ea35dea320196/ouroboros-consensus/src/Ouroboros/Consensus/Storage/ImmutableDB/Impl/Parser.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE NamedFieldPuns # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # | Information about a block returned by the parser. The fields of this record are strict to make sure that by evaluating this ...
# LANGUAGE DisambiguateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE TupleSections # module Ouroboros.Consensus.Storage.ImmutableDB.Impl.Parser ( BlockSummary (..) , ChunkFileError (..) , parseChunkFile ) where import Codec.CBOR....
b4853ad483e4d0b4ad8fe4e1abf27b8b7b7cd789a3728b820cc9ac3c53c9432d
tud-fop/vanda-haskell
Text.hs
----------------------------------------------------------------------------- -- | Copyright : ( c ) 2010 -- License : BSD-style -- Maintainer : < > -- Stability : unknown -- Portability : portable ----------------------------------------------------------------------------- module Vanda.Cor...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Vanda/Corpus/Negra/Text.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Stability : unknown Portability : portable ---------------------------------------------------------------------------
Copyright : ( c ) 2010 Maintainer : < > module Vanda.Corpus.Negra.Text ( parseNegra ) where import Control.Arrow ( first ) import qualified Data.Char as C import qualified Data.List as L import qualified Data.Text.Lazy as T import Vanda.Corpus.Negra newtype S = S [(Int, String)] currentLine...
9fdb55d8da6e0b5ed46c3f11b96a2b5b03a02d1119d23f8fe66f3110ed1922c9
clojure/core.rrb-vector
transients.cljs
Copyright ( c ) and contributors . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing t...
null
https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/src/main/cljs/clojure/core/rrb_vector/transients.cljs
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) and contributors . All rights reserved . (ns clojure.core.rrb-vector.transients (:refer-clojure :exclude [new-path]) (:require [clojure.core.rrb-vector.nodes :refer [regular? clone node-ranges last-range overflow?]] [clojure.core.rrb-vector.trees :refer [new-path]])) ...
905cf0141ca0070c4c53e42095c418c7cc044df5d1311b10e6132438c10346cc
MinaProtocol/mina
mina_networking.ml
open Core open Async open Mina_base module Sync_ledger = Mina_ledger.Sync_ledger open Mina_block open Network_peer open Network_pool open Pipe_lib let refused_answer_query_string = "Refused to answer_query" exception No_initial_peers type Structured_log_events.t += | Gossip_new_state of { state_hash : State_hash.t...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a1185fc7b207cfec2a652ef7f3fdc3d9b2e202ea/src/lib/mina_networking/mina_networking.ml
ocaml
banned until this time N.B.: to_string_mach double-quotes the string, don't want that the port in `conn' is an ephemeral port, not of interest no computation to do; we're just getting notification Not that confident about this one. Not that confident about this one. After first_connect this list will only ...
open Core open Async open Mina_base module Sync_ledger = Mina_ledger.Sync_ledger open Mina_block open Network_peer open Network_pool open Pipe_lib let refused_answer_query_string = "Refused to answer_query" exception No_initial_peers type Structured_log_events.t += | Gossip_new_state of { state_hash : State_hash.t...
9dc95fc541c5e4579638650e3ce55ada057c13fccebd6fc04da3384c046dc4c7
fortytools/holumbus
DMapReduce.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . Distribution . DMapReduce Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/mapreduce/source/Holumbus/Distribution/DMapReduce.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # OPTIONS -fglasgow-exts # * Configuration * Creation and Destruction ---------------------------------------------------------------------------- -------------...
| Module : Holumbus . Distribution . DMapReduce Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module : Holumbus.Distribution.DMapReduce Copyright : Copyright (C) 2008 Stefan ...
05b0ef5fb25e76b659368ae8ba5b571ead9e6bc7606344740e4ff3245dc0a123
alanz/ghc-exactprint
Existential.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE GADTs #-} # LANGUAGE RecordWildCards # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # -- from -posts/2014-12-19-existential-quantification.html data HashMap k v = HM -- ... -- actual implementation class Hashable v where h :: v -> Int data HashMapM h...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/Existential.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs # # LANGUAGE TypeSynonymInstances # from -posts/2014-12-19-existential-quantification.html ... -- actual implementation public private implementation -------------------------------
# LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # class Hashable v where h :: v -> Int data HashMapM hm = HashMapM { empty :: forall k v . hm k v , lookup :: Hashable k => k -> hm k v -> Maybe v , insert :: Hashable k => k -> v -> hm k v -> hm k v , union :: Hashable k => hm k v -> hm k v -> h...
d4d74f5047453bd30c9b3adec26b43c1dc3a96b20aaec9aa3579e68c12bdc930
8c6794b6/guile-tjit
t-side-exit-16.scm
;; Another nested branches, was showing incorrect result for while. (define (loop n) (let lp ((i n) (acc 0)) (if (= i 0) acc (lp (- i 1) (if (< i 800) (+ (if (< i 400) (+ (if (< i 200) (+ i 3) ...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-side-exit-16.scm
scheme
Another nested branches, was showing incorrect result for while.
(define (loop n) (let lp ((i n) (acc 0)) (if (= i 0) acc (lp (- i 1) (if (< i 800) (+ (if (< i 400) (+ (if (< i 200) (+ i 3) (+ i 4)) 1) ...
c26981c36753d051580b4ecab49c90649d76cbcbf997414ee44e54779f8d268b
potatosalad/erlang-crypto_rsassa_pss
crypto_rsassa_pss_props.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet -module(crypto_rsassa_pss_props). -include_lib("public_key/include/public_key.hrl"). -include_lib("proper/include/proper.hrl"). % -compile(export_all). digest_type() -> oneof([md5, sha, sha...
null
https://raw.githubusercontent.com/potatosalad/erlang-crypto_rsassa_pss/283ce9542e5e09d4c18de95b5ef3faf6e6c528a4/test/property_test/crypto_rsassa_pss_props.erl
erlang
vim: ts=4 sw=4 ft=erlang noet -compile(export_all). pos_integer(). ==================================================================== RSASSA-PSS ==================================================================== ------------------------------------------------------------------- --------------------------------...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- -module(crypto_rsassa_pss_props). -include_lib("public_key/include/public_key.hrl"). -include_lib("proper/include/proper.hrl"). digest_type() -> oneof([md5, sha, sha224, sha256, sha384, sha512, {hmac, md5, <<>>}, {hmac, sh...
4ac57b1e7b11038839b9dacbc08fbda3719f828b10f99279212fc47010166de2
jyh/metaprl
m_ir.ml
doc <:doc< @spelling{CPS IR} @module[M_ir] This module defines the intermediate language for the @emph{M} language. Here is the abstract syntax: @begin[verbatim] (* Values *) v ::= i (integers) | b (booleans) | v (variables) | fun v ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/experimental/compile/m_ir.ml
ocaml
Values Atoms (functional expressions) Expressions *********************************************************************** * Display forms * Precedences. Some convenient keywords (used in only display forms and do not have a formal meaning). Atoms Expressions * Reserve. General alloc_tuple * A...
doc <:doc< @spelling{CPS IR} @module[M_ir] This module defines the intermediate language for the @emph{M} language. Here is the abstract syntax: @begin[verbatim] v ::= i (integers) | b (booleans) | v (variables) | fun v -> e (functions)...
6a9900828d5260a68c03f631a85ac466ba718881afda7d5a4c175c159488d06d
tommaisey/aeon
tuple.scm
;; (define-record-type duple ;; (fields p q)) ;; (srfi:define-record-type duple ( make - duple p q ) duple ? ( p duple - p ) ( q duple - q ) ) ;; fst :: (a, b) -> a ;; (define fst car) snd : : ( a , b ) - > b ( define ) ;; (,) :: a -> b -> (a, b) ( define cons ) ;; curry :: ((a, b) -> c) -> a -> b -...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rhs/src/data/tuple.scm
scheme
(define-record-type duple (fields p q)) (srfi:define-record-type duple fst :: (a, b) -> a (define fst car) (,) :: a -> b -> (a, b) curry :: ((a, b) -> c) -> a -> b -> c uncurry :: (a -> b -> c) -> (a, b) -> c
( make - duple p q ) duple ? ( p duple - p ) ( q duple - q ) ) snd : : ( a , b ) - > b ( define ) ( define cons ) (define curry (lambda (f) (lambda (x y) (f (cons x y))))) (define uncurry (lambda (f) (lambda (c) (f (car c) (cdr c)))))
120a0249aeb70ee9dfe17dabc34c706f62a30d64025e2e704416b2f1b199d5e2
ghcjs/jsaddle-dom
SVGException.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGException (toString, toString_, pattern SVG_WRONG_TYPE_ERR, pattern SVG_INVALID_VALUE_ERR, pattern SVG_M...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGException.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGException (toString, toString_, pattern SVG_WRONG_TYPE_ERR, pattern SVG_INVALID_VALUE_ERR, pattern SVG_MATRIX_NOT_INVERTABLE, getCode, getName, getMessage, SVGException(..), gTypeSVGException) ...
d14d5bf1bbf5e165c735ad36eeb5adb48723ffab978ce445a3ab0481acc804d0
Smoltbob/Caml-Est-Belle
tapp.ml
(*let rec phi a b = let rec psi x = x in psi in *) (phi 1 2) (3+4) 5
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/frontend/tests/tapp.ml
ocaml
let rec phi a b = let rec psi x = x in psi in
(phi 1 2) (3+4) 5
3a736047d6a7074b9c2b5f120a258c80149232981f95084e8f4423f8efe0629b
ruricolist/serapeum
octets.lisp
(in-package :serapeum.tests) (def-suite octets :in serapeum) (in-suite octets) ;; (test unoctets ;; (for-all ((n (a-fixnum))) ;; (is (= (unoctets (octets n)) n))))
null
https://raw.githubusercontent.com/ruricolist/serapeum/d98b4863d7cdcb8a1ed8478cc44ab41bdad5635b/tests/octets.lisp
lisp
(test unoctets (for-all ((n (a-fixnum))) (is (= (unoctets (octets n)) n))))
(in-package :serapeum.tests) (def-suite octets :in serapeum) (in-suite octets)
76714ab212085ad0edb8ebbf08e30ef44d70d5ac07617094c94ecea2adc84ac4
reasonml-old/BetterErrors
warning_OptionalArgumentNotErased_2.ml
let eat aNumber ?(withFork=true) = "Hello, world!" let () = print_endline (eat 1 ~withFork:false)
null
https://raw.githubusercontent.com/reasonml-old/BetterErrors/d439b92bfe377689c38fded5d8aa2b151133f25d/tests/warning_OptionalArgumentNotErased/warning_OptionalArgumentNotErased_2.ml
ocaml
let eat aNumber ?(withFork=true) = "Hello, world!" let () = print_endline (eat 1 ~withFork:false)
c2c10a4d11ca438be7e10af6a61c2fcce09d6aba26ea5dbf325d5caa3caa35f8
sebastiaanvisser/ghc-goals
GhcGoals.hs
-- | This module contains a high level interface to the goals -- functionality. Given a file, it takes care of parsing, typechecking -- etc., producing type information on all the goals. module Development.GhcGoals ( goals , goalsWith , getGoals , getGoalsWith , pprGoals ) where import Control.Monad (liftM...
null
https://raw.githubusercontent.com/sebastiaanvisser/ghc-goals/cf256c99c4b7e3b569bab3e6c10f0903a7c1eac4/src/Development/GhcGoals.hs
haskell
| This module contains a high level interface to the goals functionality. Given a file, it takes care of parsing, typechecking etc., producing type information on all the goals. | Analyze a file, print type information for all 'undefined's | Analyze a file, print type information for all variables with the specif...
module Development.GhcGoals ( goals , goalsWith , getGoals , getGoalsWith , pprGoals ) where import Control.Monad (liftM) import Data.List (sortBy) import Data.Ord (comparing) import GHC ( defaultErrorHandler , depanal , dopt , DynFlag(Opt_PrintExplicitForalls) , getSessionDynFlags , ghcLink ...
1029bdb2a92fec8f9d478258abc4156962aa63338608fa0c6e99b35e0a835d93
Octachron/codept
b.ml
module A = A
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/complex/alias_values/b.ml
ocaml
module A = A
de9267d4ed94036a2038e6e5f5751cbddcf9c30f30f920c2928e8f48d18a72ec
jkvor/emysql
emysql_conn_mgr.erl
Copyright ( c ) 2009 < > < > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, me...
null
https://raw.githubusercontent.com/jkvor/emysql/6f72bc729200024f5940a2c11f15afd2af6f3d11/src/emysql_conn_mgr.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
Copyright ( c ) 2009 < > < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(emysql_con...