_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
9de40bc1fbb32787550530e1d060c8bb3d1427b1f351d15b61bdec7a48fb8077
ekmett/parsnip
Parser.hs
{-# language CPP #-} # language PatternSynonyms # {-# language OverloadedStrings #-} # language MagicHash # {-# language TypeFamilies #-} # language UnboxedSums # # language StandaloneDeriving # # language UnboxedTuples # # language ImplicitParams # {-# language ConstraintKinds #-} # language LambdaCase # {-# language ...
null
https://raw.githubusercontent.com/ekmett/parsnip/f2d2273b81177b6e5732b2f963f856efeae7a9ed/src/Text/Parsnip/Internal/Parser.hs
haskell
# language CPP # # language OverloadedStrings # # language TypeFamilies # # language ConstraintKinds # # language ScopedTypeVariables # # language ForeignFunctionInterface # # language UnliftedFFITypes # # language UnliftedNewtypes # # options_ghc -O2 # * Unsafe literals * Guts user error, don't recover # complete G...
# language PatternSynonyms # # language MagicHash # # language UnboxedSums # # language StandaloneDeriving # # language UnboxedTuples # # language ImplicitParams # # language LambdaCase # # language RankNTypes # # language BangPatterns # # language KindSignatures # # language TypeApplications # # language AllowAmbiguou...
f5d738a6288bcee1a1d17ea1256b537226d84bd650f6fc04f155f5d271b6797c
GNOME/aisleriot
api.scm
; AisleRiot API Copyright ( C ) 1998 , 2003 < > ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ; (at your option) any later version. ; ; This progra...
null
https://raw.githubusercontent.com/GNOME/aisleriot/5b04e58ba5f8df8223a3830d2c61325527d52237/games/api.scm
scheme
AisleRiot API This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU...
Copyright ( C ) 1998 , 2003 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define-module (aisleriot api)) (use-modules (aisleriot interface) (ice-...
aa3ae47674b0b9fa76917c50a76227dd5075aaa50e112df352dbb58ccdec46f1
Clozure/ccl-tests
compile-file-test-file-4.lsp
(in-package "CL-TEST") (defun compile-file-test-fun.4 () !foo)
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/compile-file-test-file-4.lsp
lisp
(in-package "CL-TEST") (defun compile-file-test-fun.4 () !foo)
0b904d8caeeeed10069f6272523d674f309940efb2e7b8fb23c1437d0737807c
well-typed-lightbulbs/rpi
pwm.ml
type mode = Serial | Analog type pin_nr = Pin12 | Pin13 | Pin18 | Pin19 | Pin40 | Pin41 | Pin45 let to_gpio = function | Pin12 -> Gpio.P12 | Pin13 -> Gpio.P13 | Pin18 -> Gpio.P18 | Pin19 -> Gpio.P19 | Pin40 -> Gpio.P40 | Pin41 -> Gpio.P41 | Pin45 -> Gpio.P45 let assigned_instance = function | Pin12 | ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/rpi/9bedf5735277c66009dffb0c70489ca0f88d84fc/src/peripherals/pwm.ml
ocaml
? -> GPIO PWM -> CLOCK CLOCK -> PWM
type mode = Serial | Analog type pin_nr = Pin12 | Pin13 | Pin18 | Pin19 | Pin40 | Pin41 | Pin45 let to_gpio = function | Pin12 -> Gpio.P12 | Pin13 -> Gpio.P13 | Pin18 -> Gpio.P18 | Pin19 -> Gpio.P19 | Pin40 -> Gpio.P40 | Pin41 -> Gpio.P41 | Pin45 -> Gpio.P45 let assigned_instance = function | Pin12 | ...
262cca0c767c4cc8d7413d227435694f98424a6ea783ee7c41d451dada6ae231
mransan/raft-udp
asset_pb.ml
[@@@ocaml.warning "-27-30-39"] type asset = { a_url : string; a_hash : string; } and asset_mutable = { mutable a_url : string; mutable a_hash : string; } type issue_asset = { ia_asset : asset; ia_issuer_addr : string; ia_sig : string; } and issue_asset_mutable = { mutable ia_asset : asset; mutable...
null
https://raw.githubusercontent.com/mransan/raft-udp/ffa307fa6d8bdaa3133f3cc66149ac7dfda5fc7c/tests/asset/asset_pb.ml
ocaml
[@@@ocaml.warning "-27-30-39"] type asset = { a_url : string; a_hash : string; } and asset_mutable = { mutable a_url : string; mutable a_hash : string; } type issue_asset = { ia_asset : asset; ia_issuer_addr : string; ia_sig : string; } and issue_asset_mutable = { mutable ia_asset : asset; mutable...
308e2b5656916f98beb28b4e8d778e7b88e5d9b6b70ad924ec27978f85c30993
ghc/packages-Cabal
setup-deadlock.test.hs
import Test.Cabal.Prelude main = setupAndCabalTest $ do skipUnless =<< hasCabalForGhc setup_build ["--enable-tests"] fails $ setup "test" []
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/TestSuiteTests/LibV09/setup-deadlock.test.hs
haskell
import Test.Cabal.Prelude main = setupAndCabalTest $ do skipUnless =<< hasCabalForGhc setup_build ["--enable-tests"] fails $ setup "test" []
c2b0290ee23e131825c37e17151fd80739b0125dbaca6cde0041bda19502ce10
HaskellEmbedded/data-stm32
MCU.hs
module {{ modns }} ( MCU(..) , STM32DevName(..) , STM32Config(..) , NamedMCU , matchMCU , testMatch , mcuNameParser , mcuConfigParser ) where import System.Environment import System.FilePath.Posix import qualified Data.Map as M import qualified Data.ByteString.Char8 as B import Data.Serialize imp...
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/templates/STM32/MCU.hs
haskell
module {{ modns }} ( MCU(..) , STM32DevName(..) , STM32Config(..) , NamedMCU , matchMCU , testMatch , mcuNameParser , mcuConfigParser ) where import System.Environment import System.FilePath.Posix import qualified Data.Map as M import qualified Data.ByteString.Char8 as B import Data.Serialize imp...
778567c44f1bca36583b4d41539f36993e2ada773e7d7a660201bd41cccfb8e9
jwiegley/notes
Forget.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE ImpredicativeTypes #-} module Forget where import Control.Monad.IO.Class data Foo = Foo (forall m. MonadIO m => Int -> m Int) instance Show Foo where show _ = "Foo" data FooCPS = FooCPS (forall m r. (MonadIO m => Int -> m Int, (MonadIO m => Int -> m Int) -> r)) ins...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Forget.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE ImpredicativeTypes # print $ Foo foo
module Forget where import Control.Monad.IO.Class data Foo = Foo (forall m. MonadIO m => Int -> m Int) instance Show Foo where show _ = "Foo" data FooCPS = FooCPS (forall m r. (MonadIO m => Int -> m Int, (MonadIO m => Int -> m Int) -> r)) instance Show FooCPS where show _ = "FooCPS" data MyMonad a = ...
3e946d0b1c7724ef7f2bce87fcf248d96264eb378de1b263bab5fc83948f9e2e
tfeb/tfeb-lisp-toys
test-fluids.lisp
;;;; Fluid tests ;;; #+org.tfeb.tools.require-module (org.tfeb.tools.require-module:needs (:org.tfeb.toys.fluids :compile t) #+Quicklisp ("parachute" :fallback ql:quickload)) (defpackage :org.tfeb.toys.fluids/test (:use :cl :org.tfeb.toys.fluids :org.shirakumo.parachute)) (in-package :org.tfeb.toys.fluids/tes...
null
https://raw.githubusercontent.com/tfeb/tfeb-lisp-toys/e9070b774c9c285e7beb364b73acfd03b9707fdc/test/test-fluids.lisp
lisp
Fluid tests check bindery
#+org.tfeb.tools.require-module (org.tfeb.tools.require-module:needs (:org.tfeb.toys.fluids :compile t) #+Quicklisp ("parachute" :fallback ql:quickload)) (defpackage :org.tfeb.toys.fluids/test (:use :cl :org.tfeb.toys.fluids :org.shirakumo.parachute)) (in-package :org.tfeb.toys.fluids/test) (define-test "org...
93e4a93b3e55947a71b73fcf7fc2d9e0b1b6b68bfdccaa1828e45acc5c05dd98
ocaml-sf/learn-ocaml-corpus
clause_conj_forget_x.ml
(* ------------------------------------------------------------------------------ *) (* Building formulae. *) let var x = FVar x let falsity = FConst false let truth = FConst true let const sense = if sense then truth else falsity (* [FConst sense] would work too, but would allocate memory *) let neg ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/sat/wrong/clause_conj_forget_x.ml
ocaml
------------------------------------------------------------------------------ Building formulae. [FConst sense] would work too, but would allocate memory ------------------------------------------------------------------------------ Evaluating formulae. We assume [n < Sys.word_size - 1]. -----------------...
let var x = FVar x let falsity = FConst false let truth = FConst true let const sense = if sense then truth else falsity let neg f = match f with | FConst sense -> const (not sense) | FNeg f -> f | _ -> FNeg f let conn sense f1 f2 = match f1, f2 with | FConst sense', f | f...
5c887c2160c70eb7dd25f79f5e70e3b00ddbfbc47d7512530b31514689e6cfa5
bennn/dissertation
jfif.rkt
#lang racket ;; racket-jpeg Copyright ( C ) 2014 < wingo at pobox dot com > ;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at ;; your option) any l...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/jpeg/d-u/jfif.rkt
racket
racket-jpeg This library is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR...
#lang racket Copyright ( C ) 2014 < wingo at pobox dot com > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Readers and writers for the JPEG File Interchange Format ( JFIF ) (require "../base/untyped.rkt" (only-in "...
7a4116f3eb80e94fd0b93b1debd3277455f44a73f60c7ea03e23b346c0f7cfc0
fission-codes/fission
Types.hs
module Fission.Web.Server.Types ( runServer , Server (..) , module Fission.Web.Server.Config.Types ) where import Control.Monad.Catch hiding (finally) import Control.Monad.Except import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.N...
null
https://raw.githubusercontent.com/fission-codes/fission/e5a5d6f30fb4451918efba5b72787cbc7632aecf/fission-web-server/library/Fission/Web/Server/Types.hs
haskell
| The top-level app type Partial, but checked above ^ Hosted zone map ^ Accumulator ^ Focus
module Fission.Web.Server.Types ( runServer , Server (..) , module Fission.Web.Server.Config.Types ) where import Control.Monad.Catch hiding (finally) import Control.Monad.Except import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.N...
2080886c662b0b9751d244fcf0107e891e7c310fef72251f2d0bafa0d200593e
fetburner/Coq2SML
lib.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/library/lib.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Module Type or just Module None f...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Libnam...
1d791cc21848b7e5ec49d86d81cd52120010a5c6cbe835d17ea713a31821d1ea
disco-framework/disco
barkeeper.erl
%% ------------------------------------------------------------------- %% @doc Generates the concrete input strings for the workers. %% The defined process opens a port for communicating with the barkeeper %% executable (location configurable in config file).<br/> %% The barkeeper generates the worker input from a prob...
null
https://raw.githubusercontent.com/disco-framework/disco/f55f35d46d43ef5f4fa1466bdf8d662f5f01f30f/src/barkeeper.erl
erlang
------------------------------------------------------------------- @doc Generates the concrete input strings for the workers. The defined process opens a port for communicating with the barkeeper executable (location configurable in config file).<br/> The barkeeper generates the worker input from a problem specif...
-module(barkeeper). -export([ start_link/1, ask/2 ]). -export([ init/1 ]). -define(REG_NAME, barkeeper). start_link(ExtProg) -> Pid = spawn_link(fun() -> init(ExtProg) end), {ok, Pid}. -spec ask(string(), string()) -> {error, _} | {ok, WorkerInput :: [string()]...
3af3e9052089f6017e5f804f6cc50d10a92da9c017ff2458d71c46d2b23bab47
melange-re/melange
bytes.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/stdlib-412/stdlib_modules/bytes.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 * Byte sequence operations . A byte sequence is a mutable data structure that contains a fixe...
09b6e244840b135a3ee5373a3754ecaaf2fbdd4fb6385fb09c6a19f5b3a65ceb
ivanreese/diminished-fifth
assets.cljs
(ns app.assets (:require [app.util :refer [snoop-logg]] [app.state :refer [audio-context buffers]] [ajax.core :refer [GET]] [cljs.core.async :as async :refer [<! >! chan close!]]) (:require-macros [cljs.core.async.macros :refer [go]])) says I should just use put ! instead of...
null
https://raw.githubusercontent.com/ivanreese/diminished-fifth/db7f7c781809b7b2733301cdc5241b17a6fee178/src/app/assets.cljs
clojure
PUBLIC ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns app.assets (:require [app.util :refer [snoop-logg]] [app.state :refer [audio-context buffers]] [ajax.core :refer [GET]] [cljs.core.async :as async :refer [<! >! chan close!]]) (:require-macros [cljs.core.async.macros :refer [go]])) says I should just use put ! instead of...
d70a30abd8a4d6516f923eede60c9b358149a8cc7b3fa2c8c20a468880790f59
mbenke/jnp3-haskell
Lens2.hs
module Lens2 where import Atom data Lens a b = Lens { view :: a -> b , set :: b -> a -> a , over :: (b -> b) -> (a -> a) } mkLens :: (a -> b) -> (b -> a -> a) -> Lens a b mkLens view set = Lens view set over where over f a = set (f (view a)) a point :: ...
null
https://raw.githubusercontent.com/mbenke/jnp3-haskell/712c5a6a24ad0efb45aee2b48e66bb91d949848e/Code/lens/Lens2.hs
haskell
module Lens2 where import Atom data Lens a b = Lens { view :: a -> b , set :: b -> a -> a , over :: (b -> b) -> (a -> a) } mkLens :: (a -> b) -> (b -> a -> a) -> Lens a b mkLens view set = Lens view set over where over f a = set (f (view a)) a point :: ...
5e4bf8928d7fa6c5651d5dfb68cccc271d5622e656ac94c4500d184ea394af53
kiselgra/c-mera
pretty.lisp
(in-package :cm-c++) ;;; ============================= ;;; cm-c pretty printing override ;;; ============================= ;; override function declaration ;; - empty parameter list from "(void)" to "()" ;; - move parameter parentheses to proxy-node ;; - emit ';' if body is set-node -> pure-virtual (with-pp (with-...
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/src/cxx/pretty.lisp
lisp
============================= cm-c pretty printing override ============================= override function declaration - empty parameter list from "(void)" to "()" - move parameter parentheses to proxy-node - emit ';' if body is set-node -> pure-virtual Begin new line and add proxy-nodes. do nothing Remove ...
(in-package :cm-c++) (with-pp (with-proxynodes (parameters parameter) (defprettymethod :before function-definition (make-proxy parameter parameters) (cond ((eql (top-info) 'template) (format stream "~&")) (t (format stream "~&~%"))) (push-info 'function-definition) (format stream "~a"...
4900b69c84a2846ce90e01ea35819d5af0c8ad4cff588d6b0125acc60f6173ab
darrenldl/stramon
stramon.ml
let command = ref [] let add_to_command x = command := x :: !command let output_path = ref "" let force_output = ref false let no_link = ref false let print_version = ref false let debug = ref false let save_raw = ref false let latest_link_name = "stramon-latest.json" let speclist = Arg.[ ("-o", Set_stri...
null
https://raw.githubusercontent.com/darrenldl/stramon/59c3ccab3d02c836ce6bef80d9c736527363bfd6/bin/stramon.ml
ocaml
let command = ref [] let add_to_command x = command := x :: !command let output_path = ref "" let force_output = ref false let no_link = ref false let print_version = ref false let debug = ref false let save_raw = ref false let latest_link_name = "stramon-latest.json" let speclist = Arg.[ ("-o", Set_stri...
12075f0f671fea163de96614c524b651495920f8aa957b7c14fdf1b440878943
polytypic/f-omega-mu
Kind.ml
open Rea open StdlibPlus (* *) include FomAST.Kind let rec resolve k = k |> keep_eq_er @@ function | `Star _ as k -> pure k | `Arrow (at', d, c) -> let+ d' = resolve d and+ c' = resolve c in `Arrow (at', d', c') | `Unk (_, v) as k -> ( UnkEnv.find_opt v >>= function | No...
null
https://raw.githubusercontent.com/polytypic/f-omega-mu/bf176d4b1dd7808399a41206876103a5192ef075/src/main/FomChecker/Kind.ml
ocaml
open Rea open StdlibPlus include FomAST.Kind let rec resolve k = k |> keep_eq_er @@ function | `Star _ as k -> pure k | `Arrow (at', d, c) -> let+ d' = resolve d and+ c' = resolve c in `Arrow (at', d', c') | `Unk (_, v) as k -> ( UnkEnv.find_opt v >>= function | None -> ...
fc87d413747beb57de59415076eda58ec04521173e337855117f1bc70c28bfb9
metabase/metabase
time_test.cljc
(ns metabase.shared.util.time-test (:require [clojure.test :refer [are deftest is testing]] [metabase.shared.util.internal.time :as internal] [metabase.shared.util.time :as shared.ut] #?@(:cljs [["moment" :as moment]] :clj [[java-time :as t]])) #?(:clj (:import java.util.Locale))) (defn- from [...
null
https://raw.githubusercontent.com/metabase/metabase/335d161f4075e8c3487e6d2cf4eb0d16209d95b4/shared/test/metabase/shared/util/time_test.cljc
clojure
Base Later that day Exactly the same date/time - the year before!
(ns metabase.shared.util.time-test (:require [clojure.test :refer [are deftest is testing]] [metabase.shared.util.internal.time :as internal] [metabase.shared.util.time :as shared.ut] #?@(:cljs [["moment" :as moment]] :clj [[java-time :as t]])) #?(:clj (:import java.util.Locale))) (defn- from [...
729a4a95a70e37750f568dd957e2c1f659213a4d397d9722b686d5b5d7e03eb2
camfort/camfort
ParserSpec.hs
module Camfort.Specification.ParserSpec (spec) where import Data.Either (isLeft) import Test.Hspec hiding (Spec) import qualified Test.Hspec as Test import Camfort.Specification.Parser (looksLikeASpec, mkParser, runParser, SpecParser) trivialParser :: SpecParser String String trivialParser = mkParser Right ["test"]...
null
https://raw.githubusercontent.com/camfort/camfort/3421e85f6fbbcaa6503a266b3fae029a09d2ff24/tests/Camfort/Specification/ParserSpec.hs
haskell
module Camfort.Specification.ParserSpec (spec) where import Data.Either (isLeft) import Test.Hspec hiding (Spec) import qualified Test.Hspec as Test import Camfort.Specification.Parser (looksLikeASpec, mkParser, runParser, SpecParser) trivialParser :: SpecParser String String trivialParser = mkParser Right ["test"]...
ca3d38f919360e2cb17f3ba2c88334a1777193a6b196d54f3341cea06f9a92f9
th0ma5w/rosettamesh
j3d.clj
(ns rosettamesh.j3d (:gen-class :name rosettamesh.j3d :methods [ #^{:static true} [toIndexedTriangleArray [Object] javax.media.j3d.IndexedTriangleArray] #^{:static true} [fromIndexedTriangleArray [javax.media.j3d.IndexedTriangleArray] Object]]) (:use rosettamesh.util)) (import '(javax.media...
null
https://raw.githubusercontent.com/th0ma5w/rosettamesh/f5cfc0e00a6bf1882e22efea2c0f00beade8df64/src/rosettamesh/j3d.clj
clojure
(ns rosettamesh.j3d (:gen-class :name rosettamesh.j3d :methods [ #^{:static true} [toIndexedTriangleArray [Object] javax.media.j3d.IndexedTriangleArray] #^{:static true} [fromIndexedTriangleArray [javax.media.j3d.IndexedTriangleArray] Object]]) (:use rosettamesh.util)) (import '(javax.media...
a98c1dfd098a5d383253fab35941ffcf2d8a02dd3e6e64126c4d25fc1332f7b9
stchang/macrotypes
fsub-tests.rkt
#lang s-exp macrotypes/examples/fsub (require "rackunit-typechecking.rkt") ;; examples from tapl ch26, bounded quantification ;; (same tests from stlc+reco+sub.rkt, but last one should not typecheck) (check-type (λ ([x : (× [a : Int])]) x) : (→ (× [a : Int]) (× [a : Int]))) (define ra (tup [a = 0])) (check-type ((λ (...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/macrotypes-test/tests/macrotypes/fsub-tests.rkt
racket
examples from tapl ch26, bounded quantification (same tests from stlc+reco+sub.rkt, but last one should not typecheck) check type constructors properly call expose make sure inst still checks args ch28 old sysf tests ------------------------------------------------------------- old syntax no longer valid true ...
#lang s-exp macrotypes/examples/fsub (require "rackunit-typechecking.rkt") (check-type (λ ([x : (× [a : Int])]) x) : (→ (× [a : Int]) (× [a : Int]))) (define ra (tup [a = 0])) (check-type ((λ ([x : (× [a : Int])]) x) ra) : (× [a : Int]) ⇒ (tup [a = 0])) (define rab (tup [a = 0][b = #t])) (check-type ((λ (...
4cd242ee5a6c6cc957ffd3f1a7a8f05b0263f92c356521658880fffa50d980a5
0xNaN/kademlia
log.erl
-module(log). -export([peer/3, peer/4]). -export([kbucket/3, kbucket/4]). -export([pid_to_field/2]). -export([contact_to_field/2]). -export([log/3]). -include("peer.hrl"). -record(kbucket, {peer, k, contacts, keylength}). peer(Peer, Fields, Message) -> peer(Peer, Fields, Message, []). peer(Peer, Fields, Message, ...
null
https://raw.githubusercontent.com/0xNaN/kademlia/c902f66986d937024422e96c2ba010b14ae01dff/apps/kademlia/src/log.erl
erlang
-module(log). -export([peer/3, peer/4]). -export([kbucket/3, kbucket/4]). -export([pid_to_field/2]). -export([contact_to_field/2]). -export([log/3]). -include("peer.hrl"). -record(kbucket, {peer, k, contacts, keylength}). peer(Peer, Fields, Message) -> peer(Peer, Fields, Message, []). peer(Peer, Fields, Message, ...
a64c9146afa2c04a90964e987b0e6b45b8a5450f607586ba0718cd993ecf211e
BranchTaken/Hemlock
rudimentsInt.ml
include RudimentsInt0 include Uns type range = Range.Uns.t let ( =:< ) = Range.Uns.( =:< ) let ( =:= ) = Range.Uns.( =:= )
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/ed397cf3294ca397024e69eb3b1ed5f1db773db6/bootstrap/src/basis/rudimentsInt.ml
ocaml
include RudimentsInt0 include Uns type range = Range.Uns.t let ( =:< ) = Range.Uns.( =:< ) let ( =:= ) = Range.Uns.( =:= )
c3f40e3ccb0974d49ae6b0b59c0fe0bc1800171c5b6a931b42a3ad315385a70f
kitlang/kit
StdSpec.hs
module Kit.Parser.StdSpec where import Control.Monad import System.Directory import System.FilePath import Test.Hspec import Test.QuickCheck import Kit.Error import Kit.Parser import Kit.Str isKitFile :: FilePath -> Bool isKitFile f = takeExtension f == ".kit" readDir :: FilePath -> IO [FilePath] readDir d = do is...
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/tests/Kit/Parser/StdSpec.hs
haskell
module Kit.Parser.StdSpec where import Control.Monad import System.Directory import System.FilePath import Test.Hspec import Test.QuickCheck import Kit.Error import Kit.Parser import Kit.Str isKitFile :: FilePath -> Bool isKitFile f = takeExtension f == ".kit" readDir :: FilePath -> IO [FilePath] readDir d = do is...
e5a5550465b15ef53da767decaf3e2dd3f39c7435d614fc79aa9a5caa551c110
dyoo/whalesong
reader.rkt
#lang s-exp syntax/module-reader #:language (lambda () 'whalesong/lang/korean)
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/korean/lang/reader.rkt
racket
#lang s-exp syntax/module-reader #:language (lambda () 'whalesong/lang/korean)
f6fc4084aada3ff1907639e0ecc27b7d0011bbe1d5a5ae15f43857fdb8dfa4f9
phadej/cabal-extras
Main.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module CabalIfaceQuery.Main (main) where import Peura import Prelude () import Control.Applicative ((<**>)) import Data.Version (showVersion) import qualified Cabal.Config as Cbl import qualified Cabal.Plan as P import ...
null
https://raw.githubusercontent.com/phadej/cabal-extras/378cac5495b829794d67f243b27a9317eeed0858/cabal-iface-query/src/CabalIfaceQuery/Main.hs
haskell
----------------------------------------------------------------------------- Main ----------------------------------------------------------------------------- options read plan TODO: check that ghcInfo version and plan one are the same read destination directories of units in the plan interface files name cach...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module CabalIfaceQuery.Main (main) where import Peura import Prelude () import Control.Applicative ((<**>)) import Data.Version (showVersion) import qualified Cabal.Config as Cbl import qualified Cabal.Plan as P import ...
497775b697c6da83cff0349a3b8b12e55ffe09b0cda17a379ae75dc1e6e85c29
zadean/xqerl
fn_year_from_date_SUITE.erl
-module('fn_year_from_date_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-year-from-date1args-1'/1]). -export(['fn-year-from-date1args-2'/1]). -exp...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_year_from_date_SUITE.erl
erlang
-module('fn_year_from_date_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-year-from-date1args-1'/1]). -export(['fn-year-from-date1args-2'/1]). -exp...
23609728e0674a20cf793182b6e949afc4a8f2bb65c5351f942c4bbcbb64c746
justinmeiners/exercises
2_61.scm
(define (element-of-set? x set) (cond ((null? set) false) ((= x (car set)) true) ((< x (car set)) false) (else (element-of-set? x (cdr set))))) (define (intersection-set set1 set2) (if (or (null? set1) (null? set2)) '() (let ((x1 (car set1)) (x2 (car set2))) (cond ((= x1 x2) ...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_61.scm
scheme
(define (element-of-set? x set) (cond ((null? set) false) ((= x (car set)) true) ((< x (car set)) false) (else (element-of-set? x (cdr set))))) (define (intersection-set set1 set2) (if (or (null? set1) (null? set2)) '() (let ((x1 (car set1)) (x2 (car set2))) (cond ((= x1 x2) ...
62153db47765dcfd7cfb99b6a56ca25d12956e8a1963b33d1b4fa0ac2077d726
sunng87/stavka
core_test.clj
(ns stavka.core-test (:require [clojure.test :refer :all] [stavka.core :refer :all] [ring.adapter.jetty9 :as rj9a] [cheshire.core :as che] [clojure.java.io :as io])) (deftest test-apis (testing "get config from environment" (let [conf (using (env))] (is (so...
null
https://raw.githubusercontent.com/sunng87/stavka/0fcafec42496115a641080407b373b08277c36d3/test/stavka/core_test.clj
clojure
(ns stavka.core-test (:require [clojure.test :refer :all] [stavka.core :refer :all] [ring.adapter.jetty9 :as rj9a] [cheshire.core :as che] [clojure.java.io :as io])) (deftest test-apis (testing "get config from environment" (let [conf (using (env))] (is (so...
1428e6aa90bd95723091911ba6f17dc9d6de7598d65d85ed8ae5be7da644b9da
static-analysis-engineering/codehawk
bCHAssemblyInstructions.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/c1b3158e0d73cda7cfc10d75f6173f4297991a82/CodeHawk/CHB/bchlibx86/bCHAssemblyInstructions.ml
ocaml
chutil bchlib bchlibx86 statusString.[0] <- 'F' in statusString.[2] <- 'B' in
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
94efee4ab1272549586567062edd58dbfc92c0ee85186344c0f3fe973c0f980a
c4-project/c4f
call.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir/src/call.mli
ocaml
* FIR: function calls Note that many things that appear in a C AST as function calls actually map to primitives: for example, atomic stores become {!Atomic_store.t}. * Opaque type of function calls. * {1 Constructors} * {1 Accessors} * [function_id call] gets the identifier of the function called by [call]...
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
b8281ed4173cb6584b121d9b19c62f01ccfd0e8f44d655baf31207dc4bf3c008
PascalLG/nubo-hs
Logic.hs
----------------------------------------------------------------------------- Nubo Client Application Copyright ( c ) 2017 , -- -- 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...
null
https://raw.githubusercontent.com/PascalLG/nubo-hs/390212b73c31746f4ff03a3e341f92d657db0223/Client/src/CmdSync/Logic.hs
haskell
--------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished ...
Nubo Client Application Copyright ( c ) 2017 , in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ...
f252334ed577307e6da98bb16443d011bd6d3b09150ee2bad6758ce2545ad069
travelping/ergw
saegw_s11_SUITE.erl
Copyright 2018 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(saegw_s11_SUITE)...
null
https://raw.githubusercontent.com/travelping/ergw/544c12f06ba9d3891156e1ed243f0a09d0630e39/apps/ergw_core/test/saegw_s11_SUITE.erl
erlang
This program is free software; you can redistribute it and/or Handler Under Test =================================================================== Config =================================================================== force cth_log to async mode, never block the tests A/AAAA record alternatives DownLink Do...
Copyright 2018 , Travelping GmbH < > modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(saegw_s11_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("kern...
8fdefb04f268df3eb6a5c77b56232a5b8d5d18ff6e7221724516f92e425085ea
TrustInSoft/tis-interpreter
state_imp.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/value/legacy/state_imp.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
4908b5597ac51c57e6a0ddd49bc24c650bb7ff3c64301edd241d7bb5763f897d
racket/typed-racket
tc-app-main.rkt
#lang racket/unit (require "../../utils/utils.rkt" "signatures.rkt" "utils.rkt" "../../utils/tc-utils.rkt" "../../env/lexical-env.rkt" "../../rep/type-rep.rkt" "../../rep/prop-rep.rkt" "../../rep/object-rep.rkt" "../../rep/values-rep.rkt" ...
null
https://raw.githubusercontent.com/racket/typed-racket/d65ff8bd7146b15b79f31506f8aca410aed196e4/typed-racket-lib/typed-racket/typecheck/tc-app/tc-app-main.rkt
racket
the main dispatching function syntax (or/c tc-results/c #f) -> tc-results/c if for a particular argument, all of the domain types agree for each arrow type in the case->, then we use that type to check the argument expression against
#lang racket/unit (require "../../utils/utils.rkt" "signatures.rkt" "utils.rkt" "../../utils/tc-utils.rkt" "../../env/lexical-env.rkt" "../../rep/type-rep.rkt" "../../rep/prop-rep.rkt" "../../rep/object-rep.rkt" "../../rep/values-rep.rkt" ...
cbbac063afb58906c8aa8ab614752daebde2f49aafeef0c4ee5bc4aa3f2d8c03
hjcapple/reading-sicp
exercise_1_1.scm
#lang racket P13 - [ 练习 1.1 ] 10 12 8 3 6 (define a 3) (define b (+ a 1)) 19 (= a b) ; #f 4 (if (and (> b a) (< b (* a b))) b a) 16 (cond ((= a 4) 6) ((= b 4) (+ 6 7 a)) (else 25)) 6 (+ 2 (if (> b a) b a)) 16 (* (cond ((> a b) a) ...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_1/exercise_1_1.scm
scheme
#f
#lang racket P13 - [ 练习 1.1 ] 10 12 8 3 6 (define a 3) (define b (+ a 1)) 19 4 (if (and (> b a) (< b (* a b))) b a) 16 (cond ((= a 4) 6) ((= b 4) (+ 6 7 a)) (else 25)) 6 (+ 2 (if (> b a) b a)) 16 (* (cond ((> a b) a) ((< a b) b) (el...
c523217ec8d6a0a5ffd6fb86a15c074dcd1c0f36f28eeeafaef4e62e5455c28a
roglo/mlrogue
rob_action.mli
$ I d : rob_action.mli , v 1.5 2010/05/25 16:48:27 deraugla Exp $ open Rob_def; open Rob_misc; open Rob_position; type result = (command * next_action * option move); value run_away_if_possible : game -> bool -> list move -> move -> option (move * list move); value stop_paradise : t -> _; value start_drop_scare...
null
https://raw.githubusercontent.com/roglo/mlrogue/b73238bbbc8cd88c83579c3b72772a8c418020e5/rob_action.mli
ocaml
$ I d : rob_action.mli , v 1.5 2010/05/25 16:48:27 deraugla Exp $ open Rob_def; open Rob_misc; open Rob_position; type result = (command * next_action * option move); value run_away_if_possible : game -> bool -> list move -> move -> option (move * list move); value stop_paradise : t -> _; value start_drop_scare...
23fd13c8b2e0b56da13732a75636df3af241f108d9eb9953ed8d3f161cd31911
eponai/sulolive
test_main.cljs
(ns eponai.client.figwheel.test-main (:require [eponai.client.tests :as tests] [eponai.client.devtools :as devtools] [cljs.test] [goog.dom :as gdom] [taoensso.timbre :as timbre :refer-macros [debug]])) (def favicons {:success {:type "image/png" ...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/test/eponai/client/figwheel/test_main.cljs
clojure
(ns eponai.client.figwheel.test-main (:require [eponai.client.tests :as tests] [eponai.client.devtools :as devtools] [cljs.test] [goog.dom :as gdom] [taoensso.timbre :as timbre :refer-macros [debug]])) (def favicons {:success {:type "image/png" ...
605a2e24e3892c708b16d1f9d95779fd3c8225b60fff0632b1d3633aa4f4d7d6
mbutterick/txexpr
stx.rkt
#lang racket/base (provide stx-xexpr? stx-txexpr? stx-txexpr-tag? stx-txexpr-attrs? stx-txexpr->values stx-txexpr->list stx-txexpr-tag stx-txexpr-attrs stx-txexpr-elements) (require syntax/stx xml "base.rkt" "private/co...
null
https://raw.githubusercontent.com/mbutterick/txexpr/435c6e6f36fd39065ae9d8a00285fda0e4e41fa1/txexpr/stx.rkt
racket
--------------------------------------------------------- Data Definitions - (Syntaxof E) - E A StxTXexpr is a [Stx TXexprE] - String - TXexprE for example ' nbsp representing ` & nbsp ; ` for example # x20 representing ` & # x20 ; ` an instance of the ` cdata ` structure type from ` xml ` - Misc ...
#lang racket/base (provide stx-xexpr? stx-txexpr? stx-txexpr-tag? stx-txexpr-attrs? stx-txexpr->values stx-txexpr->list stx-txexpr-tag stx-txexpr-attrs stx-txexpr-elements) (require syntax/stx xml "base.rkt" "private/co...
ddaf8edde29205412789eab1edb09f38235b3d64ce479b79caa02ddbada12c4a
yitzchak/shasht
write.lisp
(in-package :shasht/test) (defmacro define-write-test (name value expected &key pretty ascii alist plist false) `(define-test ,name (finish (is equal ,expected (let ((*print-pretty* ,pretty) (shasht:*write-alist-as-object* ,alist) (shasht:*write-plist-as-o...
null
https://raw.githubusercontent.com/yitzchak/shasht/85a53eb464f11303308210187e4bafda963f99bf/src/test/write.lisp
lisp
(in-package :shasht/test) (defmacro define-write-test (name value expected &key pretty ascii alist plist false) `(define-test ,name (finish (is equal ,expected (let ((*print-pretty* ,pretty) (shasht:*write-alist-as-object* ,alist) (shasht:*write-plist-as-o...
e8c7d53d878dc6ca075230e1a3323bcf9fa724d7f76dff639b03589fbac4f110
erlyvideo/publisher
rtsp_outbound.erl
@author < > [ ] 2010 - 2011 %%% @doc RTSP socket module %%% %%% 1 . connect 2 . describe 3 . each setup 4 . play , possible Rtp - Sync 5 . get each packet 6 . decode %%% %%% %%% @end @reference See < a href=" / rtsp " target="_top"></a > for common information . %%% @end %%% T...
null
https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtsp/src/rtsp_outbound.erl
erlang
@doc RTSP socket module @end @end erlang-rtsp is free software: you can redistribute it and/or modify (at your option) any later version. erlang-rtsp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A P...
@author < > [ ] 2010 - 2011 1 . connect 2 . describe 3 . each setup 4 . play , possible Rtp - Sync 5 . get each packet 6 . decode @reference See < a href=" / rtsp " target="_top"></a > for common information . This file is part of erlang - rtsp . it under the terms of the GNU Gener...
c212dc38873eabfd0567ed2be71f3faf4397b764f5cd0ee430f78521fb65101d
programaker-project/Programaker-Core
automate_rest_api_sessions_check.erl
%%% @doc %%% REST endpoint to inspect user preferences. %%% @end -module(automate_rest_api_sessions_check). -export([init/2]). -export([ allowed_methods/2 , content_types_provided/2 , options/2 , is_authorized/2 ]). -export([to_json/2]). -include("./records.hrl"). -include("../../autom...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_rest_api/src/automate_rest_api_sessions_check.erl
erlang
@doc REST endpoint to inspect user preferences. @end CORS Don't do authentication if it's just asking for options GET handler , password , email , status , registration_time
-module(automate_rest_api_sessions_check). -export([init/2]). -export([ allowed_methods/2 , content_types_provided/2 , options/2 , is_authorized/2 ]). -export([to_json/2]). -include("./records.hrl"). -include("../../automate_storage/src/records.hrl"). -record(check_seq, { user_id :: b...
92e32ee9f8bec007692edb4a1331dd6331c15fb6976afeb7d003d74a48fa80ba
ropas/sparrow
unsoundLib.mli
(***********************************************************************) (* *) Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . (* All rights reserved...
null
https://raw.githubusercontent.com/ropas/sparrow/3ec055b8c87b5c8340ef3ed6cde34f5835865b31/src/strategy/unsoundLib.mli
ocaml
********************************************************************* All rights reserved. See the LICENSE file for details. ...
Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . This software is distributed under the term of the BSD license . type lib = string type feature type data = (lib, feature) BatMap.t val extract_feature : Global.t ...
25d6b644d0d327701d1e772cd0a07195efb0695d150c83f355ecd224c26e222e
scalaris-team/scalaris
tx_tlog.erl
2009 - 2013 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/transactions/tx_tlog.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...
2009 - 2013 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(tx_tlog). -author(''). -vsn('$Id$'). -compile({inline, [new_entry/5, new_entry/6, new_entry/7, ...
a2d5ba5da70bcb4e3a09c63058448a6e1e1b3a4d88a0d6f463d07905bfbe753d
ocaml-flambda/ocaml-jst
typedecl.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/988306d895217fb666a2f1e3d5086551b0100e49/typing/typedecl.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 open Types open Format val transl_type_decl: Env.t -> Asttypes.rec_flag -> Parsetree.type_declarati...
3214a4c8f326a2b7a6f4f668209402c5afdb8138465aaceb5c851343e84f036b
aeternity/aeternity
aehttp_ns_auction_SUITE.erl
%%%------------------------------------------------------------------- ( C ) 2019 , Aeternity Anstalt %%% @doc %%% %%% @end Created : 02 . Sep 2019 16:15 %%%------------------------------------------------------------------- -module(aehttp_ns_auction_SUITE). -include_lib("common_test/include/ct.hrl"). -include_li...
null
https://raw.githubusercontent.com/aeternity/aeternity/d7704394e11f0e957d61dc6428ef37330230f72d/apps/aehttp/test/aehttp_ns_auction_SUITE.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- common_test exports API Check mempool empty Get commitment hash to preclaim a name Mine a block and check mempool empty again Check fee taken from account Mine a bl...
( C ) 2019 , Aeternity Anstalt Created : 02 . Sep 2019 16:15 -module(aehttp_ns_auction_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("aecontract/include/hard_forks.hrl"). -include_lib("stdlib/include/assert.hrl"). -import(aecore_suite_utils, [http_request/4, httpc_request/4, process_http_retur...
7f25e4802130bf4045633c2498b477a4c6b63a66597a15a87babdfc206174e07
B-Lang-org/bsc
MakeOctalCharsAsInteger.hs
the program used to generate OctalCharsAsInteger.bsv -- should it need to be changed redirect stdout to OctalCharsAsInteger.bsv showOct num = show first ++ show middle ++ show last where (rest, last) = quotRem num 8 (first, middle) = quotRem rest 8 nums = [0..255] display_num num = putStrLn ("$display(...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/testsuite/bsc.syntax/bsv05/strings/MakeOctalCharsAsInteger.hs
haskell
should it need to be changed
the program used to generate OctalCharsAsInteger.bsv redirect stdout to OctalCharsAsInteger.bsv showOct num = show first ++ show middle ++ show last where (rest, last) = quotRem num 8 (first, middle) = quotRem rest 8 nums = [0..255] display_num num = putStrLn ("$display(primStringToInteger(\"\\" ++ (sh...
a250aae107ce8d8666fa4b9aa46e40f2da21ac5cf15481b663eb0f7acfb7cd2b
tsoding/multik
console.ml
external init: int -> int -> unit = "console_init" external free: unit -> unit = "console_free" external should_quit: unit -> bool = "console_should_quit" external present: unit -> unit = "console_present" external texture: unit -> SdlTexture.t = "console_texture" external viewport: unit -> Rect.t = "console_viewport"
null
https://raw.githubusercontent.com/tsoding/multik/15384bd44c607f1b76c625ef97c01ad50a155cdc/src/console.ml
ocaml
external init: int -> int -> unit = "console_init" external free: unit -> unit = "console_free" external should_quit: unit -> bool = "console_should_quit" external present: unit -> unit = "console_present" external texture: unit -> SdlTexture.t = "console_texture" external viewport: unit -> Rect.t = "console_viewport"
a938370e9428d8e218aa63e8f61dc40a15a6bcd3646c7161c94f2c7df5839d6a
ujamjar/hardcaml
graph.mli
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) * Write circuit as graph . Currently works quite well with aisee3 ; www...
null
https://raw.githubusercontent.com/ujamjar/hardcaml/65f32f543348e81cbb7f6d0e77f1f1203bf4e335/src/graph.mli
ocaml
* launch aisee3 to visualize the given circuit
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) * Write circuit as graph . Currently works quite well with aisee3 ; www...
f857e00c7defae69b30df99f0bfecf3a22e1194d8058e15d300b0f857f427268
haskell-suite/haskell-src-exts
ClassDeclSrcSpan.hs
class C1 a where toString :: a -> String t1 :: String t1 = "Hello"
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/ClassDeclSrcSpan.hs
haskell
class C1 a where toString :: a -> String t1 :: String t1 = "Hello"
ba9f8b2b72b993f96de2563253cb96551f80c0d78f326d5152c5e88fdb522cfa
Datomic/dev.datafy
datafy.clj
Copyright ( c ) Cognitect , Inc. ;; All rights reserved. ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in wri...
null
https://raw.githubusercontent.com/Datomic/dev.datafy/67a0923c3e0492503a44672b5bf74a9b35e0e46f/src/datomic/dev/datafy.clj
clojure
All rights reserved. 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...
Copyright ( c ) Cognitect , Inc. distributed under the License is distributed on an " AS - IS " BASIS , (ns datomic.dev.datafy) (defn datafy! "Datafy everything this lib knows how to datafy." [] (doseq [nss '[datomic.dev.datafy.java datomic.dev.datafy.async datomic.dev.datafy...
2311a68eec0b1172b3ba473242582f25cebdec25dba06481a81825b441c37c93
paines/cl-puyopuyo
cl-puyopuyo.lisp
(defpackage :cl-puyopuyo (:use :common-lisp :quicklisp ) (:export #:cl-puyopuyo)) (in-package :cl-puyopuyo) (ql:quickload "lispbuilder-sdl-ttf") (ql:quickload "lispbuilder-sdl-gfx") (ql:quickload "bordeaux-threads") width / height of bitmaos is 32x32 (defvar *puyoW* 32) (defvar *puyoH* 32) (defva...
null
https://raw.githubusercontent.com/paines/cl-puyopuyo/8a7786d38be041027669658e6be46366d45eece2/cl-puyopuyo.lisp
lisp
dropping / landed these need to be global, so that the dropPuyo-thread can access the stones sdl surface pictures for blitting i guess there is a sneaky lispy way to cut this down somehow stones lay on each other s is left from f f is left from s stones lay on each other sx is left from sx (puyosToField *puyo...
(defpackage :cl-puyopuyo (:use :common-lisp :quicklisp ) (:export #:cl-puyopuyo)) (in-package :cl-puyopuyo) (ql:quickload "lispbuilder-sdl-ttf") (ql:quickload "lispbuilder-sdl-gfx") (ql:quickload "bordeaux-threads") width / height of bitmaos is 32x32 (defvar *puyoW* 32) (defvar *puyoH* 32) (defva...
70ecc9c04e0d116a2abf8c9896ac39a12f362fb5dd4bb72a0f2b365d42f8aee9
santiweight/poker-base
Amount.hs
# LANGUAGE CPP # # LANGUAGE UndecidableInstances # -- | Representation of money, and bet quantities. module Poker.Amount ( Amount (..), unsafeAmount, IsBet (..), mkAmount, bigBlindToDense, BigBlind (..), ) where import GHC.Generics (Generic) import GHC.TypeLits ( KnownSymbol, Symbol, )...
null
https://raw.githubusercontent.com/santiweight/poker-base/2317762562c5ca9325f56e48b466b1409a96f1ce/src/Poker/Amount.hs
haskell
| Representation of money, and bet quantities. $setup >>> :set -XDataKinds | 'Amount' is the type used to represent amounts of money during a game of poker. The internal representation of 'Amount' is a @Discrete\'@ from the <-money safe-money> package. The exposed constructors for 'Amount' ensure that no 'Amount...
# LANGUAGE CPP # # LANGUAGE UndecidableInstances # module Poker.Amount ( Amount (..), unsafeAmount, IsBet (..), mkAmount, bigBlindToDense, BigBlind (..), ) where import GHC.Generics (Generic) import GHC.TypeLits ( KnownSymbol, Symbol, ) import Money #if MIN_VERSION_prettyprinter(1,7,0...
123858afb02fa032b9ac9b1c9a2b892e7a60069b58f8801cdd2ffbca426df4d1
nuprl/gradual-typing-performance
count-chap-utils.rkt
#lang racket/base ;; Script for counting chaperones in an instrumented version of Racket. ;; ;; Usage: - Apply the patch from the " Chaperones & Impersonators " paper ;; (Adapt from the file 'count-chap-utils.patch' in this folder ;; or download from '/~sstrickl/chaperones/') ;; - Add a (require benchmark-utils...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/tools/benchmark-util/count-chap-utils.rkt
racket
Script for counting chaperones in an instrumented version of Racket. Usage: (Adapt from the file 'count-chap-utils.patch' in this folder or download from '/~sstrickl/chaperones/') - Add a (require benchmark-utils) to the top of your program - Add a (count-chaps) to the bottom of your program; results wil...
#lang racket/base - Apply the patch from the " Chaperones & Impersonators " paper (provide *count-chaps-out* ( ) count-chaps read-num-chaperones (struct-out chaps) ) (require (only-in ffi/unsafe _array in-array _int get-ffi-obj)) (struct chaps ( proc_makes proc_apps proc_wraps proc_max...
1485329b4ae60e7fda692735836952733687427483433a29968b4088334c8ec3
e-bigmoon/awesome-haskell
Class.hs
module Site.Class where import Data.Text (Text) class ToMarkdown a where toMarkdown :: a -> Text
null
https://raw.githubusercontent.com/e-bigmoon/awesome-haskell/ff59faf421cfb94bc76cd77f2730fc259a540319/src/Site/Class.hs
haskell
module Site.Class where import Data.Text (Text) class ToMarkdown a where toMarkdown :: a -> Text
cc2af0299d9e549bd7fc9539a6321b2f838b788cd733423dbecc095b240435c4
ChicagoBoss/ChicagoBoss
boss_smtp_server.erl
%%------------------------------------------------------------------- @author ChicagoBoss Team and contributors , see file in root directory %% @end This file is part of ChicagoBoss project . See file in root directory %% for license information, see LICENSE file in root directory %% @end %...
null
https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/src/boss/boss_smtp_server.erl
erlang
------------------------------------------------------------------- @end for license information, see LICENSE file in root directory @end @doc -------------------------------------------------------------------
@author ChicagoBoss Team and contributors , see file in root directory This file is part of ChicagoBoss project . See file in root directory -module(boss_smtp_server). -behaviour(gen_smtp_server_session). -export([init/4, handle_HELO/2, handle_EHLO/3, handle_MAIL/2, handle_MAIL_extension/2, ...
44bf2d0decb899f3e865500135cd7bce9db28a94b478eab9ee465be8f437f729
ghc/testsuite
TH_NestedSplices.hs
# LANGUAGE TemplateHaskell # module TH_NestedSplices where import Language.Haskell.TH import TH_NestedSplices_Lib -- This import brings in spliceExpr : : String - > Q Exp - > Q Exp -- declareFun :: String -> Q [Dec] -- Top level splice without $ declareFun "a" -- Splice inside splice $(declare...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/th/TH_NestedSplices.hs
haskell
This import brings in declareFun :: String -> Q [Dec] Top level splice without $ Splice inside splice Splice inside splice without outer $ Ordinary splicing Splice inside splice Ordinary splice inside bracket Splice inside splice inside bracket
# LANGUAGE TemplateHaskell # module TH_NestedSplices where import Language.Haskell.TH import TH_NestedSplices_Lib spliceExpr : : String - > Q Exp - > Q Exp declareFun "a" $(declareFun $(stringE "b")) declareFun $(stringE "c") f x = $(spliceExpr "boo" [| x |]) g x = $(spliceExpr $(litE (stri...
6b08d83dc055b50f2458df1f416538e7582543d93bcf2a1dfeff82ee0d3bc69a
haskell-suite/haskell-src-exts
TypeEqualityParen.hs
# LANGUAGE TypeFamilies # f :: ( Eq a, (a ~ Int) ) => a -> Int f _ = 3
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/TypeEqualityParen.hs
haskell
# LANGUAGE TypeFamilies # f :: ( Eq a, (a ~ Int) ) => a -> Int f _ = 3
bcc8b14c1d9560a9f90abe0280eed22e890d0882da815d6b1c2dda07b1e75dad
plewto/Cadejo
descriptor.clj
(println "--> cadejo.instruments.descriptor") (ns cadejo.instruments.descriptor (:require [cadejo.midi.program]) (:require [cadejo.util.col :as ucol]) (:require [cadejo.util.user-message :as umsg]) (:require [cadejo.ui.util.icon])) (defprotocol InstrumentDescriptor (instrument-name [this] "Return n...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/descriptor.clj
clojure
same as key argument brief description MIDI cc number")
(println "--> cadejo.instruments.descriptor") (ns cadejo.instruments.descriptor (:require [cadejo.midi.program]) (:require [cadejo.util.col :as ucol]) (:require [cadejo.util.user-message :as umsg]) (:require [cadejo.ui.util.icon])) (defprotocol InstrumentDescriptor (instrument-name [this] "Return n...
e2922fc61c5e2cef3922aa1abfaafda28271e922f74427c1f502d8ae8610ec1f
webyrd/n-grams-for-synthesis
bigbit.scm
; This file is part of the reference implementation of the R6RS Arithmetic SRFI. ; See file COPYING. from Scheme 48 : Bitwise logical operators on bignums . (define (bignum-bitwise-not m) ;; (integer+ (integer-negate m) -1) (bignum- (r5rs->bignum -1) m)) (define (bignum-bitwise-and m n) (if (or (bignum-ze...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-77/arithmetic-reference/bigbit.scm
scheme
This file is part of the reference implementation of the R6RS Arithmetic SRFI. See file COPYING. (integer+ (integer-negate m) -1) Now both M and N are magnitudes of negative numbers. arithmetic-shift-left Split the low digit into left and right parts, and shift shift right N is nonnegative (define (tst) (let* ...
from Scheme 48 : Bitwise logical operators on bignums . (define (bignum-bitwise-not m) (bignum- (r5rs->bignum -1) m)) (define (bignum-bitwise-and m n) (if (or (bignum-zero? m) (bignum-zero? n)) (r5rs->fixnum 0) (bignum-bitwise-op fxbitwise-and m n))) (define (bignum-bitwise-ior m n) (cond ((b...
2e24f5ca5d355f22fb76ad467ce3fd1da993c7d71009a5ce3fb7c8ef245bad2b
huangz1990/real-world-haskell-cn
H.hs
file : ch25 / H.hs import System.Environment import Text.Printf import Data.List (foldl') main = do [d] <- map read `fmap` getArgs printf "%f\n" (mean [1..d]) data Pair = Pair !Int !Double mean :: [Double] -> Double mean xs = s / fromIntegral n where Pair n s = foldl' k (Pair 0 0) xs k (Pair n ...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch25/H.hs
haskell
file : ch25 / H.hs import System.Environment import Text.Printf import Data.List (foldl') main = do [d] <- map read `fmap` getArgs printf "%f\n" (mean [1..d]) data Pair = Pair !Int !Double mean :: [Double] -> Double mean xs = s / fromIntegral n where Pair n s = foldl' k (Pair 0 0) xs k (Pair n ...
abd2a0cc41f132d39d855adf8dbbf6f4915f785627bff0864ba356e664fc36c7
yetibot/yetibot
no.clj
(ns yetibot.commands.no (:require [yetibot.core.hooks :refer [cmd-hook]])) (def no-gifs ["-content/gallery/no/snobby-no.gif" "" "-content/gallery/no/jonah-hill-no.gif" "" "-content/gallery/no/John-Krasinski-no.gif" "-content/gallery/no/aint-nobody.gif" "-content/gallery/no/754.gif" "-conte...
null
https://raw.githubusercontent.com/yetibot/yetibot/2fb5c1182b1a53ab0e433d6bab2775ebd43367de/src/yetibot/commands/no.clj
clojure
(ns yetibot.commands.no (:require [yetibot.core.hooks :refer [cmd-hook]])) (def no-gifs ["-content/gallery/no/snobby-no.gif" "" "-content/gallery/no/jonah-hill-no.gif" "" "-content/gallery/no/John-Krasinski-no.gif" "-content/gallery/no/aint-nobody.gif" "-content/gallery/no/754.gif" "-conte...
981b63f7b89b66a75b138252df308e7a43c6041f54ce116502f853da61b2379c
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Distance....
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Distance/KM/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Distance.KM.Rules ( rules ) where import Data.String import Data.Text (Text) import Prelude import Duckling.Dimensions.Types import Duckling.Distance.Helpers import Duckling.Distance.Types (DistanceData(..)) import Duckl...
33a04883519d7595a16b15cd647acbdb25e4de7d832a25d2facf727fa6a33d25
yesodweb/yesod
LiteApp.hs
module YesodCoreTest.LiteApp (specs) where import Yesod.Core import Test.Hspec import Network.Wai.Test import Network.Wai import qualified Data.ByteString.Char8 as S8 import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as L8 iapp :: IO Application iapp = toWaiApp $ liteApp $ do onMethod (S...
null
https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/yesod-core/test/YesodCoreTest/LiteApp.hs
haskell
^ method ^ path ^ status code or body
module YesodCoreTest.LiteApp (specs) where import Yesod.Core import Test.Hspec import Network.Wai.Test import Network.Wai import qualified Data.ByteString.Char8 as S8 import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as L8 iapp :: IO Application iapp = toWaiApp $ liteApp $ do onMethod (S...
1f05f674c05b3c7c9819dc8ff93c3f50dd632a84fa887aef0ac122112f5d2a15
spawngrid/htoad
esupervisor.erl
-module(esupervisor). -behaviour(supervisor). -include_lib("esupervisor/include/esupervisor.hrl"). -export([start_link/2, start_link/3]). -export([behaviour_info/1]). -export([start_sup/2]). -export([spec/1]). %% Supervisor callbacks -export([init/1]). -export_type([supervisable/0]). -type supervisor() :: #supervis...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/esupervisor/src/esupervisor.erl
erlang
Supervisor callbacks
-module(esupervisor). -behaviour(supervisor). -include_lib("esupervisor/include/esupervisor.hrl"). -export([start_link/2, start_link/3]). -export([behaviour_info/1]). -export([start_sup/2]). -export([spec/1]). -export([init/1]). -export_type([supervisable/0]). -type supervisor() :: #supervisor{} | #one_for_one{} | ...
1936a2e9d0d5287794c3c1ae10723c932045e9ae4efbc72e2f18d0a64e649a58
plumatic/grab-bag
comments_test.clj
(ns domain.docs.comments-test (:use clojure.test plumbing.core plumbing.test) (:require [domain.doc-test-utils :as doc-test-utils] [domain.docs.comments :as comments])) (def +handle-regex+ "[A-Za-z0-9_-]+") (deftest extract-user-mentions-test (let [ee (fn [handle->user-id text] (map (juxt :us...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/domain/test/domain/docs/comments_test.clj
clojure
(ns domain.docs.comments-test (:use clojure.test plumbing.core plumbing.test) (:require [domain.doc-test-utils :as doc-test-utils] [domain.docs.comments :as comments])) (def +handle-regex+ "[A-Za-z0-9_-]+") (deftest extract-user-mentions-test (let [ee (fn [handle->user-id text] (map (juxt :us...
7ee64a2f5320ad1e98842ad761d96b0cdc8d570afb82e8914b7ac80bf084b232
stepcut/plugins
Plugin.hs
module Plugin where -- user doesn't import the API -- and provides a polymorphic value import API resource :: Interface -- -- should pass type check, and dump core -- resource : : a = > a resource = 7
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/pdynload/spj2/Plugin.hs
haskell
user doesn't import the API and provides a polymorphic value should pass type check, and dump core
module Plugin where import API resource :: Interface resource : : a = > a resource = 7
4fbff1a159fa6d1e16d4cc9d7b9e321fd42b95bdae70a87117305040ebc6411a
LeiWangHoward/Common-Lisp-Playground
exercise-tests.lisp
Bug Finder Test Cases for ;;; Test cases for Graham , Lisp , and project exercises . ;;; Most but not all assigned exercises have test cases. ;;; Update history: ;;; 11 - 06 - 12 added test to STABLE - SET - DIFFERENCE [ CKR ] 12 - 01 - 11 added test to LIST - OF for generator first [ CKR ] 11 - 10 - 11...
null
https://raw.githubusercontent.com/LeiWangHoward/Common-Lisp-Playground/4130232954f1bbf8aa003d856ccb2ab382da0534/exercise-tests.lisp
lisp
Most but not all assigned exercises have test cases. Update history: Ex 2.4 Ex 2.7 Ex 2.8-a Ex 2.8-b Ex 2.9 Ex 3.2 Ex 3.3 Ex 3.5 Ex 3.8 Ex 3.9 A utility for copying arrays for the in-place rotate in graham-4-1 Ex 4.1 Ex 4.2-a Ex 4.2-b Ex 4.3 Ex 4.4 Ex 4.6 Ex 5.5 Ex 5.6 Ex 5.7 Ex 5.8 Ex 5.9 In...
Bug Finder Test Cases for Test cases for Graham , Lisp , and project exercises . 11 - 06 - 12 added test to STABLE - SET - DIFFERENCE [ CKR ] 12 - 01 - 11 added test to LIST - OF for generator first [ CKR ] 11 - 10 - 11 simplified and improved HENLEY - P tests [ CKR ] 11 - 09 - 11 added a test to LONG...
b02e2e8f57bfacd88a2d85ee09adc248133c01d12bb172db9955bd4bce2ae172
tfausak/argo
TemplateHaskell.hs
module Argo.Vendor.TemplateHaskell ( TH.Exp , TH.Lift(..) , TH.Q , QQ.QuasiQuoter(..) ) where import qualified Language.Haskell.TH.Quote as QQ import qualified Language.Haskell.TH.Syntax as TH
null
https://raw.githubusercontent.com/tfausak/argo/c09ab4a8a39dfd39bda0e3dd83a827148d2944f6/source/library/Argo/Vendor/TemplateHaskell.hs
haskell
module Argo.Vendor.TemplateHaskell ( TH.Exp , TH.Lift(..) , TH.Q , QQ.QuasiQuoter(..) ) where import qualified Language.Haskell.TH.Quote as QQ import qualified Language.Haskell.TH.Syntax as TH
18f9f4b853681e5cafa35c59f0c2bec727edc60ca46b56519a0a93ac9434f8d7
manuel-serrano/bigloo
control5.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / runtime / Ieee / control5.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/2b441551f8fc55ea10878976f54c5a802cba6409/runtime/Ieee/control5.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / / runtime / Ieee / control5.scm * / * Author : * / * Creation : Fri Feb 27 14:11:26 1998 * / * Last change : We d Sep 15 14:32:55 2021 ( serrano ) * / * An impl...
3e7ba58d924cb318909cf904bcec1cd7318842ca3b86e89a549077b34d2c5160
toothbrush/dotfs
Unit.hs
# OPTIONS_GHC -fno - warn - unused - imports -fforce - recomp -fth -fno - warn - orphans # module System.DotFS.Test.Unit where our TH functions import System.DotFS.Test.Tests -- our test cases import Control.Monad import Test.QuickCheck import System.DotFS.Core.Datatypes import Test.QuickCheck.Test import System.E...
null
https://raw.githubusercontent.com/toothbrush/dotfs/36c7e62bda235728ffbb501fe1d2c34210a870a8/System/DotFS/Test/Unit.hs
haskell
our test cases Arbitrary instances: there's actually a reason these instances are here, even if realise this at compile time.
# OPTIONS_GHC -fno - warn - unused - imports -fforce - recomp -fth -fno - warn - orphans # module System.DotFS.Test.Unit where our TH functions import Control.Monad import Test.QuickCheck import System.DotFS.Core.Datatypes import Test.QuickCheck.Test import System.Exit runTests :: IO () runTests = $(mkChecks tests)...
14eca6418971bd3a06abe8445d8d4b919412a20db2e7cf47814340b23b80b93d
acl2/acl2
group@useless-runes.lsp
(INTEGERP-OF-SMALL-HELPER (7 7 (:REWRITE DEFAULT-*-2)) (7 7 (:REWRITE DEFAULT-*-1)) (4 4 (:LINEAR <=-OF-*-AND-*-SAME-LINEAR)) (4 4 (:LINEAR <=-OF-*-AND-*-SAME-ALT-LINEAR)) (4 4 (:LINEAR <-OF-*-AND-*-LINEAR)) (1 1 (:REWRITE DEFAULT-<-2)) (1 1 (:REWRITE DEFAULT-<-1)) (1 1 (:LINEAR FLOOR-UPPER-BOUND-STRONG-LINEAR-...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/lists-light/.sys/group%40useless-runes.lsp
lisp
(INTEGERP-OF-SMALL-HELPER (7 7 (:REWRITE DEFAULT-*-2)) (7 7 (:REWRITE DEFAULT-*-1)) (4 4 (:LINEAR <=-OF-*-AND-*-SAME-LINEAR)) (4 4 (:LINEAR <=-OF-*-AND-*-SAME-ALT-LINEAR)) (4 4 (:LINEAR <-OF-*-AND-*-LINEAR)) (1 1 (:REWRITE DEFAULT-<-2)) (1 1 (:REWRITE DEFAULT-<-1)) (1 1 (:LINEAR FLOOR-UPPER-BOUND-STRONG-LINEAR-...
4d2eff2b3f8b0f3a74230d97ebbb32b553d4fe5c39e53f979856b6cde01f0f83
quil-lang/magicl
lapack-schur.lisp
;;;; lapack-schur.lisp ;;;; Author : (in-package #:magicl-lapack) (defmethod schur-extension ((a magicl:matrix/double-float)) (assert (magicl:square-matrix-p a)) ;; TODO: This probably doesn't properly take into account the tensor ;; layout, etc. (let* ((aa (magicl:deep-copy-tensor a)) (n ...
null
https://raw.githubusercontent.com/quil-lang/magicl/c2a9d9ecd859db35d44286af310b7ab99f5f9d77/src/extensions/lapack/lapack-schur.lisp
lisp
lapack-schur.lisp TODO: This probably doesn't properly take into account the tensor layout, etc. not referenced INFO TODO: we need to check info TODO: This probably doesn't properly take into account the tensor layout, etc. not referenced INFO TODO: we need to check info
Author : (in-package #:magicl-lapack) (defmethod schur-extension ((a magicl:matrix/double-float)) (assert (magicl:square-matrix-p a)) (let* ((aa (magicl:deep-copy-tensor a)) (n (magicl:nrows a)) (ttr (make-array n :element-type 'double-float :initial-element 0.0d0)) (tti...
2a1351bd5a3a2f7cac5651edb20cae20d4fab1ba02856174f7269284068a459c
static-analysis-engineering/codehawk
cCHFunctionSummary.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copyrig...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHC/cchlib/cCHFunctionSummary.ml
ocaml
chutil cchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copyrig...
963e13b5b6ec6b17b3cd312c81f87299f4521ec611b43c9400c8bbc7e7d9ed13
PEZ/rich4clojure
problem_153.clj
(ns rich4clojure.easy.problem-153 (:require [hyperfiddle.rcf :refer [tests]])) ;; = Pairwise Disjoint Sets = By 4Clojure user : maximental ;; Difficulty: Easy ;; Tags: [set-theory] ;; ;; Given a set of sets, create a function which returns true if no two of those sets have any elements in common 1 and false o...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/482f98f95408639bf3ac7a96d59b33efb443db27/src/rich4clojure/easy/problem_153.clj
clojure
= Pairwise Disjoint Sets = Difficulty: Easy Tags: [set-theory] Given a set of sets, create a function which returns are a bit tricky, so pay a little more attention to them. mutually disjoint . Share your solution, and/or check how others did it:
(ns rich4clojure.easy.problem-153 (:require [hyperfiddle.rcf :refer [tests]])) By 4Clojure user : maximental true if no two of those sets have any elements in common 1 and false otherwise . Some of the test cases 1 Such sets are usually called pairwise disjoint or (def __ :tests-will-fail) (comment ) ...
1347af07337781c21da35f7482e82fe93a277771572415bee9a1026b06e3e718
imdea-software/leap
Conf.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/formulas/Conf.mli
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...
364210a7f7f0cb65c146f843141e0be41b9a632f2574cda5446b7a8523b9c566
planetfederal/signal
util.clj
Copyright 2016 - 2017 Boundless , ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distribute...
null
https://raw.githubusercontent.com/planetfederal/signal/e3eae56c753f0a56614ba8522278057ab2358c96/src/signal/specs/util.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2016 - 2017 Boundless , distributed under the License is distributed on an " AS IS " BASIS , (ns signal.specs.util) (def url-regex #"((http[s]):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?") (def email-regex #"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}") (def uuid-regex #"[...
810f5455db97a3a4d5c2d377e32ce0e7fbe2308ae466a5d84b58f3fb53ae219e
helins/mqtt.clj
v3.clj
(ns dvlopt.mqtt.v3 "Functions for opening and handling a connection using the MQTT 3.x protocol. All functions are specified using clojure.spec. Specs related to options and callbacks." {:author "Adam Helinski"} (:require [clojure.spec.alpha :as s] [dvlopt.mqtt ...
null
https://raw.githubusercontent.com/helins/mqtt.clj/771a117232dea9d7eb6749bba4b201de118c7420/src/dvlopt/mqtt/v3.clj
clojure
Declarations API - Opening and closing a client API - Misc API - Buffering of messages in transit Unsure, should this be part of the API ? Actually does not remove messages from the underlying persistent store which is probably the expected behaviour Ditto.
(ns dvlopt.mqtt.v3 "Functions for opening and handling a connection using the MQTT 3.x protocol. All functions are specified using clojure.spec. Specs related to options and callbacks." {:author "Adam Helinski"} (:require [clojure.spec.alpha :as s] [dvlopt.mqtt ...
05c888210d4f8378a428b25d1aedeefdc0b2757e8fd6aec495d2ff2c50f1b314
smelc/tn-fp-haskell-course
TP3.hs
-- Build me with: cabal build TP3.hs -- Execute me with: cabal run -v0 TP3.hs module Main where import Debug.Trace import GHC.Generics import Generic.Random import Test.QuickCheck main :: IO () main = do putStrLn "TP3 is running" -- 1/ Define a type representing URLs you can enter in a browser address bar, -- ...
null
https://raw.githubusercontent.com/smelc/tn-fp-haskell-course/ce861c5b31acc23dd1d273e807eb7aae31e34cc5/tps/TP3.hs
haskell
Build me with: cabal build TP3.hs Execute me with: cabal run -v0 TP3.hs 1/ Define a type representing URLs you can enter in a browser address bar, i.e. strings of the form: - - google.fr based on a policy. A filter is a string of the form: - lemonde.fr/emploi - reddit.com/** for any 'wha...
module Main where import Debug.Trace import GHC.Generics import Generic.Random import Test.QuickCheck main :: IO () main = do putStrLn "TP3 is running" - reddit.com/r/haskell 2/ Write a parser from String to your URL type . Its return type must be Either . The ' Left ' case is the error message . Wr...
a10073240ad765dc9728abb4d7196c5c040dbbad94350beb094c9c7597eea1f3
kyleburton/sandbox
project.clj
(defproject personal-portal "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :main ^:skip-aot personal-portal.core :repl-options {:init-ns personal-portal.core} :global-vars {*warn-on-reflec...
null
https://raw.githubusercontent.com/kyleburton/sandbox/1164c96c1c0de0948e8666e2ad8a06bbc673d37a/examples/clojure/personal-portal/project.clj
clojure
[ring/ring-core "1.7.1"] [ring/ring-jetty-adapter "1.7.1"] seems incompatible w/the jetty server, maybe we need the jetty version 9.4.20.v20190813 ?
(defproject personal-portal "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :main ^:skip-aot personal-portal.core :repl-options {:init-ns personal-portal.core} :global-vars {*warn-on-reflec...
eb6964bb22f5c932edee648db2b4955ae21fc651150215738caf67c8b33c92af
expipiplus1/vulkan
AccelerationStructure.hs
# LANGUAGE OverloadedLists # module AccelerationStructure where import Control.Monad.IO.Class import Control.Monad.Trans.Resource import Data.Bits import Data.Coerce ( coerce ) import Data.Vector ( Vector ) import Foreig...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/examples/rays/AccelerationStructure.hs
haskell
-------------------------------------------------------------- TLAS -------------------------------------------------------------- Create the bottom level accelerationStructures Create the buffer for the top level instances TODO: Make this GPU only and transfer to it populate the instance buffer ignored but...
# LANGUAGE OverloadedLists # module AccelerationStructure where import Control.Monad.IO.Class import Control.Monad.Trans.Resource import Data.Bits import Data.Coerce ( coerce ) import Data.Vector ( Vector ) import Foreig...
f9682ec763a0a9cf0cf4470241c64b513e5febd46f72ff651f1bc4aedd6f796e
apache/couchdb-rebar
rebar_upgrade.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2011 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this softw...
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/src/rebar_upgrade.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2011 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the...
8afa2a6b3fedc0e7d1613548948d59a5dc23481a2a9913c333ee8e764b873794
FranklinChen/hugs98-plus-Sep2006
TypeMapping.hs
module Text.XML.HaXml.TypeMapping ( -- * A class to get an explicit type representation for any value sole method , toHType * Explicit representation of Haskell datatype information instance of Eq , Show instance of Eq , Show -- * Helper functions to extract type info as strings , showHType -- :: HType...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/HaXml/src/Text/XML/HaXml/TypeMapping.hs
haskell
* A class to get an explicit type representation for any value * Helper functions to extract type info as strings :: HType -> ShowS :: Int -> HType -> String ---------------------------------------------------------------------- idea: in DrIFT, named field == primitive type, becomes an attribute named ...
module Text.XML.HaXml.TypeMapping ( sole method , toHType * Explicit representation of Haskell datatype information instance of Eq , Show instance of Eq , Show * Conversion from Haskell datatype to DTD , toDTD ) where import Text.XML.HaXml.Types import Data.List (partition, intersperse) import Text.Pre...
cd83f4d659a492514e011b568d8d6ae9eccfe5f29107d27a7ac923c230c80dcf
erlang/otp
tls_socket.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/624a967f15d607416f51c61a4d0d70bf754cc222/lib/ssl/src/tls_socket.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1998 - 2022 . 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(tls_socket). -behaviour(gen_server). -include("ssl_internal.hrl"). -include("ssl_api.hrl"). -export([send/...
6196aa8b56adc43c6fb68b9da6e8ab5f208540419cf7fdbe03b5a8b30e295992
mikpe/pdp10-tools
sim_mem.erl
-*- erlang - indent - level : 2 -*- %%% simulator for pdp10 - elf Copyright ( C ) 2020 %%% This file is part of pdp10 - tools . %%% pdp10 - tools is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ,...
null
https://raw.githubusercontent.com/mikpe/pdp10-tools/99216b63317fe5b5ac18f1a0d3c81b464f8b8f40/erlang/apps/sim/src/sim_mem.erl
erlang
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ============================================================================= This simulates the addre...
-*- erlang - indent - level : 2 -*- simulator for pdp10 - elf Copyright ( C ) 2020 This file is part of pdp10 - tools . pdp10 - tools is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either vers...
8890d13ef7ae75d2d3100ad122383b382ee406f92ada577126e0a759fe23281e
andylokandy/jepsen-test
raw.cljc
;;;---------------------------------------------------------------------------------- ;;; Generated by protoc-gen-clojure. DO NOT EDIT ;;; ;;; Message Implementation of package tikv.raw ;;;---------------------------------------------------------------------------------- (ns tikv.raw (:require [protojure.protobuf.pr...
null
https://raw.githubusercontent.com/andylokandy/jepsen-test/15dc1818074738b200563b70905b44d2c37873e9/src/tikv/raw.cljc
clojure
---------------------------------------------------------------------------------- Generated by protoc-gen-clojure. DO NOT EDIT Message Implementation of package tikv.raw ---------------------------------------------------------------------------------- --------------------------------------------------------------...
(ns tikv.raw (:require [protojure.protobuf.protocol :as pb] [protojure.protobuf.serdes.core :as serdes.core] [protojure.protobuf.serdes.complex :as serdes.complex] [protojure.protobuf.serdes.utils :refer [tag-map]] [protojure.protobuf.serdes.stream :as serdes.stream] ...
adf1a1464f84599c1f1e7ca1a737d77f7d63c2fe5325c6a0d2077d67bcbf0956
alessiostalla/doplus
fset.lisp
Copyright ( C ) 2011 ;;; ;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your option) any later version. ;;; ;;; This program is distributed i...
null
https://raw.githubusercontent.com/alessiostalla/doplus/5b1ae044872580e6388c25ec2b31c26503e304f2/fset.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
Copyright ( C ) 2011 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :doplus) (defstruct (fset-iterator (:constructor %make-fset-iterator) ...
94c813683f12b5bede467efaf3257a4b33640f86df391a3998ebe22ef8a25d9d
agentultra/postgresql-replicant
Util.hs
module Database.PostgreSQL.Replicant.Util where import Control.Exception import GHC.Int mkInt64 :: Int -> Int64 mkInt64 k = fromIntegral k * 1000000 maybeThrow :: Exception e => e -> Maybe a -> IO a maybeThrow exc = \case Nothing -> throwIO exc Just x -> pure x
null
https://raw.githubusercontent.com/agentultra/postgresql-replicant/bb0b888dcc07bba73af98b985fe76d0d1919e2fb/src/Database/PostgreSQL/Replicant/Util.hs
haskell
module Database.PostgreSQL.Replicant.Util where import Control.Exception import GHC.Int mkInt64 :: Int -> Int64 mkInt64 k = fromIntegral k * 1000000 maybeThrow :: Exception e => e -> Maybe a -> IO a maybeThrow exc = \case Nothing -> throwIO exc Just x -> pure x
6f48138fa4300157f3c7ee074036944058c3c3befbb1762eab5b9a181fd1cee6
athanclark/dag
DAG.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE ExistentialQuantification # module Data.Graph.DAG ( module Data.Graph.DAG.Edge , module Data.Graph.DAG.Edge.Utils , module Data.Graph.DAG.Node , DAG (..) , glo...
null
https://raw.githubusercontent.com/athanclark/dag/805d83ee42d32e6ed2e5bc140a5001e03b2dec50/src/Data/Graph/DAG.hs
haskell
# LANGUAGE GADTs # | A (potentially sparse) directed acyclic graph, composed of edges and nodes. | @Data.Map.lookup@ duplicate. | Spanning trees of a graph. | Spanning tree of a particular node. "A possible tree of possible results"
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE ExistentialQuantification # module Data.Graph.DAG ( module Data.Graph.DAG.Edge , module Data.Graph.DAG.Edge.Utils , module Data.Graph.DAG.Node , DAG (..) , glookup ) where i...
042f26145209bc76f7d1c85c92c59310fd77d79893fed798954f48f55c332bf8
Gadjib/ocamlhomeworks
p2.ml
type 'a tree = Leaf | Node of ('a tree)*('a tree)*'a;; let rec is_balanced t = match t with | (Leaf, Leaf) -> true | (Leaf, Node (t1,t2,n)) -> if t1=Leaf && t2=Leaf then true else false | (Node (t1,t2,n), Leaf) -> if t1=Leaf && t2=Leaf then true else false | (t1,t2) -> is_balanced t1 && is_balances...
null
https://raw.githubusercontent.com/Gadjib/ocamlhomeworks/d5568d4830d4306ea56749f17af355bc35001eff/10%20%D0%BA%D0%BB%D0%B0%D1%81%D1%81/1%20%D1%87%D0%B5%D1%82%D0%B2%D0%B5%D1%80%D1%82%D1%8C/2020-11-23%20CW/p2.ml
ocaml
type 'a tree = Leaf | Node of ('a tree)*('a tree)*'a;; let rec is_balanced t = match t with | (Leaf, Leaf) -> true | (Leaf, Node (t1,t2,n)) -> if t1=Leaf && t2=Leaf then true else false | (Node (t1,t2,n), Leaf) -> if t1=Leaf && t2=Leaf then true else false | (t1,t2) -> is_balanced t1 && is_balances...
63540332971444f66d4dbd3857c708e3900b568e3b834336c8859f00a5cb146d
Decentralized-Pictures/T4L3NT
test_constants.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_112_Pt4FJEL6/lib_protocol/test/test_constants.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 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...
7a575fa14e9b0ed1fc6e99cb2cb4a810aacd5b320bb0e2c56d5379b85d9d6623
DavidAlphaFox/RabbitMQ
rabbit_basic.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_basic.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
0fdd92edd3890039c615dd3121c62370efb920a8e2cfe83c5ca77a5510ad2455
Denommus/monadic
monad.mli
module type MONOID = sig type t val empty : t val append : t -> t -> t end module type FUNCTOR = sig type 'a t val map : ('a -> 'b) -> 'a t -> 'b t end module type APPLICATIVE = sig include FUNCTOR val apply : ('a -> 'b) t -> 'a t -> 'b t val pure : 'a -> 'a t end module type ALTERNATIVE = sig i...
null
https://raw.githubusercontent.com/Denommus/monadic/7cbf9b309800303665a6712a9b57c1d9c66e75b8/library/monad.mli
ocaml
module type MONOID = sig type t val empty : t val append : t -> t -> t end module type FUNCTOR = sig type 'a t val map : ('a -> 'b) -> 'a t -> 'b t end module type APPLICATIVE = sig include FUNCTOR val apply : ('a -> 'b) t -> 'a t -> 'b t val pure : 'a -> 'a t end module type ALTERNATIVE = sig i...
8baa4191e42ff5f3ac4915aaaf43a8b5b8af882fa2ef807161edf833580595cc
abdulapopoola/SICPBook
Ex2.25.scm
#lang planet neil/sicp ; Pick 7 from lists (define list1 '(1 3 (5 7) 9)) (car (cdr (car (cdr (cdr list1))))) ;; Also works (car (cdaddr list1)) (newline) (define list2 '((7))) (car (car list2)) (caar list2) (newline) (define list3 '(1 (2 (3 (4 (5 (6 7))))))) (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cd...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.2/Ex2.25.scm
scheme
Pick 7 from lists Also works
#lang planet neil/sicp (define list1 '(1 3 (5 7) 9)) (car (cdr (car (cdr (cdr list1))))) (car (cdaddr list1)) (newline) (define list2 '((7))) (car (car list2)) (caar list2) (newline) (define list3 '(1 (2 (3 (4 (5 (6 7))))))) (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr list3)))))))))))) (cadadadr (cad...
9c2574fa1f94c48c01622cc9c992c81ae484c78d9bd46bd858dddbedc1c49e5a
logicmoo/wam_common_lisp
sysfun.lsp
CMPSYSFUN Database for system functions . ;;; Copyright ( c ) 1991 , . All rights reserved . ;;; Copying of this file is authorized to users who have executed the true and proper " License Agreement for ECoLisp " . ;;; ;;; For each system function it provides: ;;; ;;; name of corresponding C functio...
null
https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/cmp/sysfun.lsp
lisp
Copying of this file is authorized to users who have executed the true For each system function it provides: name of corresponding C function argtypes (list of types of arguments, * means optionals) return-type never-change-special-var-p predicate optimizers An optimizer is a property list: { propert...
CMPSYSFUN Database for system functions . Copyright ( c ) 1991 , . All rights reserved . and proper " License Agreement for ECoLisp " . where # 0 indicates the first argument . The optional @i indicates an argument to be saved into a variable before evaluating Cexpr . could be just eliminated sinc...
6bac7db86905707d2cfd3342f220361d556323184f68c23ab504f947ea8923d5
shirok/Gauche
mbed.scm
;;; ;;; rfc.tls.mbed - mbedTLS binding ;;; This is autoloaded from rfc.tls. Don't directly use this module. ;;; Copyright ( c ) 2018 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met:...
null
https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/ext/tls/tls/mbed.scm
scheme
rfc.tls.mbed - mbedTLS binding This is autoloaded from rfc.tls. Don't directly use this module. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyri...
Copyright ( c ) 2018 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (define-module rfc.tls.mbed (use rfc.tls) ...
ab32d88fcc1233e91fc756e1c7c3dd9d536d1a03a9013f4292818dcf5f576ffd
LexiFi/landmarks
test.ml
* This test is a bit like test / ppx except we do not use the ' let[@landmark ] ... ' construction * which was not available in ocaml 4.02 . * which was not available in ocaml 4.02. *) let rec fib n = (if n <= 1 then 1 else fib (n - 1) + fib (n - 2))[@landmark "fib"] let rec even n = (match n with | 0 ...
null
https://raw.githubusercontent.com/LexiFi/landmarks/ea90c657f39d03d14d892732ad58123711eb9457/tests/ppx-simpler/test.ml
ocaml
Should be useless
* This test is a bit like test / ppx except we do not use the ' let[@landmark ] ... ' construction * which was not available in ocaml 4.02 . * which was not available in ocaml 4.02. *) let rec fib n = (if n <= 1 then 1 else fib (n - 1) + fib (n - 2))[@landmark "fib"] let rec even n = (match n with | 0 ...