_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
167f76bf7c37574ced7ed7ded7df8c8ae5e4f6e9c1d0c19ae567c4a8b1a474c5
wincent/docvim
Util.hs
-- | Functions to facilitate automated and manual testing. module Text.Docvim.Util ( compileUnits , p , parseUnit , pm , pp , ppm , ppv , pv ...
null
https://raw.githubusercontent.com/wincent/docvim/621a4d30f17a9fda64cf6b37d4608cbe08bc72e3/lib/Text/Docvim/Util.hs
haskell
| Functions to facilitate automated and manual testing. | Parse a string containing a translation unit. translation units, but always returns a string even in the case of an error. | Pretty-prints the result of parsing and compiling an input string. | Pretty-prints the result of parsing and compiling an input st...
module Text.Docvim.Util ( compileUnits , p , parseUnit , pm , pp , ppm , ppv , pv ) where import Text.Docvim.AST import Text.Do...
9e3cb0a742d53cd0fc8a6a85541f6960ed239832ff4dbbb54c8654f567496f8c
mcfilib/ruby-marshal
Encoding.hs
{-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------- -- | -- Module : Data.Ruby.Marshal.Encoding Copyright : ( c ) , 2015 License : MIT -- -- Maintainer: -- Stability : experimental -- Portability: portable -- -- Ruby encoding types. -- ----------------...
null
https://raw.githubusercontent.com/mcfilib/ruby-marshal/256c1c94aca12d4792d14c0ba2501c3878a23a53/src/Data/Ruby/Marshal/Encoding.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------ | Module : Data.Ruby.Marshal.Encoding Maintainer: Stability : experimental Portability: portable Ruby encoding types. ------------------------------------------------------------------ * The @RubyStringEnco...
Copyright : ( c ) , 2015 License : MIT module Data.Ruby.Marshal.Encoding ( fromEnc , toEnc , RubyStringEncoding(..) ) where import qualified Data.ByteString as BS | ADT representing all supported encodings . data RubyStringEncoding = ASCII_8BIT | Big5 | Big5_HKSCS ...
51072182bb20f3c7c0800a4c0cf04bb96d8a6e06e0f479498108a0637087dcf0
ruhler/smten
Environment.hs
{-# OPTIONS_HADDOCK hide #-} module Smten.Compiled.Smten.System.Environment (getArgs) where import qualified Prelude as P import qualified System.Environment as P import Smten.Compiled.Smten.Smten.Base import Smten.Runtime.SymbolicOf getArgs :: P.IO (List__ (List__ Char)) getArgs = do args <- P.getArgs P.ret...
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-lib/Smten/Compiled/Smten/System/Environment.hs
haskell
# OPTIONS_HADDOCK hide #
module Smten.Compiled.Smten.System.Environment (getArgs) where import qualified Prelude as P import qualified System.Environment as P import Smten.Compiled.Smten.Smten.Base import Smten.Runtime.SymbolicOf getArgs :: P.IO (List__ (List__ Char)) getArgs = do args <- P.getArgs P.return (tosym (P.map fromHSStrin...
ca4fe5935e637619bf5ad891100b5e64d43b603c11659122cf122d4f586e5474
robert-strandh/Spell
english.lisp
(in-package #:spell) (defparameter *english-dictionary* #.(load-dictionary (asdf:system-relative-pathname :spell "english.txt"))) (defun english-lookup (word) (when (and word (string/= word "")) (let ((decapitalized (copy-seq word))) (setf (aref word 0) (char-downcase (aref word 0))) (or (lookup w...
null
https://raw.githubusercontent.com/robert-strandh/Spell/d2ae9489d53ad1618ad887824f7d93be08118098/english.lisp
lisp
paragraph, we can traverse the dictionary using offsets of that paragraph.
(in-package #:spell) (defparameter *english-dictionary* #.(load-dictionary (asdf:system-relative-pathname :spell "english.txt"))) (defun english-lookup (word) (when (and word (string/= word "")) (let ((decapitalized (copy-seq word))) (setf (aref word 0) (char-downcase (aref word 0))) (or (lookup w...
32e781e218c883830c9e9a4acd27b546c658bdde1e1e09ab8c18f2b282725084
ddssff/cabal-debian
Interspersed.hs
| A class used while converting Cabal dependencies into Debian -- dependencies. # LANGUAGE FlexibleInstances , FunctionalDependencies , MultiParamTypeClasses , StandaloneDeriving , TypeSynonymInstances # {-# OPTIONS_GHC -Wall -Werror #-} module Debian.Debianize.Interspersed ( Interspersed(..) ) where import...
null
https://raw.githubusercontent.com/ddssff/cabal-debian/763270aed987f870762e660f243451e9a34e1325/src/Debian/Debianize/Interspersed.hs
haskell
dependencies. # OPTIONS_GHC -Wall -Werror # | A class of Bs insterspersed with Cs. It is used when converting the cabal dependencies to debian, where the "around" type is the binary package name and the "between" type is the version number. Minimum implementation is a method to return the leftmost B, and anoth...
| A class used while converting Cabal dependencies into Debian # LANGUAGE FlexibleInstances , FunctionalDependencies , MultiParamTypeClasses , StandaloneDeriving , TypeSynonymInstances # module Debian.Debianize.Interspersed ( Interspersed(..) ) where import Debug.Trace (trace) The class provides implemen...
5d877d73c37c19403e6ef4b1b05189353bc75536b33b3d7c0e31efbe36058cf1
merlin-lang/merlin
Merlin_Time.ml
let time () = Mtime_clock.counter () let from counter = Mtime_clock.count counter let to_nsecs = Mtime.Span.to_ns let to_secs = Mtime.Span.to_s
null
https://raw.githubusercontent.com/merlin-lang/merlin/35a88bce024a8b8be858c796f1cd718e4a660529/lib/Merlin_Time.ml
ocaml
let time () = Mtime_clock.counter () let from counter = Mtime_clock.count counter let to_nsecs = Mtime.Span.to_ns let to_secs = Mtime.Span.to_s
514b78b5b0b108ce7c51421e757608115903ce60de0337ecc09cb0ef5788e695
cartazio/language-c
ScanFile.hs
-- Simple example demonstrating the API: parse a file, and print its definition table module Main where import System.Environment import System.FilePath import System.Exit import System.IO import Control.Arrow hiding ((<+>)) import Control.Monad import Debug.Trace import Text.PrettyPrint.HughesPJ import Data.List ...
null
https://raw.githubusercontent.com/cartazio/language-c/d003206a45baec4e2a2a85026d88bd225162d951/examples/ScanFile.hs
haskell
Simple example demonstrating the API: parse a file, and print its definition table simple API analysis API debugging printer for analysis preprocessor used get cpp options and input file parse analyze print
module Main where import System.Environment import System.FilePath import System.Exit import System.IO import Control.Arrow hiding ((<+>)) import Control.Monad import Debug.Trace import Text.PrettyPrint.HughesPJ import Data.List usageMsg :: String -> String usageMsg prg = render $ text "Usage:" <+> text prg <+...
fd35728b399d85d177c26fb1da3dd08f3323f19756fd3bfc4a0193c43ecba94a
nedap/speced.def
parsing.cljc
(ns unit.nedap.speced.def.defn.parsing (:require #?(:cljs [cljs.core :refer [Atom]]) #?(:clj [clojure.test :refer [deftest testing are is use-fixtures]] :cljs [cljs.test :refer-macros [deftest testing is are] :refer [use-fixtures]]) [nedap.speced.def :as sut]) (:import #?(:clj (clojure.lang Atom)))) (s...
null
https://raw.githubusercontent.com/nedap/speced.def/55053e53e749f77753294f3ee8d4639470840f8c/test/unit/nedap/speced/def/defn/parsing.cljc
clojure
(ns unit.nedap.speced.def.defn.parsing (:require #?(:cljs [cljs.core :refer [Atom]]) #?(:clj [clojure.test :refer [deftest testing are is use-fixtures]] :cljs [cljs.test :refer-macros [deftest testing is are] :refer [use-fixtures]]) [nedap.speced.def :as sut]) (:import #?(:clj (clojure.lang Atom)))) (s...
f7872fe968ce198f73523e60dbc32d1103861e8b1b6efd6b4a855d3435e08f37
kuribas/haskell-opentype
Cmap.hs
module Opentype.Fileformat.Cmap where import Opentype.Fileformat.Types import Data.Binary import Data.Binary.Put import Data.List (sort, mapAccumL, foldl') import Data.Either (either) import Control.Monad import Data.Traversable (for) import Data.Foldable (for_, traverse_) import qualified Data.ByteString.Lazy as Lazy ...
null
https://raw.githubusercontent.com/kuribas/haskell-opentype/06d24f726370d68dc71509157a87e3a929475a4f/Opentype/Fileformat/Cmap.hs
haskell
for debugging | This table defines the mapping of character codes to the glyph scheme. Character codes that do not correspond to any glyph in the must be a special glyph representing a missing character, commonly known as .notdef. The table header indicates the character encodings for which formats and begins w...
module Opentype.Fileformat.Cmap where import Opentype.Fileformat.Types import Data.Binary import Data.Binary.Put import Data.List (sort, mapAccumL, foldl') import Data.Either (either) import Control.Monad import Data.Traversable (for) import Data.Foldable (for_, traverse_) import qualified Data.ByteString.Lazy as Lazy ...
989c4a706fcfd3a31b44277052fd5ca9b8c28653d88f82dfb197c887e83c12c8
GaloisInc/daedalus
Streams.hs
# LANGUAGE EmptyDataDecls , TypeOperators , LambdaCase # module Streams where import qualified Data.Map as M import Data.Map(Map) import Types import Utils import Primitives this should be line 10 , we ' include ' at line 12 : | extractStreamData - since we now know all :...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/016da6b2de23747e48642f6ece79c07b436ef5d1/formats/pdf/old/driver/pre-dom-specification/etc/Streams.hs
haskell
- 1st, with the file offset, read into a bytestring - NOTE: this processing done just once, not each time indirect OR direct now an integer direct cannot recover from this
# LANGUAGE EmptyDataDecls , TypeOperators , LambdaCase # module Streams where import qualified Data.Map as M import Data.Map(Map) import Types import Utils import Primitives this should be line 10 , we ' include ' at line 12 : | extractStreamData - since we now know all :...
82018931db169fc7842edc5d8f6746b3b268bf1eb14d25c63d8385cec11621a4
Zulu-Inuoe/clution
defcfun.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; defcfun.lisp --- Tests function definition and calling. ;;; Copyright ( C ) 2005 - 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , t...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/cffi_0.19.0/tests/defcfun.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- defcfun.lisp --- Tests function definition and calling. 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,...
Copyright ( C ) 2005 - 2007 , 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 , (in-package #:c...
b44f298555ddceb979faf0b96c73c2de10ad5d9c86b4d7c5c89c9ff258c0835e
huangjs/cl
residu.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/residu.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; Compute the p...
(in-package :maxima) (macsyma-module residu) (load-macsyma-macros rzmac) (declare-top (special $breakup $noprincipal varlist leadcoef var *roots *failures wflag nn* sn* sd* $tellratlist genvar dn* zn)) Divide these roots into several parts : Those in REGION , REGION1 , modern style , we 'd pro...
0739c5789ce0756c1f21451daccca3a7875839654ce59b6408adde920dc4b4ed
susanemcg/pandoc-tufteLaTeX2GitBook
LaTeX.hs
{-# LANGUAGE OverloadedStrings #-} module Tests.Writers.LaTeX (tests) where import Test.Framework import Text.Pandoc.Builder import Text.Pandoc import Tests.Helpers import Tests.Arbitrary() latex :: (ToString a, ToPandoc a) => a -> String latex = writeLaTeX def . toPandoc latexListing :: (ToString a, ToPandoc a) => ...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/tests/Tests/Writers/LaTeX.hs
haskell
# LANGUAGE OverloadedStrings # "my test" =: X =?> Y is shorthand for test latex "my test" $ X =?> Y which is in turn shorthand for test latex "my test" (X,Y)
module Tests.Writers.LaTeX (tests) where import Test.Framework import Text.Pandoc.Builder import Text.Pandoc import Tests.Helpers import Tests.Arbitrary() latex :: (ToString a, ToPandoc a) => a -> String latex = writeLaTeX def . toPandoc latexListing :: (ToString a, ToPandoc a) => a -> String latexListing = writeLaT...
4667f9584c529929a429c0aabdf1701694d26325bb12d9b31901dde0be8696f5
simplegeo/erlang
wx_gen_cpp.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/wx/api_gen/wx_gen_cpp.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " File : wx_gen_cpp.erl Author : ...
7b1816ccd5863ba766935ba9c1918f8b4b69b1ee64a2beb0434de54e48ca1cd1
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Ordinal.Tests (tests) where import Data.String import Test.Tasty import qualified Duckling...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Ordinal/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Ordinal.Tests (tests) where import Data.String import Test.Tasty import qualified Duckling.Ordinal.AR.Tests as AR import qualified Duckling.Ordinal.BG.Tests as BG import qualified Duckling.Ordinal.CA.Tests as CA import qualified Duckling.Ordinal.DA....
942524c8c459ad02ef617d03d011c6d942fe3c8c873963a973d2569b671f4d52
shriram/mystery-languages
semantics.rkt
#lang racket (require [for-syntax syntax/parse] mystery-languages/utils mystery-languages/common) (require [for-syntax racket]) (provide #%module-begin #%top-interaction #%datum #%top #%app) (provide + - * / < <= > >= = <> defvar ++ if and or not deffun)...
null
https://raw.githubusercontent.com/shriram/mystery-languages/86f717654c9ff05b7f838ea7ba1e63fb280d9387/fields/L1/semantics.rkt
racket
#lang racket (require [for-syntax syntax/parse] mystery-languages/utils mystery-languages/common) (require [for-syntax racket]) (provide #%module-begin #%top-interaction #%datum #%top #%app) (provide + - * / < <= > >= = <> defvar ++ if and or not deffun)...
c5653149192c53e181841321752a1fc60f3f961d9d456314fa2f67f9ac1cc731
AkronCodeClub/edX-FP101x-Oct-2014
helloworld.hs
main = putStrLn "hello, world"
null
https://raw.githubusercontent.com/AkronCodeClub/edX-FP101x-Oct-2014/7db691d795126ad912256fec29b5aa1817beb8c0/jerry_d/helloworld/helloworld.hs
haskell
main = putStrLn "hello, world"
b105785d6500dcc8e1554a947d83b5e6eac85d5c67fb237fd5fd43b50c0ecb6d
prikhi/crypto-portfolio
TradeList.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module TradeList ( view ) where import Brick import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Data.Time.Format (formatTime, defaultTimeLocale) import qualified Brick.Widgets.Border as B import qualified Data.Text as T import Table impor...
null
https://raw.githubusercontent.com/prikhi/crypto-portfolio/2b4722daa969b766434840bc53c888ad835234c6/src/TradeList.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module TradeList ( view ) where import Brick import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Data.Time.Format (formatTime, defaultTimeLocale) import qualified Brick.Widgets.Border as B import qualified Data.Text as T import Table import Types RENDER view :: [Transa...
d75db6eff6fb03cb7f56d691fd56a52a207d9f287f6c137341e07b83d73e0aa7
xclerc/ocamljava
bytecodeutils.ml
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/compiler/javacomp/bytecodeutils.ml
ocaml
Name functions Class constants Field constants Method constants Peephole rewriting rules assumes that Peephole.optimize_constants has been applied before assumes that Peephole.optimize_constants has been applied before Utility functions
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
e53ddd592898b2ba3eecd9801cef824e28002294724fe3e27b833392100a0cfb
lucasvreis/organon
Cache.hs
module Site.Org.Cache where import Control.Monad.Logger (MonadLogger, logDebugN, logWarnN) import Data.Binary (Binary, decodeFileOrFail) import Site.Org.LaTeX.Types (LaTeXCache) import UnliftIO (IOException, MonadUnliftIO, catch) newtype Cache = Cache { latexCache :: LaTeXCache } deriving (Generic) deriving a...
null
https://raw.githubusercontent.com/lucasvreis/organon/08d20ee0e3f28519a6a31b54cfab9cfc701ae004/src/ema-org/Site/Org/Cache.hs
haskell
module Site.Org.Cache where import Control.Monad.Logger (MonadLogger, logDebugN, logWarnN) import Data.Binary (Binary, decodeFileOrFail) import Site.Org.LaTeX.Types (LaTeXCache) import UnliftIO (IOException, MonadUnliftIO, catch) newtype Cache = Cache { latexCache :: LaTeXCache } deriving (Generic) deriving a...
a93d94b220bdc9f94f8f0c61b1ecb03200dfc4d49e6ec3d181c7962ce2124dd1
tommaisey/aeon
lfd-noise3.help.scm
See lfd - noise0
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/noise/lfd-noise3.help.scm
scheme
See lfd - noise0
6d981000a1708919874197c37276f7212044d0ff49c4c618d57ad420b38980e6
mbutterick/aoc-racket
input.rkt
#lang reader "lang.rkt" .^^^.^.^^^.^.......^^.^^^^.^^^^..^^^^^.^.^^^..^^.^.^^..^.^..^^...^.^^.^^^...^^.^.^^^..^^^^.....^....
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day18/input.rkt
racket
#lang reader "lang.rkt" .^^^.^.^^^.^.......^^.^^^^.^^^^..^^^^^.^.^^^..^^.^.^^..^.^..^^...^.^^.^^^...^^.^.^^^..^^^^.....^....
fee26532b86474b0407ba0dd0c69e6c5325fbc9e1c9747da9bd0fe1252e2b917
gafiatulin/codewars
Append.hs
two list -- / module Append where append :: [a] -> [a] -> [a] append = (++)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/Append.hs
haskell
/
two list module Append where append :: [a] -> [a] -> [a] append = (++)
0616df245fa55cad09a0f6baba955d65127728a17b41cf44ade928135b55b2e7
PLTools/GT
ghash.ml
* OCanren : syntax extension . * Copyright ( C ) 2016 - 2022 * a.k.a . Kakadu * St. Petersburg University , JetBrains Research * OCanren: syntax extension. * Copyright (C) 2016-2022 * Dmitrii Kosarev a.k.a. Kakadu * St.Petersburg University, JetBrains Research *) (** {i Hash} plugin. Fo...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/plugins/ghash.ml
ocaml
* {i Hash} plugin. For type declaration [type ('a,'b,...) typ = ...] it will create a transformation function with type [(GT.H.t -> 'a -> GT.H.t * 'a) -> (GT.H.t -> 'b -> GT.H.t * 'b) -> ... -> GT.H.t -> ('a,'b,...) typ -> GT.H.t * ('a,'b,...) typ ] which takes a value and hashtable (possib...
* OCanren : syntax extension . * Copyright ( C ) 2016 - 2022 * a.k.a . Kakadu * St. Petersburg University , JetBrains Research * OCanren: syntax extension. * Copyright (C) 2016-2022 * Dmitrii Kosarev a.k.a. Kakadu * St.Petersburg University, JetBrains Research *) open Ppxlib open Stdppx ope...
df20eff8b8ec4e07dfe599ac8a833d9aba7f67b05c9e08e5277e59e54ebb651f
ronxin/stolzen
ex3.29.scm
#lang scheme (define (and-gate in1 in2 output) (void)) (define (inverter in1 out1) (void)) (define (make-wire) (void)) (define (add-action! wire proc) (void)) 3.29 (define (or-gate in1 in2 output) (let ((not-in1 (make-wire)) (not-in2 (make-wire)) (im1 (make-wire))) ...
null
https://raw.githubusercontent.com/ronxin/stolzen/bb13d0a7deea53b65253bb4b61aaf2abe4467f0d/sicp/chapter3/3.3/ex3.29.scm
scheme
delay is delay of inverter + and-gate + inverter
#lang scheme (define (and-gate in1 in2 output) (void)) (define (inverter in1 out1) (void)) (define (make-wire) (void)) (define (add-action! wire proc) (void)) 3.29 (define (or-gate in1 in2 output) (let ((not-in1 (make-wire)) (not-in2 (make-wire)) (im1 (make-wire))) ...
61d6682c878a7d07ad6643b7a9f9ab7b0b141d77b1206bf5646a0a36268470e1
rjohnsondev/haskellshop
ProductVariantOption.hs
{-# LANGUAGE OverloadedStrings #-} module ShopData.ProductVariantOption where import Snap.Snaplet.PostgresqlSimple import Data.Text import Data.Scientific data ProductVariantOption = ProductVariantOption { productId :: Int, variantId :: Int, variantName :: Text, variantOpt...
null
https://raw.githubusercontent.com/rjohnsondev/haskellshop/645f9e40b9843fc987d37a0ee58460929ef50aae/src/ShopData/ProductVariantOption.hs
haskell
# LANGUAGE OverloadedStrings #
module ShopData.ProductVariantOption where import Snap.Snaplet.PostgresqlSimple import Data.Text import Data.Scientific data ProductVariantOption = ProductVariantOption { productId :: Int, variantId :: Int, variantName :: Text, variantOptionId :: Int, variantOption...
11fe89247bdd35095cb3469c913d0d08a2f387e812243641f8a7e0c00a0e3ae8
yurug/ocaml4.04.0-copatterns
parmatch.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/parmatch.ml
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 open Misc open Asttypes open Types open Typedtree Utilities for building patterns let make_pat de...
fac54f0dd20bd86d7a8ae93007b44645c4cb4b63674c32c5136446cc7b58c319
polyfy/polylith
project_settings.clj
(ns polylith.clj.core.workspace-clj.project-settings) (defn convert-test [global-test {:keys [test] :as project-settings}] (cond-> project-settings Convert from the old test configuration format to the new one . (vector? test) (assoc :test {:include test}) ;; Merge with the global t...
null
https://raw.githubusercontent.com/polyfy/polylith/ca7c38eb2df7a489202742ac28c0cfe9ef9ae9d2/components/workspace-clj/src/polylith/clj/core/workspace_clj/project_settings.clj
clojure
Merge with the global test configuration.
(ns polylith.clj.core.workspace-clj.project-settings) (defn convert-test [global-test {:keys [test] :as project-settings}] (cond-> project-settings Convert from the old test configuration format to the new one . (vector? test) (assoc :test {:include test}) global-test (upd...
932a22d130506f5139c05fa361b5ec30f2538f79eddeeb28586a06122f07fc6f
mzp/coq-ide-for-ios
coqinit.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/toplevel/coqinit.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Initialization.
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : coqinit.mli 13323 2...
3b1428c26d830c20c4f5f626af0cbfebc6c0b7777ccbfedb54e1fe46319557f3
marcoheisig/fast-generic-functions
expand-effective-method-body.lisp
(in-package #:fast-generic-functions) (defun expand-effective-method-body (effective-method generic-function lambda-list) (trivial-macroexpand-all:macroexpand-all `(let ((.gf. #',(generic-function-name generic-function))) (declare (ignorable .gf.)) #+sbcl(declare (sb-ext:disable-package-locks comm...
null
https://raw.githubusercontent.com/marcoheisig/fast-generic-functions/9c307cd28af6453e45038ac3510de3123ff23743/code/expand-effective-method-body.lisp
lisp
the effective method. Since we do our own checking, we can safely disable it. However, we touch the relevant variables to prevent unused variable warnings. primary methods. The problem is that this form contains a reference to the literal generic function, which is not an externalizable object. Our solution i...
(in-package #:fast-generic-functions) (defun expand-effective-method-body (effective-method generic-function lambda-list) (trivial-macroexpand-all:macroexpand-all `(let ((.gf. #',(generic-function-name generic-function))) (declare (ignorable .gf.)) #+sbcl(declare (sb-ext:disable-package-locks comm...
8e97ed470f2db8484ef11a97ddb023fe091a516c494d405c3cea06b603af5fdc
ghcjs/ghcjs
JMacro.hs
| Module : Language . Javascript . JMacro Copyright : ( c ) , 2010 License : BSD 3 Clause Maintainer : Stability : experimental Simple DSL for lightweight ( untyped ) programmatic generation of Javascript . A number of examples are available in the source of " Language ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/src/Compiler/JMacro.hs
haskell
i.e. a Javascript expression ) . i.e. to end statements consistently . Otherwise , the parser will mistake the whitespace for a whitespace application , and odd things will occur . A further gotcha exists in regex literals , whicch can not begin with a space . @x / 5 / 4@ parses as ( ( x / 5 ) / 4 ) . However , @x /...
| Module : Language . Javascript . JMacro Copyright : ( c ) , 2010 License : BSD 3 Clause Maintainer : Stability : experimental Simple DSL for lightweight ( untyped ) programmatic generation of Javascript . A number of examples are available in the source of " Language ...
eb1e1883e6265754eaaf34d4424bf72b1ff211a07fc1c740dde8ddec15a6d6c4
facebook/flow
keywords.mli
* 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/f7d50bb772462888b27b5dbf9acf7d079eb1ff5f/src/services/autocomplete/keywords.mli
ocaml
* 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...
48b903a9a55378b86d5eedaf654b5eca740854e8990534e708ffefb0b6c60650
scravy/bed-and-breakfast
quickcheck-tests.hs
# LANGUAGE Haskell2010 , TemplateHaskell # import Control.Monad import Numeric.Matrix import Test.QuickCheck import Test.QuickCheck.All import System.Exit dim :: Num a => a dim = 6 instance (MatrixElement e, Arbitrary e) => Arbitrary (Matrix e) where arbitrary = sequence (replicate dim (vector dim)) >>= ret...
null
https://raw.githubusercontent.com/scravy/bed-and-breakfast/e900464394bb13edeb7a439ec758f059dc4712db/quickcheck-tests.hs
haskell
# LANGUAGE Haskell2010 , TemplateHaskell # import Control.Monad import Numeric.Matrix import Test.QuickCheck import Test.QuickCheck.All import System.Exit dim :: Num a => a dim = 6 instance (MatrixElement e, Arbitrary e) => Arbitrary (Matrix e) where arbitrary = sequence (replicate dim (vector dim)) >>= ret...
379f254c2d05b4849062d2ef40b4cd29392a87054322f70c49e634457c54afeb
mirage/irmin
store_properties_intf.ml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin/store_properties_intf.ml
ocaml
* [batch t f] applies the writes in [f] in a separate batch. The exact guarantees depend on the implementation. * [close t] frees up all the resources associated with [t]. Any operations run on a closed handle will raise [Closed]. * [v config] is a function returning fresh store handles, with the co...
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
8db45a7aff068adbfe019337cc4c529b2ff4ea79e920d8cc029ccb6091602d48
haskell-opengl/OpenGL
Specification.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.Texturing.Specification Copyright : ( c ) 2002 - 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- This module cor...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.Texturing.Specification License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Texture Targets...
Copyright : ( c ) 2002 - 2019 Maintainer : < > This module corresponds to section 3.8.1 ( Texture Image Specification ) , section 3.8.2 ( Alternate Texture Image Specification Commands ) , and section 3.8.3 ( Compressed Texture Images ) of the OpenGL 2.1 specs . module Graphics.Rendering.OpenGL...
fa59dad65f379218af50c1660a8ebd20ca029e93b1f2c17ecae01fac6a82b45c
mokus0/junkbox
RefPrompt.hs
# LANGUAGE GADTs , GeneralizedNewtypeDeriving , RankNTypes , BangPatterns , MultiParamTypeClasses , FlexibleInstances , UndecidableInstances # GADTs, GeneralizedNewtypeDeriving, RankNTypes, BangPatterns, MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} module Type...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/TypeExperiments/RefPrompt.hs
haskell
The basic interface for computations using mutable references: |The internal "Prompt" type - the fundamental language provided by which clients can talk about what they want to do with references. |Read the value contained in an existing reference |Replace the value in an existing reference with something new A f...
# LANGUAGE GADTs , GeneralizedNewtypeDeriving , RankNTypes , BangPatterns , MultiParamTypeClasses , FlexibleInstances , UndecidableInstances # GADTs, GeneralizedNewtypeDeriving, RankNTypes, BangPatterns, MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} module Type...
eaa5d55f7df70bc0251ef708ca6d231ee0548743a0b58e982206d73e5cb82c7c
jonase/eastwood
inspect.clj
Copyright ( c ) , , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to ...
null
https://raw.githubusercontent.com/jonase/eastwood/c5b7d9f8ad8f8b38dc7138d853cc65f6987d6058/copied-deps/eastwood/copieddeps/dep10/clojure/tools/reader/impl/inspect.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , , Rich Hickey & contributors . (ns eastwood.copieddeps.dep10.clojure.tools.reader.impl.inspect) (declare inspect*) (defn- inspect*-col [truncate col start end] (let [n (count col) l (if truncate 0 (min 10 n)) elements (map (partial inspect* true) (take l col)) cont...
928f80120bf76042d64379a7714698df7b96c6ed20911774ab9d05843b4e2ed7
hbr/albatross
argument_parser.ml
open Module_types open Common module type S = sig type a (* The result of the argument parser *) type key = string (* option key, must start with '-' *) type doc = string (* option description *) type spec (* specification of an option *) = | Unit of (a -> a) (* option wit...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/argument_parser.ml
ocaml
The result of the argument parser option key, must start with '-' option description specification of an option option with no argument option with string argument option with integer argument function taking an anonymus argument into the result option with no argume...
open Module_types open Common module type S = sig = type error = | Unknown_option of string | Missing_argument of key*spec*doc | Invalid_argument of key*spec*doc*string val parse: string array -> a -> (key*spec*doc) list -> anon -> ...
28ae8333ae62a0fbb2fc6273d6bb7fa3bfdeccce3cf1a49992beab70c6ed3ae1
rd--/hsc3
hsc3-min-imports.hs
import Prelude {- base -} import Control.Monad {- base -} import Data.Bits {- base -} import Data.Function {- base -} import Data.List {- base -} import Sound.Sc3 {- hsc3 -}
null
https://raw.githubusercontent.com/rd--/hsc3/7dc748106639999947548d0b3205a468cfc55fed/lib/hsc3-min-imports.hs
haskell
base base base base base hsc3
f19f6b9873ac328a103e7d400b509d49e08a2c2119302a1e5af4cb4b861360c4
dvanhorn/oaam
0cfa-delta.rkt
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning ;; + compilation phase ;; + lazy non-determinism + specialized step & iterator 0m34.248s vs + compute store vs 0m1.065s ( ! ! ! ) State = ( cons Conf Store ) ;; State^ = (cons (Set C...
null
https://raw.githubusercontent.com/dvanhorn/oaam/79bc68ecb79fef45474a948deec1de90d255f307/code/iswim/0cfa-delta.rkt
racket
+ compilation phase + lazy non-determinism State^ = (cons (Set Conf) Store) - 'mt - (ar Comp Env Cont) - (fn Val Cont) - (ifk Comp Comp Env Cont) - (1opk Opr Cont) - (2opfk Opr Val Cont) "Compiled" Machine Compile away interpretive overhead of "ev" states Expr -> Comp Anything else is stuck Anything else...
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning + specialized step & iterator 0m34.248s vs + compute store vs 0m1.065s ( ! ! ! ) State = ( cons Conf Store ) Comp = Store Env Cont - > State^ A Cont is one of : - ( 2opak Opr...
008a7108901f12ffdf51759a1015052f9c1ed343bfac26e8c1ac693375bf033f
jagajaga/FP-Course-ITMO
ColorCoins.hs
module ColorCoins ( Coin (..) , blue , createCoins , red ) where newtype Coin color = Coin { getCoin :: Int } deriving (Show) data Blue data Red blue :: Blue blue = undefined red :: Red red = undefined createCoins :: color -> Int -> Coin color createCoins _ = Coin c1 :: ...
null
https://raw.githubusercontent.com/jagajaga/FP-Course-ITMO/1417c4e929050518f8ad1e56008f061af204825b/lecture-04-phantom/ColorCoins.hs
haskell
module ColorCoins ( Coin (..) , blue , createCoins , red ) where newtype Coin color = Coin { getCoin :: Int } deriving (Show) data Blue data Red blue :: Blue blue = undefined red :: Red red = undefined createCoins :: color -> Int -> Coin color createCoins _ = Coin c1 :: ...
4bc3b38411624434d3ba83e56632a112558741b1415ac218eb6c536e9f045c06
fortytools/holumbus
UserInterface.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . FileSystem . UserInterface Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 A nice ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/storage/source/Holumbus/FileSystem/UserInterface.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * operations ---------------------------------------------------------------------------- -----------------------------------------------------------------------...
| Module : Holumbus . FileSystem . UserInterface Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 A nice console - user interface for the Holumbus - Filesystem based on the Holumbus...
56b64299af7668c2fb16a9e5b6d44378c93fe68b65e3ee398f3d399c0dc41ceb
realworldocaml/mdx
deps.ml
* Copyright ( c ) 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/realworldocaml/mdx/cf176d7dc258b40b2e2491aa1df7e8a16ac7452e/bin/deps.ml
ocaml
* Copyright ( c ) 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
d58e9c415819d13e0781b17c1c6f1c4b4055d2daca24565e9547292a7de08837
heroku/stillir
stillir_first_SUITE.erl
-module(stillir_first_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). %%%%%%%%%%%%%%%%%%%% %%% Tests to run %%% %%%%%%%%%%%%%%%%%%%% %% Specific test cases or groups to run. The test case is named as a single atom . Groups are named as { group , GroupName } . The tests %% will run in the or...
null
https://raw.githubusercontent.com/heroku/stillir/1c08f363ef565b06e161c8c59dda0ccd5f47e0ef/test/stillir_first_SUITE.erl
erlang
Tests to run %%% Specific test cases or groups to run. The test case is named as will run in the order given in the list. Setup/Teardown %%% Runs once at the beginning of the suite. The process is different from the one the case will run in. Runs once at the end of the suite. The process is different from t...
-module(stillir_first_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). a single atom . Groups are named as { group , GroupName } . The tests all() -> [set_conf_no_default ,set_conf_default ,set_conf_app_env ,set_conf_app_env_with_env_var ,set_conf_app_env_with_default...
7166b84ed36b1e6d51b2689a087100a2e3640f5d31bf2217985ec1540d6b4102
chenyukang/eopl
data-structures.scm
(module data-structures (lib "eopl.ss" "eopl") (require "lang.scm") ; for expression? (require "store.scm") ; for reference? (require "classes.scm") ; for object? (provide (all-defined)) ; too many things to list ;;;;;;;;;;;;;;;; expressed ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter9/classes/data-structures.scm
scheme
for expression? for reference? for object? too many things to list expressed values ;;;;;;;;;;;;;;;; an expressed value is either a number, a boolean, a procval, or a reference. extractors: not used. Nor is expval->obj or expval->list, so we haven't written them. procedures ;;;;;;;;;;;;;;;; env...
(module data-structures (lib "eopl.ss" "eopl") (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?)) (proc-val (proc proc?)) (ref-val (ref reference?)) (obj-val (obj object?)) (list-val (lst (list-of ...
623a6a6c6c9116c8098b4b080fd91b32e54226ec45cb91751ecac6f39f6070ed
qitab/cl-protobufs
serialize.lisp
Copyright 2012 - 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (in-package #:cl-protobufs.implementation) Protobuf serialization from Lisp objects When the optimize speed option is used we avoid using DEFMETHOD , which ...
null
https://raw.githubusercontent.com/qitab/cl-protobufs/791f180207bba2f238b46c524d85f588b3f54689/serialize.lisp
lisp
license that can be found in the LICENSE file or at . generic functions that are costly to lookup at runtime. Instead, we define the "methods" as functions that are attached to the symbol naming the class, so we can easily locate them using GET at runtime. Imo these should be :marshall :unmarshall another cust...
Copyright 2012 - 2020 Google LLC Use of this source code is governed by an MIT - style (in-package #:cl-protobufs.implementation) Protobuf serialization from Lisp objects When the optimize speed option is used we avoid using DEFMETHOD , which generates In SBCL , generalized function names are used instead ...
9b2efa138b4ecbaff6e80d21ce3e9f99d3dd154f44108d486a8371ef587bac3e
Bogdanp/koyo
schema.rkt
#lang racket/base (require (for-syntax racket/base) db racket/file racket/runtime-path "../database.rkt") (provide ensure-latest-schema!) (define-runtime-path migrations-path (build-path "migrations")) (define (ensure-latest-schema! database) (with-database-transaction [conn...
null
https://raw.githubusercontent.com/Bogdanp/koyo/93f3fd06ee596a62bb0b286cb6290a800e911154/koyo-lib/koyo/job/schema.rkt
racket
#lang racket/base (require (for-syntax racket/base) db racket/file racket/runtime-path "../database.rkt") (provide ensure-latest-schema!) (define-runtime-path migrations-path (build-path "migrations")) (define (ensure-latest-schema! database) (with-database-transaction [conn...
8d5842c479a4e2eaaf6e06c453fb1f7daf7d2289b092d414322f5f94da170e2d
manuel-serrano/bigloo
evenv.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / runtime / Eval / evenv.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Eval/evenv.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * La manipulation de l'environnement global de l'interprete */ *===========================...
* serrano / prgm / project / bigloo / / runtime / Eval / evenv.scm * / * Author : * / * Creation : Mon Mar 28 18:54:38 1994 * / * Last change : Fri Mar 20 07:52:33 2020 ( serrano ) * / (module __eve...
aaa073c0c5f86fc859bbc432dfab29a05451b0ddfa0969f94b93409412141c4b
treeowl/lazify
Internal.hs
# language AllowAmbiguousTypes # {-# language CPP #-} # language DataKinds # {-# language DefaultSignatures #-} {-# language FlexibleContexts #-} # language FlexibleInstances # # language GADTs # # language MultiParamTypeClasses # # language PolyKinds # {-# language ScopedTypeVariables #-} # language TypeApplications #...
null
https://raw.githubusercontent.com/treeowl/lazify/3a8edcd13e97779c0848d6eda29e71a15ef299c9/src/Data/Lazify/Generic/Internal.hs
haskell
# language CPP # # language DefaultSignatures # # language FlexibleContexts # # language ScopedTypeVariables # # language TypeInType # # language UndecidableInstances # matching. This module offers functions for making them lazy /generically/. | This class is intended to be used primarily with the generic instance ...
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleInstances # # language GADTs # # language MultiParamTypeClasses # # language PolyKinds # # language TypeApplications # # language TypeOperators # # OPTIONS_HADDOCK not - home # | Record types in Haskell can be made lazy through lazy pattern ...
f55caf9b15d58a1c33eda839cdfe85ca25457218cb03f28c9b4062d66e58a8f5
dmitryvk/sbcl-win32-threads
interface.lisp
(cl:in-package :sb-posix) (defmacro define-protocol-class (name alien-type superclasses slots &rest options) (let ((to-protocol (intern (format nil "ALIEN-TO-~A" name))) (to-alien (intern (format nil "~A-TO-ALIEN" name)))) `(progn (export ',name :sb-posix) (defclass ,name ,superclasses ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/contrib/sb-posix/interface.lisp
lisp
FIXME: slotds in source are more complicated in general FIXME: baroque construction of intricate fragility Some systems may need C-level wrappers, which can live in the runtime (so that save-lisp-and-die can produce standalone variable. filesystem access readdir() has the worst error convention in the world. I...
(cl:in-package :sb-posix) (defmacro define-protocol-class (name alien-type superclasses slots &rest options) (let ((to-protocol (intern (format nil "ALIEN-TO-~A" name))) (to-alien (intern (format nil "~A-TO-ALIEN" name)))) `(progn (export ',name :sb-posix) (defclass ,name ,superclasses ...
7562e1cc0d76746094e413c044a2b811979b9bb24e47a0c418d0abe60b89c299
tezos/tezos-mirror
eth.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2023 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/aaa7c826ef23269d5d158939605a689453a4b357/tezt/lib_tezos/eth.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2023 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
ebc55af7dc501147af7df367b84f413a262da0b34080fba698b621c5111ec8fb
haskell-tools/haskell-tools
LetGuard.hs
module Refactor.InlineBinding.LetGuard where a | let x = 3 , x == 3 = ()
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/InlineBinding/LetGuard.hs
haskell
module Refactor.InlineBinding.LetGuard where a | let x = 3 , x == 3 = ()
6bbcd54b514ad56e0c6de1d5ba3376d521f5a716bb1a2daf7910d32df402cb1c
LdBeth/keim
prover-factoring.lisp
(in-package :resprover) ;; These routines are used in factoring clauses. When factoring is ;; turned on, each time a clause's node is constructed ;; its factors are also created, ;; if, of course, the clause isn't a tautology and hasn't been subsumed. GET - FACTORS is called by PROCESS - NEW - CLAUSE . It returns ...
null
https://raw.githubusercontent.com/LdBeth/keim/ed2665d3b0d9a78eaa88b5a2940a4541f0750926/keim/prog/examples/prover-factoring.lisp
lisp
These routines are used in factoring clauses. When factoring is turned on, each time a clause's node is constructed its factors are also created, if, of course, the clause isn't a tautology and hasn't been subsumed. factors of the clause. literals, and SINGLE-FACTOR returns all factors which be made by matching...
(in-package :resprover) GET - FACTORS is called by PROCESS - NEW - CLAUSE . It returns the first - level First the first literal of the clause is checked against all other (defun get-factors (clause) (let ((part-of-clause (cl~literals clause)) (whole-clause (cl~literals clause))) (mapcar #'(lambda (x) (co...
daeaa707ab76930a0e1c1141bedfac2a99258846fe6ef4aa6b1c0e58a20b2d35
bigmlcom/sampling
stream.clj
Copyright 2013 BigML Licensed under the Apache License , Version 2.0 ;; -2.0 (ns bigml.sampling.stream "Provides streaming sampling. Neither the input population or the resulting sample are kept in memory. The order of the sample is not randomized, but will be in the order of the input population." (:r...
null
https://raw.githubusercontent.com/bigmlcom/sampling/8242cac714ac45cb4ef93255c4b5ee5135a07389/src/bigml/sampling/stream.clj
clojure
-2.0
Copyright 2013 BigML Licensed under the Apache License , Version 2.0 (ns bigml.sampling.stream "Provides streaming sampling. Neither the input population or the resulting sample are kept in memory. The order of the sample is not randomized, but will be in the order of the input population." (:require (...
2d29ad67c61923dbc482bbc32df5ea07192219a58b8f4babace6c7586df718e3
magnars/optimus
paths_test.clj
(ns optimus.paths-test (:require [optimus.paths :refer :all] [midje.sweet :refer :all])) (fact (just-the-path "/theme/styles/main.css") => "/theme/styles/") (fact (just-the-filename "/theme/styles/main.css") => "main.css") (fact (to-absolute-url "/theme/styles/main.css" "../images/bg.png") => "/theme/ima...
null
https://raw.githubusercontent.com/magnars/optimus/ac5df602726d255312dfd48cf7ae2e00d99069bd/test/optimus/paths_test.clj
clojure
(ns optimus.paths-test (:require [optimus.paths :refer :all] [midje.sweet :refer :all])) (fact (just-the-path "/theme/styles/main.css") => "/theme/styles/") (fact (just-the-filename "/theme/styles/main.css") => "main.css") (fact (to-absolute-url "/theme/styles/main.css" "../images/bg.png") => "/theme/ima...
c963bee05b159083fb7a021a369095a3076c0e222838f8382d437a4ea16d12ea
liquidz/jubot
user.clj
(ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [clojure.repl :refer :all] [jubot.system :as sys] [dev :refer [-main]])) (def stop sys/stop) (defn start [] (-main "-a" "repl" "-b" "memory")) (defn restart [] (sys/stop) (refresh :after 'user/start)) (defn in [s] ...
null
https://raw.githubusercontent.com/liquidz/jubot/0a2d7b18db801c3fe72f7ff216e8381df9b40815/dev/user.clj
clojure
(ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [clojure.repl :refer :all] [jubot.system :as sys] [dev :refer [-main]])) (def stop sys/stop) (defn start [] (-main "-a" "repl" "-b" "memory")) (defn restart [] (sys/stop) (refresh :after 'user/start)) (defn in [s] ...
7ff4b0feec0e333cbf59635981d2f9142358560d6c0b5f0c6e75031590923964
herd/herdtools7
prettyUtils.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/5bed6439c96fce799c32343fb78704a71b7b6bdd/herd/prettyUtils.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2013 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
9c1852889ab1dee5cbd152c03397560239f8621f56774bd0c85f954d3ffb81a3
AJChapman/co-log-polysemy-formatting
ThreadTimeMessage.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | Module : Colog . P...
null
https://raw.githubusercontent.com/AJChapman/co-log-polysemy-formatting/d4e73c1bccb6fab05ce87d5835ce977720120d68/src/Colog/Polysemy/Formatting/ThreadTimeMessage.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | A log message which wraps a 'Message', adding a 'ThreadId' and 'UTCTime' timestamp. | Get the severity of the message. | Add the thread id and a timestamp to messages in the log.
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | Module : Colog . Polysemy . Formatting . ThreadTimeMessage Description : A message type that includes Threa...
2fcd04890139b80f2eaf80d27bacf0ccf207d94973022da94fe1205359edd225
orx/ocaml-orx
orx_types.ml
include Orx_types_bindings.Bindings (G)
null
https://raw.githubusercontent.com/orx/ocaml-orx/50691d680f369b04c964d9f4b10050f9ffc4173f/src/types/orx_types.ml
ocaml
include Orx_types_bindings.Bindings (G)
0c8e8b91df9dd84fd4ad11846b271d61f88e03378772bb4b865c21e7b544d807
tisnik/clojure-examples
core.clj
(ns git-test1.core (:gen-class)) (require '[clj-jgit.porcelain :as jgit]) (require '[hozumi.rm-rf :as rm-rf]) (def repository-url "Adresa GIT repositare vcetne specifikace protokolu." "") (def directory-name "Jmeno adresare, do ktereho se GIT repositar naklonuje." "repo") (defn clone-repository ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/git-test1/src/git_test1/core.clj
clojure
(ns git-test1.core (:gen-class)) (require '[clj-jgit.porcelain :as jgit]) (require '[hozumi.rm-rf :as rm-rf]) (def repository-url "Adresa GIT repositare vcetne specifikace protokolu." "") (def directory-name "Jmeno adresare, do ktereho se GIT repositar naklonuje." "repo") (defn clone-repository ...
cbc71c5ad89e8caa2c7357acc37ecda5f6b94d5e311189d934abbe8e98ff58bd
ocaml-ppx/ocamlformat
tag_only.ml
(** @deprecated *) open Module * abc @deprecated @deprecated *) open Module * @author A open Module * @inline open Module * @inline include Abc * @inline include struct type t end * @inline include (Module : Type) * @inline module A = B * @inline module A : sig type t end = struct type t end ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/passing/tests/tag_only.ml
ocaml
* @deprecated * @author B * @open * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @deprecated * @author B * @open * @deprecated * @deprecated * @deprecated * @dep...
open Module * abc @deprecated @deprecated *) open Module * @author A open Module * @inline open Module * @inline include Abc * @inline include struct type t end * @inline include (Module : Type) * @inline module A = B * @inline module A : sig type t end = struct type t end * @inline module re...
9c9aceef4761a870cad5e35f748d8c4b96459dd5525cc6cf0b3ef16d881bbde9
input-output-hk/cardano-ledger
TranslationTools.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- TODO: Move to cardano-ledger-core:test-lib module Test.Cardano.Ledger.TranslationTools ( translateEraPartial, translateEraEncoding, translateEraEncCBOR, )...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/shelley-ma/test-suite/src/Test/Cardano/Ledger/TranslationTools.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # TODO: Move to cardano-ledger-core:test-lib Tests that the serializing before translation or after translating does not change the result FIXME: This property only holds for annotated types. Replace this test with a better Tests that the serializing before tra...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.TranslationTools ( translateEraPartial, translateEraEncoding, translateEraEncCBOR, ) where import Cardano.Ledger.Binary (EncCBOR (..), toPlainEncoding) import qualified Cardano.Ledger.Binary.P...
6e16009a77dcbe459a941dd68b0e6be9f1e6242972a4c9fb966ef0521740d34d
brendanhay/amazonka
GetWorkload.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wellarchitected/gen/Amazonka/WellArchitected/GetWorkload.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WellArchitected.GetWorkload Stability : auto-generated Get an existing workload. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | Input to get a workload. /See:/ 'newGetWorkload' smart con...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
3b3a496531d0e97c7f57f26c8dad22ee8c6e78252c1ff608f4c51a71b222f1a9
longlene/cl-raylib
audio_sound_loading.lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib)) (in-package :raylib-user) (defun main () (let ((screen-width 800) (screen-height 450) (res-path (uiop:native-namestring (asdf:system-relative-pathname 'cl-raylib "examples/audio/resources/")))) Set our game to run at 60 FPS (with-w...
null
https://raw.githubusercontent.com/longlene/cl-raylib/61e559934da777f1d9fe627c0e1fb95f4af757c6/examples/audio/audio_sound_loading.lisp
lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib)) (in-package :raylib-user) (defun main () (let ((screen-width 800) (screen-height 450) (res-path (uiop:native-namestring (asdf:system-relative-pathname 'cl-raylib "examples/audio/resources/")))) Set our game to run at 60 FPS (with-w...
89903d91e3fa759c198a011a87e08e1c753a18e115b245d46237ec1b0f694fa4
clojure-interop/aws-api
core.clj
(ns com.amazonaws.services.cloudfront.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.cloudfront.AbstractAmazonCloudFront]) (require '[com.amazonaws.services.cloudfront.AbstractAmazonCloudFrontAsync]) (require '[com.amazonaws.services.cloudfront.AmazonCloudFront]...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.cloudfront/src/com/amazonaws/services/cloudfront/core.clj
clojure
(ns com.amazonaws.services.cloudfront.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.cloudfront.AbstractAmazonCloudFront]) (require '[com.amazonaws.services.cloudfront.AbstractAmazonCloudFrontAsync]) (require '[com.amazonaws.services.cloudfront.AmazonCloudFront]...
8d0feda16e252094faea727aac43c2fd7e512f30f0de71525a78a1a15af71713
kthielen/stlcc
ELFStructs.hs
module Link.Linux.ELFStructs where import Util.FileBuf import Util.Num import Util.Sequence import qualified Data.Map as Map import qualified Data.List as List import Control.Monad import System.IO import Data.Bits import Data.Char import GHC.Word data ELFFileType = FTNone | FTRel | FTExec | FTDyn...
null
https://raw.githubusercontent.com/kthielen/stlcc/369492daad6498a93c00f5924a99ceb65b5f1062/Link/Linux/ELFStructs.hs
haskell
ET_REL ET_DYN ET_HIOS ET_HIPROC No machine MIPS I Architecture PowerPC TRW RH-32 STMicroelectronics ST9+ 8/16 bit microcontroller Matsushita MN10300 picoJava OpenRISC 32-bit embedded processor No extensions or unspecified NetBSD Linux FreeBSD Open BSD Undefined name define STN_UNDEF...
module Link.Linux.ELFStructs where import Util.FileBuf import Util.Num import Util.Sequence import qualified Data.Map as Map import qualified Data.List as List import Control.Monad import System.IO import Data.Bits import Data.Char import GHC.Word data ELFFileType = FTNone | FTRel | FTExec | FTDyn...
30b4338c7efb665178332b18b4db3c332ad22f2abdba1b8cb7845f7526df31be
anoma/juvix
Base.hs
module Juvix.Compiler.Core.Extra.Base ( module Juvix.Compiler.Core.Extra.Base, module Juvix.Compiler.Core.Data.BinderList, ) where import Data.Functor.Identity import Juvix.Compiler.Core.Data.BinderList (BinderList) import Juvix.Compiler.Core.Info qualified as Info import Juvix.Compiler.Core.Language import Po...
null
https://raw.githubusercontent.com/anoma/juvix/c93013229ab84e81298ced674961ff30a39b888b/src/Juvix/Compiler/Core/Extra/Base.hs
haskell
---------------------------------------------------------------------- Node constructors ---------------------------------------------------------------------- Type constructors ---------------------------------------------------------------------- functions on Type | Unfold a type into the target and the argume...
module Juvix.Compiler.Core.Extra.Base ( module Juvix.Compiler.Core.Extra.Base, module Juvix.Compiler.Core.Data.BinderList, ) where import Data.Functor.Identity import Juvix.Compiler.Core.Data.BinderList (BinderList) import Juvix.Compiler.Core.Info qualified as Info import Juvix.Compiler.Core.Language import Po...
57563e9038ad2ae7dd4aed62c74873b54d8fc5509fb1ac527b4920f6ad509199
erlangonrails/devdb
idholder.erl
2007 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing,...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/idholder.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2007 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : idholder.erl 953 2010 - 08 - 03 13:52:39Z $ -module(idholder). -author(''). -vsn(...
e80f726c091126424d6d71189133b1b4fe053b8198f891215bb87ef6e3094b07
re-ops/re-cipes
nginx.clj
(ns re-cipes.docker.nginx "Dockerized nginx revese proxy support" (:require [re-cipes.docker.server] [re-cog.resources.service :refer (on-boot)] [re-cog.resources.openssl :refer (generate-cert)] [re-cog.facts.datalog :refer (fqdn)] [re-cog.common.recipe :refer (require-recipe)] [re-cog.resources.f...
null
https://raw.githubusercontent.com/re-ops/re-cipes/183bdb637e54df1c6f20e8d529132e0c004e8ead/src/re_cipes/docker/nginx.clj
clojure
(ns re-cipes.docker.nginx "Dockerized nginx revese proxy support" (:require [re-cipes.docker.server] [re-cog.resources.service :refer (on-boot)] [re-cog.resources.openssl :refer (generate-cert)] [re-cog.facts.datalog :refer (fqdn)] [re-cog.common.recipe :refer (require-recipe)] [re-cog.resources.f...
27c267f35efe2f75235ff6912a02bff323b2e9e356676af44f7a4534418a4d86
heraldry/heraldicon
pale.cljs
(ns heraldicon.heraldry.ordinary.type.pale (:require [clojure.string :as str] [heraldicon.context :as c] [heraldicon.heraldry.cottising :as cottising] [heraldicon.heraldry.field.environment :as environment] [heraldicon.heraldry.line.core :as line] [heraldicon.heraldry.option.position :as position] ...
null
https://raw.githubusercontent.com/heraldry/heraldicon/54e003614cf2c14cda496ef36358059ba78275b0/src/heraldicon/heraldry/ordinary/type/pale.cljs
clojure
(ns heraldicon.heraldry.ordinary.type.pale (:require [clojure.string :as str] [heraldicon.context :as c] [heraldicon.heraldry.cottising :as cottising] [heraldicon.heraldry.field.environment :as environment] [heraldicon.heraldry.line.core :as line] [heraldicon.heraldry.option.position :as position] ...
770416348c2788b49abd5e507becb3b368b740a68fe7f1b7ae67469e77c41060
zcaudate/hara
copy.clj
(ns hara.module.base.copy (:require [hara.function.base.invoke :refer [definvoke]] [hara.module.base.link :as link])) (defn- select-sym [select obj] (cond (symbol? obj) obj (sequential? obj) (select obj) :else (throw (ex-info "Invalid input." {:input obj}))))...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/module/base/copy.clj
clojure
#'hara.module-test/ifl
(ns hara.module.base.copy (:require [hara.function.base.invoke :refer [definvoke]] [hara.module.base.link :as link])) (defn- select-sym [select obj] (cond (symbol? obj) obj (sequential? obj) (select obj) :else (throw (ex-info "Invalid input." {:input obj}))))...
5da7c273430cda48fe18444d936e9798e76c0f9ceb43261656d88a85feb6c1ca
rabbitmq/ra
ra_machine_ets_SUITE.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . %% -module(ra_machine_ets_SUITE). -compile(export_al...
null
https://raw.githubusercontent.com/rabbitmq/ra/72439a5c25f6cf9e8d2a26b21fe456f94df516d4/test/ra_machine_ets_SUITE.erl
erlang
=================================================================== Common Test callbacks =================================================================== =================================================================== Test cases =================================================================== Utility
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . -module(ra_machine_ets_SUITE). -compile(export_all). -...
fefdde3d612345e5340d4e15178e406f20bd51721cd24dda9cb7d4ef9a5f980b
yetanalytics/flint
expr.cljc
(ns com.yetanalytics.flint.format.expr (:require [clojure.string :as cstr] [com.yetanalytics.flint.format :as f] [com.yetanalytics.flint.format.axiom])) ;; NOTE: Any deps that call this namespace should also call the format.where ;; ns, to properly format EXISTS and NOT EXISTS. ;; format.wher...
null
https://raw.githubusercontent.com/yetanalytics/flint/461e06f1ac90fc9f6c5ae2e2433d67677583dbe9/src/main/com/yetanalytics/flint/format/expr.cljc
clojure
NOTE: Any deps that call this namespace should also call the format.where ns, to properly format EXISTS and NOT EXISTS. format.where cannot directly be called here since it would cause a cyclic dependency. Otherwise will be removed below Function names with unique hyphen rules Hyphenate and convert `pred?` to `i...
(ns com.yetanalytics.flint.format.expr (:require [clojure.string :as cstr] [com.yetanalytics.flint.format :as f] [com.yetanalytics.flint.format.axiom])) (defn- elist-op? [op] (#{'in 'not-in} op)) (defn- infix-op? [op] (#{'= 'not= '< '> '<= '>= 'and 'or '+ '- '* '/} op)) (defn- unar...
29adf12caa72b3cb76394662b8cd7bceed5a11763bd058605f6ce0ec697473b1
v-kolesnikov/sicp
2_26.clj
(ns sicp.chapter02.2-26) (def x (list 1 2 3)) (def y (list 4 5 6))
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/src/sicp/chapter02/2_26.clj
clojure
(ns sicp.chapter02.2-26) (def x (list 1 2 3)) (def y (list 4 5 6))
c066a2a948b17fbe70fcb91094a392749d87e3d57a150d2acc9824387a661b07
toyokumo/tarayo
send_test.clj
(ns tarayo.integration.send-test (:require [camel-snake-kebab.core :as csk] [clojure.data.json :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.test :as t] [org.httpkit.client :as http] [tarayo.core :as core] [tarayo.test-helper :as h]) (:import java.util.Calendar)) (...
null
https://raw.githubusercontent.com/toyokumo/tarayo/f9b10b85b7bc1a188d808c3955e258916cd0b38a/integration/test/tarayo/integration/send_test.clj
clojure
NOTE: mailhog contains blank part NOTE: mailhog contains blank part
(ns tarayo.integration.send-test (:require [camel-snake-kebab.core :as csk] [clojure.data.json :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.test :as t] [org.httpkit.client :as http] [tarayo.core :as core] [tarayo.test-helper :as h]) (:import java.util.Calendar)) (...
25eb04ee9b37e0ffb616a7260d2371c0987b9a9d8346a1f6446b7a12cbb26359
nuttycom/aftok
AuctionSpec.hs
module Aftok.AuctionSpec ( main, spec, ) where import Aftok.Auction import Aftok.Generators import Aftok.Types import Bippy.Test.Types (arbitrarySatoshi) import Bippy.Types (Satoshi (..)) import Control.Lens import Data.Hourglass import Data.List ((!!)) import Data.Thyme.Clock () import qualified Data.UUID.V4 ...
null
https://raw.githubusercontent.com/nuttycom/aftok/58feefe675cea908cf10619cc88ca4770152e82e/test/Aftok/AuctionSpec.hs
haskell
module Aftok.AuctionSpec ( main, spec, ) where import Aftok.Auction import Aftok.Generators import Aftok.Types import Bippy.Test.Types (arbitrarySatoshi) import Bippy.Types (Satoshi (..)) import Control.Lens import Data.Hourglass import Data.List ((!!)) import Data.Thyme.Clock () import qualified Data.UUID.V4 ...
30a903e37bf38aa2846226e0b100e4baa700cb8b9177ffcb92a79aa956fe9e59
nvim-treesitter/nvim-treesitter
locals.scm
See this issue [ 1 ] for support for " lazy scoping " which is somewhat needed for Tiger semantics ( e.g : one can call a function before it has been defined ; top-to-bottom). ; [ 1 ] : -sitter/tree-sitter/issues/918 ; Scopes {{{ [ (for_expression) (let_expression) (function_declaration) ] @scope ; }}} ; Def...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/dc23e86e47d1005b192969db86d08ce1570a5312/queries/tiger/locals.scm
scheme
top-to-bottom). Scopes {{{ }}} Definitions {{{ }}} References {{{ }}}
See this issue [ 1 ] for support for " lazy scoping " which is somewhat needed for Tiger semantics ( e.g : one can call a function before it has been defined [ 1 ] : -sitter/tree-sitter/issues/918 [ (for_expression) (let_expression) (function_declaration) ] @scope (type_declaration name: (identifier) @defi...
5a5a1fe5eb15db952e02a0eafc8ed70c57a1a0b3aa9cfe92963658e89e6ff384
exoscale/clojure-kubernetes-client
v1beta1_replica_set_status.clj
(ns clojure-kubernetes-client.specs.v1beta1-replica-set-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1beta1-replica-set-condition :refer :all] ) (:import (java.io File))) (declare v1beta1-replica-set-status-data v1b...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_replica_set_status.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-replica-set-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1beta1-replica-set-condition :refer :all] ) (:import (java.io File))) (declare v1beta1-replica-set-status-data v1b...
e7f851325d2c61d46b9b29b42fceb2e601b7e208ab9018da2390b8d6d98fa7fa
RefactoringTools/HaRe
Bare.hs
main = putStrLn "hello"
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Layout/Bare.hs
haskell
main = putStrLn "hello"
6148ebfd4e7c74123b89f9cf3d96cb87aa63fe92f65533da623cbf121212f044
grin-compiler/grin
Result.hs
# LANGUAGE LambdaCase , RecordWildCards , TemplateHaskell , GeneralizedNewtypeDeriving , TypeFamilies , DeriveFunctor , ViewPatterns # module AbstractInterpretation.EffectTracking.Result where import Data.Int import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map ...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/AbstractInterpretation/EffectTracking/Result.hs
haskell
# LANGUAGE LambdaCase , RecordWildCards , TemplateHaskell , GeneralizedNewtypeDeriving , TypeFamilies , DeriveFunctor , ViewPatterns # module AbstractInterpretation.EffectTracking.Result where import Data.Int import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map ...
2ed9aa7a32672523a3240b638a210d55942dbdb6b5c6cc118775069e5b5bd8ff
bobatkey/CS316-2022
Week07Solutions.hs
# LANGUAGE InstanceSigs # # LANGUAGE RebindableSyntax # # OPTIONS_GHC -fwarn - incomplete - patterns # module Week07Solutions where import Prelude hiding ( Monad (..) , Applicative (..) , mapM , mapM_ , (<$>)) import Week07 hiding ...
null
https://raw.githubusercontent.com/bobatkey/CS316-2022/27fede2c36c48a28ffd7b49b753d11ba55fd543e/lecture-notes/Week07Solutions.hs
haskell
---------------------------------------------------------------------------- TUTORIAL QUESTIONS ---------------------------------------------------------------------------- To do this, we modify the 'State' newtype, to change the 'Int's to 'Double's. I have ad...
# LANGUAGE InstanceSigs # # LANGUAGE RebindableSyntax # # OPTIONS_GHC -fwarn - incomplete - patterns # module Week07Solutions where import Prelude hiding ( Monad (..) , Applicative (..) , mapM , mapM_ , (<$>)) import Week07 hiding ...
b10e6a2b1dcfdb9ff2cde16b53c1a70626281da37691e98edbf46f6d5748888d
project-oak/hafnium-verification
objcCategory_decl.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/clang/objcCategory_decl.mli
ocaml
* In this module an ObjC category declaration or implementation is processed. The category * is saved in the tenv as a struct with the corresponding fields and methods , and the class it belongs to
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
0bda5de52e9fe47d3b1eb4602a6b4f7d2f7eac048c45cda3ba4af7b3c9cacd47
AbstractMachinesLab/caramel
mocaml.mli
An instance of load path , environment cache & btype unification log type typer_state val new_state : unit -> typer_state val with_state : typer_state -> (unit -> 'a) -> 'a val is_current_state : typer_state -> bool (* Build settings *) val setup_config : Mconfig.t -> unit (* Replace Outcome printer *) val defau...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/kernel/mocaml.mli
ocaml
Build settings Replace Outcome printer Clear caches, remove all items Flush caches, remove outdated items
An instance of load path , environment cache & btype unification log type typer_state val new_state : unit -> typer_state val with_state : typer_state -> (unit -> 'a) -> 'a val is_current_state : typer_state -> bool val setup_config : Mconfig.t -> unit val default_printer : Format.formatter -> Extend_protocol....
08a9884242b95e8bfa6937a73f4e382c5eede225dd3e048fde6f103f05af785d
PaulBone/ast2wasm
Util.hs
module Util where listMaybeToList :: [Maybe a] -> [a] listMaybeToList [] = [] listMaybeToList (Nothing:xs) = listMaybeToList xs listMaybeToList (Just x:xs) = x:(listMaybeToList xs)
null
https://raw.githubusercontent.com/PaulBone/ast2wasm/cbfc44c5078fe352020aeb37cdedf99d72128557/Util.hs
haskell
module Util where listMaybeToList :: [Maybe a] -> [a] listMaybeToList [] = [] listMaybeToList (Nothing:xs) = listMaybeToList xs listMaybeToList (Just x:xs) = x:(listMaybeToList xs)
bf736bb25dcb7b515e378a3435e339e6433d66d234539db494b6c7d38c48eb0f
donaldsonjw/bigloo
uvtypes.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / api / libuv / src / Llib / uvtypes.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/api/libuv/src/Llib/uvtypes.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / api / libuv / src / Llib / uvtypes.scm * / * Author : * / * Creation : Tue May 6 11:55:29 2014 * / * Last change : Fri Feb 6 10:43:27 2015 ( serrano ) * / * ...
efd1f94182ec8548923a11534e6602bb9314ba353feea7bb395f8f793e968512
takikawa/racket-ppa
file-port.rkt
#lang racket/base (require "../common/check.rkt" "../host/thread.rkt" "../host/rktio.rkt" "../host/error.rkt" "../path/path.rkt" "../file/parameter.rkt" "../file/host.rkt" "../file/error.rkt" "../file/permissions.rkt" "../format/main.rkt" ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/src/io/port/file-port.rkt
racket
#lang racket/base (require "../common/check.rkt" "../host/thread.rkt" "../host/rktio.rkt" "../host/error.rkt" "../path/path.rkt" "../file/parameter.rkt" "../file/host.rkt" "../file/error.rkt" "../file/permissions.rkt" "../format/main.rkt" ...
9bd1725fda1662eac4e879271deb15cd27b96b804831d8cac0083fc52a17df8b
quchen/generative-art
Arbitrary.hs
# OPTIONS_GHC -fno - warn - orphans # module Test.Arbitrary ( Gaussian(..) ) where import Data.Coerce import Geometry import Geometry.Coordinates.Hexagonal as Hex import Test.Tasty.QuickCheck instance Arbitrary Vec2 where arbitrary = Vec2 <$> arbitrary <*> arbitrary shrink (Vec2 x y) = [ Vec2 x' y'...
null
https://raw.githubusercontent.com/quchen/generative-art/47877f7a3c1e7fc272b4c70b4ac1faf1831ed6d6/test/testsuite/Test/Arbitrary.hs
haskell
Angle 0 is as simple as it gets For non-normalized angles, normalize them | Non-singular transformation | Modifier for 'Vec2' whose 'Arbitrary' instance is Gaussian (normal).
# OPTIONS_GHC -fno - warn - orphans # module Test.Arbitrary ( Gaussian(..) ) where import Data.Coerce import Geometry import Geometry.Coordinates.Hexagonal as Hex import Test.Tasty.QuickCheck instance Arbitrary Vec2 where arbitrary = Vec2 <$> arbitrary <*> arbitrary shrink (Vec2 x y) = [ Vec2 x' y'...
30155fae2209aa122a54fcaa34d32b33ad7511cafb4b18dc856d6a083ab9586e
techascent/tech.viz
docker_vegan.clj
(ns tech.viz.docker-vegan (:require [tech.io :as io] [tech.resource :as resource] [tech.io.temp-file :as temp-file] [clojure.data.json :as json] [clojure.java.shell :as sh]) (:import [java.util UUID] [java.nio.file Paths] [java.io File] ...
null
https://raw.githubusercontent.com/techascent/tech.viz/99361e040766add85d1aed0cb4bcb742baa37de7/src/tech/viz/docker_vegan.clj
clojure
(ns tech.viz.docker-vegan (:require [tech.io :as io] [tech.resource :as resource] [tech.io.temp-file :as temp-file] [clojure.data.json :as json] [clojure.java.shell :as sh]) (:import [java.util UUID] [java.nio.file Paths] [java.io File] ...
a9fab5dcd2465c7a9292070c0f78e310037d1be2f39a98823db415819bbb8dcd
ANSSI-FR/xsvgen
file_out.mli
(***********************************************************************) (* *) (* XML Schema Validator Generator *) (* *) ( SafeRive...
null
https://raw.githubusercontent.com/ANSSI-FR/xsvgen/3c2b5e43e7adcb856a3a2aa01bfc039bf3c6459b/lib/file_out.mli
ocaml
********************************************************************* XML Schema Validator Generator ...
( SafeRiver ) Copyright 2012 , ANSSI and SafeRiver . $ I d : file_out.mli 1501 2012 - 05 - 02 09:42:38Z maarek $ type extension = | ML | Sh | Log type t type prepared val of_string : bool -> string -> t val prepare : t -> pr...
6739f5c2191facac8bcce31c0f8a7da80a3a66da4b8b143ce8daaa246523622d
bennn/dissertation
ymd.rkt
#lang racket/base Core : Year - Month - Day ;; Basic conversions (provide;/contract ymd->jdn ; (-> YMD? exact-integer?)] ( - > exact - integer ? YMD ? ) ] ( - > exact - integer ? ( integer - in 0 6 ) ) ] ( - > exact - integer ? ( integer - in 1 7 ) ) ] ( - > YMD ? ( integer - in 1 366 ) ) ] ( -...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/gregor/untyped/ymd.rkt
racket
Basic conversions /contract (-> YMD? exact-integer?)] (-> exact-integer? boolean?)] (-> exact-integer? (or/c 52 53))] day-of-month/c ; any/c ----------------------------------------------------------------------------- ============================================================================= -- from `math...
#lang racket/base Core : Year - Month - Day ( - > exact - integer ? YMD ? ) ] ( - > exact - integer ? ( integer - in 0 6 ) ) ] ( - > exact - integer ? ( integer - in 1 7 ) ) ] ( - > YMD ? ( integer - in 1 366 ) ) ] ( - > YMD ? ( integer - in 1 4 ) ) ] ( - > YMD ? exact - integer ? YMD ? ) ] ( - > YM...
67938b1a62d3b679ec2441ce0f95a5c1f715e28238d42bdb2cd6afc0f2b406ce
seckcoder/course-compiler
s0_25.rkt
(let ([a 1]) ; a -> 0 b - > 1 f - > 2 (let ([e (+ a b)]) ; e -> 0 (let ([d f]) ; d -> 0 d)))))
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/s0_25.rkt
racket
a -> 0 e -> 0 d -> 0
b - > 1 f - > 2 d)))))
1f16fe580ad982601b604be920b6c681cfaff59fc4fec43c3851d970c059eee0
edma2/clojure-msgpack
clojure_extensions.clj
(ns msgpack.clojure-extensions "Extended types for Clojure-specific types" (:require [msgpack.core :as msg] [msgpack.macros :refer [extend-msgpack]])) (defn- keyword->str "Convert keyword to string with namespace preserved. Example: :A/A => \"A/A\"" [k] (subs (str k) 1)) (extend-msgpack cloju...
null
https://raw.githubusercontent.com/edma2/clojure-msgpack/a4bca2cf064a87d9c4a564c634c6ebb65578dad5/src/msgpack/clojure_extensions.clj
clojure
(ns msgpack.clojure-extensions "Extended types for Clojure-specific types" (:require [msgpack.core :as msg] [msgpack.macros :refer [extend-msgpack]])) (defn- keyword->str "Convert keyword to string with namespace preserved. Example: :A/A => \"A/A\"" [k] (subs (str k) 1)) (extend-msgpack cloju...
3052f0f9c29d5b77333a1590d627cb8c3834d385945ab2ab8e4a855bb64ed88c
exercism/erlang
pascals_triangle_tests.erl
Generated with ' v0.2.0 ' %% Revision 1 of the exercises generator was used %% -specifications/raw/42dd0cea20498fd544b152c4e2c0a419bb7e266a/exercises/pascals-triangle/canonical-data.json %% This file is automatically generated from the exercises canonical data. -module(pascals_triangle_tests). -include_lib("erl_ex...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/pascals-triangle/test/pascals_triangle_tests.erl
erlang
Revision 1 of the exercises generator was used -specifications/raw/42dd0cea20498fd544b152c4e2c0a419bb7e266a/exercises/pascals-triangle/canonical-data.json This file is automatically generated from the exercises canonical data.
Generated with ' v0.2.0 ' -module(pascals_triangle_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). '1_zero_rows_test_'() -> {"zero rows", ?_assertMatch([], pascals_triangle:rows(0))}. '2_single_row_test_'() -> {"single row", ?_assertMatch([...
c1072394afd87e37f1dde22d7e9bd983cae703b8dfc5bc999944eda5dfa09bca
jacius/lispbuilder
active.lisp
(in-package #:sdl-examples) (defun display-test (text pos &key (font sdl:*default-font*) (surface sdl:*default-display*) (color sdl:*default-color*)) (let ((text (if (listp text) text (list text))) (between 2)) (loop for line in text for i = 0 then (incf i) do (sdl:draw-strin...
null
https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl/examples/active.lisp
lisp
(in-package #:sdl-examples) (defun display-test (text pos &key (font sdl:*default-font*) (surface sdl:*default-display*) (color sdl:*default-color*)) (let ((text (if (listp text) text (list text))) (between 2)) (loop for line in text for i = 0 then (incf i) do (sdl:draw-strin...
b0f33711e29dc8a4762fea6f3c50b6358bc572547d8f03f911223e03a795fcb0
vasilisp/inez
smtlib_printer.ml
open Core.Std open Terminology open Core.Int_replace_polymorphic_compare module Make (I : Id.Accessors) = struct open Logic type formula = I.c A.t Formula.t let hashable_idbox = { Hashtbl.Hashable. hash = Hashtbl.hash; compare = Id.Box.compare I.compare_c; sexp_of_t = Id.Box.sexp_of_t I.sexp_o...
null
https://raw.githubusercontent.com/vasilisp/inez/3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1/frontend/smtlib_printer.ml
ocaml
open Core.Std open Terminology open Core.Int_replace_polymorphic_compare module Make (I : Id.Accessors) = struct open Logic type formula = I.c A.t Formula.t let hashable_idbox = { Hashtbl.Hashable. hash = Hashtbl.hash; compare = Id.Box.compare I.compare_c; sexp_of_t = Id.Box.sexp_of_t I.sexp_o...
5b71fd60ddb83bc59f57dcf6e71773671aafeebb2a3c558281533580c89932f2
hyperfiddle/electric
trace4.cljc
(ns dustin.trace4 (:require [minitest :refer [tests]] [hyperfiddle.incremental :as I :refer [incr?]])) (declare directive! replay! compile-incr) (deftype Flow [ast inbound-edges registry] ILookup (get [o k] (get registry k))) (defn Flow [ast inbound-edges] (->Flow ast (to-weakmap inbound-edges) ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/trace/trace4.cljc
clojure
concrete monad and retain symbolic names server shared client/server connected flows not interesting not in this flow not in this flow i depend on this and it happened shadow node names? shadowing seems to do the right thing , programmer shadowed on purpose those nodes are private shared client/server looku...
(ns dustin.trace4 (:require [minitest :refer [tests]] [hyperfiddle.incremental :as I :refer [incr?]])) (declare directive! replay! compile-incr) (deftype Flow [ast inbound-edges registry] ILookup (get [o k] (get registry k))) (defn Flow [ast inbound-edges] (->Flow ast (to-weakmap inbound-edges) ...
8e3b0f1ae9aa28b8993ee367b944a820219a6e82fd737bfa92cd59e9de01ffe8
McCLIM/McCLIM
ex2.lisp
(in-package :common-lisp-user) (defpackage :app (:use :clim :clim-lisp) (:export run-app)) (in-package :app) (define-application-frame superapp () () (:pointer-documentation t) (:panes ;; Let's add an additional pane (app :application ;; :DISPLAY-TIME specifies when this pane should be disp...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/d74542e82ecaddb3611998ce69daa33084c02e0c/Documentation/Manual/examples/ex2.lisp
lisp
Let's add an additional pane :DISPLAY-TIME specifies when this pane should be displayed in the command loop. Note that the refresh is pane-specific, not application-wide. should be stacked vertically. Let's also define commands that will act on the application. How to leave the application. Note the '-superap...
(in-package :common-lisp-user) (defpackage :app (:use :clim :clim-lisp) (:export run-app)) (in-package :app) (define-application-frame superapp () () (:pointer-documentation t) (:panes (app :application :display-time nil :height 400 :width 600) (int :interactor :hei...
fd4787d88179c766c01b2f9e27a1cac416a3f15ad782274a552d64f79e1d1792
dvanhorn/oaam
lazy-strict.rkt
#lang racket (require "data.rkt" "primitives.rkt" racket/splicing) (provide with-lazy with-strict) (define-syntax-rule (lazy-force lfσ x) (match x [(addr a) (getter lfσ a)] [v (singleton v)])) (define-syntax-rule (strict-force lfσ x) (singleton x)) (define-syntax-rule (lazy-delay ldσ a) (singleton (addr a))...
null
https://raw.githubusercontent.com/dvanhorn/oaam/79bc68ecb79fef45474a948deec1de90d255f307/code/lazy-strict.rkt
racket
#lang racket (require "data.rkt" "primitives.rkt" racket/splicing) (provide with-lazy with-strict) (define-syntax-rule (lazy-force lfσ x) (match x [(addr a) (getter lfσ a)] [v (singleton v)])) (define-syntax-rule (strict-force lfσ x) (singleton x)) (define-syntax-rule (lazy-delay ldσ a) (singleton (addr a))...
64f7af96a0fd64b8a4685d0f227736c32a9d062879e2da4181d2ec248b281359
Liqwid-Labs/plutus-extra
Laws.hs
# LANGUAGE AllowAmbiguousTypes # | Module : Test . Tasty . . Laws Copyright : ( C ) MLabs 2021 License : Apache 2.0 Maintainer : < > Portability : GHC only Stability : Experimental Allows for automatically testing various type class laws using QuickCheck . Can be used like so : > im...
null
https://raw.githubusercontent.com/Liqwid-Labs/plutus-extra/5dd5498597716aa6844df2e11d28c695bba48c30/plutus-laws/src/Test/Tasty/Plutus/Laws.hs
haskell
* Test API ** Serialization *** Eq *** Semigroup and Monoid *** Numeric ** Your own laws *** Type and operations *** Testing Helpers
# LANGUAGE AllowAmbiguousTypes # | Module : Test . Tasty . . Laws Copyright : ( C ) MLabs 2021 License : Apache 2.0 Maintainer : < > Portability : GHC only Stability : Experimental Allows for automatically testing various type class laws using QuickCheck . Can be used like so : > im...
963bd16ae489a6de1e2a46d04fd886236704ac647479d156265704174a4957bc
reactiveml/rml
parse_ast.ml
This file was syntax.ml from Caml Light (* The abstract syntax for the language *) #open "const";; #open "location";; #open "globals";; type type_expression = { te_desc: type_expression_desc; te_loc: location } and type_expression_desc = Ztypevar of string | Ztypearrow of type_expression * type_express...
null
https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/patch/compiler/parsing/parse_ast.ml
ocaml
The abstract syntax for the language
This file was syntax.ml from Caml Light #open "const";; #open "location";; #open "globals";; type type_expression = { te_desc: type_expression_desc; te_loc: location } and type_expression_desc = Ztypevar of string | Ztypearrow of type_expression * type_expression | Ztypetuple of type_expression list ...