_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
7447bb35c78ed6d49aad50ea321dbd4e71f58b2c5a85c569e906877c17622280
Kappa-Dev/KappaTools
js_plot.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/fbbfb3e62f9b80b0fb95675a4c1c28c1bd658bfd/gui/js_plot.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF module = Api_types_j class type observable_plot = object method setData : Js.js_string Js.t -> unit Js.meth method clearData : unit Js.meth method redraw : unit Js.meth end let create_observable_plot main_div_id : observ...
c25fc45990a0279e609cd8359a53daf7219228af199ccbd375775407d5ff7192
thelema/ocaml-community
typetexp.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/typing/typetexp.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Asttypes open Misc open Parsetre...
fbe3ec2b4a5f1ac20b40598eea021fdcf6393539910ebef81cd2329137d9b56a
ndmitchell/supero
Overlay.hs
-- override things in the libraries module Overlay where import System.IO(Handle, hGetContents, hGetChar) import Data.Char(ord,chr) import Foreign(unsafePerformIO) --------------------------------------------------------------------- -- Prelude -- make error primitive foreign import primitive global_Prelude''erro...
null
https://raw.githubusercontent.com/ndmitchell/supero/a8b16ea90862e2c021bb139d7a7e9a83700b43b2/library/Overlay.hs
haskell
override things in the libraries ------------------------------------------------------------------- Prelude make error primitive ------------------------------------------------------------------- System.IO IO Monad Version 1 , custom design IO Monad Version 1, custom design returnIO (unsafeIO x) if we make a...
module Overlay where import System.IO(Handle, hGetContents, hGetChar) import Data.Char(ord,chr) import Foreign(unsafePerformIO) foreign import primitive global_Prelude''error :: string -> bottom global_Prelude''_patternMatchFail c = error c global_Prelude''_noMethodError c = error c foreign import primitive glob...
0d2dbd5ea7050c3c742013289665b84fc324fbc3046d74364661dc043ee8baea
synrc/nitro
element_tel.erl
-module(element_tel). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_element(Record) when Record#tel.show_if==false -> [<<>>]; render_element(Record) -> Id = case Record#tel.postback of [] -> Record#tel.id; ...
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/elements/input/element_tel.erl
erlang
global spec
-module(element_tel). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_element(Record) when Record#tel.show_if==false -> [<<>>]; render_element(Record) -> Id = case Record#tel.postback of [] -> Record#tel.id; ...
8007e57c27e8a1ada00fc3f589ea2587ffb392f563eff3fcad7a3ab0bc8f1c71
philoskim/debux
core.cljs
(ns examples.core (:require examples.common examples.clogn examples.clog examples.dbgn examples.dbg examples.options examples.etc ;examples.demo examples.lab ))
null
https://raw.githubusercontent.com/philoskim/debux/24c0641499c21ad86eb43f6b7ca7b7164df8ea37/examples/src/cljs/examples/core.cljs
clojure
examples.demo
(ns examples.core (:require examples.common examples.clogn examples.clog examples.dbgn examples.dbg examples.options examples.etc examples.lab ))
383ed71ddcdf8178eebd0e50666b222d9fdd726f469be3c8d10ae6dff38a330d
tschady/advent-of-code
d23.clj
(ns aoc.2016.d23 (:require [aoc.2016.assembunny :as bunny] [aoc.file-util :as file-util])) (def input (file-util/read-lines "2016/d23.txt")) (defn part-1 [prog] (bunny/run prog (assoc bunny/init-state "a" 7))) (defn part-2 [prog] (bunny/run prog (assoc bunny/init-state "a" 12)))
null
https://raw.githubusercontent.com/tschady/advent-of-code/17fff16b57c1631f0dcd4f45ca6b7c1e36ed0ae1/src/aoc/2016/d23.clj
clojure
(ns aoc.2016.d23 (:require [aoc.2016.assembunny :as bunny] [aoc.file-util :as file-util])) (def input (file-util/read-lines "2016/d23.txt")) (defn part-1 [prog] (bunny/run prog (assoc bunny/init-state "a" 7))) (defn part-2 [prog] (bunny/run prog (assoc bunny/init-state "a" 12)))
3faf5e155457b90adef81a6db19b7132c57b18ae907380d6b91e0718dc29e289
mzp/coq-ide-for-ios
profile.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/lib/profile.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Print logical size (in words) and d...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : profile.mli 13323 2...
afce54625931e30d574a34b525e2cbd261a2e44f5af745fd594d2650ea55d751
typedclojure/typedclojure
generators.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b3c9ef6786a792ae991c438ea8dca31175aa4a7/typed/clj.checker/src/typed/clj/generators.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc typed.clj.generators "In development -- do not use yet." (:require [typed.cljc.checker.type-ctors :as c] [clojure.core.typed.type-contract :as type-contract] [clojure.core.typed.current-impl :as impl] [clojure.core.typed.u...
e00a063601be9e539e4e9d3f6827e22c4471edd025d0f1a7f8df47d7913e7d2c
anishathalye/knox
reader.rkt
#lang s-exp syntax/module-reader yosys/verilog #:read yosys:read #:read-syntax yosys:read-syntax (require (prefix-in yosys: "../reader.rkt"))
null
https://raw.githubusercontent.com/anishathalye/knox/161cda3e5274cc69012830f477749954ddcf736d/yosys/lang/reader.rkt
racket
#lang s-exp syntax/module-reader yosys/verilog #:read yosys:read #:read-syntax yosys:read-syntax (require (prefix-in yosys: "../reader.rkt"))
9985484ec001390b92306ba4eb8bab0c5e4fc32da48c477ec75f427a5467ea64
mbg/hoop
Counter.hs
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE FunctionalDependencies # {-# OPTIONS_GHC -ddump-...
null
https://raw.githubusercontent.com/mbg/hoop/98a53bb1db66b06f9b5d3e5242eed336f908ad18/test/Counter.hs
haskell
# OPTIONS_GHC -ddump-splices -ddump-to-file #
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE FunctionalDependencies # module Counter where ...
224daf4dcc52739fa88a1cce386c4c89fee25501628f5657803b91975325d2d8
webnf/webnf
project.clj
(defproject webnf/parent "0.1.19-SNAPSHOT" ;; lein -f modules change version leiningen.release/bump-version alpha :plugins [[lein-modules "0.3.11"]] :profiles {:provided {:dependencies [[org.clojure/clojure "_"]]} :dist {:modules {:dirs ["../dist"]}} ...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/project.clj
clojure
lein -f modules change version leiningen.release/bump-version alpha "server.undertow"
(defproject webnf/parent "0.1.19-SNAPSHOT" :plugins [[lein-modules "0.3.11"]] :profiles {:provided {:dependencies [[org.clojure/clojure "_"]]} :dist {:modules {:dirs ["../dist"]}} :fast {:modules {:subprocess false}}} :modules {:in...
99ccbb5a4e66532d0d297ff22e5457880a14df65cf7ce57e270ad466b17ad6bc
ucsd-progsys/liquidhaskell
T1657A.hs
{-@ LIQUID "--expect-any-error" @-} module T1657A where {-@ data I <pigbert :: Int -> Bool> = I Int @-} data I = I Int @ getI : : forall < pp : : Int - > Bool > . { bloop : : Int < pp > |- { v : Int | v = bloop } < : { v : Int | v > 1984 } } I < pp > @ { bloop :: Int <pp> ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/T1657A.hs
haskell
@ LIQUID "--expect-any-error" @ @ data I <pigbert :: Int -> Bool> = I Int @ @ pleaseFail :: I<{\_ -> True}> @
module T1657A where data I = I Int @ getI : : forall < pp : : Int - > Bool > . { bloop : : Int < pp > |- { v : Int | v = bloop } < : { v : Int | v > 1984 } } I < pp > @ { bloop :: Int <pp> |- {v: Int | v = bloop} <: {v:Int | v > 1984} } I <pp> @-} getI :: I ge...
02ef06e303e08fc26733ced8b80387050943f5ecb6b4651dc40c2c32a7f6dc86
ejgallego/coq-serapi
ser_constr_matching.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/ser_constr_matching.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2017 MINES...
d7010cfff011d0e3a24f68f432f90a4e7f7b5d5ce9c4ea05bf72dfde42149c02
spwhitton/consfigurator
shell-wrap.lisp
;;; Consfigurator -- Lisp declarative configuration management system Copyright ( C ) 2021 < > ;;; This file 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 , or ( at your option ) ;...
null
https://raw.githubusercontent.com/spwhitton/consfigurator/c527a187196b1e547d457957b768e57698694d32/src/connection/shell-wrap.lisp
lisp
Consfigurator -- Lisp declarative configuration management system This file is free software; you can redistribute it and/or modify either version 3 , or ( at your option ) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty o...
Copyright ( C ) 2021 < > 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 (in-package :consfigurator.connection.shell-wrap) (named-readtables:in-readtable :consfigurator) (defclass shell-wrap-connection (posix-connect...
f3f04c20173e5a60da3c3fc5c22332ecdbec1986b646cb60ad840a8ecaadafe4
jsa-aerial/DMM
experiment1.clj
(ns dmm.experiment1 [:require [clojure.core.async :as async :refer (<! <!! >! >!! put! chan go go-loop alt! timeout alt! alts!!)] [clojure.core.matrix :as m] [clojure.core.matrix.operators :as mo] [clojure.core.matrix.dataset :as ds]]) (m/set-current-implementation :vectorz) (def M (m/matrix [[1 ...
null
https://raw.githubusercontent.com/jsa-aerial/DMM/2baf47aaab227e8e1e0af64c187acf2384d205c5/src/dmm/experiment1.clj
clojure
<-- returns full matrix!! Kills JVM
(ns dmm.experiment1 [:require [clojure.core.async :as async :refer (<! <!! >! >!! put! chan go go-loop alt! timeout alt! alts!!)] [clojure.core.matrix :as m] [clojure.core.matrix.operators :as mo] [clojure.core.matrix.dataset :as ds]]) (m/set-current-implementation :vectorz) (def M (m/matrix [[1 ...
52ba34e1216a0f369d533a5af07ffd82017ce323e6f136c315311dc073e79ba3
seckcoder/course-compiler
s2_1.rkt
(let ([v (vector 40 2)]) (+ (vector-ref v 0) (vector-ref v 1)))
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/s2_1.rkt
racket
(let ([v (vector 40 2)]) (+ (vector-ref v 0) (vector-ref v 1)))
fab831b82f7fa074cd5c177433e629776bff9178aa3b128727c9e6703b1b6dac
secgroup/fws
FuncModel.hs
-- | Extracting function and array interpretations. module Example.Monad.FuncModel ( run ) where import Z3.Monad run :: IO () run = do evalZ3 arrayScript >>= print evalZ3 funcScript >>= print type RetType = ([([Integer], Integer)], Integer) toIntsPair :: ([AST], AST) -> Z3 ([Integer], Integer) toInts...
null
https://raw.githubusercontent.com/secgroup/fws/d90b0302edb4e14a7aa0e58a62a79bab681107f7/lib/z3-haskell/examples/Example/Monad/FuncModel.hs
haskell
| Extracting function and array interpretations. * Arrays * Functions check satisfiability and obtain model
module Example.Monad.FuncModel ( run ) where import Z3.Monad run :: IO () run = do evalZ3 arrayScript >>= print evalZ3 funcScript >>= print type RetType = ([([Integer], Integer)], Integer) toIntsPair :: ([AST], AST) -> Z3 ([Integer], Integer) toIntsPair (is, i) = do is' <- mapM getInt is i...
cc5140ac290b585afb25b74aa0742677a6890d0e27fe41638d166d92d39da799
ekmett/rcu
MoveString.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # module Main where import Control.Concurrent.RCU.MODE import Control.Concurrent.RCU.Class import Control.Monad (forM, forM_, replicateM) import Data.List (group, intercalate) import Prelude hiding (read) data List s a = Nil | Cons a (SRef s (List s a)) snapshot :: MonadR...
null
https://raw.githubusercontent.com/ekmett/rcu/4971b0ab1cad4d2e0d1089edc076912b546f53e7/examples/MoveString.hs
haskell
duplicate pointer to B link in a new C after A any reader who starts during this grace period unlink the old C initialize list spawn a writer to move a node from a later position to an earlier position wait for the readers to finish and print snapshots wait for the writer to finish
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # module Main where import Control.Concurrent.RCU.MODE import Control.Concurrent.RCU.Class import Control.Monad (forM, forM_, replicateM) import Data.List (group, intercalate) import Prelude hiding (read) data List s a = Nil | Cons a (SRef s (List s a)) snapshot :: MonadR...
0a7e5c90d7279a58353a298032df8ed17a212e8354fe2f64aae3ebbd5afeb229
deg/re-frame-storage-fx
brepl.clj
(require '[cljs.build.api :as b] '[cljs.repl :as repl] '[cljs.repl.browser :as browser]) (b/build "src" {:main 'com.degel.re-frame.storage :output-to "out/re_frame_storage_fx.js" :output-dir "out" :verbose true}) (repl/repl (browser/repl-env) :output-dir "out")
null
https://raw.githubusercontent.com/deg/re-frame-storage-fx/a00606f99bb4542b68269e223603b3cfb4dc744e/scripts/brepl.clj
clojure
(require '[cljs.build.api :as b] '[cljs.repl :as repl] '[cljs.repl.browser :as browser]) (b/build "src" {:main 'com.degel.re-frame.storage :output-to "out/re_frame_storage_fx.js" :output-dir "out" :verbose true}) (repl/repl (browser/repl-env) :output-dir "out")
de50aed02c61f0551ccd38d3ab42de679a8700e79ba2a6a1f6a22cd6815f5741
ocaml-gospel/ortac
immutable.mli
type ('a, 'b) t_dependant = 'a * 'b val start : unit -> unit type int_list = int list type variant = C0 of int | C1 of string * int type record = { f0 : int; f1 : string } type immutable_t_dependant = (int, char) t_dependant
null
https://raw.githubusercontent.com/ocaml-gospel/ortac/982b0f99d960098758d5bc5cc9bf1f6672fd2783/test/suite/translation/immutable.mli
ocaml
type ('a, 'b) t_dependant = 'a * 'b val start : unit -> unit type int_list = int list type variant = C0 of int | C1 of string * int type record = { f0 : int; f1 : string } type immutable_t_dependant = (int, char) t_dependant
b7b3f7f3917a3f533529262839d9bb288ce6ecb32d582591a021db1c5fed3dd0
dbuenzli/brr
brr_ocaml_poke.ml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/brr/3d1a0edd964a1ddfbf2be515fc3a3803d27ad707/src/ocaml_poke/brr_ocaml_poke.ml
ocaml
Raises Jv.Error Raises Jv.Error escapes properly escapes properly
--------------------------------------------------------------------------- Copyright ( c ) 2020 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
ab1adaf01684670abb146a4bd776745c745ab58bd1c9f55aff089aa53954428b
CodyReichert/qi
gzip.lisp
(in-package :gzip-stream) (defun gzip-string (sequence) (with-open-stream (out (make-string-output-stream)) (let ((outs (make-gzip-output-stream out))) (setf outs (make-flexi-stream outs)) (write-sequence sequence outs) (finish-output outs)) (get-output-stream-string out))) (defun gzip-byt...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/gzip-stream-latest/gzip.lisp
lisp
(in-package :gzip-stream) (defun gzip-string (sequence) (with-open-stream (out (make-string-output-stream)) (let ((outs (make-gzip-output-stream out))) (setf outs (make-flexi-stream outs)) (write-sequence sequence outs) (finish-output outs)) (get-output-stream-string out))) (defun gzip-byt...
ab7979ec4f2cf9e23b22ba7cc80c599edf92983245aaf21a845284f64b4a84d9
VisionsGlobalEmpowerment/webchange
handler.clj
(ns webchange.accounts.handler (:require [buddy.auth :refer [throw-unauthorized]] [compojure.api.sweet :refer [context GET POST PUT DELETE defroutes]] [ring.util.response :refer [response redirect]] [clojure.tools.logging :as log] [webchange.common.handler :refer [curre...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/9ecee6f21e264cb41fc128754f2256ea98e79f9d/src/clj/webchange/accounts/handler.clj
clojure
(ns webchange.accounts.handler (:require [buddy.auth :refer [throw-unauthorized]] [compojure.api.sweet :refer [context GET POST PUT DELETE defroutes]] [ring.util.response :refer [response redirect]] [clojure.tools.logging :as log] [webchange.common.handler :refer [curre...
954a301b8b7b9145a0bb14c8c485828f72b6c42ed385445820ca3235a7e01fcc
illbexyz/advent-of-code-2020
day12.ml
open Base type instruction = | North of int | South of int | East of int | West of int | Left of int | Right of int | Forward of int [@@deriving show] type point2 = { x : int; y : int } [@@deriving show] let origin = { x = 0; y = 0 } let distance p1 p2 = abs (p1.x - p2.x) + abs (p1.y - p2.y) let rota...
null
https://raw.githubusercontent.com/illbexyz/advent-of-code-2020/dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1/day12/day12.ml
ocaml
open Base type instruction = | North of int | South of int | East of int | West of int | Left of int | Right of int | Forward of int [@@deriving show] type point2 = { x : int; y : int } [@@deriving show] let origin = { x = 0; y = 0 } let distance p1 p2 = abs (p1.x - p2.x) + abs (p1.y - p2.y) let rota...
1cfb4d24804f19a00614c10a2ad97a96f16396aed128852517c633e84e4ce0fb
HaskellEmbedded/data-stm32
Peripheral.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # {-# LANGUAGE Rank2Types #-} module {{ modns }} where import Ivory.Language import Ivory.HW import Ivory.BSP.STM32.Interrupt import Ivory.BSP.STM32.Peripheral.EXTI.RegTypes import Ivory.BSP.STM32.Peripheral.{{ type }}{{ version }}....
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/templates/STM32/Peripheral/EXTIv1/Peripheral.hs
haskell
# LANGUAGE Rank2Types # Convenience type synonyms
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # module {{ modns }} where import Ivory.Language import Ivory.HW import Ivory.BSP.STM32.Interrupt import Ivory.BSP.STM32.Peripheral.EXTI.RegTypes import Ivory.BSP.STM32.Peripheral.{{ type }}{{ version }}.Regs data {{ type }} = {{ t...
38d5a58e385e92672a08ce94113ff9618820cadf43ac46acaf83c73cf4b86198
haskell/haskell-ide-engine
Floskell.hs
{-# LANGUAGE OverloadedStrings #-} | A flexible Haskell source code pretty printer . module Haskell.Ide.Engine.Plugin.Floskell ( floskellDescriptor ) where import Control.Monad.IO.Class (liftIO) import Data.Aeson (Value (Null)) import qualified Data.ByteString.Laz...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/src/Haskell/Ide/Engine/Plugin/Floskell.hs
haskell
# LANGUAGE OverloadedStrings # Formats the given source in either a given Range or the whole Document. If the provider fails an error is returned that can be displayed to the user. | Find Floskell Config, user and system wide or provides a default style. Also looks into places such as XDG_CONFIG_DIRECTORY<-spec/bas...
| A flexible Haskell source code pretty printer . module Haskell.Ide.Engine.Plugin.Floskell ( floskellDescriptor ) where import Control.Monad.IO.Class (liftIO) import Data.Aeson (Value (Null)) import qualified Data.ByteString.Lazy as BS import qualified ...
f05eda98e16a2c04eb6d327a41105b9852a990a985bd4ed084af6aa9b373fe7c
geneweb/geneweb
config.mli
open Def open Gwdb (** Authentication scheme data type *) type auth_scheme_kind = | NoAuth | TokenAuth of token_auth_scheme | HttpAuth of http_auth_scheme and token_auth_scheme = { ts_user : string; ts_pass : string } (** Authentication via security token *) (** Authentication via HTTP *) and http_auth_scheme ...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/config.mli
ocaml
* Authentication scheme data type * Authentication via security token * Authentication via HTTP * Basic authentication scheme inside {i Autorization} HTTP header * Digest authentication scheme inside {i Autorization} HTTP header * HTTP printer, that prints and sends requests on the user's socket content of .gwf ...
open Def open Gwdb type auth_scheme_kind = | NoAuth | TokenAuth of token_auth_scheme | HttpAuth of http_auth_scheme and token_auth_scheme = { ts_user : string; ts_pass : string } and http_auth_scheme = | Basic of basic_auth_scheme | Digest of digest_auth_scheme and basic_auth_scheme = { bs_realm : strin...
c389e82af1ad336249650ba967d6d44dadcbf456512df02cf2e1875ffee24672
bgutter/cl-phonetic
phonetic.lisp
;; ;; phonetic.lisp ;; ;; Search for phoneme patterns using regular expressions. ;; (in-package :cl-phonetic) ;; Phonemes & Encoding (defconstant +unicode-pua-base+ #x00E000 "The first unicode value where encoded phonemes will be defined. Currently, pattern matching is done by the CL-PPCRE package. This is accompl...
null
https://raw.githubusercontent.com/bgutter/cl-phonetic/2f7ee6d7897e27e487fc5a5b5ba5e86637d51af9/phonetic.lisp
lisp
phonetic.lisp Search for phoneme patterns using regular expressions. Phonemes & Encoding After initialization of any phoneme 1. Generate a unique encoding value and store it in the encoded-value slot. 2. Fill the representation slot as the name of the symbol supplied for NAME. Prevent ambigu...
(in-package :cl-phonetic) (defconstant +unicode-pua-base+ #x00E000 "The first unicode value where encoded phonemes will be defined. Currently, pattern matching is done by the CL-PPCRE package. This is accomplished by masquerading phonemes as unicode characters. We map phonemes to characters in the Unicode Private ...
484a27a2a4b6cff76a02f6dca1e09cea7522d565ecb83305ce450d5d0c246e8c
DSiSc/why3
ACSLtoWhy3_Ptree.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/jessie/ACSLtoWhy3_Ptree.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception let help = "Checks ACSL contracts using Why3" let global_logic_decls_theory_name = "Global logic declar...
df8e07242733ce15a314754589fac369e8c14a4d045267c40ed3f0028c1b85ac
tsloughter/kuberl
kuberl_v1beta1_mutating_webhook_configuration.erl
-module(kuberl_v1beta1_mutating_webhook_configuration). -export([encode/1]). -export_type([kuberl_v1beta1_mutating_webhook_configuration/0]). -type kuberl_v1beta1_mutating_webhook_configuration() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_objec...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_mutating_webhook_configuration.erl
erlang
-module(kuberl_v1beta1_mutating_webhook_configuration). -export([encode/1]). -export_type([kuberl_v1beta1_mutating_webhook_configuration/0]). -type kuberl_v1beta1_mutating_webhook_configuration() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_objec...
620e9eeabc6e9cf3bb1a5dfeadc73f1bf980eaccdfcf212f64c99f9c0c9524e5
gebner/hledger-diff
Main.hs
# LANGUAGE CPP # import Hledger import Data.List import Data.Function import Data.Ord import Data.Maybe import System.Environment import System.Exit import Data.Time import Data.Either import qualified Data.Text as T data PostingWithPath = PostingWithPath { ppposting :: Posting, ...
null
https://raw.githubusercontent.com/gebner/hledger-diff/d4ac08e16fd0f5cfc7a00786386641c58e479049/Main.hs
haskell
TODO: probably not a correct choice of bins keep synced with hledger-diff.cabal
# LANGUAGE CPP # import Hledger import Data.List import Data.Function import Data.Ord import Data.Maybe import System.Environment import System.Exit import Data.Time import Data.Either import qualified Data.Text as T data PostingWithPath = PostingWithPath { ppposting :: Posting, ...
fd3e534bea3b5433c5a1ef5d22a49fa1bcfc988cfc4cdf75a215ce6f5a0dc6d5
upgradingdave/cljs
dev.cljs
(ns up.notify.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.notify.core :as n]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (def alerts-path [:alerts]) (def notify-path [:notifications]) (...
null
https://raw.githubusercontent.com/upgradingdave/cljs/1026b6db905214586fb7e04800df078da19b37cc/src/cljs/up/notify/dev.cljs
clojure
(ns up.notify.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.notify.core :as n]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (def alerts-path [:alerts]) (def notify-path [:notifications]) (...
3433f596dc2afe78714ac81da0e5fc14d32703a31c96719d25474882b1296769
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject enlive8 "0.1.0-SNAPSHOT"...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/78061b533c0755d0165002961334bbe98d994087/enlive8/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (defproject enlive8 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [enlive "1.1.1"]] :plugins [[lein...
99228b98df53f2bb3d2c8aa1e55722e1382c550df66897b7904952b3725ffdf5
PLTools/OCanren
test017tabling.ml
open OCanren open Tester let patho_norec arco po x y = conde [ arco x y; Fresh.one (fun z -> (arco x z) &&& (po z y) ); ] let rec patho arco = patho_norec arco (fun x y -> delay @@ fun () -> patho arco x y) let patho_tabled arco = Tabling.(tabledrec two) (patho_norec arco) let show s = s let showl = GT.sh...
null
https://raw.githubusercontent.com/PLTools/OCanren/1ead64bde16b0eb339a6bf790ea871e19bbaccd0/regression/test017tabling.ml
ocaml
This relation defines a graph with cycle Check that query to tabled goal terminates and results are stored to the cache Check that external disequalities are checked Check that external disequalities do not affect the cache Check that tabling works with non-ground terms Check that internal constraints are st...
open OCanren open Tester let patho_norec arco po x y = conde [ arco x y; Fresh.one (fun z -> (arco x z) &&& (po z y) ); ] let rec patho arco = patho_norec arco (fun x y -> delay @@ fun () -> patho arco x y) let patho_tabled arco = Tabling.(tabledrec two) (patho_norec arco) let show s = s let showl = GT.sh...
818f99aa151e782e326bb3869c4de47e3103ebd3f90f71262c6190b75670139b
hidaris/thinking-dumps
interp.rkt
(module interp (lib "eopl.ss" "eopl") ;; interpreter for the EXPLICIT-REFS language (require "drscheme-init.rkt") (require "lang.rkt") (require "data-structures.rkt") (require "environments.rkt") (require "store.rkt") (provide value-of-program value-of instrument-let instrument-newref) ;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-12/store-passing/interp.rkt
racket
interpreter for the EXPLICIT-REFS language switches for instrument-let ;;;;;;;;;;;;;;;; say (instrument-let #t) to turn instrumentation on. (instrument-let #f) to turn it off again. the interpreter ;;;;;;;;;;;;;;;; (initialize-store!) ; new for explicit refs. \commentbox{ (value-of (const-exp \n...
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.rkt") (require "lang.rkt") (require "data-structures.rkt") (require "environments.rkt") (require "store.rkt") (provide value-of-program value-of instrument-let instrument-newref) (define instrument-let (make-parameter #f)) value - of...
1fcd6255e21e0de6f4816f476bc890b8d63549f5b86e77d02c4d9aa67adf44be
extend/ex_fcgi
fcgi_SUITE.erl
Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/extend/ex_fcgi/c819e82ef3f411e19018292be457f8711fba2295/test/fcgi_SUITE.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(fcgi_SUITE). -author('Anthony Ramine <>'). -include...
d91df554c1b932178511dca171bd8b196bce89f31686b0e089bb9db35c5f9bd2
tomjridge/kv-hash
nv_map_ss_intf.ml
(** General non-volatile map from string to string *) (** Operations are insert: (k,`Insert v), or delete: (k,`Delete) *) type op = string * [ `Insert of string | `Delete ] module type S = sig type t type nv_map_ii val create : Values_file.t -> nv_map_ii -> t val find_opt : t -> string -> string option ...
null
https://raw.githubusercontent.com/tomjridge/kv-hash/fcb7fdc044514ac795465c6cae4b5168288189b7/src/nv_map_ss_intf.ml
ocaml
* General non-volatile map from string to string * Operations are insert: (k,`Insert v), or delete: (k,`Delete) * Access to the non-volatile int->int map
type op = string * [ `Insert of string | `Delete ] module type S = sig type t type nv_map_ii val create : Values_file.t -> nv_map_ii -> t val find_opt : t -> string -> string option val insert : t -> string -> string -> unit val batch : t -> op list -> unit val close : t -> unit val g...
67a1d80e2c8b6fad4b7b4ad359df93550173070b26e665a34aed62fe8d7020ed
dongcarl/guix
sqlite.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2015 , 2018 < > Copyright © 2014 , 2015 , 2016 , 2018 < > Copyright © 2014 Sree < > Copyright © 2015 , 2016 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 , ...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/sqlite.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2015 , 2018 < > Copyright © 2014 , 2015 , 2016 , 2018 < > Copyright © 2014 Sree < > Copyright © 2015 , 2016 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2017 < > Copyrigh...
d0fc46f588bce6ca45db9023d531c80f68a108788f036aee8328584bc9ddb15e
jacekschae/learn-reitit-course-files
routes.clj
(ns cheffy.recipe.routes (:require [cheffy.recipe.handlers :as recipe])) (defn routes [env] (let [db (:jdbc-url env)] ["/recipes" {:swagger {:tags ["recipes"]}} ["" {:get {:handler (recipe/list-all-recipes db) :summary "List all recipes"}}] ["/:recipe-id" {:get {:handler (r...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/21-recipe-responses/src/cheffy/recipe/routes.clj
clojure
(ns cheffy.recipe.routes (:require [cheffy.recipe.handlers :as recipe])) (defn routes [env] (let [db (:jdbc-url env)] ["/recipes" {:swagger {:tags ["recipes"]}} ["" {:get {:handler (recipe/list-all-recipes db) :summary "List all recipes"}}] ["/:recipe-id" {:get {:handler (r...
47ac3d061b87288125763f8febd397a2fe5c597ebc6958ee2729458485cda080
kdltr/chicken-core
makedist.scm
;;;; makedist.scm - Make distribution tarballs (import (chicken file) (chicken fixnum) (chicken format) (chicken io) (chicken irregex) (chicken pathname) (chicken platform) (chicken process) (chicken process-context) (chicken string)) (include "...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/scripts/makedist.scm
scheme
makedist.scm - Make distribution tarballs
(import (chicken file) (chicken fixnum) (chicken format) (chicken io) (chicken irregex) (chicken pathname) (chicken platform) (chicken process) (chicken process-context) (chicken string)) (include "mini-srfi-1.scm") (define *release* #f) (defin...
55526367bbbc7797370fa50b2c427b0024a5d6be6ae190cd5b4bb081ea015596
retro/keechma-next-realworld-app
pipeline_test.cljs
(ns keechma.next.toolbox.pipeline-test (:require [cljs.test :refer-macros [deftest testing is async use-fixtures]] [keechma.next.toolbox.pipeline :as pp :refer [pswap! preset! start! stop! invoke] :refer-macros [pipeline!]] [keechma.next.toolbox.pipeline.runtime :as runtime] [prome...
null
https://raw.githubusercontent.com/retro/keechma-next-realworld-app/47a14f4f3f6d56be229cd82f7806d7397e559ebe/classes/test/realworld-2/keechma/next/toolbox/pipeline_test.cljs
clojure
(ns keechma.next.toolbox.pipeline-test (:require [cljs.test :refer-macros [deftest testing is async use-fixtures]] [keechma.next.toolbox.pipeline :as pp :refer [pswap! preset! start! stop! invoke] :refer-macros [pipeline!]] [keechma.next.toolbox.pipeline.runtime :as runtime] [prome...
2f9fbb8b89ca673a8b71d74b1d0448a631688f5969c7b13077c3f6b19dd8669a
wdebeaum/step
vehicle.lisp
;;;; W::VEHICLE ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::VEHICLE ( ( W::MORPH (: forms ( -S-3P -load ) ) ) ) (SENSES ((meta-data :origin trips :entry-date 20060803 :change-date nil :comments nil :wn ("vehicle%1:06:00")) (LF-PARENT ONT::VEHICLE) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/vehicle.lisp
lisp
W::VEHICLE (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::VEHICLE ( ( W::MORPH (: forms ( -S-3P -load ) ) ) ) (SENSES ((meta-data :origin trips :entry-date 20060803 :change-date nil :comments nil :wn ("vehicle%1:06:00")) (LF-PARENT ONT::VEHICLE) ) ) ) ))
65e2e6fc471a5f21da450b6299bf455f5f93871ca0c40501889b69f68423510a
juxt/site
xml.clj
Copyright © 2021 , JUXT LTD . (ns juxt.dave.alpha.xml (:require [clojure.tools.logging :as log] [xtdb.api :as xt])) (defn write-doc ([doc output-stream] (write-doc doc output-stream {})) ([doc output-stream options] See -DOM-Level-3-LS-20040407/load-save.html ;; for a full list of options (le...
null
https://raw.githubusercontent.com/juxt/site/a72729b05153aac03cf47d16a5eaeb05e0809b4d/src/juxt/dave/alpha/xml.clj
clojure
for a full list of options Elements Text nodes
Copyright © 2021 , JUXT LTD . (ns juxt.dave.alpha.xml (:require [clojure.tools.logging :as log] [xtdb.api :as xt])) (defn write-doc ([doc output-stream] (write-doc doc output-stream {})) ([doc output-stream options] See -DOM-Level-3-LS-20040407/load-save.html (let [registry (org.w3c.dom.bootstra...
a501db92e09f2366b36fde80ac91e691af51f083c96901e5a887906934947d9e
falsetru/htdp
32.2.7.scm
(define-struct state (left boat-on-left right trail) #:transparent) state : : left , right : side / board - on - left : bool / trail : ( listof side ) (define-struct side (m c) #:transparent) ; m, c: number (define MC 3) (define (make-BOAT-LOADS n) (local ((define (mk m c) (cond [(> m n) empty] ...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/32/32.2.7.scm
scheme
m, c: number
(define-struct state (left boat-on-left right trail) #:transparent) state : : left , right : side / board - on - left : bool / trail : ( listof side ) (define MC 3) (define (make-BOAT-LOADS n) (local ((define (mk m c) (cond [(> m n) empty] [(> (+ m c) n) (mk (add1 m) 0)] ...
b999c77c2c8a33368299829d392da4dc43e58a572d8ec0cf539c97bc1835f73c
mtgred/netrunner
stats.clj
(ns web.angel-arena.stats (:require [clojure.string :as str] [monger.collection :as mc] [monger.operators :refer :all] [web.angel-arena.runs :refer [finish-run!]] [web.angel-arena.utils :refer [get-deck-from-id get-losses get-runs]] [web.ws :as ws])) (defonce max-losses 3) (defn- enter-winne...
null
https://raw.githubusercontent.com/mtgred/netrunner/8558b7718834f8c6b26c0db2b9ff9fb856f77240/src/clj/web/angel_arena/stats.clj
clojure
(ns web.angel-arena.stats (:require [clojure.string :as str] [monger.collection :as mc] [monger.operators :refer :all] [web.angel-arena.runs :refer [finish-run!]] [web.angel-arena.utils :refer [get-deck-from-id get-losses get-runs]] [web.ws :as ws])) (defonce max-losses 3) (defn- enter-winne...
e21e9621928ec7d4f47a370e92c619a0965f106732592862ceb8acc1c8930be7
LeventErkok/sbv
ModelExtract.hs
----------------------------------------------------------------------------- -- | -- Module : Documentation.SBV.Examples.Misc.ModelExtract Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Demonstrates use of programmatic model extraction. When programming with SBV , we t...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/Documentation/SBV/Examples/Misc/ModelExtract.hs
haskell
--------------------------------------------------------------------------- | Module : Documentation.SBV.Examples.Misc.ModelExtract License : BSD3 Maintainer: Stability : experimental Demonstrates use of programmatic model extraction. When programming with In more advanced uses, however, the user might wa...
Copyright : ( c ) SBV , we typically use ` sat`/`allSat ` calls to compute models automatically . module Documentation.SBV.Examples.Misc.ModelExtract where import Data.SBV outside :: [Integer] -> IO SatResult outside disallow = sat $ do x <- sInteger "x" let notEq i = constrain $ x...
13da9dbfd5b2fbe0509eb453a30f04bde746b0c4495b5ee4c79b35d3374e737e
dimitri/AdventOfCode
d03.lisp
(in-package :advent/2019) (defparameter *input/d3* (uiop:read-file-string (asdf:system-relative-pathname :advent "2019/d03.input"))) (defparameter *test/input/d3* "R8,U5,L5,D3 U7,R6,D4,L4") (defun manhattan-distance (coord1 &optional (coord2 '(0 . 0))) "" (let ((r1 (car coord1)) (c1 (cdr coord1)) ...
null
https://raw.githubusercontent.com/dimitri/AdventOfCode/fcb9f5e9d7e75c82efffc4069c0c54c5cce2d180/2019/d03.lisp
lisp
(in-package :advent/2019) (defparameter *input/d3* (uiop:read-file-string (asdf:system-relative-pathname :advent "2019/d03.input"))) (defparameter *test/input/d3* "R8,U5,L5,D3 U7,R6,D4,L4") (defun manhattan-distance (coord1 &optional (coord2 '(0 . 0))) "" (let ((r1 (car coord1)) (c1 (cdr coord1)) ...
9d8feb729172a3eef9d1b1104fb228c86153c29dae93e3877b05944fd4292f8b
input-output-hk/cardano-ledger
Scheduling.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} module Cardano.Chain.Delegation.Validation.Scheduling ( -- * Scheduling Environment (..), State (..), Error (..), ScheduledDelegation (..), scheduleCertifi...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/byron/ledger/impl/src/Cardano/Chain/Delegation/Validation/Scheduling.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # * Scheduling ------------------------------------------------------------------------------ Scheduling ------------------------------------------------------------------------------ | The delegation certificate has an invalid signature | This delegator has ...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # module Cardano.Chain.Delegation.Validation.Scheduling ( Environment (..), State (..), Error (..), ScheduledDelegation (..), scheduleCertificate, ) where import Cardano.Chain.Common (BlockCount, KeyHash, hashKey) import Card...
4ec41c29c9dcd5d4fb861712bcdb0692f9cac547ae1190ea39f9f24a294462da
fossas/fossa-cli
Builder.hs
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # module Text.URI.Builder ( Query (..), PathComponent (..), TrailingSlash (..), renderPath, setPath, setQuery, ) where import Control.Effect.Diagnostics import Data.List.NonEmpty (NonEmpty (..)) import Data.Text import Text.URI newtype PathComponent = Path...
null
https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/src/Text/URI/Builder.hs
haskell
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # module Text.URI.Builder ( Query (..), PathComponent (..), TrailingSlash (..), renderPath, setPath, setQuery, ) where import Control.Effect.Diagnostics import Data.List.NonEmpty (NonEmpty (..)) import Data.Text import Text.URI newtype PathComponent = Path...
2bccb213a13d2a3314b9c7bc099b64262cc666c75ed200cc2e5d74d6b5faed44
copton/ocram
Intermediate.hs
# LANGUAGE TemplateHaskell # module Ocram.Intermediate exports { { { 1 ( module Ocram.Intermediate.Representation , ast_2_ir ) where imports { { { 1 import Control.Monad.Writer (runWriter, Writer, tell) import Data.Either (partitionEithers) import Language.C.Syntax.AST import Ocram.Debug.Enriched (node_end)...
null
https://raw.githubusercontent.com/copton/ocram/c7166eab0187868a52a61017c6d3687e5a1a6162/ocram/src/Ocram/Intermediate.hs
haskell
# LANGUAGE TemplateHaskell # module Ocram.Intermediate exports { { { 1 ( module Ocram.Intermediate.Representation , ast_2_ir ) where imports { { { 1 import Control.Monad.Writer (runWriter, Writer, tell) import Data.Either (partitionEithers) import Language.C.Syntax.AST import Ocram.Debug.Enriched (node_end)...
80b97c80e1e1894b821ae4e2e0e0642fa211be5d49edf790aa0a690b85efead7
nebularis/systest
systest_profile.erl
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ---------------------------------------------------------------------------- %% Copyright ( c ) 2005 - 2012 Nebularis . %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this ...
null
https://raw.githubusercontent.com/nebularis/systest/fbef181fd0203137f9f6ca6a471c75ca180ec375/src/systest_profile.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"), deal to use, copy, modify, merge, publish, distribute, sublicense, and/o...
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- Copyright ( c ) 2005 - 2012 Nebularis . 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 ...
f35cb2e94e27e4ed241565a0c042ea7a91afb290927adbe272d87d96089b3b50
TaktInc/freer
Region.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Poly...
null
https://raw.githubusercontent.com/TaktInc/freer/b1e4911832ad12ef0b9b23883548dcf44ea3bd59/src/Eff/Region.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE PolyKinds # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - redundant - constraints # module Eff.Region ...
d6ef55f4983190a6d77bfb0442c6258b824b6233e7a57fb4845a0a9fedd6b765
evdubs/renegade-way
db-queries.rkt
#lang racket/base (require db gregor racket/string interactive-brokers-api/base-structs interactive-brokers-api/response-messages "logging.rkt" "params.rkt" "structs.rkt") (provide get-1-month-rate get-condor-analysis get-date-ohlc ...
null
https://raw.githubusercontent.com/evdubs/renegade-way/cfe09af52f9bb50b53f351bf5245408c837edeba/db-queries.rkt
racket
Get market/sector/industry/stock breakdown for ETF components
#lang racket/base (require db gregor racket/string interactive-brokers-api/base-structs interactive-brokers-api/response-messages "logging.rkt" "params.rkt" "structs.rkt") (provide get-1-month-rate get-condor-analysis get-date-ohlc ...
577441be73f94be8a28beed3b3e8f04da95a1da837ff52df4e4c504855d03821
godfat/sandbox
OO.hs
module OO(Set) where data Set = Set{ klass :: Set -> String , isEmpty :: Set -> Bool --insert :: Set -> Int -> Set , --union :: Set -> Set -> Set , --contains :: Set -> Int -> Bool} } empty = Set{ klass = \x -> "Empty", isEmpty = \x -> True }
null
https://raw.githubusercontent.com/godfat/sandbox/eb6294238f92543339adfdfb4ba88586ba0e82b8/haskell/DataAbstraction/OO.hs
haskell
insert :: Set -> Int -> Set , union :: Set -> Set -> Set , contains :: Set -> Int -> Bool}
module OO(Set) where data Set = Set{ klass :: Set -> String , isEmpty :: Set -> Bool } empty = Set{ klass = \x -> "Empty", isEmpty = \x -> True }
afdf1d0a1887518cc98fc2dbbc8b9f95154da7f0120de15603d1b8262d104c39
alphagov/govuk-guix
available-services.scm
(define-module (gds scripts govuk system available-services) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (json) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (gnu services) #:use-module (gnu services shepherd) #:use-modul...
null
https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/scripts/govuk/system/available-services.scm
scheme
(define-module (gds scripts govuk system available-services) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (json) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (gnu services) #:use-module (gnu services shepherd) #:use-modul...
d0ec8f318d775abe662fb3b36b3025b649a3bae8af7030a75952e15f1dbe4643
rd--/hsc3
pv_Compander.help.hs
-- pv_Compander ; mostly compress let z = decay2 (impulse ar 8 0 * lfSaw kr 0.3 0 * 0.3) 0.001 0.3 * mix (pulse ar (mce [80, 81]) 0.3) x = mouseX kr 1 50 Linear 0.2 in mce [z, ifft' (X.pv_Compander (fft' (localBufId 'α' 2048 1) z) x 1.2 0.25)] -- pv_Compander ; mostly expand let z = decay2 (impulse ar 8 0 * lfSaw ...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/pv_Compander.help.hs
haskell
pv_Compander ; mostly compress pv_Compander ; mostly expand pv_Compander ; sustainer
let z = decay2 (impulse ar 8 0 * lfSaw kr 0.3 0 * 0.3) 0.001 0.3 * mix (pulse ar (mce [80, 81]) 0.3) x = mouseX kr 1 50 Linear 0.2 in mce [z, ifft' (X.pv_Compander (fft' (localBufId 'α' 2048 1) z) x 1.2 0.25)] let z = decay2 (impulse ar 8 0 * lfSaw kr 0.3 0 * 0.3) 0.001 0.3 * mix (pulse ar (mce [80, 81]) 0.3) ...
e4111731538c8786122fa33200cffb6e14c626a2bc3c8e42e0a683f05a803bd2
scrintal/heroicons-reagent
megaphone.cljs
(ns com.scrintal.heroicons.outline.megaphone) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/megaphone.cljs
clojure
(ns com.scrintal.heroicons.outline.megaphone) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
f2ba31f64fb347a203082fa2185be7e27211027863b911a6418f0453158d5ac6
emqx/hocon
demo_schema2.erl
-module(demo_schema2). -include_lib("typerefl/include/types.hrl"). -behaviour(hocon_schema). -export([namespace/0, roots/0, fields/1]). namespace() -> undefined. roots() -> [ {foo, hoconsc:array(hoconsc:ref(foo))} , {"kek", hoconsc:lazy(hoconsc:union([bar, "kak"]))} ]. fields(foo) -> [ {int, integ...
null
https://raw.githubusercontent.com/emqx/hocon/98551301dc050c87727fbd07899f58e69404b411/sample-schemas/demo_schema2.erl
erlang
-module(demo_schema2). -include_lib("typerefl/include/types.hrl"). -behaviour(hocon_schema). -export([namespace/0, roots/0, fields/1]). namespace() -> undefined. roots() -> [ {foo, hoconsc:array(hoconsc:ref(foo))} , {"kek", hoconsc:lazy(hoconsc:union([bar, "kak"]))} ]. fields(foo) -> [ {int, integ...
05f8b0378c0fc4c88bacdccb2d54437d4580078a68bb7814d188f88846728712
hemmi/coq2scala
search.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/toplevel/search.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Names open Term ...
fecece304d3bccea19eafab7e41b18b0121d7ed67d6fc4ba8c220270ab027e01
fractalide/fractalide
not16.rkt
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "not0" ${math.not}) (node "not1" ${math.not}) (node "not2" ${math.not}) (node "not3" ${math.not}) (node "not4" ${math.not}) (node "not5" ${math.not}) (node "not6" ${math.not}) (node "not7" ${math.not}) (node "not8" ${mat...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/math/not16.rkt
racket
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "not0" ${math.not}) (node "not1" ${math.not}) (node "not2" ${math.not}) (node "not3" ${math.not}) (node "not4" ${math.not}) (node "not5" ${math.not}) (node "not6" ${math.not}) (node "not7" ${math.not}) (node "not8" ${mat...
fab9d7fb02604a20e3a77b30ba52bdafb5af73da8eb020c39fe2bd28efaa2921
hellonico/origami-fun
short_stream2.clj
(ns opencv4.video.short-stream2 (:require [opencv4.utils :as u])) ; ; opencv video test ; ; -java/video-basics/tree/master/src/it/polito/teaching/cv (defn -main[ & args ] (u/simple-cam-window identity)) (comment ; short version (-main) ; long version (def capture (VideoCapture.)) (.open capture 0) (de...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/video/short_stream2.clj
clojure
opencv video test -java/video-basics/tree/master/src/it/polito/teaching/cv short version long version
(ns opencv4.video.short-stream2 (:require [opencv4.utils :as u])) (defn -main[ & args ] (u/simple-cam-window identity)) (comment (-main) (def capture (VideoCapture.)) (.open capture 0) (def window (u/show (new-mat height width CV_8UC3 (new-scalar 255 255 255)))) (def buffer (new-mat)) (dotimes [i 2...
0770a0cb89521c4bddb4f02f84d45304118ac933f82e2c9d5af9b8bb12a9941e
Liqwid-Labs/agora
Bridge.hs
module Main (main) where import Language.PureScript.Bridge ( buildBridge, defaultBridge, writePSTypes, ) -------------------------------------------------------------------------------- import Control.Monad (unless) -------------------------------------------------------------------------------- import Agor...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/0454aa32259813faf9cc1e13e33d5437e19d9c92/agora-purescript-bridge/Bridge.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module Main (main) where import Language.PureScript.Bridge ( buildBridge, defaultBridge, writePSTypes, ) import Control.Monad (unless) import AgoraTypes (agoraTypes) import Options (Options (..), parseOptions) main :: IO () main = do options <- parseOptions unless options.quiet $ do putStrLn $ "W...
d820ca0a85845d2ffa5e2fb772471d5a604d57c07eb51336a7736fa3be7934cb
matsen/pplacer
pplacer.ml
(* "main" *) open Ppatteries let parse_args () = let files = ref [] in let prefs = Prefs.defaults () and anon_arg arg = files := arg :: !files in Arg.parse (Prefs.specl prefs) anon_arg Prefs.usage; (List.rev !files, prefs) let () = if not !Sys.interactive then begin exn_wrap (fun () -> let (fil...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/pplacer.ml
ocaml
"main"
open Ppatteries let parse_args () = let files = ref [] in let prefs = Prefs.defaults () and anon_arg arg = files := arg :: !files in Arg.parse (Prefs.specl prefs) anon_arg Prefs.usage; (List.rev !files, prefs) let () = if not !Sys.interactive then begin exn_wrap (fun () -> let (files, prefs) = ...
fa53f370f5ccca6c80a9a2796747173e688f594174aa6c752c5d093bf0d289cb
robert-strandh/SICL
char-upcase-ascii-defun.lisp
(cl:in-package #:sicl-character) (defun char-upcase (character) (if (lower-case-p character) (code-char (- (char-code character) (- 97 65))) character))
null
https://raw.githubusercontent.com/robert-strandh/SICL/d90b41e5b7d6a926d66a0b78ccbd7ce818df311f/Code/Character/char-upcase-ascii-defun.lisp
lisp
(cl:in-package #:sicl-character) (defun char-upcase (character) (if (lower-case-p character) (code-char (- (char-code character) (- 97 65))) character))
70e3fa0c88cf40bfe871d80d138a846b05f6e6d8105aba6f42990d3ebc01b046
osimon8/CombinatorC
directive.ml
open Ast.Circuit type layout_type = | Identity | Naive type directive = | Layout of layout_type | Primary of wire_color exception DirectiveError of string let parse_directive d s : directive = let dl = String.lowercase_ascii d in let sl = String.lowercase_ascii s in begin match dl with | "layou...
null
https://raw.githubusercontent.com/osimon8/CombinatorC/0bdbbc893ee458ec75eab7a48712d07a62e190aa/src/compiler/directive.ml
ocaml
open Ast.Circuit type layout_type = | Identity | Naive type directive = | Layout of layout_type | Primary of wire_color exception DirectiveError of string let parse_directive d s : directive = let dl = String.lowercase_ascii d in let sl = String.lowercase_ascii s in begin match dl with | "layou...
e06f100f929c0040237fde99cc895a066cfd9aa474be193d4f169bf94628dc77
manuel-serrano/hop
range.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / js2scheme / range.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/ddb582df11b8326d1653a8fa1e4c2d40d976869f/js2scheme/range.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / js2scheme / range.scm * / * Author : * / * Creation : Thu Nov 3 18:13:46 2016 * / * Last change : Mon May 2 15:30:00 2022 ( serrano ) * / * Co...
9159634b18caefe280c6423a452675aec5ebd6c7f97bc1275188621e7c0efa4e
bdeket/rktsicm
qual+pointtransform.rkt
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/qualitative+point-transformationns" (test-case "qualitative" (check-= (find-invariant-curve (standard-map 0.95) (- 1 (/ 1 (/ (+ 1 (sqrt ...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/mechanics/qual%2Bpointtransform.rkt
racket
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/qualitative+point-transformationns" (test-case "qualitative" (check-= (find-invariant-curve (standard-map 0.95) (- 1 (/ 1 (/ (+ 1 (sqrt ...
c61b2399ff5971088e00d5aebad5d5eeb04b7c48c51218531987d76523dab6b5
erlang/rebar3
rebar_dialyzer_SUITE.erl
-module(rebar_dialyzer_SUITE). -export([suite/0, init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2, init_per_testcase/2, all/0, groups/0, empty_base_plt/1, empty_app_plt/1, empty_app_succ_typings/1, up...
null
https://raw.githubusercontent.com/erlang/rebar3/5678aadcd6b813fe5a0e0aa7ff2f74b6ad210cf2/apps/rebar/test/rebar_dialyzer_SUITE.erl
erlang
For this test to pass, ignore warnings for unknown calls Create applications the project application App3 depends on App2 Dependencies settings Dialyzer: plt_apps = top_level_deps (default) Remove erts => [] test workflow: (b) perform success-typing for all apps (warnings expected) (c) perform success-typing ...
-module(rebar_dialyzer_SUITE). -export([suite/0, init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2, init_per_testcase/2, all/0, groups/0, empty_base_plt/1, empty_app_plt/1, empty_app_succ_typings/1, up...
bcd6f28c559e528280b7cece63279c87be3658ea2f08e8c8d3090c32753a351f
Drup/ocaml-lmdb
lmdb_bindings.mli
* Raw bindings for . type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t val version : string * int * int * int * { 2 Exceptions } exception Exists exception Map_full exception Error of int external strerror : int -> string = "mdbs_strerror" (** {2 Flags} *) (** Operatio...
null
https://raw.githubusercontent.com/Drup/ocaml-lmdb/8551b3d14cbe960a8f8e16f571d3643ee276031b/src/lmdb_bindings.mli
ocaml
* {2 Flags} * Operations on sets of flags. * The type of a set of flags * [a + b] is the {e union} of flag sets [a] and [b]. This corresponds to a bitwise {e or} on C bitfields. * [a * b] is the intersection of flag sets a and b. This corresponds to a bitwise {e and} on C bitfields. * [test a b] is [tr...
* Raw bindings for . type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t val version : string * int * int * int * { 2 Exceptions } exception Exists exception Map_full exception Error of int external strerror : int -> string = "mdbs_strerror" module type Flags = sig typ...
279477ce57f1612387e89b252662e8d24fab7fa92b3aa13fabe4fc97c17fbe22
Feldspar/raw-feldspar
Frontend.hs
| Monad for running Feldspar programs module Feldspar.Run.Frontend ( Run , MonadRun (..) , module Feldspar.Run.Frontend , module Language.Embedded.Imperative.Frontend.General ) where import Language.Syntactic import qualified Control.Monad.Operational.Higher as Oper import Language.Embedded.Imperative...
null
https://raw.githubusercontent.com/Feldspar/raw-feldspar/bc661c4d2fd8cda8d537226f3fb830b98462e3cb/src/Feldspar/Run/Frontend.hs
haskell
------------------------------------------------------------------------------ * Pointer operations ------------------------------------------------------------------------------ This is generally an unsafe operation. E.g. it can be used to make a reference to a data structure escape the scope of the data. | Like ...
| Monad for running Feldspar programs module Feldspar.Run.Frontend ( Run , MonadRun (..) , module Feldspar.Run.Frontend , module Language.Embedded.Imperative.Frontend.General ) where import Language.Syntactic import qualified Control.Monad.Operational.Higher as Oper import Language.Embedded.Imperative...
fcacc8a4ed86a58903e23d7c03bc8a299a3f4f9109878704c51193e0059626a8
conscell/hugs-android
Hugs.hs
-- Empty module to serve as the default current module. module Hugs where
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/hugsbase/Hugs.hs
haskell
Empty module to serve as the default current module.
module Hugs where
93f2435e471c0e19cfdfc77cae2972a5834e321979280da543204b90d45dee52
crategus/cl-cffi-gtk
cairo.transformation.lisp
;;; ---------------------------------------------------------------------------- cairo.transformation.lisp ;;; The documentation of the file is taken from the Cairo Reference Manual Version 1.16 and modified to document the Lisp binding to the Cairo ;;; library. See <>. The API documentation of the ;;; Lisp bindi...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/cairo/cairo.transformation.lisp
lisp
---------------------------------------------------------------------------- library. See <>. The API documentation of the Lisp binding is available at <-cffi-gtk/>. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License for Lisp License...
cairo.transformation.lisp The documentation of the file is taken from the Cairo Reference Manual Version 1.16 and modified to document the Lisp binding to the Cairo Copyright ( C ) 2013 - 2020 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that...
0239185377e9a138ba81e87c35a4e110634a5c70e8da5160acd735593e03f044
PeterDWhite/Osker
SystemCall.hs
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module SystemCall Type for system requests to System response , including Posix Errno , SpecificSystemResponse (..) -- System response to specific call , ER.Errno -- Part of system response , noEr...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Posix/SystemCall.hs
haskell
System response to specific call Part of system response Indicator for no error When system response not needed Codes for system requests Nice print out of system request code Convert response to string Generate list of all system requests The call passed The call failed For demo only Commands to the demo p...
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module SystemCall Type for system requests to System response , including Posix Errno Convert request to string Convert request to request code Convert request to integer error indicator type Signal data structures ...
633e84751535972ee32902bf243b91a452849f283ac33de699d40b45e027fb14
yav/presburger
SAT.hs
# LANGUAGE BangPatterns , PatternGuards , Trustworthy , CPP # | This module implements a decision procedure for quantifier - free linear arithmetic . The algorithm is based on the following paper : An Online Proof - Producing Decision Procedure for Mixed - Integer Linear Arithmetic by , , and...
null
https://raw.githubusercontent.com/yav/presburger/e38e61ccd1004d03ab28a1a3691d8a3c451d0164/src/Data/Integer/SAT.hs
haskell
* Iterators * Debug ------------------------------------------------------------------------------ Solver interface | A collection of propositions. | An empty collection of propositions. | Add a new proposition to an existing collection. | Extract a model from a consistent set of propositions. Returns 'Nothing'...
# LANGUAGE BangPatterns , PatternGuards , Trustworthy , CPP # | This module implements a decision procedure for quantifier - free linear arithmetic . The algorithm is based on the following paper : An Online Proof - Producing Decision Procedure for Mixed - Integer Linear Arithmetic by , , and...
5d11211a19fee8a2f9db0673ecc5e58929e651a45ab3ede7ebbac21a74a9c864
Simspace/avaleryar
ParserSpec.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module ParserSpec where import Control.Monad import Data.Either import Data.Foldable import System.Directory import System.FilePath import Language.Avaleryar.Parser import Language.Avaleryar.Syntax import Fixtures import Test.Hspec spec :: Spec...
null
https://raw.githubusercontent.com/Simspace/avaleryar/dff6048312289f6b8500e60094d7835c78aa5d1e/core/test/ParserSpec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
module ParserSpec where import Control.Monad import Data.Either import Data.Foldable import System.Directory import System.FilePath import Language.Avaleryar.Parser import Language.Avaleryar.Syntax import Fixtures import Test.Hspec spec :: Spec spec = do describe "quasiquoters" $ do it "parse queries" $ do...
4b8ef08082ec5f1608112fb0e2acf747b1a0148ca852643802b128c116b1132b
timbod7/haskell-chart
Histogram.hs
# LANGUAGE TemplateHaskell , FlexibleInstances # module Graphics.Rendering.Chart.Plot.Histogram ( -- * Histograms PlotHist (..) , histToPlot , defaultPlotHist , defaultFloatPlotHist , defaultNormedPlotHist , histToBins -- * Accessors , plot_hist_title , plot_hist_bins , plot_hist_values , p...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/5768e1fa8b4f7b9ecc812404961cf024017b9369/chart/Graphics/Rendering/Chart/Plot/Histogram.hs
haskell
* Histograms * Accessors | Plot title | Number of bins | Values to histogram the y-axis is logarithmically scaled. | Override the range of the histogram. If @Nothing@ the Note that any normalization is always computed over the full data set, including samples not falling in the histogram range. | Plot vertic...
# LANGUAGE TemplateHaskell , FlexibleInstances # module Graphics.Rendering.Chart.Plot.Histogram PlotHist (..) , histToPlot , defaultPlotHist , defaultFloatPlotHist , defaultNormedPlotHist , histToBins , plot_hist_title , plot_hist_bins , plot_hist_values , plot_hist_no_zeros , plot_hist_range ...
acbd408e85a4559fc4db6b59089bf78ec883a23f02ea4700baa29fe556dfd182
sshirokov/CLSQL
test-fdml.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ====================================================================== ;;;; File: test-fdml.lisp Author : < > , ;;;; Created: 30/03/2004 ;;;; Tests for the CLSQL Functional Data Manipulation Language ( FDML ) . ;;;; This file is pa...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/tests/test-fdml.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ====================================================================== File: test-fdml.lisp Created: 30/03/2004 (), also known as the LLGPL. ====================================================================== started defining an independent dataset that doesn...
Author : < > , Tests for the CLSQL Functional Data Manipulation Language ( FDML ) . This file is part of CLSQL . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:clsql-tests) #.(clsql:locally-enable-s...
bbff407cca1204dd6a4e153ededbc5d2ffbbe682aeec620e31157cbce38ef8dd
twittner/zeromq-haskell
tests.hs
import Test.Tasty import qualified System.ZMQ4.Test.Properties as Properties main :: IO () main = defaultMain Properties.tests
null
https://raw.githubusercontent.com/twittner/zeromq-haskell/4d54a7c4be982e62fd695cb41732c6a4ef7661a5/tests/tests.hs
haskell
import Test.Tasty import qualified System.ZMQ4.Test.Properties as Properties main :: IO () main = defaultMain Properties.tests
b7017d1e0c9e955ca3bcecfa0f6848fade09a94d5cf71fbc06496616a8f6eabf
spectrum-finance/cardano-dex-sdk-haskell
Natural.hs
module Algebra.Natural ( type (~>) , FunctorK(..) ) where import Data.Kind (Type) type f ~> g = forall a. f a -> g a class FunctorK (alg :: (Type -> Type) -> Type) where fmapK :: (f ~> g) -> alg f -> alg g
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-sdk-haskell/4179609c1f10b31c3c633a6d5e3e5ac228bdb8d3/algebra-core/src/Algebra/Natural.hs
haskell
module Algebra.Natural ( type (~>) , FunctorK(..) ) where import Data.Kind (Type) type f ~> g = forall a. f a -> g a class FunctorK (alg :: (Type -> Type) -> Type) where fmapK :: (f ~> g) -> alg f -> alg g
3ddcf1cca4635d54e69ef9cf0de3249d23684d8208af022a44701111cb519fba
sysbio-bioinf/avatar
file_conversion.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -v20.html ) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/data/file_conversion.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. update :...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -v20.html ) (ns avatar.data.file-conversion (:require [frost.quick-freeze :as qf] [avatar.version :as v] [clojure.string :as str] [clj-jfx.core :as jfx] [avatar.util :as u] [avatar.data.serializers :as ds] [avatar....
e2b09080ff49b57b16c561ed676f2703169e2d60f0509f8b1406c9b066f45f93
mirage/ocaml-github
repo_stats.ml
open Lwt open Printf let token = Config.access_token let user = "mirage" let repo = "ocaml-github" let t = let open Github in let pp_sep fmt () = Format.fprintf fmt "; " in let print_yearly_stats stats = Format.printf "Yearly commit activity.@."; List.iter (fun x -> Format.printf "{ days: [ %...
null
https://raw.githubusercontent.com/mirage/ocaml-github/429b8751c45d958644bf0e64452bf9b0460955ba/lib_test/repo_stats.ml
ocaml
open Lwt open Printf let token = Config.access_token let user = "mirage" let repo = "ocaml-github" let t = let open Github in let pp_sep fmt () = Format.fprintf fmt "; " in let print_yearly_stats stats = Format.printf "Yearly commit activity.@."; List.iter (fun x -> Format.printf "{ days: [ %...
9d0e88bcd9361f79a0432893915504b282b82fca0bce023b1dbe15ba0c32c5f1
Helium4Haskell/helium
Similarity.hs
| Module : Similarity License : GPL Maintainer : Stability : experimental Portability : portable Check whether identifiers look alike . Identifiers are alike if : - they are the same when compared insensitive w.r.t . case - they differ in one character (...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Utils/Similarity.hs
haskell
ignore primitives normal test
| Module : Similarity License : GPL Maintainer : Stability : experimental Portability : portable Check whether identifiers look alike . Identifiers are alike if : - they are the same when compared insensitive w.r.t . case - they differ in one character (...
8aa5c42b686692c37ff26e788bf307a7328f37dc92b0b0dd6e85c1b7c7d876cf
billstclair/trubanc-lisp
specials.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- $ Header : /usr / local / cvsrep / hunchentoot / specials.lisp , v 1.33 2008/04/08 14:39:18 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or withou...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/hunchentoot-1.0.0/specials.lisp
lisp
Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
$ Header : /usr / local / cvsrep / hunchentoot / specials.lisp , v 1.33 2008/04/08 14:39:18 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-packa...
0194a2d11f07963a76f0b17a1b4f4e9ab6b497a190c72656c8ff637229ecc22d
okeuday/quickrand
random_wh82.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : Modified version of random module ( in Erlang / OTP before version 20.0 ) Copyright ( c ) 2016 - 2020 All rights reserved . %% %% %CopyrightBegin% %% Copyright Erics...
null
https://raw.githubusercontent.com/okeuday/quickrand/392ddce346be6f5f36b369662555ff0a0b5441e4/src/random_wh82.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 l...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : Modified version of random module ( in Erlang / OTP before version 20.0 ) Copyright ( c ) 2016 - 2020 All rights reserved . Copyright Ericsson AB 1996 - 2011 . All Ri...
b5d3fd3f042a7554fa8ef03f065c266f3bc89abc37ee735e17bb8cae454a1ed8
4y8/combo
calc.ml
open Combo open Fun let positive = int_of_string <$> (inplode <$> many1 digit) let int = opt id (( * ) (-1) <$ char '-') <*> positive let op (f, s) = spaces *> (f <$ word s) <* spaces let anyop l = choice (List.map op l) let addops = anyop [(+), "+"; (-), "-"] let mulops = anyop [( * ), "*"] let rec expr s = List....
null
https://raw.githubusercontent.com/4y8/combo/d863a8329352e6dbd5469037915c9188c91b761f/examples/calc/calc.ml
ocaml
open Combo open Fun let positive = int_of_string <$> (inplode <$> many1 digit) let int = opt id (( * ) (-1) <$ char '-') <*> positive let op (f, s) = spaces *> (f <$ word s) <* spaces let anyop l = choice (List.map op l) let addops = anyop [(+), "+"; (-), "-"] let mulops = anyop [( * ), "*"] let rec expr s = List....
f884b2ff509604439b2bc4a052c3d5536480167cdd724022b362f39646c488af
ashinn/chibi-scheme
temp-file.scm
;;> Runs a procedure on a temporary file. \var{proc} should be a > procedure of three values : \scheme{(path out preserve ) } , where > \scheme{path } is the path to the temporary file , } is > an output port opened on the file , and \scheme{preserve } is a ;;> thunk to disable deleting the file. The file name will...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/8b27ce97265e5028c61b2386a86a2c43c1cfba0d/lib/chibi/temp-file.scm
scheme
> Runs a procedure on a temporary file. \var{proc} should be a > thunk to disable deleting the file. The file name will be in a > extension if present, with permissions from the optional > \scheme{preserve} thunk was not called. give up after too many tries regardless created between test and open > Runs a procedur...
> procedure of three values : \scheme{(path out preserve ) } , where > \scheme{path } is the path to the temporary file , } is > an output port opened on the file , and \scheme{preserve } is a > temp directory , based on } and having the same > \var{mode } which defaults to } . Returns the result > of \var{proc }...
bf33e3c425bd8dc7711e7313a273bf358f65b71ea76f02c60605e72d55eef2aa
well-typed/large-records
R040.hs
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.Induction_List.Sized.R040 where import Data.Proxy import Common.EmptyClass_List import Co...
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/Induction_List/Sized/R040.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.Induction_List.Sized.R040 where import Data.Proxy import Common.EmptyClass_List import Common.HListOfSize.HL040 requiresInstance :: () requiresInstance = requireEmptyClass (Proxy @ExampleFields)
a675b73d20d6b0cb885e39390190ce0059110f094b2bc0c6492d5d623de5b0cb
TyOverby/mono
container.ml
open! Import module Array = Array0 module List = List0 include Container_intf let with_return = With_return.with_return type ('t, 'a, 'accum) fold = 't -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum type ('t, 'a) iter = 't -> f:('a -> unit) -> unit type 't length = 't -> int let iter ~fold t ~f = fold t ~ini...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-base/src/container.ml
ocaml
open! Import module Array = Array0 module List = List0 include Container_intf let with_return = With_return.with_return type ('t, 'a, 'accum) fold = 't -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum type ('t, 'a) iter = 't -> f:('a -> unit) -> unit type 't length = 't -> int let iter ~fold t ~f = fold t ~ini...
2e295938ce53b19ccaa40f480eeee9ccb762c2dcc3ca5180fd9d2732f6ee29af
the-dr-lazy/cascade
NonEmpty.hs
| Module : Test . Cascade . Data . Text . NonEmpty Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTI...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/test/Test/Cascade/Data/Text/NonEmpty.hs
haskell
| Module : Test . Cascade . Data . Text . NonEmpty Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTI...
23a554018184ea540bfac30112a8090579612ba6532136cb60a4eaf018652f67
zouppen/hackbus
AlarmSystem.hs
{-# LANGUAGE RecordWildCards, DeriveGeneric #-} module Control.Hackbus.AlarmSystem (ArmedState(..), AlarmSystem(..), runAlarmSystem) where import Control.Concurrent.STM import Data.Aeson import GHC.Generics data ArmedState = Unarmed -- ^No alarms should trigger | Arming -- ^No alarms should trigg...
null
https://raw.githubusercontent.com/zouppen/hackbus/38b6eac7ca1fdbef07dc36386f34be3e80a9ef0e/src/Control/Hackbus/AlarmSystem.hs
haskell
# LANGUAGE RecordWildCards, DeriveGeneric # ^No alarms should trigger ^No alarms should trigger (yet) ^Alarms should trigger ^Alarms should be held for triggering if the next state is Armed ^State of "at home" switch ^Flag for unlock event ^Resulting state if alarm is on currently |When alarm is on. Wait for d...
module Control.Hackbus.AlarmSystem (ArmedState(..), AlarmSystem(..), runAlarmSystem) where import Control.Concurrent.STM import Data.Aeson import GHC.Generics deriving (Eq, Show, Generic) data AlarmSystem = AlarmSystem ^Delay in seconds for arrival and leave } instance ToJSON ArmedState where ...
91374d52fbdf3d6cc560b3e5a37deae1a696673c3b4252112320d9bdc8109c71
NorfairKing/hastory
Internal.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Hastory.Cli.Internal where import Control.Monad.IO.Unlift (MonadUnliftIO) import Control.Monad.Logger (NoLoggingT) import Control.Monad.Reader import Control.Monad.Trans.Resource (ResourceT) import qualified Data.Text...
null
https://raw.githubusercontent.com/NorfairKing/hastory/35abbc79155bc7c5a0f6e0f3618c8b8bcd3889a1/hastory-cli/src/Hastory/Cli/Internal.hs
haskell
# LANGUAGE OverloadedStrings # | The 'runDb' function should used, at most, once per command invocation. Please refer hastory < issue>.
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Hastory.Cli.Internal where import Control.Monad.IO.Unlift (MonadUnliftIO) import Control.Monad.Logger (NoLoggingT) import Control.Monad.Reader import Control.Monad.Trans.Resource (ResourceT) import qualified Data.Text as T import Data.Time import Datab...
d924b86542c0e38efb4b1ed0b2dc1777f812a2917043c0d8c9b4b68ee89ddbe5
punit-naik/ssh-cli
core.clj
(ns ssh-cli.login.core (:require [clojure.java.shell :refer [sh]] [ssh-cli.core :refer [exec-remote scp]] [ssh-cli.utils :refer [build-id ssh-conf add-authorized-keys]] [clojure.string :refer [split]] [taoensso.timbre :refer [info]])) (defn- create-ssh-folder "Create...
null
https://raw.githubusercontent.com/punit-naik/ssh-cli/0d8b44703c00f6462e228157cd995d494d982c08/src/ssh_cli/login/core.clj
clojure
If your `remote` machine is accessible via your local network, the `:public-ip` and `:private-ip` can be the same!
(ns ssh-cli.login.core (:require [clojure.java.shell :refer [sh]] [ssh-cli.core :refer [exec-remote scp]] [ssh-cli.utils :refer [build-id ssh-conf add-authorized-keys]] [clojure.string :refer [split]] [taoensso.timbre :refer [info]])) (defn- create-ssh-folder "Create...
f6172d0b785e3700ba2c6297555b8ee30b3675d40ae24b2c80cf1dd4b1345be7
racket/deinprogramm
record.rkt
#lang racket/base (provide all-record-tests) (require rackunit deinprogramm/DMdA/define-record-procedures deinprogramm/signature/signature-syntax (only-in deinprogramm/signature/signature signature?) racket/match) (define-record-procedures pare kons pare? (kar kdr)) (define-record-procedures paire koi...
null
https://raw.githubusercontent.com/racket/deinprogramm/e9fb68455641ae7d409ddb48f5e584c9d014ef4f/deinprogramm/deinprogramm/DMdA/tests/record.rkt
racket
(: pkons (%a any -> (pkons %a)))
#lang racket/base (provide all-record-tests) (require rackunit deinprogramm/DMdA/define-record-procedures deinprogramm/signature/signature-syntax (only-in deinprogramm/signature/signature signature?) racket/match) (define-record-procedures pare kons pare? (kar kdr)) (define-record-procedures paire koi...
10b35ced5a5107a97cc9a4a790a298be1e5f6ba7fcc9d0a12cf6c2a72e15013d
zk/clojuredocs
intro.clj
(ns clojuredocs.pages.intro (:require [clojuredocs.config :as config] [clojuredocs.util :as util] [compojure.core :refer (defroutes GET POST)] [somnium.congomongo :as mon] [fogus.unk :refer (memo-ttl)] [clojuredocs.pages.common :as common] [cloju...
null
https://raw.githubusercontent.com/zk/clojuredocs/f6d6faf14e4b79beca34a92a06dd69546002eeea/src/clj/clojuredocs/pages/intro.clj
clojure
:|
(ns clojuredocs.pages.intro (:require [clojuredocs.config :as config] [clojuredocs.util :as util] [compojure.core :refer (defroutes GET POST)] [somnium.congomongo :as mon] [fogus.unk :refer (memo-ttl)] [clojuredocs.pages.common :as common] [cloju...
14037b54a1c49b5bff6610b77bf960d7af5bf8149c651b062dde8db32f08563f
Oblosys/proxima
EvaluateTypes.hs
module EvaluateTypes where import DocTypes import DocTypes_Generated import DebugLevels evaluate has IO , so the unsafePerformIO is only temporary import Char import Data.FiniteMap import DocumentEdit import DocumentEdit_Generated import UHA_Syntax import qualified ExtractImportDecls ( sem_Mod...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/invEditor/EvaluateTypes.hs
haskell
Nothing is when identifier is from other module debug Err ("EvaluateTypes.pathFromRange Incorrect range "++show pathStr) return type is List so wrong Alt's can return a [] collect the expressions in helium items and bind them to unique function names errors type env toplevel env
module EvaluateTypes where import DocTypes import DocTypes_Generated import DebugLevels evaluate has IO , so the unsafePerformIO is only temporary import Char import Data.FiniteMap import DocumentEdit import DocumentEdit_Generated import UHA_Syntax import qualified ExtractImportDecls ( sem_Mod...
2471b8a3f23b4df60e5b31470e8f30ad16b7bd42eda681d32553fce573761d2d
fosskers/kanji
Levels.hs
-- | -- Module : Data.Kanji.Levels Copyright : ( c ) , 2015 - 2020 -- License : GPL3 Maintainer : < > -- -- All Kanji from levels 10 to Pre-2. module Data.Kanji.Levels where import qualified Data.Set as S --- | The Kanji unique to Level-10 , studied by the end of 1st grade in Japanese elementary s...
null
https://raw.githubusercontent.com/fosskers/kanji/93dd7d16d1a3690db36ca0ffbeb21e05083c42ea/lib/Data/Kanji/Levels.hs
haskell
| Module : Data.Kanji.Levels License : GPL3 All Kanji from levels 10 to Pre-2. - | The Kanji unique to Level-Pre2, considerend "mid high school" level. | The Kanji unique to Level-2, considered "standard adult" level.
Copyright : ( c ) , 2015 - 2020 Maintainer : < > module Data.Kanji.Levels where import qualified Data.Set as S | The Kanji unique to Level-10 , studied by the end of 1st grade in Japanese elementary schools . tenth :: S.Set Char tenth = S.fromDistinctAscList $ "一七三上下中九二五人休先入八六円出力十千" ++ "口右名四土夕大天女子字...
2fc856ca314d5b58dfa1ed88b79551af53f86521c7c0da917be906a2fcf1cfda
glguy/th-abstraction
Datatype.hs
# Language CPP , DeriveDataTypeable # #if MIN_VERSION_base(4,4,0) #define HAS_GENERICS {-# Language DeriveGeneric #-} #endif #if MIN_VERSION_template_haskell(2,12,0) {-# Language Safe #-} #elif __GLASGOW_HASKELL__ >= 702 {-# Language Trustworthy #-} #endif | Module : Language . . TH.Datatype Description :...
null
https://raw.githubusercontent.com/glguy/th-abstraction/2f75b51cbf1f234a15db22e4edd0c289b92c5615/src/Language/Haskell/TH/Datatype.hs
haskell
# Language DeriveGeneric # # Language Safe # # Language Trustworthy # * Types * Normalization functions * Type variable manipulation * 'Pred' functions * Backward compatible data definitions * Type simplification * Fixities * Convenience functions needed for th-2.4 | Normalized information about newtypes and ...
# Language CPP , DeriveDataTypeable # #if MIN_VERSION_base(4,4,0) #define HAS_GENERICS #endif #if MIN_VERSION_template_haskell(2,12,0) #elif __GLASGOW_HASKELL__ >= 702 #endif | Module : Language . . TH.Datatype Description : Backwards - compatible interface to reified information about datatypes . Copyr...
19c25e6db4ade166fa344870276d07d52dbed518adba9f278e01a713947609a3
footprintanalytics/footprint-web
cmd_test.clj
(ns metabase.cmd-test (:require [clojure.test :as t :refer [deftest is]] [metabase.cmd :as cmd])) (deftest error-message-test (is (= ["No command given."] (#'cmd/cmd->fn nil []))) (is (= ["Unrecognized command: 'a-command-that-does-not-exist'"] (#'cmd/cmd->fn "a-command-that-does-not-exist" []))) (...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/cmd_test.clj
clojure
(ns metabase.cmd-test (:require [clojure.test :as t :refer [deftest is]] [metabase.cmd :as cmd])) (deftest error-message-test (is (= ["No command given."] (#'cmd/cmd->fn nil []))) (is (= ["Unrecognized command: 'a-command-that-does-not-exist'"] (#'cmd/cmd->fn "a-command-that-does-not-exist" []))) (...
a254558823a58b469fb8301145461111a680c339564a0a1283dbd77e46e5c941
IBM/openai-gym-ocaml
tutorial.ml
open Openai_gym open Gym_t (** Create a new environment to test an agent. *) let instance_id = Gym_client.env_create "CartPole-v1" (** Initialize the environment. *) let init = Gym_client.env_reset instance_id (** Select an action according to an observation of the environment. *) let random_agent _obs = (* s...
null
https://raw.githubusercontent.com/IBM/openai-gym-ocaml/7556dea6a189b0502e6832034104a3aff22a8ec1/examples/tutorial.ml
ocaml
* Create a new environment to test an agent. * Initialize the environment. * Select an action according to an observation of the environment. sample a random action in the action space of the instance * Simulate the environment using the random agent. * Launch the simulation. * Close the simulation environment.
open Openai_gym open Gym_t let instance_id = Gym_client.env_create "CartPole-v1" let init = Gym_client.env_reset instance_id let random_agent _obs = Gym_client.env_action_space_sample instance_id let rec simu obs = let action = random_agent obs in let resp = Gym_client.env_step instance_id action true in...
0167b4fe5c61861735713c4061f6415bfbf5324a4171640f3dfde96a48d51951
ucsd-progsys/nate
odoc_analyse.ml
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_analyse.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_analyse.ml , v 1.14 2006/04...