_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
2660354a22a264410b91bf3174b6a346fcdcd0cb9ae367101d7174e97e7c3b9b
coq/coq
equality.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/284b7133ff792dab82c658a274db0c5e0a04d2d5/tactics/equality.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
f0c81cb602ed8875632655666069f5f4d133b3fceb2bde1d8fc2f417f0a5bc5e
Eventuria/demonstration-gsd
Wrapper.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Eventuria.Adapters.Servant.Wrapper where import Servant import qualified Pipes as P type PipeStream item = P.Producer (item) IO () type ServantApplication api serverDependencies = Proxy api -> ServantServer api serverDependencies -> serverDependencies -> A...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Adapters/Servant/Wrapper.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Eventuria.Adapters.Servant.Wrapper where import Servant import qualified Pipes as P type PipeStream item = P.Producer (item) IO () type ServantApplication api serverDependencies = Proxy api -> ServantServer api serverDependencies -> serverDependencies -> A...
b99e38e1b381bd7923a3a30afae524117702a1b9d47610ee89217cd95e8d99fa
evansb/cis194-hw
LogAnalysis.hs
# OPTIONS_GHC -Wall # CIS194 Homework 2 By ( ) -- /~cis194/hw/02-ADTs.pdf module LogAnalysis where import Log isNumeric:: String -> Bool isNumeric s = case reads s :: [(Int, String)] of [(_, "")] -> True _ -> False parseMessage construct a LogMessage from a par...
null
https://raw.githubusercontent.com/evansb/cis194-hw/7ee2bc5e45a6c61d021b43e19ded66a0899f9c33/spring_2013/hw2/LogAnalysis.hs
haskell
/~cis194/hw/02-ADTs.pdf
# OPTIONS_GHC -Wall # CIS194 Homework 2 By ( ) module LogAnalysis where import Log isNumeric:: String -> Bool isNumeric s = case reads s :: [(Int, String)] of [(_, "")] -> True _ -> False parseMessage construct a LogMessage from a parseMessage:: String -> LogMe...
2f569352a20bc19a0f25b084312e34c7adfec6695e75b8bd18ca99872e550a6f
pleasetrythisathome/bardo
interpolate.cljc
(ns bardo.interpolate (:require #?(:cljs [cljs.core.match :refer-macros [match]] :clj [clojure.core.match :refer [match]]) [clojure.set :refer [union]] [bardo.ease :as ease])) ;; a protocol for birthing new values from nil (defprotocol IFresh (fresh [x])) #?(:clj (extend-protocol IFresh ...
null
https://raw.githubusercontent.com/pleasetrythisathome/bardo/d400efa828d3ccfae5d4f058200bff1fbfd8f66b/src/bardo/interpolate.cljc
clojure
a protocol for birthing new values from nil (println :wrap-infinite [x y])
(ns bardo.interpolate (:require #?(:cljs [cljs.core.match :refer-macros [match]] :clj [clojure.core.match :refer [match]]) [clojure.set :refer [union]] [bardo.ease :as ease])) (defprotocol IFresh (fresh [x])) #?(:clj (extend-protocol IFresh java.lang.Number (fresh [x] ...
92d2093204eda0d4c7456e0d973b61339e26edb2de05150ac8d53f36bc355a66
eighttrigrams/cljc-minimals
ui.cljs
(ns ui (:require [ajax.core :refer [POST]])) (defn fetch [] (POST "/api" {:body (.stringify js/JSON (clj->js {:msg "hi"})) :headers {"Content-Type" "application/json"} :handler (fn [resp] (prn "Response from backend:" resp)) :error-handler (fn [resp] (prn "Error resp...
null
https://raw.githubusercontent.com/eighttrigrams/cljc-minimals/3b45ac877ed491c7f5d7623d0014e8ed5834cfce/shadow-cljs/src/cljs/ui.cljs
clojure
start is called by init and after code reloading finishes init is called ONCE when the page loads this is called in the index.html and must be exported so it is available even in :advanced release builds this is called before any code is reloaded
(ns ui (:require [ajax.core :refer [POST]])) (defn fetch [] (POST "/api" {:body (.stringify js/JSON (clj->js {:msg "hi"})) :headers {"Content-Type" "application/json"} :handler (fn [resp] (prn "Response from backend:" resp)) :error-handler (fn [resp] (prn "Error resp...
a72a42dfcd3fcfe3bd93f572b8f21877877323598b65bfbe5cb251cabcbba956
clash-lang/clash-compiler
FreeVars.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module Clash.Tests.Core.FreeVars (tests) where #if MIN_VERSION_ghc(9,0,0) import GHC.Types.SrcLoc (noSrcSpan) #else import SrcLoc (noSrcSpan) #endif import qualified Control.Lens as Lens import Test.T...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/clash-lib/tests/Clash/Tests/Core/FreeVars.hs
haskell
# LANGUAGE OverloadedStrings # TODO: We need tooling to create these mock constructs \f -> g f g is _global_. In other words: \f[l] -> f[g] f[l] This term is tested against to check whether various functions account for the distinction between local/global variables correctly.
# LANGUAGE CPP # module Clash.Tests.Core.FreeVars (tests) where #if MIN_VERSION_ghc(9,0,0) import GHC.Types.SrcLoc (noSrcSpan) #else import SrcLoc (noSrcSpan) #endif import qualified Control.Lens as Lens import Test.Tasty import Test.Tasty.HU...
0b0763a7e32e6f62396e2862474d869bd69baefa5254e42a53939b3bf86dfcb9
ghcjs/ghcjs-dom
MediaControlsHost.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.MediaControlsHost (js_sortedTrackListForMenu, sortedTrackListForMenu, sortedTra...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/MediaControlsHost.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/MediaControlsHost.updateTextTrackContainer Mozilla MediaControlsHost.updateTextTrackContainer documentation> | <-US/docs/Web/API/MediaControlsHost.exitedFullscreen Mozilla MediaControlsHost.exitedFullscre...
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.MediaControlsHost (js_sortedTrackListForMenu, sortedTrackListForMenu, sortedTrackListForMenu_, js_sortedTrackListForMenuAudio, sortedTrackListForMenuAudio, sortedTrackLis...
5e0919cf8d3a974eb149dcff13540e02eb40b870e150ce9d761d7bed68b99958
matteoredaelli/ebot
ebot_db_doc.erl
EBOT , an erlang web crawler . Copyright ( C ) 2010 2011 ~ matteo DOT AT libero DOT it %% / %% %% 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...
null
https://raw.githubusercontent.com/matteoredaelli/ebot/6a6af4eb345adfa05b4508ed2dec529413d97da8/src/ebot_db_doc.erl
erlang
/ 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...
EBOT , an erlang web crawler . Copyright ( C ) 2010 2011 ~ matteo DOT AT libero DOT it 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 Created : 2 Jan...
d2d34511e1af42d025612490b2b6cc43f20c0f7acb8a2efa4faaaf4f6316c03b
DHSProgram/DHS-Indicators-SPSS
HK_KNW_ATD_MR.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_KNW_ATD_MR.sps Purpose: Code to compute HIV-AIDS related knowledge and attitude indicators Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf ...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap13_HK/HK_KNW_ATD_MR.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_KNW_ATD_MR.sps Purpose: Code to compute HIV-AIDS related knowledge and attitude indicators Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf ...
15835c62d13f7d9920d8caa48e021a6c16fe5b9f58f8b1231789aa4d1d8b8745
racket/typed-racket
bad-struct-prop3.rkt
#; (exn-pred " Type Checker: parse error in type") #lang typed/racket (struct (X) foo ([a : X]) #:property prop:custom-write (λ ([self : foo] [p : Output-Port] [m : (U 0 1 Boolean)]) (display 'ha)))
null
https://raw.githubusercontent.com/racket/typed-racket/d65ff8bd7146b15b79f31506f8aca410aed196e4/typed-racket-test/fail/bad-struct-prop3.rkt
racket
(exn-pred " Type Checker: parse error in type") #lang typed/racket (struct (X) foo ([a : X]) #:property prop:custom-write (λ ([self : foo] [p : Output-Port] [m : (U 0 1 Boolean)]) (display 'ha)))
b251faa82ed7c26a3d83820b1739301513af9614d5f04f142a8dd5a4496be098
xapi-project/message-switch
rrd_cli.ml
(* Rrd CLI *) module Cmds = Rrd_interface.RPC_API (Cmdlinergen.Gen ()) let version_str description = let maj, min, mic = description.Idl.Interface.version in Printf.sprintf "%d.%d.%d" maj min mic let default_cmd = let doc = String.concat "" [ "A CLI for the Db monitoring API. This allows scri...
null
https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/rrd/rrd_cli.ml
ocaml
Rrd CLI
module Cmds = Rrd_interface.RPC_API (Cmdlinergen.Gen ()) let version_str description = let maj, min, mic = description.Idl.Interface.version in Printf.sprintf "%d.%d.%d" maj min mic let default_cmd = let doc = String.concat "" [ "A CLI for the Db monitoring API. This allows scripting of the R...
21333269c5638c45688541a94aa03750bbfa761e428a1a13e2e592f36e38c82e
serokell/ariadne
AddWallet.hs
module Ariadne.UI.Vty.Widget.AddWallet ( initAddWalletWidget ) where import Control.Lens (assign, makeLensesWith, (.=)) import qualified Brick as B import qualified Data.Text as T import Ariadne.UI.Vty.Face import Ariadne.UI.Vty.Scrolling import Ariadne.UI.Vty.Widget import Ariadne.UI.Vty.Widget.Form.B...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/vty-lib/src/Ariadne/UI/Vty/Widget/AddWallet.hs
haskell
-------------------------------------------------------------------------- -------------------------------------------------------------------------- ^ Mnemonic -------------------------------------------------------------------------- View -------------------------------------------------------------------------- --...
module Ariadne.UI.Vty.Widget.AddWallet ( initAddWalletWidget ) where import Control.Lens (assign, makeLensesWith, (.=)) import qualified Brick as B import qualified Data.Text as T import Ariadne.UI.Vty.Face import Ariadne.UI.Vty.Scrolling import Ariadne.UI.Vty.Widget import Ariadne.UI.Vty.Widget.Form.B...
8e22b71162b98a278cdafc4fcc960a5a1f387247f663b38103739c6f43f254c1
ijvcms/chuanqi_dev
map_20245.erl
-module(map_20245). -export([ range/0, data/0 ]). range() -> {52, 52}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20245.erl
erlang
-module(map_20245). -export([ range/0, data/0 ]). range() -> {52, 52}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1...
348d0eb9b22a382f26a7c87edbe543c6aab14a786b003a891c225fd19f5360c8
pbrisbin/tee-io
main-worker.hs
import Prelude (IO) import Worker (workerMain) main :: IO () main = workerMain
null
https://raw.githubusercontent.com/pbrisbin/tee-io/26f4643a7f44fafb9bf92f1c1f82a60309dc8b66/app/main-worker.hs
haskell
import Prelude (IO) import Worker (workerMain) main :: IO () main = workerMain
75cf9e6a30685e13bd45661e08b93ff2d1907d4eb5b7d43b2cdb07045424c5b1
ocaml-gospel/vocal
PairingHeap.mli
(**************************************************************************) (* *) VOCaL -- A Verified OCaml Library (* *) Copyright ( ...
null
https://raw.githubusercontent.com/ocaml-gospel/vocal/0fcae7078963c78c8c7222b4b94b15feeae479b9/src/PairingHeap.mli
ocaml
************************************************************************ (as described in file LICE...
VOCaL -- A Verified OCaml Library Copyright ( c ) 2020 The VOCaL Project This software is free software , distributed under the MIT license FIXME : use ComparableType . S instead type t val compare : t -> t -> int end) : sig ...
c9994e76326b99e217e72ac026edc745a0daef176a08f234efd992c1614c3acf
haskell-opengl/OpenGLRaw
TextureCompressionRGTC.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.TextureCompressionRGTC Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/TextureCompressionRGTC.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.TextureCompressionRGTC License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.TextureCompressionRGTC ( glGetARBTextureCompressionRGTC, gl_ARB_texture_compression_rgtc, pattern GL_COMPRESSED_RED_RGTC1, pattern GL_COMPRESSED_RG_RGTC2, pattern GL_COMPRESSED_SIGNED_RED_RGTC1, pa...
76ffbb7b68d7d6a14c160a0f414dd4747632ef936c80f4ccea49e51cdd92f003
robert-strandh/SICL
equalp-defgeneric.lisp
(cl:in-package #:sicl-data-and-control-flow) (defgeneric equalp (x y)) (defmethod equalp (x y) (declare (ignore x y)) nil) (defmethod equalp :around (x y) (or (eq x y) (call-next-method)))
null
https://raw.githubusercontent.com/robert-strandh/SICL/989c6711c7858cce804c126d51f70dd458881f02/Code/Data-and-control-flow/equalp-defgeneric.lisp
lisp
(cl:in-package #:sicl-data-and-control-flow) (defgeneric equalp (x y)) (defmethod equalp (x y) (declare (ignore x y)) nil) (defmethod equalp :around (x y) (or (eq x y) (call-next-method)))
a7bc8c9055bb9519386bdd05b131d4f00822fdad86cefa121d85c0987ccd7b53
clojurecademy/clojurecademy
session_and_cookie.clj
(ns clojurecademy.middleware.session-and-cookie (:require [clojurecademy.util.resource :as resource.util] [clojurecademy.middleware.anti-forgery :as anti-forgery] [clojure.tools.logging :as log] [kezban.core :refer :all])) (defn- get-request? [{method :request-method}] (or (=...
null
https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/middleware/session_and_cookie.clj
clojure
(ns clojurecademy.middleware.session-and-cookie (:require [clojurecademy.util.resource :as resource.util] [clojurecademy.middleware.anti-forgery :as anti-forgery] [clojure.tools.logging :as log] [kezban.core :refer :all])) (defn- get-request? [{method :request-method}] (or (=...
319aad81340b3c5e4b798b7abf24876f23cdf18d20f978073f9a3b844571aeda
gheber/kenzo
simplicial-groups-test.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (in-package :kenzo-test-7) (in-suite :kenzo-7) (test check-kan (cat-7:cat-init) (let* ((k (cat-7:k-z-1)) (rslt '(1 10 100)) (hat (mapcar #'(lambda (i) (cat-7:face k i 3 rslt)) (cat-7:<a-b...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/test/kenzo-7/simplicial-groups-test.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - *
(in-package :kenzo-test-7) (in-suite :kenzo-7) (test check-kan (cat-7:cat-init) (let* ((k (cat-7:k-z-1)) (rslt '(1 10 100)) (hat (mapcar #'(lambda (i) (cat-7:face k i 3 rslt)) (cat-7:<a-b> 0 3)))) (dotimes (i 4) (cat-7:check-kan k i 3 ...
3426394a5447af7c0cabf3e865cbed5062fac8076b27659f3d7831b5e8ef1e94
andrewvc/engulf
database.clj
(ns engulf.database (:require [engulf.formula :as forumla] [engulf.settings :as settings] [engulf.utils :as utils] [cheshire.core :as json] [clojure.java.jdbc :as jdbc] [clojure.walk :as walk]) (:use korma.db korma.core) (:import java.util.UUID)) (defn ...
null
https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/database.clj
clojure
(ns engulf.database (:require [engulf.formula :as forumla] [engulf.settings :as settings] [engulf.utils :as utils] [cheshire.core :as json] [clojure.java.jdbc :as jdbc] [clojure.walk :as walk]) (:use korma.db korma.core) (:import java.util.UUID)) (defn ...
ba08183cdefdf8cba5907092e95359190968120fda04bf45437361cf55467a5f
jackfirth/rebellion
precondition.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [check-precondition (unconstrained-domain-> void?)])) ;@---------------------------------------------------------------------------------------------------- (define (check-precondition precondition source-name error-message-template . te...
null
https://raw.githubusercontent.com/jackfirth/rebellion/206ced365b07d1c6da5dcbe93f892fbb9bd7ba72/private/precondition.rkt
racket
@----------------------------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [check-precondition (unconstrained-domain-> void?)])) (define (check-precondition precondition source-name error-message-template . template-args) (unless precondition (apply raise-arguments-error source-name error-message-template...
999c9eff1527cc83a0e4b96cdcb4d4321f94e06ebdaf1f7d0b123da79eb48cb5
henryw374/cljc.java-time
decimal_style.cljs
(ns cljc.java-time.format.decimal-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [DecimalStyle]])) (def standard (goog.object/get java.time.format.DecimalStyle "STANDARD")) (clojure.core/def...
null
https://raw.githubusercontent.com/henryw374/cljc.java-time/2e47e8104bc2ec7f68a01bf751a7b9a2dee391b4/src/cljc/java_time/format/decimal_style.cljs
clojure
(ns cljc.java-time.format.decimal-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [DecimalStyle]])) (def standard (goog.object/get java.time.format.DecimalStyle "STANDARD")) (clojure.core/def...
1a739b62b37357e4c92400bd4f516827df8be6191a6aa67bbd8c52cf1cfd893e
may-liu/qtalk
str.erl
%%%---------------------------------------------------------------------- %%% File : str.erl Author : < > %%% Purpose : Provide binary string manipulations Created : 23 Feb 2012 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne %%% %%% This program is free software; you can redistribu...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/str.erl
erlang
---------------------------------------------------------------------- File : str.erl Purpose : Provide binary string manipulations This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, b...
Author : < > Created : 23 Feb 2012 by < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
b173cacfd850269ed748d0bf0f57a091cc8ccae380ea943114026310dc67fdfb
melisgl/mgl
gaussian-process.lisp
(in-package :mgl-gp) Gaussian processes Gaussian processes are defined by the mean and covariance ;;; functions. (defclass gp () ()) (defgeneric gp-means (gp x) (:documentation "Returns the vector of means for the vector of inputs X. X is a vector of arbitrary objects.")) (defgeneric gp-covariances* (gp x...
null
https://raw.githubusercontent.com/melisgl/mgl/27a2552632a6a9330c1a133e519e676d9c6ca714/src/gaussian-process.lisp
lisp
functions. mean_i = (funcall mean-fn x_i) cov_ij = (funcall covariance-fn x_i x_j) POSTERIOR-GP A gp that takes some evidence into account (see UPDATE-GP). Can't be trained. optimization: cov = cov-1-2 - a * cov-1-e^t general case: cov = cov-1-2 - a * cov-e-2 updated. covariance. SET-INPUT is expected to tak...
(in-package :mgl-gp) Gaussian processes Gaussian processes are defined by the mean and covariance (defclass gp () ()) (defgeneric gp-means (gp x) (:documentation "Returns the vector of means for the vector of inputs X. X is a vector of arbitrary objects.")) (defgeneric gp-covariances* (gp x1 x2) (:docum...
2f1367ac011e6f8556ba032c86dd070219f4e5d607ed685c1b85747ebcb1739c
zalora/aws-ec2
TerminateInstances.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , RecordWildCards , TemplateHaskell , LambdaCase # , MultiParamTypeClasses , FlexibleInstances , OverloadedS...
null
https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Ec2/Commands/TerminateInstances.hs
haskell
-query-TerminateInstances.html
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , RecordWildCards , TemplateHaskell , LambdaCase # , MultiParamTypeClasses , FlexibleInstances , OverloadedS...
c4d9a735d5f0c6881ad2227eab0bfa8e4288e727c4040fbc5ed360e434431ded
input-output-hk/ouroboros-network
CommonProtocolParams.hs
module Ouroboros.Consensus.Ledger.CommonProtocolParams (CommonProtocolParams (..)) where import Data.Word (Word32) import Ouroboros.Consensus.Ledger.Abstract -- | Ask the ledger for common protocol parameters. class UpdateLedger blk => CommonProtocolParams blk where -- | The maximum header siz...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus/src/Ouroboros/Consensus/Ledger/CommonProtocolParams.hs
haskell
| Ask the ledger for common protocol parameters. | The maximum header size in bytes according to the currently adopted protocol parameters of the ledger state. | The maximum transaction size in bytes according to the currently adopted protocol parameters of the ledger state.
module Ouroboros.Consensus.Ledger.CommonProtocolParams (CommonProtocolParams (..)) where import Data.Word (Word32) import Ouroboros.Consensus.Ledger.Abstract class UpdateLedger blk => CommonProtocolParams blk where maxHeaderSize :: LedgerState blk -> Word32 maxTxSize :: LedgerState blk -> W...
0e017cf292d515c61a00a44e006091f4193dd480438f3bfa31fa527865598edb
mtolly/onyxite-customs
Genre.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Onyx.Genre ( interpretGenre, FullGenre(..) , GenreWoR(..), displayWoRGenre, qbWoRGenre, rbn2ToWoRGenre ) where import Control.Monad (guard) import Data.Char (isAlphaNum) import Data.Maybe (catM...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Genre.hs
haskell
# LANGUAGE OverloadedStrings # first just check if it matches a top genre then, if it's not something super-generic, check if it's a subgenre then, check if a subgenre and genre are both inside it finally, check if just a genre is inside it (urban, electronica) also seems to work note: dta name is misspelled rep...
# LANGUAGE LambdaCase # module Onyx.Genre ( interpretGenre, FullGenre(..) , GenreWoR(..), displayWoRGenre, qbWoRGenre, rbn2ToWoRGenre ) where import Control.Monad (guard) import Data.Char (isAlphaNum) import Data.Maybe (catMaybes, fromMaybe, listToMaybe) impo...
b50a2ee340fe19cba861513e576d2544bbe78fc02faa0b914241a13e19c9de7b
GaloisInc/msf-haskell
Monad.hs
|The MSF monad encapsulates state , including logged - in credentials -- and enforces the volume (silent, quiet, loud) context. {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE EmptyDataDecls #-} --{-# LANGUAGE DataKinds #-} --{-# LANGUAGE KindSignatures #-} module MSF.Monad ...
null
https://raw.githubusercontent.com/GaloisInc/msf-haskell/76cee10771f9e9d10aa3301198e09f08bde907be/src/MSF/Monad.hs
haskell
and enforces the volume (silent, quiet, loud) context. # LANGUAGE DeriveDataTypeable # # LANGUAGE EmptyDataDecls # {-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} data Volume = Silent | Quiet | Loud server, but does not itself directly cause any action that server or listing open sessions. This class cov...
|The MSF monad encapsulates state , including logged - in credentials # LANGUAGE GeneralizedNewtypeDeriving # module MSF.Monad where import MSF.Event.Prim import MSF.Host import qualified RPC.Auth as RPC import qualified RPC.Console as RPC import Control.Applicative (Applicative, (<$>)) import Data.Typeable ...
b5414c5e06cb443e715282605679c5bf4a1ac2218e0a0f0d3bf7e99f5e4555ce
parapluu/Concuerror
io_error.erl
-module(io_error). -export([scenarios/0]). -export([test/0]). scenarios() -> [{test, inf, dpor}]. test() -> io:format(standard_error,"Test",[]), receive after infinity -> ok end.
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/io_error.erl
erlang
-module(io_error). -export([scenarios/0]). -export([test/0]). scenarios() -> [{test, inf, dpor}]. test() -> io:format(standard_error,"Test",[]), receive after infinity -> ok end.
917b64cf8c2f3d4111da803c2f1800135c90c906dffbfd68011440b9284df1d2
d-plaindoux/transept
lexeme.mli
type t = | Float of float | String of string | Char of char | Ident of string | Keyword of string | Spaces of string | Special of char module Make (Parser : Transept_specs.PARSER with type e = t) : sig val float : float Parser.t val string : string Parser.t val char : char Parser.t val ident :...
null
https://raw.githubusercontent.com/d-plaindoux/transept/8567803721f6c3f5d876131b15cb301cb5b084a4/lib/transept_genlex/lexeme.mli
ocaml
type t = | Float of float | String of string | Char of char | Ident of string | Keyword of string | Spaces of string | Special of char module Make (Parser : Transept_specs.PARSER with type e = t) : sig val float : float Parser.t val string : string Parser.t val char : char Parser.t val ident :...
d66673e5b57ff736bedffaf777956b9bc270b5ce97798204031034cd42d46e27
gilith/hol-light
mk_ensures.ml
(*---------------------------------------------------------------------------*) File : mk_ensures.sml Description : This file defines ENSURES and the theorems and corrollaries described in [ CM88 ] . Author : ( c ) Copyright 1989 - 2008 by Date : Jun...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Unity/mk_ensures.ml
ocaml
--------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------...
File : mk_ensures.sml Description : This file defines ENSURES and the theorems and corrollaries described in [ CM88 ] . Author : ( c ) Copyright 1989 - 2008 by Date : June 29 , 1989 Last Update : December 30 , 2007 File: mk_ensure...
7c3e379dd323a5ae0a72d3076fec3b959931d55f4c7b28522b6a5cd42e3e7fd8
pbrisbin/yesod-comments
Utils.hs
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # ------------------------------------------------------------------------------- -- | Module : Yesod . Comments . Utils Copyright : ( c ) 2010 -- License : as-is -- -- Maintainer : -- Stabilit...
null
https://raw.githubusercontent.com/pbrisbin/yesod-comments/9242aadf4b356c8cd9764f85c87278d25977be42/Yesod/Comments/Utils.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- | License : as-is Maintainer : Stability : unstable Portability : unportable ----------------------------------------------------------------------------- | Map...
# LANGUAGE FlexibleContexts # Module : Yesod . Comments . Utils Copyright : ( c ) 2010 module Yesod.Comments.Utils ( commentUserDetails , currentUserDetails , requireUserDetails , defaultUserDetails , isCommentingUser , gravatar ) where import Yesod import Yesod.Auth im...
9a5b1608e09d62623785645ee3541605dd39552ba4915cca9103b8bf305cbc58
wfnuser/sicp-solutions
e3-22.scm
(define (make-queue) (let ((front-ptr '()) (rear-ptr '())) (define (insert-queue item) (let ((new-item (cons item '()))) (if (null? front-ptr) (begin (display item) (set! front-ptr new-item) ...
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch3/e3-22.scm
scheme
(define (make-queue) (let ((front-ptr '()) (rear-ptr '())) (define (insert-queue item) (let ((new-item (cons item '()))) (if (null? front-ptr) (begin (display item) (set! front-ptr new-item) ...
391c0efc014b68ae497c18d940d517869fc28794075bc0155a64e25b471a2cc8
granule-project/gerty
SNatX.hs
# OPTIONS_GHC -fno - warn - missing - methods # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # # # LANGUAGE ScopedTypeVariables # -- | Represents the extended natural numbers in the solver module Language.Gerty.TypeChecking.Constraints.SNatX where import Control . ( ( < = < ) ) import Data.S...
null
https://raw.githubusercontent.com/granule-project/gerty/972fa027973032a4499747039b45e744ca17e9e2/src/Language/Gerty/TypeChecking/Constraints/SNatX.hs
haskell
# LANGUAGE DeriveAnyClass # | Represents the extended natural numbers in the solver ??? monus main :: IO () main = print =<< sat do [x, y, z] <- mapM freeSNatX ["x", "y", "z"] return $ sAnd [ x .== x+1 -- x = ∞ y ≠ 0 , y .< x -- y ≠ ∞ z = 0 ] main :: IO () main = print =<< prove do ...
# OPTIONS_GHC -fno - warn - missing - methods # # LANGUAGE DeriveGeneric # # # # LANGUAGE ScopedTypeVariables # module Language.Gerty.TypeChecking.Constraints.SNatX where import Control . ( ( < = < ) ) import Data.SBV import GHC.Generics (Generic) newtype SNatX = SNatX { xVal :: SInteger } deriving (Ge...
1d1443fb65ed58a60994ae703714c5cc650cde42f691a27dcc0e05054bb74823
juxt/apex
doc.clj
Copyright © 2020 , JUXT LTD . (ns juxt.apex.doc (:require [clojure.string :as str])) (def extract-params-pattern #"\{([^\}]*)\}") (defn path-for [api opId params] (first (for [[path pi] (get api "paths") [method {:strs [operationId]} op] pi :while (= operationId opId)] (str/replace...
null
https://raw.githubusercontent.com/juxt/apex/cb4c0016d817ebb03d4f84e572ca71edd84ed79d/modules/deprecated/src/juxt/apex/doc.clj
clojure
Copyright © 2020 , JUXT LTD . (ns juxt.apex.doc (:require [clojure.string :as str])) (def extract-params-pattern #"\{([^\}]*)\}") (defn path-for [api opId params] (first (for [[path pi] (get api "paths") [method {:strs [operationId]} op] pi :while (= operationId opId)] (str/replace...
ad25c860fa6df1cd9b0e2621d9dbce1b5e1d3e70741dc854da856d3a63afdb8c
mrosset/nomad
webview.scm
;; webview.scm Copyright ( C ) 2017 - 2018 < > This file is part of Nomad Nomad 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 v...
null
https://raw.githubusercontent.com/mrosset/nomad/c94a65ede94d86eff039d2ef62d5ef3df609568a/scheme/tests/webview.scm
scheme
webview.scm (at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. with this program. If not, see </>. (define-class <wildebeest> () #:metaclass <redefinable-class>) ...
Copyright ( C ) 2017 - 2018 < > This file is part of Nomad Nomad 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 Nomad is distributed in the hope that it wi...
f04607019deb3ee8dd3f7d0e961c83b73dedbe6a17c478e4cd56fd6464783672
awkay/om-tutorial
F_Mutation.cljs
(ns om-tutorial.F-Mutation (:require-macros [cljs.test :refer [is]]) (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom] [devcards.core :as dc :refer-macros [defcard defcard-doc]])) (defcard-doc " # Mutation This section covers local app state modification. Any modifica...
null
https://raw.githubusercontent.com/awkay/om-tutorial/83ca10d91380ba62458b98ccaa80fd11b9c8321d/src/tutorial/om_tutorial/F_Mutation.cljs
clojure
(ns om-tutorial.F-Mutation (:require-macros [cljs.test :refer [is]]) (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom] [devcards.core :as dc :refer-macros [defcard defcard-doc]])) (defcard-doc " # Mutation This section covers local app state modification. Any modifica...
9208525fd4ffc0f767406791973e38031912effb906ac23f41107dce05916c36
hopv/MoCHi
CHC.ml
open Util open Syntax open Type open Term_util module Debug = Debug.Make(struct let check = Flag.Debug.make_check __MODULE__ end) type atom = Term of term | PApp of id * id list type constr = {head:atom; body:atom list} (* if head is the form of `PApp(p,xs)`, `xs` must be distinct each other *) type t = constr list t...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/src/CHC.ml
ocaml
if head is the form of `PApp(p,xs)`, `xs` must be distinct each other Trivial simplification Remove predicates which do not occur in a body TODO: fix Backward inlinining Remove clause whose body is unsatisfiable Remove clause whose body is unsatisfiable Merge simple constraints for the same head "sim...
open Util open Syntax open Type open Term_util module Debug = Debug.Make(struct let check = Flag.Debug.make_check __MODULE__ end) type atom = Term of term | PApp of id * id list type t = constr list type pvar = id module PVarSet = Set.Make(ID) let is_base_const t = match t.desc with | Const _ -> is_base_typ t.t...
5ee08f30d1c4c04a2211b6c57bf38d83bb22291495bea799c4b004ce1edd748d
racket/string-constants
test-docs-complete.rkt
#lang racket/base (require rackunit/docs-complete) (check-docs (quote string-constants/string-constant)) (check-docs (quote string-constants))
null
https://raw.githubusercontent.com/racket/string-constants/992be713c785cbca2e436541de75597d98c15b4b/string-constants-lib/string-constants/tests/test-docs-complete.rkt
racket
#lang racket/base (require rackunit/docs-complete) (check-docs (quote string-constants/string-constant)) (check-docs (quote string-constants))
7966033d27a0aae8ebb3f1ddff79f5acc2b19c678c74c44f91f8ed806bd15dff
domenkozar/paddle
SubscriptionUsersUpdateResponse.hs
module Paddle.Client.SubscriptionUsersUpdateResponse where import Data.Aeson (FromJSON, parseJSON, genericParseJSON) import Protolude import Prelude () import Paddle.FieldModifier (customJSONOptions) data SubscriptionUsersUpdateResponse = SubscriptionUsersUpdateResponse { subscriptionId :: Integer , planId :: Int...
null
https://raw.githubusercontent.com/domenkozar/paddle/2def5a4e84499d529c3b205b7a83d923e039e13a/src/Paddle/Client/SubscriptionUsersUpdateResponse.hs
haskell
TODO: nextPayment
module Paddle.Client.SubscriptionUsersUpdateResponse where import Data.Aeson (FromJSON, parseJSON, genericParseJSON) import Protolude import Prelude () import Paddle.FieldModifier (customJSONOptions) data SubscriptionUsersUpdateResponse = SubscriptionUsersUpdateResponse { subscriptionId :: Integer , planId :: Int...
5430e988b97bf91dda34766261ae31ed850538cdd1daf4f43913cff8fb90c00a
roddyyaga/quests
option.ml
let get = function | Some v -> v | None -> raise (Invalid_argument "option is None") let value opt ~default = match opt with Some v -> v | None -> default
null
https://raw.githubusercontent.com/roddyyaga/quests/72395040b5da1f02a6fe3a0fe0d1e96e9f8d50cd/lib/option.ml
ocaml
let get = function | Some v -> v | None -> raise (Invalid_argument "option is None") let value opt ~default = match opt with Some v -> v | None -> default
3aa352a7e1ba791fe95e54e86d7c0258d90158f343b5e8517a134268f1fae1a6
ocaml-sf/learn-ocaml-corpus
cmp_OTrue.ml
let pigeonhole_sort (bound : int) (kvs : (int * 'v) list) : 'v list = (* Create an array of buckets, each of which is initially empty. *) assert (0 <= bound); let bucket : 'v list array = Array.make bound [] in (* Place every value into an appropriate bucket, according to its key. *) List.iter (fun (k, v) -> ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/generic_sorting/wrong/cmp_OTrue.ml
ocaml
Create an array of buckets, each of which is initially empty. Place every value into an appropriate bucket, according to its key. Reverse the list stored in every bucket, so as to have a stable sort. Concatenate all buckets. wrong
let pigeonhole_sort (bound : int) (kvs : (int * 'v) list) : 'v list = assert (0 <= bound); let bucket : 'v list array = Array.make bound [] in List.iter (fun (k, v) -> assert (0 <= k && k < bound); bucket.(k) <- v :: bucket.(k) ) kvs; for k = 0 to bound - 1 do bucket.(k) <- List.rev bucket.(k) d...
ddbba4a41e087315a016c9031667c0fbb001882c117e933d0602a3c78daebf81
40ants/reblocks
actions.lisp
(uiop:define-package #:reblocks/actions (:use #:cl) (:import-from #:log) (:import-from #:reblocks/app #:get-prefix #:get-prefix-actions) (:import-from #:reblocks/utils/misc #:safe-apply) (:import-from #:reblocks/variables #:*action-string* ...
null
https://raw.githubusercontent.com/40ants/reblocks/99986524e61ac90fa73e05b15d07310bbd378dea/src/actions.lisp
lisp
Just dependencies TODO: decide what to do with application wide actions because GET-REQUEST-ACTION will not return *current-page* for them - current-page's code-to-action map. When page is expired, then all actions will be garbage collected and removed from hash tables bound to a session - session code->acti...
(uiop:define-package #:reblocks/actions (:use #:cl) (:import-from #:log) (:import-from #:reblocks/app #:get-prefix #:get-prefix-actions) (:import-from #:reblocks/utils/misc #:safe-apply) (:import-from #:reblocks/variables #:*action-string* ...
9f1036399cec0dd1506fe9b5514337e5faa8c242d15aff558a21088b8eccbe05
hemmi/coq2scala
lexer.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/parsing/lexer.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * for coqdoc
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util val add_ke...
afdef9a9a41fca1cc8387397ae3260ef7c33c14279eb054777066bbfb795efe7
REPROSEC/dolev-yao-star
Spec_Box_Test.ml
open Prims let (plain : FStar_UInt8.t Prims.list) = FStar_List_Tot_Base.map (fun x -> x) [FStar_UInt8.uint_to_t Prims.int_zero; FStar_UInt8.uint_to_t Prims.int_one; FStar_UInt8.uint_to_t (Prims.of_int (0x02)); FStar_UInt8.uint_to_t (Prims.of_int (0x03)); FStar_UInt8.uint_to_t (Prims.of_int (0x04))...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Spec_Box_Test.ml
ocaml
open Prims let (plain : FStar_UInt8.t Prims.list) = FStar_List_Tot_Base.map (fun x -> x) [FStar_UInt8.uint_to_t Prims.int_zero; FStar_UInt8.uint_to_t Prims.int_one; FStar_UInt8.uint_to_t (Prims.of_int (0x02)); FStar_UInt8.uint_to_t (Prims.of_int (0x03)); FStar_UInt8.uint_to_t (Prims.of_int (0x04))...
3caeae9fd649a5f7ba41b0319bb6fb169294a545c8e793e616d7e09da81b36e2
antoniogarrote/clj-ml
io.clj
;; ;; Storing and reading data from different formats @author ;; (ns #^{:author "Antonio Garrote <>"} clj-ml.io "Functions for reading and saving datasets, classifiers and clusterers to files and other persistence mechanisms." (:import (weka.core.converters CSVLoader ArffLoader XRFFLoader) (wek...
null
https://raw.githubusercontent.com/antoniogarrote/clj-ml/a6e3a41b7eed0c31ea344b286ebbeb0e81ce68bc/src/clj_ml/io.clj
clojure
Storing and reading data from different formats Loading of instances Saving of instances
@author (ns #^{:author "Antonio Garrote <>"} clj-ml.io "Functions for reading and saving datasets, classifiers and clusterers to files and other persistence mechanisms." (:import (weka.core.converters CSVLoader ArffLoader XRFFLoader) (weka.core.converters CSVSaver ArffSaver XRFFSaver) ...
df07f5a818229539487bc764c9178ea4fd5a39ee27a1c621a0b8864c20839244
marick/Midje
t_metaconstants.clj
(ns midje.parsing.1-to-explicit-form.t-metaconstants (:require [midje.parsing.1-to-explicit-form.metaconstants :refer :all] [midje [sweet :refer :all] [test-util :refer :all]]) (:import midje.data.metaconstant.Metaconstant)) Two different ways of creating from user forms (...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/midje/parsing/1_to_explicit_form/t_metaconstants.clj
clojure
Some random other stuff.
(ns midje.parsing.1-to-explicit-form.t-metaconstants (:require [midje.parsing.1-to-explicit-form.metaconstants :refer :all] [midje [sweet :refer :all] [test-util :refer :all]]) (:import midje.data.metaconstant.Metaconstant)) Two different ways of creating from user forms (...
89888e2fd001d275619909c63bc9ed31bb3ef5e92adf89ba4d980e39c30a7aff
manuel-serrano/hop
callcc_checkpoint.scm
;*=====================================================================*/ * Author : * / * Copyright : 2007 - 2009 , see LICENSE file * / ;* ------------------------------------------------------------- */ * This file is part of Scheme2Js . ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/callcc_checkpoint.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * */ * but WITHOUT ANY WARRANTY; without even the implied warranty of */ * MERCHANTABILITY or FITNE...
* Author : * / * Copyright : 2007 - 2009 , see LICENSE file * / * This file is part of Scheme2Js . * / * Scheme2Js is distributed in the hope that it will be useful , * / (module callcc-check-point (imp...
b0ef7cb8925bf1d74911d81073cc55a947ec77fbf7b84c7e87c29a37f5fc2526
google/codeworld
source.hs
# LANGUAGE TemplateHaskell # Copyright 2020 The CodeWorld Authors . 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 b...
null
https://raw.githubusercontent.com/google/codeworld/77b0863075be12e3bc5f182a53fcc38b038c3e16/codeworld-compiler/test/testcases/templateHaskell/source.hs
haskell
# LANGUAGE TemplateHaskell # Copyright 2020 The CodeWorld Authors . 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 b...
efcd440501746bbd4e5d20d2b1447b02b5ad4b479e983783aa370159b6ab1714
snoyberg/photosorter
TestImport.hs
{-# LANGUAGE OverloadedStrings #-} module TestImport ( module Yesod.Test , runDB , Specs ) where import Yesod.Test import Database.Persist.GenericSql type Specs = SpecsConn Connection runDB :: SqlPersist IO a -> OneSpec Connection a runDB = runDBRunner runSqlPool
null
https://raw.githubusercontent.com/snoyberg/photosorter/c02cf37094d24762ceca4c05fe89580a4be0bec1/tests/TestImport.hs
haskell
# LANGUAGE OverloadedStrings #
module TestImport ( module Yesod.Test , runDB , Specs ) where import Yesod.Test import Database.Persist.GenericSql type Specs = SpecsConn Connection runDB :: SqlPersist IO a -> OneSpec Connection a runDB = runDBRunner runSqlPool
24e1a81c33e54f1b339bc68e828d91f8def54d2bb79bd951319ee827655896be
JacquesCarette/Drasil
Import.hs
-- | Defines classes and constructors for Makefile generators. module Build.Drasil.Make.Import where import Build.Drasil.Make.AST (Makefile(M), Rule) -- * Classes -- | Members can be transformed into a make rule. class RuleTransformer c where makeRule :: c -> [Rule] -- * Constructors | Creates a Makefile ( cal...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-build/lib/Build/Drasil/Make/Import.hs
haskell
| Defines classes and constructors for Makefile generators. * Classes | Members can be transformed into a make rule. * Constructors | Helper for creating make rules for different document types.
module Build.Drasil.Make.Import where import Build.Drasil.Make.AST (Makefile(M), Rule) class RuleTransformer c where makeRule :: c -> [Rule] | Creates a Makefile ( calls ' ' ) . toMake :: RuleTransformer c => [c] -> Makefile toMake = M . makeRules makeRules :: RuleTransformer c => [c] -> [Rule] makeRules = c...
40422b9dcdd148ab2add7177be8b385234cbc13432e8ae5e1005e5c325ac07aa
exercism/babashka
triangle_test.clj
(ns triangle-test (:require [clojure.test :refer [deftest is testing]] triangle)) (deftest equilateral-all-sides-equal (is (true? (triangle/equilateral? 2 2 2)))) (deftest equilateral-any-side-is-unequal (is (false? (triangle/equilateral? 2 3 2)))) (deftest equilateral-no-sides-are-equal ...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/triangle/test/triangle_test.clj
clojure
(ns triangle-test (:require [clojure.test :refer [deftest is testing]] triangle)) (deftest equilateral-all-sides-equal (is (true? (triangle/equilateral? 2 2 2)))) (deftest equilateral-any-side-is-unequal (is (false? (triangle/equilateral? 2 3 2)))) (deftest equilateral-no-sides-are-equal ...
6216fc6ca6237a94b7b61cf455ef0bafe4b71b107fd3322ece1d4364b5a69fb4
aav/clojure.osgi
service_consumer.clj
(ns clojure.osgi.example.service.consumer.service-consumer (:use (clojure.osgi core services filters) (clojure.osgi.example.service.producer service-producer) ) (:import (org.osgi.util.tracker ServiceTrackerCustomizer) ) ) (defn- bundle-start [context] (println "tracking service") ...
null
https://raw.githubusercontent.com/aav/clojure.osgi/9ece403636a0cd550b06fe0073ba96fd8933ab4b/clojure.osgi.example.service.consumer/src/clojure/osgi/example/service/consumer/service_consumer.clj
clojure
(ns clojure.osgi.example.service.consumer.service-consumer (:use (clojure.osgi core services filters) (clojure.osgi.example.service.producer service-producer) ) (:import (org.osgi.util.tracker ServiceTrackerCustomizer) ) ) (defn- bundle-start [context] (println "tracking service") ...
94b272dd3523c199001e1fdd615cf9ae5ebd4e270b3e8c9bf385d0755fd89bf1
mariari/kaleidoscope-LLVM8
Parser.hs
module Parser where import Text.Parsec import Text.Parsec.String (Parser) import Protolude hiding (many, (<|>), try, for) import Prelude(String) import qualified Text.Parsec.Expr as Ex import qualified Text.Parsec.Token as Tok import Lexer import Syntax int :: Parser Expr int = do n <- integer return $ Float (...
null
https://raw.githubusercontent.com/mariari/kaleidoscope-LLVM8/7bc73c1cb627fe3f42cd2711ecfad1e32a9b858e/src/Parser.hs
haskell
module Parser where import Text.Parsec import Text.Parsec.String (Parser) import Protolude hiding (many, (<|>), try, for) import Prelude(String) import qualified Text.Parsec.Expr as Ex import qualified Text.Parsec.Token as Tok import Lexer import Syntax int :: Parser Expr int = do n <- integer return $ Float (...
e1607e34c1ce34a75ef071311590d1f89ccf15788102e61d8f151e7534f6dede
Drup/tyre
angstrom_rFC2616.ml
[@@@ocaml.warning "-44"] HTTP " parser " , copied from . open Angstrom module P = struct let is_space = function | ' ' | '\t' -> true | _ -> false let is_eol = function | '\r' | '\n' -> true | _ -> false let is_hex = function | '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' -> true | _ -> false let is_...
null
https://raw.githubusercontent.com/Drup/tyre/676560419e7e715bf18ff110cb7a991fc2a908ae/benchmark/angstrom_rFC2616.ml
ocaml
The commented-out ' ' and '\t' are not necessary because of the range at * the top of the match. | ' ' | '\t'
[@@@ocaml.warning "-44"] HTTP " parser " , copied from . open Angstrom module P = struct let is_space = function | ' ' | '\t' -> true | _ -> false let is_eol = function | '\r' | '\n' -> true | _ -> false let is_hex = function | '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' -> true | _ -> false let is_...
ca06f5fc1336688fa70954efb1c19a195e253b5a37b1bb3c3ac69f606c367ef3
con-kitty/categorifier-c
CxxAst.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE QuasiQuotes # # LANGUAGE ViewPatterns # module Categorifier.C.CTypes.DSL.CxxAst ( CDecl (..), Define (..), Comment (..), Identifier (..), Include (..), SystemLib (..), TapeElement (.., SingleIf), CExpr ( .., ...
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/c8796772eaf8d0cbdd1866e927833367b044ed4a/Categorifier/C/CTypes/DSL/CxxAst.hs
haskell
# LANGUAGE OverloadedStrings # * Union * array index * Casts * bool literal * Pointers * Function calls * Functions * Type-level * Modules * Internals > // optional comment turn into either a header or a source and header. | A list of #defines, typedefs, and functions to be generated. A source and header...
# LANGUAGE PatternSynonyms # # LANGUAGE QuasiQuotes # # LANGUAGE ViewPatterns # module Categorifier.C.CTypes.DSL.CxxAst ( CDecl (..), Define (..), Comment (..), Identifier (..), Include (..), SystemLib (..), TapeElement (.., SingleIf), CExpr ( .., (:<), (:>), ...
b5a7de0f9fc1c9aa1be2e31d4f9fbe6bccecd4127561f0fce18bd29c40e2b56a
greghendershott/pdb
example.rkt
#lang racket/base (require (for-syntax racket/base) racket/match racket/runtime-path racket/set rackunit syntax/parse/define "main.rkt" (submod "main.rkt" private)) (define (tests) (general-tests) (re-provide-tests) (all-defined-out-tests) (prefix...
null
https://raw.githubusercontent.com/greghendershott/pdb/9be9a5454107249c4a49e60edebd497e0faf092b/example.rkt
racket
(exhaustive-rename-tests) uses -> definitions use->def: Big jumps directly to definition nominal-use->def: Incremental steps rename-sites (prefix-in IN: "prefix-define.rkt") (prefix-in IN: "prefix-define.rkt") IN:A:a IN:ALL:a IN:ALL:b (all-defined-out) is the srcloc for all defs. In other words I don't think w...
#lang racket/base (require (for-syntax racket/base) racket/match racket/runtime-path racket/set rackunit syntax/parse/define "main.rkt" (submod "main.rkt" private)) (define (tests) (general-tests) (re-provide-tests) (all-defined-out-tests) (prefix...
8ed1cc3df2917db70fba7ace561b0dae6af11cb693cb83d813b8b40ca77d3fb2
jyh/metaprl
fol_and.ml
(* * Conjunction. *) extends Fol_type open Basic_tactics (************************************************************************ * TERMS * ************************************************************************) declare "and"{'A; 'B} declare "pai...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fol/fol_and.ml
ocaml
* Conjunction. *********************************************************************** * TERMS * *********************************************************************** *********************************************************************** * DISPLAY...
extends Fol_type open Basic_tactics declare "and"{'A; 'B} declare "pair"{'a; 'b} declare spread{'x; a, b. 'body['a; 'b]} prec prec_and dform and_df : parens :: "prec"["prec_and"] :: "and"{'A; 'B} = szone pushm[0] slot{'A} hspace wedge `" " slot{'B} popm ezone dform pair_df : "pair"{'a; 'b} = `"<" slot{'a}...
1481de35d25cb94fba844343eb8c52ce1989a0cec609f26fc572a0f8421ba354
vzaliva/otetris
tetris.ml
open Batteries open BatList Conversion between G and tick period ( in seconds ) " Gravity is expressed in unit G , where 1 G = 1 cell per frame , and 0.1 G = 1 cell per 10 frames . " "Gravity is expressed in unit G, where 1G = 1 cell per frame, and 0.1G = 1 cell per 10 frames." *) let gravity_period g = ...
null
https://raw.githubusercontent.com/vzaliva/otetris/429d471c894a8341c7e753ebe1bd31901c9cd334/tetris.ml
ocaml
Shuffle an immutable list. Idea from: -to-shuffle-list-in-on-in-ocaml Calculate how many points user should be awarded based on number of cleared lines and current level.
open Batteries open BatList Conversion between G and tick period ( in seconds ) " Gravity is expressed in unit G , where 1 G = 1 cell per frame , and 0.1 G = 1 cell per 10 frames . " "Gravity is expressed in unit G, where 1G = 1 cell per frame, and 0.1G = 1 cell per 10 frames." *) let gravity_period g = ...
8bd7a1d0839f9f6d2482994131bfc903d479d347e04ddb4d0ac3f52879902285
JolifantoBambla/vk-generator
write-constructors.lisp
(in-package :vk-generator) (defun get-default-slot-value-string (member-data count-member-names vk-spec) (let ((array-member-p (and (len member-data) (member (first (len member-data)) count-member-names :test #'str...
null
https://raw.githubusercontent.com/JolifantoBambla/vk-generator/fcfade90e2fdd13713c61947a4d9f9e2407720e1/src/write-constructors.lisp
lisp
structs which aren't pointers need to be initialized during translation
(in-package :vk-generator) (defun get-default-slot-value-string (member-data count-member-names vk-spec) (let ((array-member-p (and (len member-data) (member (first (len member-data)) count-member-names :test #'str...
55c1b6138c163021358cd6ba3e7a6c3cc83c7f1f0c798eaa9c85793dfdfb60fd
deadpendency/deadpendency
Report.hs
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Report where import Common.Model.Report.DependencyErrorReason import Common.Model.Report.DependencyErrorReport import Common.Model.Report.DependencyErrorReports import Common.Model.Report.DependencyFailureReport import Common.Model.Rep...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common-test/src/CommonTest/Gen/Model/Report.hs
haskell
dependency reports should never exist with no reports, that would be a processing failure report it actually causes problems trying to round trip this case, so we exclude it
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Report where import Common.Model.Report.DependencyErrorReason import Common.Model.Report.DependencyErrorReport import Common.Model.Report.DependencyErrorReports import Common.Model.Report.DependencyFailureReport import Common.Model.Rep...
dd755af4893fdeeb22d6e4e341af79da7ab382647155e6ebc0ef8f7f96cfbcab
furkan3ayraktar/clojure-polylith-realworld-example-app
spec.clj
(ns clojure.realworld.profile.spec (:require [clojure.realworld.spec.interface :as spec] [spec-tools.data-spec :as ds])) (def profile (ds/spec {:name :core/profile :spec {:username spec/username? :following boolean? (ds/opt :image) (ds/maybe ...
null
https://raw.githubusercontent.com/furkan3ayraktar/clojure-polylith-realworld-example-app/2f16552fb4e9a56e24e21795cbb038433085453c/components/profile/src/clojure/realworld/profile/spec.clj
clojure
(ns clojure.realworld.profile.spec (:require [clojure.realworld.spec.interface :as spec] [spec-tools.data-spec :as ds])) (def profile (ds/spec {:name :core/profile :spec {:username spec/username? :following boolean? (ds/opt :image) (ds/maybe ...
439182d61c0e91c19476537ccf34db52af8f1bbbbd6c26b393c7b8694cca140d
scarvalhojr/haskellbook
section30.3.hs
import Control.Exception (SomeException(..), catch) import Data.Typeable (typeOf) handler :: SomeException -> IO () handler (SomeException e) = do print (typeOf e) putStrLn ("We errored! It was: " ++ show e) writeFile "bbb" "hi" putStrLn "Trying to write to bbb instead" main = do putStrLn "Trying to wr...
null
https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter30/section30.3.hs
haskell
import Control.Exception (SomeException(..), catch) import Data.Typeable (typeOf) handler :: SomeException -> IO () handler (SomeException e) = do print (typeOf e) putStrLn ("We errored! It was: " ++ show e) writeFile "bbb" "hi" putStrLn "Trying to write to bbb instead" main = do putStrLn "Trying to wr...
6d6818d1c13ae6036a78bb0375c362546cbb62061e1e123df9dc5ad5cfd641d5
kennytilton/cells
output-timing.lisp
(in-package :cells) (DEFPARAMETER *master* nil) (DEFPARAMETER *thing1* nil) (DEFPARAMETER *thing2* nil) (defmodel master () ((id :cell nil :initarg :id :initform (c-in nil) :accessor id) (onn :initarg :onn :initform (c-in nil) :accessor onn))) (defmodel user () ((id :initarg :id :initform (c-in nil) :access...
null
https://raw.githubusercontent.com/kennytilton/cells/e8542b17fddd6340c1e237ce482a52327c8ead8e/cells-test/output-timing.lisp
lisp
make sure unasked ruled Cells get initial change
(in-package :cells) (DEFPARAMETER *master* nil) (DEFPARAMETER *thing1* nil) (DEFPARAMETER *thing2* nil) (defmodel master () ((id :cell nil :initarg :id :initform (c-in nil) :accessor id) (onn :initarg :onn :initform (c-in nil) :accessor onn))) (defmodel user () ((id :initarg :id :initform (c-in nil) :access...
5abaffef30e663c8da1bdf8c6cf9b5931d2607fd2923390279e3bf5dfa2bc5dc
nicolov/cs61as-racket-homework
hw0.rkt
#lang planet dyoo/simply-scheme:2 ; ; HW 03 ; ; KEEP pattern (define (numbers sent) (cond ((empty? sent) `()) ((number? (first sent)) (sentence (first sent) (numbers (butfirst sent)))) (else (numbers (butfirst sent))))) This should output ( 76 110 ) ( numbers ' ( 76 trombones and 110 cornets ) ) ...
null
https://raw.githubusercontent.com/nicolov/cs61as-racket-homework/31f6e1855305838d7fe3824017164e234ee9e20c/hw0.rkt
racket
HW 03 KEEP pattern ex 6 ex 7 ex 8 ex 9 very inefficient if both have elements left
#lang planet dyoo/simply-scheme:2 (define (numbers sent) (cond ((empty? sent) `()) ((number? (first sent)) (sentence (first sent) (numbers (butfirst sent)))) (else (numbers (butfirst sent))))) This should output ( 76 110 ) ( numbers ' ( 76 trombones and 110 cornets ) ) exercise 1 (define (desc...
060cdabf81b2eb47fa39318cb2d92b267f2f0127de0a9fe19da4d59ac7fa43e0
juspay/atlas
TransportStation.hs
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agre...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Domain/Types/TransportStation.hs
haskell
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agre...
8c72034fd87158f83dc8442100b1ab3424abfd2e90653d5ea965d4f31852ee33
esl/MongooseIM
mongoose_lazy_routing_SUITE.erl
-module(mongoose_lazy_routing_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(assertEqualLists(L1, L2), ?assertEqual(lists:sort(L1), lists:sort(L2))). -define(HOST_TYPE_1, <<"host type #1">>). -define(HOST_TYPE_2, <<"host type #2">>). -define(DOMAIN_1, <<"domain1...
null
https://raw.githubusercontent.com/esl/MongooseIM/8ef7d9a3e4eac072a8335001897ef37bb23cd99d/test/mongoose_lazy_routing_SUITE.erl
erlang
this domain is required for testing domain/subdomain conflict resolution. required for handles_missing_domain_or_subdomain test case ------------------------------------------------------------------- test cases ------------------------------------------------------------------- ?MISSING_DOMAIN is used to emulate d...
-module(mongoose_lazy_routing_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(assertEqualLists(L1, L2), ?assertEqual(lists:sort(L1), lists:sort(L2))). -define(HOST_TYPE_1, <<"host type #1">>). -define(HOST_TYPE_2, <<"host type #2">>). -define(DOMAIN_1, <<"domain1...
156dd1386338d9306cba11347b898641882fdc5838e6f93e9dfde608fa4e993c
ghc/packages-Cabal
UnitTests.hs
# LANGUAGE ScopedTypeVariables # module UnitTests where import Test.Tasty import Distribution.Simple.Utils import Distribution.Verbosity import Distribution.Compat.Time import qualified UnitTests.Distribution.Solver.Modular.Builder import qualified UnitTests.Distribution.Solver.Modular.WeightedPSQ import qualified...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-install/tests/UnitTests.hs
haskell
# LANGUAGE ScopedTypeVariables # module UnitTests where import Test.Tasty import Distribution.Simple.Utils import Distribution.Verbosity import Distribution.Compat.Time import qualified UnitTests.Distribution.Solver.Modular.Builder import qualified UnitTests.Distribution.Solver.Modular.WeightedPSQ import qualified...
7bd23e669f50d606f37a5b12f050604a31b9f7719ebc108805b864a6f236502e
exercism/common-lisp
protein-translation.lisp
(defpackage :protein-translation (:use :cl) (:export :proteins :invalid-protein)) (in-package :protein-translation) (defun proteins (strand))
null
https://raw.githubusercontent.com/exercism/common-lisp/59f523140bb6f0273c4261f9869f6108ebff4242/exercises/practice/protein-translation/protein-translation.lisp
lisp
(defpackage :protein-translation (:use :cl) (:export :proteins :invalid-protein)) (in-package :protein-translation) (defun proteins (strand))
088005b59fea5d6390caa555ec1d15c714d158272a247831160c4e4145176e3d
sylane/erod
erod_session_manager.erl
%%% ========================================================================== Copyright ( c ) 2014 < > %%% %%% This file is part of erod. %%% %%% Erod 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 , eit...
null
https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erod/src/erod_session_manager.erl
erlang
========================================================================== This file is part of erod. Erod 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 impli...
Copyright ( c ) 2014 < > 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 2014 < > @author < > @private -module(erod_session_manager). -auth...
6da1972ede4f0444572fa5d5555c3c74265dbbe14a01b08e58e6120831bf9d7f
xh4/web-toolkit
filter-effects.lisp
(in-package :css) ;; -effects-2 ;; TODO: backdrop-filter (define-property backdrop-filter () ())
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/filter-effects.lisp
lisp
-effects-2 TODO: backdrop-filter
(in-package :css) (define-property backdrop-filter () ())
450f3272573495074e6983904345330111421e0c4f1c5cf3fa8f6082dfd0461d
icfpcontest2021/icfpcontest2021.github.io
Web.hs
module Main where import qualified BrainWall.Web main :: IO () main = BrainWall.Web.main
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/src/Web.hs
haskell
module Main where import qualified BrainWall.Web main :: IO () main = BrainWall.Web.main
434f4d62d7b5d162c43593fde427c9103d82c22e85743b26e788145e8e23c32f
gelisam/ludum-dare-31
Popup.hs
module Popup where import Data.Monoid import Control.Applicative import Graphics.Gloss import Text.Printf import Animation import Graphics.Gloss.Extra import InputBlocking import LevelData import Types fadeDuration :: Float fadeDuration = 0.75 idleDuration :: Float idleDuration = 0.75 whiteFadeOutDuration :: Floa...
null
https://raw.githubusercontent.com/gelisam/ludum-dare-31/4bdd2937b290c41118503bc85a2a16a73139edd2/src/Popup.hs
haskell
level popup (fade in, fade out) white filter text rotate into and out of view
module Popup where import Data.Monoid import Control.Applicative import Graphics.Gloss import Text.Printf import Animation import Graphics.Gloss.Extra import InputBlocking import LevelData import Types fadeDuration :: Float fadeDuration = 0.75 idleDuration :: Float idleDuration = 0.75 whiteFadeOutDuration :: Floa...
8cf839faf570116ba5c66a500593970238902b14b2d405a6fc33f76287a74f68
agda/agda
String.hs
module Agda.Utils.String where import Control.Monad.Reader import Control.Monad.State import Data.Char import qualified Data.List as List import Data.String import Agda.Utils.List -- | 'quote' adds double quotes around the string, replaces newline characters with , and escapes double quotes and backslashes -- wi...
null
https://raw.githubusercontent.com/agda/agda/4773470ceb0e8671e128109f4728d6416ff93fae/src/full/Agda/Utils/String.hs
haskell
| 'quote' adds double quotes around the string, replaces newline within the string. This is different from the behaviour of 'show': @ \> 'putStrLn' $ 'show' \"\\x2200\" \"\\8704\" \"∀\" @ (The code examples above have been tested using version 4.2.0.0 of the base library.) codes. | Adds hyphens around the ...
module Agda.Utils.String where import Control.Monad.Reader import Control.Monad.State import Data.Char import qualified Data.List as List import Data.String import Agda.Utils.List characters with , and escapes double quotes and backslashes \ > ' putStrLn ' $ ' quote ' " quote :: String -> String quote s = "\...
bd86f214c9e6518319e86f27d17286842cd008c5c753bc0aff987171409f6e7d
LeventErkok/sbv
Birthday.hs
----------------------------------------------------------------------------- -- | -- Module : Documentation.SBV.Examples.Puzzles.Birthday Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- This is a formalization of the 's birthday problem , which went viral in April 2015 . ...
null
https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/Documentation/SBV/Examples/Puzzles/Birthday.hs
haskell
--------------------------------------------------------------------------- | Module : Documentation.SBV.Examples.Puzzles.Birthday License : BSD3 Maintainer: Stability : experimental (See <-math-problem-from-singapore-goes-viral-when-is-cheryls-birthday.html>.) Here's the puzzle: @ @ ----------...
Copyright : ( c ) This is a formalization of the 's birthday problem , which went viral in April 2015 . and just met . “ When ’s your birthday ? ” asked . thought a second and said , “ I ’m not going to tell you , but I ’ll give you some clues . ” She wrote down a list of 10 dates : May 15 , May 16...
f265df66fef582b24229bda4e4ea530ce762024113713c790c378e2ff84cddcd
coq/coq
coqOps.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/f373debf8bb8fa1cfdf28755406f4e12eb800e73/ide/coqide/coqOps.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
3c761f6a5b7cfbc7b17231a0c2f767ceffbb3766d27868090acf871519b3ad61
chrovis/cljam
gff_test.clj
(ns cljam.io.gff-test (:require [clojure.test :refer [deftest is are testing]] [clojure.string :as cstr] [clojure.java.io :as cio] [cljam.test-common :refer [with-before-after prepare-cache! clean-cache! not-throw? ...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/test/cljam/io/gff_test.clj
clojure
<=>?@[\\]^_`{|}~", ignore directives and comment lines
(ns cljam.io.gff-test (:require [clojure.test :refer [deftest is are testing]] [clojure.string :as cstr] [clojure.java.io :as cio] [cljam.test-common :refer [with-before-after prepare-cache! clean-cache! not-throw? ...
eff76075502c4affcfb9cd11ea235cb96d3ac919acf720331ac0ec16df4c45ba
janegca/htdp2e
Exercise-124-SumAList.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-124-SumAList) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/02-ArbitrarilyLargeData/Exercise-124-SumAList.rkt
racket
about the language level of this file in a form that our tools can easily process. Here is a data definition for representing amounts of money: – '() – (cons PositiveNumber List-of-amounts) interpretation a List-of-amounts represents some amounts of money Create some examples to make sure you understand the data...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-124-SumAList) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeatin...
57f02a81b9f2de7dd9c99f9a3fe8afcd8672ebff8439f2018d7ee730100b9f66
lukaszcz/coqhammer
hhlib.ml
module StringSet = Set.Make(String) let comp f g x = f (g x) let flip f x y = f y x let strset_from_lst lst = List.fold_left (fun a x -> StringSet.add x a) StringSet.empty lst let mk_pairs lst = let rec hlp lst acc = match lst with | h :: t -> hlp t (List.fold_left (fun a x -> (h, x) :: a) acc t) | []...
null
https://raw.githubusercontent.com/lukaszcz/coqhammer/fe83fb0eaf33f56da9ea1983114d0d94a2c41b9b/src/lib/hhlib.ml
ocaml
numbers from m up to but not including n
module StringSet = Set.Make(String) let comp f g x = f (g x) let flip f x y = f y x let strset_from_lst lst = List.fold_left (fun a x -> StringSet.add x a) StringSet.empty lst let mk_pairs lst = let rec hlp lst acc = match lst with | h :: t -> hlp t (List.fold_left (fun a x -> (h, x) :: a) acc t) | []...
b80028da7bf390343d83ac4a9d5a5576627b3d7ebb09f1c8356225158ac42b0d
alexandergunnarson/quantum
test.clj
(ns test (:require [clojure.tools.namespace.repl :refer [refresh refresh-all set-refresh-dirs]] [quantum.core.ns :as ns])) ;(ns/require :clj :lib) (ns/require-all *ns* :clj :lib) (require '[quantum.imaging.convert :refer :all] '[quantum.imaging.ocr :as ocr]) (defn init! [] (println "Hey :)")) ; (refresh...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test-dev/test.clj
clojure
(ns/require :clj :lib) (refresh-all :after 'test/init!) (in-ns 'clojure.tools.namespace.parse) "Attempts to read a (ns ...) declaration from a java.io.PushbackReader, and returns the unevaluated form. Returns ns declaration cannot be found. Note that read can execute code (controlled by *read-eval*), and as su...
(ns test (:require [clojure.tools.namespace.repl :refer [refresh refresh-all set-refresh-dirs]] [quantum.core.ns :as ns])) (ns/require-all *ns* :clj :lib) (require '[quantum.imaging.convert :refer :all] '[quantum.imaging.ocr :as ocr]) (defn init! [] (println "Hey :)")) ( read - ns - decl the first ...
6fd0f59eff77e7a204ce6f5b6919f65a32e6995c247043a8830bb48a21fb8e13
roman/Haskell-Reactive-Extensions
Disposable.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE NoImplicitPrelude #-} module Rx.Disposable ( emptyDisposable , dispose , disposeCount , disposeErrorCount , newDisposable , newBool...
null
https://raw.githubusercontent.com/roman/Haskell-Reactive-Extensions/0faddbb671be7f169eeadbe6163e8d0b2be229fb/rx-disposable/src/Rx/Disposable.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE NoImplicitPrelude # import Data.List (foldl') ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # module Rx.Disposable ( emptyDisposable , dispose , disposeCount , disposeErrorCount , newDisposable , newBooleanDisposable , newSingleAssignmentDisposable , toList , wrapDispos...
3f39bc1149d48bd7a5cbd329e18aa8e156422d622b0d544d7986d3e7adc0b8f7
Mokosha/Lambency
GameLoop.hs
module Lambency.GameLoop ( GameLoopState, mkLoopState, GameLoopConfig, mkLoopConfig, runGameLoop ) where -------------------------------------------------------------------------------- import Control.Monad.Reader import Control.Monad.State import Control.Monad.RWS.Strict import qualified Control.Wire as W im...
null
https://raw.githubusercontent.com/Mokosha/Lambency/43c58b62b9dc2c63b5f8c42248a6f7844093dac7/lib/Lambency/GameLoop.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ When we handle actions, only really print logs and play any sounds that may need to start or stop. !FIXME! Use fully opaque 'mask' texture that we can change t...
module Lambency.GameLoop ( GameLoopState, mkLoopState, GameLoopConfig, mkLoopConfig, runGameLoop ) where import Control.Monad.Reader import Control.Monad.State import Control.Monad.RWS.Strict import qualified Control.Wire as W import qualified Graphics.UI.GLFW as GLFW import qualified Graphics.Rendering.OpenG...
565981964abc07710568de748130bb8da1ac826a11ea9b6062a285f22ceaec4f
robrix/sequoia
Continuation.hs
# LANGUAGE UndecidableInstances # module Sequoia.Profunctor.Continuation ( -- * Continuation profunctor type (•)(..) -- * Continuation abstraction , Continuation , ContinuationI(..) , ContinuationE(..) -- * Construction , idK , constK -- * Coercion , _K , coerceK -- * Defaults , protabulateCont , sieveCont , ...
null
https://raw.githubusercontent.com/robrix/sequoia/592b87cd901475dd1363760ac3ebc30d980c609b/src/Sequoia/Profunctor/Continuation.hs
haskell
* Continuation profunctor * Continuation abstraction * Construction * Coercion * Defaults * Double negation * Triple negation Continuation abstraction Construction Coercion Defaults Double negation Triple negation
# LANGUAGE UndecidableInstances # module Sequoia.Profunctor.Continuation type (•)(..) , Continuation , ContinuationI(..) , ContinuationE(..) , idK , constK , _K , coerceK , protabulateCont , sieveCont , cotabulateCont , cosieveCont , type (••) , dn , (=<<^) , (^>>=) , (•=<<) , (>>=•) , DN(..) , type (•••) , tnE ) whe...
d55b0c104f211b5e57bc658b05cad5f27ef51f9dd9c16ef8188665cd5a318418
mirage/alcotest
alcotest_stdlib_ext.ml
let ( >> ) f g x = x |> f |> g module Fun = struct let id x = x end module Int = struct module Set = Set.Make (struct type t = int let compare = (compare : int -> int -> int) end) end module String = struct include Astring.String let length_utf8 = Uutf.String.fold_utf_8 (fun count _ _ -> count + ...
null
https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/src/alcotest-stdlib-ext/alcotest_stdlib_ext.ml
ocaml
let ( >> ) f g x = x |> f |> g module Fun = struct let id x = x end module Int = struct module Set = Set.Make (struct type t = int let compare = (compare : int -> int -> int) end) end module String = struct include Astring.String let length_utf8 = Uutf.String.fold_utf_8 (fun count _ _ -> count + ...
3d70156fd4abf4a69ab9cb495019a70325fba0258c097e03b2a11fe5bad1aa6a
OCamlPro/ocp-build
buildOCamlInstall.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/ocaml/buildOCamlInstall.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open OcpCompat open MetaTypes open BuildTypes open BuildEngineTypes open BuildEngineGlobals open BuildValue.TYPES open BuildOCamlTypes open BuildUninstall.TYPES TOD...
435e85735c694407b00b971f7eb712cf9b3cd2adcc9823d05b0eb677a370d6fb
lep/jhcr
SomeRules.hs
module Jass.Opt.Rewrite.SomeRules (someRules) where import qualified Jass.Opt.Rewrite as Jass.Opt import qualified Jass.Parser as J import qualified Data.Set as Set import qualified Text.Megaparsec as Mega import Data.Maybe (fromJust) -- it might be that not every rule brings a huge advantage in the generated -- as...
null
https://raw.githubusercontent.com/lep/jhcr/4a1da99439a688824db37f28c1e69ec3985fbb30/Jass/Opt/Rewrite/SomeRules.hs
haskell
it might be that not every rule brings a huge advantage in the generated assembler code, but no rule should hurt the generated code. gg, bind vs conv gg, bind vs conv this one seems rather nice: bind, call vs conv, lit, add but note the lacking decimal point, as otherwise we could lose promotion from int to real...
module Jass.Opt.Rewrite.SomeRules (someRules) where import qualified Jass.Opt.Rewrite as Jass.Opt import qualified Jass.Parser as J import qualified Data.Set as Set import qualified Text.Megaparsec as Mega import Data.Maybe (fromJust) someRules = [ mkRR ["a"] "-(-a)" "a" , mkRR ["a"] "a==true" "a" , mkRR ["a"...
8729365374c20392e481cea5808ac7a1fbf6af0d8a5836268135f88d10394767
kelsey-sorrels/robinson
color.clj
(ns robinson.color (:require [zaffre.color :as zcolor] [tinter.core :as tinter] [thi.ng.color.core :as col] [thi.ng.math.core :as m])) ;; RBG color definitions. ;; It's easier to use names than numbers. (def color-to-rgb-map {:brown (zcolor/color 139 69 19) :dark-...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/color.clj
clojure
RBG color definitions. It's easier to use names than numbers. (vec ( tinter / hex - str - to - dec " D3B100 " ) ) returns [char fg bg]
(ns robinson.color (:require [zaffre.color :as zcolor] [tinter.core :as tinter] [thi.ng.color.core :as col] [thi.ng.math.core :as m])) (def color-to-rgb-map {:brown (zcolor/color 139 69 19) :dark-brown (zcolor/color 70 44 9) :ship-brown (zcolor/co...
18d005c2ba134db0178842a84eaec663b00b57534205fadbd8d7e8f799c4f435
racket/racket7
scope.rkt
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "../common/memo.rkt" "../common/inline.rkt" "syntax.rkt" "binding-table.rkt" "tamper.rkt" "taint.rkt" "../common/phase.rkt"...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/syntax/scope.rkt
racket
handles lazy scope and taint propagation like `syntax-e`, but doesn't explode a dye pack for use by "binding.rkt" A scope represents a distinct "dimension" of binding. We can attach the bindings for a set of scopes to an arbitrary scope in the set; we pick the most recently allocated scope to make a binding searc...
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "../common/memo.rkt" "../common/inline.rkt" "syntax.rkt" "binding-table.rkt" "tamper.rkt" "taint.rkt" "../common/phase.rkt"...
cf16421e5ceb98f6d4eca9938891372c863fac6a7b90b0dbed940b5d38b33c0e
unicode-org/unilex
conjugation_test.clj
(ns dict-data-builder.conjugation-test (:require [clojure.test :refer :all] [dict-data-builder.conjugation :as cjg :refer :all] [dict-data-builder.data :as data :refer [map->Verb]]) (:import dict_data_builder.data.Verb)) (def செய் (map->Verb {:root "செய்" :verb-class "1a"})) (def மாள் (map...
null
https://raw.githubusercontent.com/unicode-org/unilex/aa6847b510cb75133d281fd742f6065f86e59de7/data/stems/ta/dict-data-builder/test/dict_data_builder/conjugation_test.clj
clojure
(ns dict-data-builder.conjugation-test (:require [clojure.test :refer :all] [dict-data-builder.conjugation :as cjg :refer :all] [dict-data-builder.data :as data :refer [map->Verb]]) (:import dict_data_builder.data.Verb)) (def செய் (map->Verb {:root "செய்" :verb-class "1a"})) (def மாள் (map...
3e929a2ec1c571dd8b15e587620dfc41b6d4b825b4eb0193e61af122e99ebb04
clj-kondo/clj-kondo
inline_def.clj
(ns inline-def (:require [clojure.test :as t])) (defn foo [] (def x 1)) (defn- foo [] (def x 1)) (def foo (def x 1)) (t/deftest foo (def x 1)) (defmacro foo [] (def x 1))
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/inline_def.clj
clojure
(ns inline-def (:require [clojure.test :as t])) (defn foo [] (def x 1)) (defn- foo [] (def x 1)) (def foo (def x 1)) (t/deftest foo (def x 1)) (defmacro foo [] (def x 1))
51851f16564d04d3f47f82acca59218290cd26cfd0f50e508448f8ab5a0252e1
ghosthamlet/algorithm-data-structure
quick_sort.clj
(ns algorithm-data-structure.algorithms.sort.quick-sort) (defn run [original-array & {{:keys [visiting-callback]} :callbacks {:keys [equal less-then]} :comparator}] (let [olen (count original-array) array original-array] (if (<= olen 1) original-array (let [pivot-element (first arr...
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/src/algorithm_data_structure/algorithms/sort/quick_sort.clj
clojure
(ns algorithm-data-structure.algorithms.sort.quick-sort) (defn run [original-array & {{:keys [visiting-callback]} :callbacks {:keys [equal less-then]} :comparator}] (let [olen (count original-array) array original-array] (if (<= olen 1) original-array (let [pivot-element (first arr...
194795a0ad306a2bb21dfb6871d79523192aabe93cdf4b23db78bd94d5afefcb
lambdaisland/trikl
core_test.clj
(ns trikl.core-test (:require [trikl.core :as t] [clojure.test :refer :all] [lambdaisland.ansi :as ansi])) (is (= [[{:row 1, :col 1} "x"] {}] (let [sb (StringBuilder.) styles (t/diff-row sb 0 {} ...
null
https://raw.githubusercontent.com/lambdaisland/trikl/8d06761f72a09f90f121e3024383fa18ed7ab32c/test/unit/trikl/core_test.clj
clojure
(ns trikl.core-test (:require [trikl.core :as t] [clojure.test :refer :all] [lambdaisland.ansi :as ansi])) (is (= [[{:row 1, :col 1} "x"] {}] (let [sb (StringBuilder.) styles (t/diff-row sb 0 {} ...
be4fccbc3ffab2b81d5ef31c69c8d31355361f2e4600658514e74022c5035871
rcherrueau/APE
web05.rkt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Web Applications in Racket ;; -lang.org/continue/ ;; 5 . Inspecting Requests ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #lang web-server/insta ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/webAppInRacket/web05.rkt
racket
-lang.org/continue/ Blog Structure Blog post data-structure BLOG: blog The static blog can-parse-post?: bindings -> boolean Test if bindings for a blog post are provided parse-post: bindings -> post Consumes a bindings and produce a blog post out of the bindings Blog Render Function render-post: po...
Web Applications in Racket 5 . Inspecting Requests #lang web-server/insta (struct post(title body)) (define BLOG (list (post "Second Post" "This is another post") (post "First Post" "This is my first post"))) Blog Bindings & Params (define (can-parse-post? bindings) (and (exists-binding? 'title...
5d6950466d86fb8b7cb036e8efedfb143cde9a142506df3edc06b5aff1841aad
lasp-lang/partisan
partisan_full_membership_strategy.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2018 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/lasp-lang/partisan/c78f0d6acdb820ab7e7a59555282cddac4a61fb3/src/partisan_full_membership_strategy.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2018 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(partisan_full_member...
9fb3772c797d86074dda34c8e524d062db11c94b42cf3180835d32e4f320c371
runtimeverification/haskell-backend
Unify.hs
| Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2019-2021 License : BSD-3-Clause -} module Kore.Unification.Unify ( MonadUnify, -- * Re-exports InternalVariable, module Logic, ) where import Kore.Internal.TermL...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Unification/Unify.hs
haskell
* Re-exports
| Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2019-2021 License : BSD-3-Clause -} module Kore.Unification.Unify ( MonadUnify, InternalVariable, module Logic, ) where import Kore.Internal.TermLike ( InternalVa...
c05fb732dfad425ed42101f8add45e4beb0e64510add361152d1e67e490c05d4
lambdaisland/launchpad
launchpad.clj
(ns lambdaisland.launchpad (:require [babashka.curl :as curl] [babashka.process :refer [process]] [babashka.wait :as wait] [cheshire.core :as json] [clojure.core.async :as async] [clojure.edn :as edn] [clojure.java.io :as io] [clojure...
null
https://raw.githubusercontent.com/lambdaisland/launchpad/ad00aaf14e2124d74efd41bcf4d9f28bf66f2188/src/lambdaisland/launchpad.clj
clojure
Unless we have a mechanism of automatically updating these I would use `RELEASE` here, so non-emacs user always default to the latest version. This is a good candidate for making this configurable, for explicitness. Pull these out and inject them into -Sdeps, otherwise they are only picked up with the next reload ...
(ns lambdaisland.launchpad (:require [babashka.curl :as curl] [babashka.process :refer [process]] [babashka.wait :as wait] [cheshire.core :as json] [clojure.core.async :as async] [clojure.edn :as edn] [clojure.java.io :as io] [clojure...
a045f88621db8f3a8eb4fd2aed639bcbf17ed0a91abb7ef667bc5d660b76fd91
janestreet/bonsai
multi_factor.mli
* @inline
null
https://raw.githubusercontent.com/janestreet/bonsai/c202b961f41e20e0b735c4e33c2bbac57a590941/web_ui/multi_select/src/multi_factor.mli
ocaml
* @inline
3b356c118664e15d31314ff38bf379541886768238dc103a868f20a75486566f
JonathanLorimer/weft
ArgTypes.hs
module Weft.Internal.ArgTypes where import Control.Applicative hiding (many, some) import Control.Applicative.Permutations import Control.Monad.Reader import Data.Char import Data.Foldable import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import ...
null
https://raw.githubusercontent.com/JonathanLorimer/weft/fc0396240905ab0202c5896019cf1e482d216f8d/src/Weft/Internal/ArgTypes.hs
haskell
---------------------------------------------------------------------------- when adding cases here # OVERLAPPABLE # # OVERLAPPING # ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | # OVERLAPPING # ----------...
module Weft.Internal.ArgTypes where import Control.Applicative hiding (many, some) import Control.Applicative.Permutations import Control.Monad.Reader import Data.Char import Data.Foldable import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import ...
3a535e58cb691c89fc7ad649693e2b732261032446396efc999bc6dd32215780
waddlaw/TAPL
SimpleLambda.hs
module Language.SimpleLambda ( module Language.SimpleLambda.Types, module Language.SimpleLambda.Parser, module Language.SimpleLambda.Pretty, typeof, ) where import Language.SimpleLambda.Parser import Language.SimpleLambda.Pretty import Language.SimpleLambda.Types import RIO import qualified RIO.List.Pa...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-simple/src/Language/SimpleLambda.hs
haskell
erase (TmVar x) = Untyped.TmVar x
module Language.SimpleLambda ( module Language.SimpleLambda.Types, module Language.SimpleLambda.Parser, module Language.SimpleLambda.Pretty, typeof, ) where import Language.SimpleLambda.Parser import Language.SimpleLambda.Pretty import Language.SimpleLambda.Types import RIO import qualified RIO.List.Pa...
3c5326aabcc58b47f851c2cfcd9eee89454fcebbdd20fe2c83dab85cc19f2b4f
cojna/iota
Max.hs
# LANGUAGE CPP # # LANGUAGE TypeFamilies # module Data.Heap.PairingHeap.Max where import Data.Function import qualified Data.List as L import GHC.Exts data MaxHeap a = MaxFork !a [MaxHeap a] | MaxEmpty emptyMaxPH :: MaxHeap a emptyMaxPH = MaxEmpty # INLINE emptyMaxPH # singletonMaxPH :: a -> MaxHeap a singletonMax...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/src/Data/Heap/PairingHeap/Max.hs
haskell
# LANGUAGE CPP # # LANGUAGE TypeFamilies # module Data.Heap.PairingHeap.Max where import Data.Function import qualified Data.List as L import GHC.Exts data MaxHeap a = MaxFork !a [MaxHeap a] | MaxEmpty emptyMaxPH :: MaxHeap a emptyMaxPH = MaxEmpty # INLINE emptyMaxPH # singletonMaxPH :: a -> MaxHeap a singletonMax...