_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
e9a7ccc67cf22e72dfdb1e2344a3fbc2d4fd9637eb797c032cf5d56ac9cebeee
dto/cypress
scene.lisp
(in-package :cypress) (defvar *status-line* nil) (defun status-line () *status-line*) (defvar *current-scene* nil) (defun current-scene () *current-scene*) (defun lucius-in-party-p () (and (lucius) (field-value :leader (lucius)))) (defun switch-to-scene (buffer) (exit-scene (geoffrey)) (xelf::delete-al...
null
https://raw.githubusercontent.com/dto/cypress/c33c26f8bf470dbd74b14ed5afa2cbf25aea0ca6/scene.lisp
lisp
"darkness.png" ((:f5) quicksave) ((:f10) quickload) (defmethod float-journal-entry ((scene scene) string) (show-hint *journal-hint*) (push string *journal*) (set-unread-p (find-journal) t) (magical-flourish)) (install-quadtree scene)) adjust scrolling parameters return buffer walk the monk's ce...
(in-package :cypress) (defvar *status-line* nil) (defun status-line () *status-line*) (defvar *current-scene* nil) (defun current-scene () *current-scene*) (defun lucius-in-party-p () (and (lucius) (field-value :leader (lucius)))) (defun switch-to-scene (buffer) (exit-scene (geoffrey)) (xelf::delete-al...
93aaa8b1f4a242a69791fb0863b84c062840011c739018fc87588c03a03d9de9
RBornat/jape
uTF.mli
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
null
https://raw.githubusercontent.com/RBornat/jape/d2f507023c8a227e6862f9e5a16bb16ddeda692c/distrib/camlengine/uTF.mli
ocaml
bigendian bigendian respects BOMs; utf8 default skips BOM respects BOMs; utf8 default
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
57eb21a59f078f7fa3cbef397ba07e5d9911558ac7346ce1eee3d030be108f7e
apache/couchdb-rebar
tdeps_prefer_rt.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et -module(tdeps_prefer_rt). -export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), ok. %% Test REBAR_DEPS_FORCE_LIB %% A -> [B, C] %% where B should be foun...
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/tdeps_prefer/tdeps_prefer_rt.erl
erlang
ex: ts=4 sw=4 et Test REBAR_DEPS_FORCE_LIB A -> [B, C] where B should be found globally and C should be found locally A application B application C application properly Generate the contents of a simple .app file
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- -module(tdeps_prefer_rt). -export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), ok. files() -> [ {create, "apps/a/ebin/a.app", app(a, [a])}, {copy, "a.rebar.conf...
e10dbd950f95441e56b66184789b2231a3fea8479f066c8cfac4cc7ff54bd433
jeroanan/rkt-coreutils
utmp.rkt
#lang s-exp "ffi.rkt" Copyright 2020 ; See COPYING for details (provide get-utmp% get-utmp (struct-out utmpstruct)) (require ffi/unsafe racket/bool racket/class) (define _pid_t _int32) (define _int32_t _int32) (define _ut_user_t (_bytes/len 32)) (define _ut_line_t (_bytes/len...
null
https://raw.githubusercontent.com/jeroanan/rkt-coreutils/571629d1e2562c557ba258b31ce454add2e93dd9/src/repl/libc/utmp.rkt
racket
See COPYING for details
#lang s-exp "ffi.rkt" Copyright 2020 (provide get-utmp% get-utmp (struct-out utmpstruct)) (require ffi/unsafe racket/bool racket/class) (define _pid_t _int32) (define _int32_t _int32) (define _ut_user_t (_bytes/len 32)) (define _ut_line_t (_bytes/len 32)) (define _ut_id_t (_b...
6b2c136921da35135e864b9d62b599b68585fa18a0ef36be24daef9e0de596f3
dongcarl/guix
graphviz.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2015 < > Copyright © 2015 , 2020 < > Copyright © 2016 < > Copyright © 2017 , 2018 , 2019 < > Copyright © 2017 , 2018 < > Copyright © 2017 < > Copyright © 2018 < > Copyright © 2020 < > Copyright © 2020 ...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/graphviz.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 < > Copyright © 2015 , 2020 < > Copyright © 2016 < > Copyright © 2017 , 2018 , 2019 < > Copyright © 2017 , 2018 < > Copyright © 2017 < > Copyright © 2018 < > Copyright © 2020 < > Copyright © 2020 < > Copyright © 2020 Pjotr Prins < > Copyright ©...
9836d393dc893a9974fa70e46bad77af428e448df5d6ff66ddf4f110e905c674
granule-project/granule
Effects.hs
{- Deals with effect algebras -} # LANGUAGE ImplicitParams # # LANGUAGE ViewPatterns # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} -- | Implements effect algebras module Language.Granule.Checker.Effects where import Language.Granule.Checker.Monad import Language.Granule.Checker.Predicates import Language.Granule.Ch...
null
https://raw.githubusercontent.com/granule-project/granule/aa869e0522ad961f6627e827055700c5fcabfc75/frontend/src/Language/Granule/Checker/Effects.hs
haskell
Deals with effect algebras # LANGUAGE GADTs # | Implements effect algebras is equal to the unit element of the algebra. Session singleton case Set effects Is empty set Is universal set Unknown TODO: effTy here seems redundant - I think this could be implemented more generally `effApproximates s effTy eff1 e...
# LANGUAGE ImplicitParams # # LANGUAGE ViewPatterns # # LANGUAGE DataKinds # module Language.Granule.Checker.Effects where import Language.Granule.Checker.Monad import Language.Granule.Checker.Predicates import Language.Granule.Checker.Variables import Language.Granule.Syntax.Identifiers import Language.Granule.Synt...
e5366b5aff8e7d8329db68de76eaa3a60d26283a2048a261aa700d828481d729
ibdknox/cljs-watch
project.clj
(defproject cljs-watch "1.0.0-SNAPSHOT" :description "FIXME: write description" :main cljs-watch.core :dependencies [[org.clojure/clojure "1.3.0-beta1"] [cljs-compiler-jar "0.1.0-SNAPSHOT"]])
null
https://raw.githubusercontent.com/ibdknox/cljs-watch/af77283e7a8f2a86ae576059f50e2e54e2b649f1/project.clj
clojure
(defproject cljs-watch "1.0.0-SNAPSHOT" :description "FIXME: write description" :main cljs-watch.core :dependencies [[org.clojure/clojure "1.3.0-beta1"] [cljs-compiler-jar "0.1.0-SNAPSHOT"]])
155090a333bc03af2e5cf1a15b4751fc619ca7e8a553db68a72cbb9f217371ea
hjcapple/reading-sicp
exercise_2_28.scm
#lang racket P74 - [ 练习 2.28 ] (define (fringe items) (cond ((null? items) null) ((not (pair? items)) (list items)) (else (append (fringe (car items)) (fringe (cdr items)))))) ;;;;;;;;;;;;;; (define x (list (list 1 2) (list 3 4))) (fringe x) (fringe (list x x))
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_2/exercise_2_28.scm
scheme
#lang racket P74 - [ 练习 2.28 ] (define (fringe items) (cond ((null? items) null) ((not (pair? items)) (list items)) (else (append (fringe (car items)) (fringe (cdr items)))))) (define x (list (list 1 2) (list 3 4))) (fringe x) (fringe (list x x))
b50fcad608ab5d1c6eee09d7b30c0add1bf291d5e93737958c23f5820de1264e
nickzuber/lets-make-a-compiler
test_liveness.ml
open OUnit open Ast open Mapping open Pprint_ast open Polyfill exception Unequal_sets let rec pow2 n = Ast.Standard.( if n = 0 then (Int 1) else (BinaryExpression (Plus, (pow2 (n - 1)), (pow2 (n - 1))))) let prog_tons_of_variables = Program (pow2 4) let compare_...
null
https://raw.githubusercontent.com/nickzuber/lets-make-a-compiler/ee2337b116f07c1357f7b70bd09f1503e39fdc88/tests/test_liveness.ml
ocaml
If this test fails, we print all of the liveness mappings to debug. Kind of messy but does the trick. not sure best way to do these tests yet not sure best way to do these tests yet not sure best way to do these tests yet not sure best way to do these tests yet not sure best way to do these tests yet
open OUnit open Ast open Mapping open Pprint_ast open Polyfill exception Unequal_sets let rec pow2 n = Ast.Standard.( if n = 0 then (Int 1) else (BinaryExpression (Plus, (pow2 (n - 1)), (pow2 (n - 1))))) let prog_tons_of_variables = Program (pow2 4) let compare_...
d7e03ed2fa2eac6c60fb108f883b70ed9cda77c65be31693f94dfa9dad54241c
defndaines/meiro
backtracker.clj
(ns meiro.backtracker "The Recursive Backtracker algorithm uses a biased random walk to generate a maze. While there are unvisited cells, it chooses one at random, but when it encounters a dead end, it backtracks on its path until it finds a cell with unvisited neighbors and walks, repeating until all cells hav...
null
https://raw.githubusercontent.com/defndaines/meiro/f91d4dee2842c056a162c861baf8b71bb4fb140c/src/meiro/backtracker.clj
clojure
(ns meiro.backtracker "The Recursive Backtracker algorithm uses a biased random walk to generate a maze. While there are unvisited cells, it chooses one at random, but when it encounters a dead end, it backtracks on its path until it finds a cell with unvisited neighbors and walks, repeating until all cells hav...
0ec69fc7abfedd4670e74679a7dbf447a2145c3a45a02bdae5b1ee55153f5de0
chrisdone/sandbox
optparse.hs
#!/usr/bin/env stack -- stack --resolver lts-12.12 script import Options.Applicative.Simple import Data.Semigroup ((<>)) data Config = Config { configEnable :: Bool , configUrl :: String } deriving (Show) main = do (opts, ()) <- simpleOptions "1.0" "Demo opts program" "This prog...
null
https://raw.githubusercontent.com/chrisdone/sandbox/c43975a01119a7c70ffe83c49a629c45f7f2543a/optparse.hs
haskell
stack --resolver lts-12.12 script
#!/usr/bin/env stack import Options.Applicative.Simple import Data.Semigroup ((<>)) data Config = Config { configEnable :: Bool , configUrl :: String } deriving (Show) main = do (opts, ()) <- simpleOptions "1.0" "Demo opts program" "This program demonstrates commandline options....
02300f3e3aaaf26117fd19fb3df963c24672d33937f0e58f54b83db5961e7525
purebred-mua/purebred-email
Boundary.hs
-- This file is part of purebred-email Copyright ( C ) 2021 Fraser Tweedale -- -- purebred-email is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your opt...
null
https://raw.githubusercontent.com/purebred-mua/purebred-email/ba3dade43aaeb735298ef8fa724fa2781161893f/src/Data/MIME/Boundary.hs
haskell
This file is part of purebred-email purebred-email is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULA...
Copyright ( C ) 2021 Fraser Tweedale it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License module Data.MIME.Boundary ( Boundary , unBounda...
62dd7d84d3f04b7ccea14add481eea311f6c07cb1e6412c314b5699125b8d0f0
supki/liblastfm
Chart.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} -- | Lastfm chart API -- -- This module is intended to be imported qualified: -- -- @ -- import qualified Lastfm.Chart as Chart -- @ module Lastfm.Chart ( getHypedArtists, getHypedTracks, getLovedTracks , getTopArtists, getTopTags, getTopTracks ) where im...
null
https://raw.githubusercontent.com/supki/liblastfm/754be163c4ce14c9b4819f1359b5f95a0f91a29d/src/Lastfm/Chart.hs
haskell
# LANGUAGE OverloadedStrings # | Lastfm chart API This module is intended to be imported qualified: @ import qualified Lastfm.Chart as Chart @ | Get the hyped artists chart Optional: 'page', 'limit' <> | Get the top artists chart Optional: 'page', 'limit' <> | Get the most loved tracks chart Optiona...
# LANGUAGE DataKinds # module Lastfm.Chart ( getHypedArtists, getHypedTracks, getLovedTracks , getTopArtists, getTopTags, getTopTracks ) where import Lastfm.Request getHypedArtists :: Request f (APIKey -> Ready) getHypedArtists = api "chart.getHypedArtists" getHypedTracks :: Request f (APIKey -> Ready) getHy...
213880ab29daa82c4bd99a36727cdfa63862238ba21ecced7554c9126f0a52d9
digitallyinduced/ihp
Compiler.hs
| Module : IHP.IDE.SchemaDesigner . Compiler Description : Compiles AST of SQL to DDL Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.IDE.SchemaDesigner.Compiler Description: Compiles AST of SQL to DDL Copyright: (c) digitally induced GmbH, 2020 -} module IHP.IDE.SchemaDesigner.Compiler (compileSql,...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/37cb74ce42420dec43376f921255b883e21bc3e8/IHP/IDE/SchemaDesigner/Compiler.hs
haskell
| Emit a PRIMARY KEY constraint when there are multiple primary key columns Emit a PRIMARY KEY column constraint if this is the only primary key column 'IS (NOT NULL)' => 'IS NOT NULL' 'IS (NOT NULL)' => 'IS NOT NULL' '(a AND b) AND c' => 'a AND b AND C' 'a AND (b AND c)' => 'a AND b AND C' ' ( a IS NULL ) OR b ...
| Module : IHP.IDE.SchemaDesigner . Compiler Description : Compiles AST of SQL to DDL Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.IDE.SchemaDesigner.Compiler Description: Compiles AST of SQL to DDL Copyright: (c) digitally induced GmbH, 2020 -} module IHP.IDE.SchemaDesigner.Compiler (compileSql,...
0fc72853582ffff25317855f4498374c37c6b56090ecd94410dd0e611ba059ec
dyzsr/ocaml-selectml
types.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/types.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes type transient_expr = { mutable desc: type_desc; mutable level: int; mutable s...
bf7beeb3d7cc273e64d8c8d2f2a920447c9ad30209a91ebef09ec01d77f87808
wlitwin/graphv
createFlags.ml
include Flags.Base let antialias = 1 let stencil_strokes = 2 let debug = 4 let tesselate_afd = 8
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/src/core/createFlags.ml
ocaml
include Flags.Base let antialias = 1 let stencil_strokes = 2 let debug = 4 let tesselate_afd = 8
15d06bd3fb0e30d8d31704704434b0c3cd9861b513d7bf0a6e4cfc22e8b1900a
amnh/ocamion
subplex.mli
* { 1 Subplex Method } The method is a generalization to a number of algorithms , paramount the Nelder - Mead simplex method , with alternating variables , and Nelder - Mead Simplex with restart . The advantages are outlined in the referenced paper in section 5.3.6 . The method is useful for no...
null
https://raw.githubusercontent.com/amnh/ocamion/699c2471b7fdac12f061cf24b588f9eef5bf5cb8/lib/subplex.mli
ocaml
* The Simplex Reduction coefficient * The Step Reduction coefficient * Default Simplex Strategy defined by FSAoNA paper * Determine the subspaces by a randomization of the vector, and randomizing the size of the subspaces; conditions will match the strategy * [optimize ?subplex_stragegy ?tol ?max_iter ?select_s...
* { 1 Subplex Method } The method is a generalization to a number of algorithms , paramount the Nelder - Mead simplex method , with alternating variables , and Nelder - Mead Simplex with restart . The advantages are outlined in the referenced paper in section 5.3.6 . The method is useful for no...
f66b45e988d192291bffe3732d736c15a10860b5fb7fb2331ea98bc891a3bda1
philnguyen/soft-contract
main.rkt
#lang racket/base (require (only-in "spreadsheet.rkt" rktd->spreadsheet) (only-in "summary.rkt" get-project-name from-rktd) (only-in "lnm-plot.rkt" lnm-plot) ) ;; Just testing (define L-max 2) (define NUM_SAMPLES 60) (define (main filename) Parse data from input file ( also creates module graph ) (define ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/lnm/main.rkt
racket
Just testing Create L-N/M pictures Make a spreadsheet, just to test that too (time (main "../base/data/echo.rktd")) ;; 97ms (time (main "../base/data/sieve.rktd")) ;; 56ms ; 44640ms
#lang racket/base (require (only-in "spreadsheet.rkt" rktd->spreadsheet) (only-in "summary.rkt" get-project-name from-rktd) (only-in "lnm-plot.rkt" lnm-plot) ) (define L-max 2) (define NUM_SAMPLES 60) (define (main filename) Parse data from input file ( also creates module graph ) (define summary (from-rk...
5e6cdb103253755c2e4e0f3dac1317f8a765d6e6047684185f2b4ac21bb52761
michaxm/task-distribution
Main.hs
module Main where import Data.List (intersperse) import Data.List.Split (splitOn) import System.Environment (getArgs) import Control.Distributed.Task.Distribution.LogConfiguration (initDefaultLogging) import Control.Distributed.Task.Distribution.RunComputation import Control.Distributed.Task.Distribution.TaskDistribu...
null
https://raw.githubusercontent.com/michaxm/task-distribution/d0dee6a661390b7d1279389fa8c7b711309dab6a/app/Main.hs
haskell
note: assumes no nodes with that configuration, should be read as parameters
module Main where import Data.List (intersperse) import Data.List.Split (splitOn) import System.Environment (getArgs) import Control.Distributed.Task.Distribution.LogConfiguration (initDefaultLogging) import Control.Distributed.Task.Distribution.RunComputation import Control.Distributed.Task.Distribution.TaskDistribu...
5952d106810c9ba765f78ed8769845c8ded65bc711fb45e473fe2cfccda12267
michalkonecny/aern2
Ring.hs
# LANGUAGE CPP # -- #define DEBUG # LANGUAGE TemplateHaskell # | Module : AERN2.Poly . Cheb . Ring Description : Chebyshev basis ring operations Copyright : ( c ) : : Stability : experimental Portability : portable Chebyshev basis ring operat...
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fun-univariate/src/AERN2/Poly/Cheb/Ring.hs
haskell
#define DEBUG ( mulCheb, mulChebDirect, mulChebDCT ) import Test.Hspec import Test.QuickCheck import AERN2.Real import AERN2.Interval import AERN2.RealFun.Operations addition (Just b1, _) -> b1 + cp2 (_, Just b2) -> cp1 + b2 _ -> result subtraction multiplication => => TODO: improve the condit...
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # | Module : AERN2.Poly . Cheb . Ring Description : Chebyshev basis ring operations Copyright : ( c ) : : Stability : experimental Portability : portable Chebyshev basis ring operations Module...
13ad47b946760eb4d5932ac29187e901319828ab26ddf0b481c6a25de0dcc8af
slyrus/clem
scalar.lisp
(in-package :clem) (defclass scalar (matrix) ()) (defun scalar (val &key (matrix-class 'scalar)) (let ((m (make-instance matrix-class))) (scalar-set-val m val) m)) (defgeneric scalar-val (s)) (defmethod scalar-val ((s scalar)) (aref (matrix-vals s) 0 0)) (defgeneric scalar-set-val (s v)) (defmethod scala...
null
https://raw.githubusercontent.com/slyrus/clem/5eb055bb3f45840b24fd44825b975aa36bd6d97c/src/scalar.lisp
lisp
(in-package :clem) (defclass scalar (matrix) ()) (defun scalar (val &key (matrix-class 'scalar)) (let ((m (make-instance matrix-class))) (scalar-set-val m val) m)) (defgeneric scalar-val (s)) (defmethod scalar-val ((s scalar)) (aref (matrix-vals s) 0 0)) (defgeneric scalar-set-val (s v)) (defmethod scala...
dfb9c46631db53e8a55a068dc05bc3ddb321d05eb2d1158e4ec07caf1dc812b6
b0-system/b0
hello.ml
let () = print_endline "HA!"
null
https://raw.githubusercontent.com/b0-system/b0/2e7fa30e7e565e8edf831ea5e62c578eeca7c626/test/hello.ml
ocaml
let () = print_endline "HA!"
627da657f1d9a36e37f40d6979e733528053ef043b3442de93c3abd112676d12
haskell-servant/servant-elm
generate.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeOperators #-} import qualified Elm.Derive as Elm import Servant.API ((:>), Get, JSON, QueryParam) import Servant.Elm (DefineElm (DefineElm), ElmOptions (urlPrefix), ...
null
https://raw.githubusercontent.com/haskell-servant/servant-elm/95c49abe536d8e468efb5a8a0cd750cf817295f4/examples/giphy/generate.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators #
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # import qualified Elm.Derive as Elm import Servant.API ((:>), Get, JSON, QueryParam) import Servant.Elm (DefineElm (DefineElm), ElmOptions (urlPrefix), Proxy (Proxy), UrlPrefix (Static), defElmImports, ...
0b52d326ef475d8926f2e9177ea6b18450f10587cbd5e7a7c20c385f8ac7bdc9
luizalbertocviana/haskell-experiments
Bool.hs
module Bool where import Prelude(Bool(True, False), Applicative(pure)) import Control.Applicative (Alternative(empty)) import Functions not :: Bool -> Bool not True = False not False = True and :: [Bool] -> Bool and [] = True and (True:xs) = and xs and (False:_) = False or :: [Bool] -> Bool or [] = False or (True...
null
https://raw.githubusercontent.com/luizalbertocviana/haskell-experiments/eee61245316e3d78819f88b0e60e0c3a3374483e/Bool.hs
haskell
module Bool where import Prelude(Bool(True, False), Applicative(pure)) import Control.Applicative (Alternative(empty)) import Functions not :: Bool -> Bool not True = False not False = True and :: [Bool] -> Bool and [] = True and (True:xs) = and xs and (False:_) = False or :: [Bool] -> Bool or [] = False or (True...
6f62e76176cf03d0e2b4741e914da88f72cb62981d1f89147a47a7f7416a3b2e
ocaml/ocaml-lsp
cancel_request.mli
open Import val meth_ : string include Json.Jsonable.S with type t := Jsonrpc.Id.t
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/0b1390b78c0e4f72deb76f04b8a0e83fa2f03b6c/lsp/src/cancel_request.mli
ocaml
open Import val meth_ : string include Json.Jsonable.S with type t := Jsonrpc.Id.t
072c3dd8216d0f720f400708db05f0a1dfc62c26b8f5f27e165d9169bc836e13
Hans-Halverson/myte
myte.ml
open Basic_collections let () = let files = ref SSet.empty in Arg.parse Opts.spec (fun file -> files := SSet.add file !files) Opts.usage_message; if SSet.is_empty !files then ( Arg.usage Opts.spec Opts.usage_message; exit 1 ); Target.init (); Installation.init (); Driver_myte.compile !files
null
https://raw.githubusercontent.com/Hans-Halverson/myte/ceb7b09d078fece9e9e6eca8d15f245f020876fe/src/myte.ml
ocaml
open Basic_collections let () = let files = ref SSet.empty in Arg.parse Opts.spec (fun file -> files := SSet.add file !files) Opts.usage_message; if SSet.is_empty !files then ( Arg.usage Opts.spec Opts.usage_message; exit 1 ); Target.init (); Installation.init (); Driver_myte.compile !files
7ace7f6fb11b6ed84e106cdef893e59b42805ee8147b256e350d90450e6b5226
rtoy/ansi-cl-tests
load-ba.lsp
;-*- Mode: Lisp -*- Author : Created : We d Jun 8 06:52:59 2005 ;;;; Contains: Load beyond-ansi tests (let ((*default-pathname-defaults* (pathname *load-pathname*))) (let ((*default-pathname-defaults* (merge-pathnames (make-pathname :directory '(:relative :up))))) (load "gclload1.lsp"))...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/beyond-ansi/load-ba.lsp
lisp
-*- Mode: Lisp -*- Contains: Load beyond-ansi tests
Author : Created : We d Jun 8 06:52:59 2005 (let ((*default-pathname-defaults* (pathname *load-pathname*))) (let ((*default-pathname-defaults* (merge-pathnames (make-pathname :directory '(:relative :up))))) (load "gclload1.lsp")) (load "ba-test-package.lsp") (eval '(compile-and-load "ba...
865ebbf9c2df0db441dd6d53ec8fbc1397891ca562ec973e6b58fd743b833cc3
input-output-hk/cardano-sl
UtilSpec.hs
# LANGUAGE ExistentialQuantification # # LANGUAGE RecordWildCards # {-# LANGUAGE TypeFamilies #-} -- | Specification of Pos.Client.Txp.Util module Test.Pos.Client.Txp.UtilSpec ( spec ) where import Universum import qualified Data.HashMap.Strict as HM import qualified ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/client/test/Test/Pos/Client/Txp/UtilSpec.hs
haskell
# LANGUAGE TypeFamilies # | Specification of Pos.Client.Txp.Util -------------------------------------------------------------------------- Tests -------------------------------------------------------------------------- for the list below to typecheck. tx builder should find this utxo to be enough for...
# LANGUAGE ExistentialQuantification # # LANGUAGE RecordWildCards # module Test.Pos.Client.Txp.UtilSpec ( spec ) where import Universum import qualified Data.HashMap.Strict as HM import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import qualified Data.Set as ...
534219cd5f8dba67988093a74e3ce85b3e01de3ebe394979fc4fac880116c8d1
KavrakiLab/tmkit
itmp-multi.lisp
(require :tmsmt) (in-package :tmsmt) (defparameter *table-dim* (vec3* .5 .5 .01)) (defparameter *box-dim* .060) (defparameter *resolution* .10) (defparameter *z* (/ (+ .02 (vec-z *table-dim*) *box-dim*) 2)) (defparameter *box* (scene-box (vec3* *box-dim* *box-dim* *box-dim*))) (defparameter *geome...
null
https://raw.githubusercontent.com/KavrakiLab/tmkit/4fb6fc0fa02c5b242dfcbe0013d3c1178e9d9224/demo/old/test/itmp-multi.lisp
lisp
:specular .3 (defparameter *sg-marker* (scene-graph (scene-frame-fixed "front_table" "table-marker" :tf (tf* (x-angle 0) :geometry (robray::scene-geometry (scene-sphere .1) (draw-options-default :color '(0 1 0...
(require :tmsmt) (in-package :tmsmt) (defparameter *table-dim* (vec3* .5 .5 .01)) (defparameter *box-dim* .060) (defparameter *resolution* .10) (defparameter *z* (/ (+ .02 (vec-z *table-dim*) *box-dim*) 2)) (defparameter *box* (scene-box (vec3* *box-dim* *box-dim* *box-dim*))) (defparameter *geome...
c12b820565a9dafc08e6f96c98a1d59015560a03d3a7fa14061a5bde8966d8fa
jarohen/yoyo
protocols.cljc
(ns ^{:clojure.tools.namespace.repl/load false :clojure.tools.namespace.repl/unload false} yoyo.protocols (:require [cats.core :as c] [cats.protocols :as cp])) (declare component-monad) (defprotocol IComponent (stop! [_])) (defrecord YoyoComponent [v stop-fn] IComponent (stop! [_] (wh...
null
https://raw.githubusercontent.com/jarohen/yoyo/b579d21becd06b5330dee9f5963708db03ce1e25/core/src/yoyo/protocols.cljc
clojure
(ns ^{:clojure.tools.namespace.repl/load false :clojure.tools.namespace.repl/unload false} yoyo.protocols (:require [cats.core :as c] [cats.protocols :as cp])) (declare component-monad) (defprotocol IComponent (stop! [_])) (defrecord YoyoComponent [v stop-fn] IComponent (stop! [_] (wh...
c25e505008ebf05f99376da182a6adadde58a58f32d20a354c59b88dfdc3ca83
gafiatulin/codewars
Rotation.hs
-- Calculate String Rotation -- / module Codewars.Kata.Rotation where import Data.List (elemIndex) import Data.Maybe (fromMaybe) shiftedDiff :: String -> String -> Int shiftedDiff a b = fromMaybe (-1) . elemIndex True . map (\shift -> (==b) . rotate a $ shift) $ [0..length a -1] where rotate str shift = drop (le...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/Rotation.hs
haskell
Calculate String Rotation /
module Codewars.Kata.Rotation where import Data.List (elemIndex) import Data.Maybe (fromMaybe) shiftedDiff :: String -> String -> Int shiftedDiff a b = fromMaybe (-1) . elemIndex True . map (\shift -> (==b) . rotate a $ shift) $ [0..length a -1] where rotate str shift = drop (length str - shift `mod` length str)...
559572f664049f2564b79e1c01360762aaa71ff62be2c7d0e2f9cf63be39fe18
hipsleek/hipsleek
checkeq.ml
#include "xdebug.cppo" open VarGen open Globals open Gen open Cpure module H = Hashtbl module Err = Error module CP = Cpure module CF = Cformula module MCP = Mcpure module M = Lexer.Make(Token.Token) for testing - compare two formulas let view_diff = false type map_table = ((CP.spec_var * CP.spec_var) list) let str...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/checkeq.ml
ocaml
Remove trivial pairs, e.g. (x,x) print_string (" f1: "^(Cprinter.prtt_string_of_formula f1)^"\n"); print_string (" f2: "^(Cprinter.prtt_string_of_formula f2)^ "\n"); print_string "\n"; print_string (" sim f1: "^(Cprinter.prtt_string_of_formula f1)^"\n"); print_string (" sim f2: "^(Cprinter.prtt_string_of_for...
#include "xdebug.cppo" open VarGen open Globals open Gen open Cpure module H = Hashtbl module Err = Error module CP = Cpure module CF = Cformula module MCP = Mcpure module M = Lexer.Make(Token.Token) for testing - compare two formulas let view_diff = false type map_table = ((CP.spec_var * CP.spec_var) list) let str...
8b0edad5cb0f449a19ed750af80365dee72a91843d4edae469345fa7fd4d8432
ivanjovanovic/sicp
tables.scm
We will start by defining one - dimensional table . ; Table consists of a backbone list in which every car points to the key,value pair ; and head in front of the backbone list. ; ; Lookup method is used to find the value for the given key. It will use (assoc) procedure ; to retrieve the record from the list based o...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/3.3/tables.scm
scheme
Table consists of a backbone list in which every car points to the key,value pair and head in front of the backbone list. Lookup method is used to find the value for the given key. It will use (assoc) procedure to retrieve the record from the list based on the key inserting into table is not complicated. We have...
We will start by defining one - dimensional table . (load "../helpers.scm") (define (lookup key table) (let ((record (assoc key (cdr table)))) (if record (cdr record) '#f))) (define (assoc key records) (cond ((null? records) '#f) ((equal? key (caar records)) (car records)) (else...
193b565a0c3eb63ca845744caf712af1324ad4e785252e632194fae50d765efe
PeterDWhite/Osker
Test.hs
module Main where main :: IO () main = do { putStrLn "Hello World, from the Graph directory" }
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Graph/Test.hs
haskell
module Main where main :: IO () main = do { putStrLn "Hello World, from the Graph directory" }
6ed7a3e22b4b5717830f8071f0c91b8a20c5eba182ce3a77e655cb4e2797bfa6
input-output-hk/cardano-sl
ModifierSpec.hs
-- | Specification for Pos.Util.Modifier (from 'core') module Test.Pos.Util.ModifierSpec ( spec ) where import Universum hiding (keys) import qualified Data.HashMap.Strict as HM import Test.Hspec (Spec, describe) import Test.Hspec.QuickCheck (prop) import Test.Qu...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/util/test/Test/Pos/Util/ModifierSpec.hs
haskell
| Specification for Pos.Util.Modifier (from 'core') | The 'v1 /= v2' implication here emphasizes the fact that the values inserted into In fact, them being equal is a case not worth concern because the inner
module Test.Pos.Util.ModifierSpec ( spec ) where import Universum hiding (keys) import qualified Data.HashMap.Strict as HM import Test.Hspec (Spec, describe) import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (Property, (==>)) import qualified Pos.Util.M...
dc71abb06ceca0e97d1fd11429c0078cf573af8ccfc0a98bc151c62d8d0aec4f
sru-systems/protobuf-simple
Fixed64Msg.hs
-- Generated by protobuf-simple. DO NOT EDIT! module Types.Fixed64Msg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype Fixed64Msg = Fixed64Msg { value :: PB.Word64 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default Fixed64Msg where defaultVal = Fix...
null
https://raw.githubusercontent.com/sru-systems/protobuf-simple/ee0f26b6a8588ed9f105bc9ee72c38943133ed4d/test/Types/Fixed64Msg.hs
haskell
Generated by protobuf-simple. DO NOT EDIT!
module Types.Fixed64Msg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype Fixed64Msg = Fixed64Msg { value :: PB.Word64 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default Fixed64Msg where defaultVal = Fixed64Msg { value = PB.defaultVal } ins...
d97e430ec3268255c8793c56629f8dbde63335aaff939207fee89f8182f47dca
glguy/advent2015
Day8.hs
module Main where main :: IO () main = do ws <- loadInput print (sum (part1 <$> ws)) print (sum (part2 <$> ws)) loadInput :: IO [String] loadInput = lines <$> readFile "input8.txt" part1 :: String -> Int part1 str = 2 + sum (aux (init (tail str))) where aux ('\\':'"' :xs) = 1 : aux xs aux ('\\':...
null
https://raw.githubusercontent.com/glguy/advent2015/e59b93c41363be85eb7f11396db5c95e79e485ad/Day8.hs
haskell
module Main where main :: IO () main = do ws <- loadInput print (sum (part1 <$> ws)) print (sum (part2 <$> ws)) loadInput :: IO [String] loadInput = lines <$> readFile "input8.txt" part1 :: String -> Int part1 str = 2 + sum (aux (init (tail str))) where aux ('\\':'"' :xs) = 1 : aux xs aux ('\\':...
8a9143e77657db040ebda5cfce120a3e312a4f75bb995ab6596b5023f5c71cb3
dyzsr/ocaml-selectml
t142-switch-8.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; type t = | A | B of int | C of int ;; match A with | A -> () ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t142-switch-8.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; type t = | A | B of int | C of int ;; match A with | A -> () ...
dbbde9c9ad7a5f1da4e61f06271e3fa4a196aad8ca2de6c1b1738bd4d1e6d3c5
fp-works/2019-winter-Haskell-school
CalcSpec.hs
import Test.Hspec import Calc import qualified ExprT as ET import StackVM as SVM main :: IO () main = hspec $ do describe "Calc" $ Exercise 1 -- do it "should eval given equations" $ do eval (ET.Mul (ET.Add (ET.Lit 2) (ET.Lit 3)) (ET.Lit 4)) `shouldBe` ...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week5/tien/test/CalcSpec.hs
haskell
Exercise 3 --
import Test.Hspec import Calc import qualified ExprT as ET import StackVM as SVM main :: IO () main = hspec $ do describe "Calc" $ do it "should eval given equations" $ do eval (ET.Mul (ET.Add (ET.Lit 2) (ET.Lit 3)) (ET.Lit 4)) `shouldBe` 20 it "sho...
12f3960d64144d8628cb51199b20bedc0533e04618f9d83d71d3d7c899e38674
maximedenes/native-coq
db_printers.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/dev/db_printers.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 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Names let pp s =...
01a8c2b50301fd9e42b30c38204237da7ca58e5aa0c46baf8f335b24e0625128
zcaudate/hara
query.clj
(ns hara.object.query (:require [hara.core.base.inheritance :as inheritance] [hara.function :refer [definvoke]] [hara.protocol.function :as protocol.function] [hara.data :as data] [hara.object.element :as element] [hara.object.element.class :as class] ...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/object/query.clj
clojure
\"concat\" \"contains\" \"contentEquals\" \"copyValueOf\"]
(ns hara.object.query (:require [hara.core.base.inheritance :as inheritance] [hara.function :refer [definvoke]] [hara.protocol.function :as protocol.function] [hara.data :as data] [hara.object.element :as element] [hara.object.element.class :as class] ...
1e9d690931bb31ed06749f7fbd88265011bc1f4e4cce38db64c7a606ac349aa4
mwand/eopl3
renaming.scm
(module renaming (lib "eopl.ss" "eopl") (require "lang.scm") (provide rename-in-iface fresh-module-name) (define rename-in-iface (lambda (m-type old new) (cases interface m-type (simple-iface (decls) (simple-iface (rename-in-decls decls old new))) (proc-iface (pa...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter8/full-system/renaming.scm
scheme
this isn't a map because we have let* scoping in a list of declarations this can't appear in an input identifier
(module renaming (lib "eopl.ss" "eopl") (require "lang.scm") (provide rename-in-iface fresh-module-name) (define rename-in-iface (lambda (m-type old new) (cases interface m-type (simple-iface (decls) (simple-iface (rename-in-decls decls old new))) (proc-iface (pa...
5ef6b3534531f1bbb552c7c63ce7c80c01fe4dc01bdd4e1bc98b33fe667e5a74
ngorogiannis/cyclist
fun.ml
(** Combinators for manipulating functions. *) type 'a predicate = 'a -> bool let _true _ = true let _false _ = false let neg f x = not (f x) let conj f g x = f x && g x let list_conj fs x = (List.fold_right conj fs _true) x (* let list_conj fs x = List.fold_left (fun v f -> v && (f x)) true fs *) let disj f g x...
null
https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/lib/fun.ml
ocaml
* Combinators for manipulating functions. let list_conj fs x = List.fold_left (fun v f -> v && (f x)) true fs let list_disj fs x = List.fold_left (fun v f -> v || (f x)) true fs
type 'a predicate = 'a -> bool let _true _ = true let _false _ = false let neg f x = not (f x) let conj f g x = f x && g x let list_conj fs x = (List.fold_right conj fs _true) x let disj f g x = f x || g x let list_disj fs x = (List.fold_right disj fs _false) x let id x = x let uncurry f (x, y) = f x y let c...
b95dd1e05081a025be8e3390d2599870444db7adafb5569198eaff45969f6a70
comby-tools/comby
test_special_matcher_cases.ml
open Core open Matchers open let configuration = Configuration.create ~match_kind : ( ) let run ? ( configuration = configuration ) ( module M : Matchers . ) source match_template rewrite_template = M.all ~configuration ~template : match_template ~source | > function | [ ] - > print_string " ...
null
https://raw.githubusercontent.com/comby-tools/comby/7b401063024da9ddc94446ade27a24806398d838/test/omega/test_special_matcher_cases.ml
ocaml
this is correct: there's no space in the source 'end', so it matches the inner def/end blocks
open Core open Matchers open let configuration = Configuration.create ~match_kind : ( ) let run ? ( configuration = configuration ) ( module M : Matchers . ) source match_template rewrite_template = M.all ~configuration ~template : match_template ~source | > function | [ ] - > print_string " ...
4d8648a9c692794e5a839f577c3d89454356faaee490f4ff3aafea54098f925c
samoht/camloo
prim.scm
;; Le module (module __caml_prim (library camloo-runtime)) L'initialisation du module (init_camloo!) ;; Les variables globales ;; Les expressions globales
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/prim.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_prim (library camloo-runtime)) L'initialisation du module (init_camloo!)
e3ffec2a7b1d9ead8ed7c3bd6188c0c06d4540fcac04f2b1ec8d6865025b9e66
serokell/blockchain-util
SumChangeSet.hs
module Snowdrop.Core.ChangeSet.SumChangeSet ( SumChangeSet (..) , modifySumChgSet , mappendStOrThrow ) where import Universum import Data.Default (Default (def)) import Data.Vinyl.TypeLevel (AllConstrained) import Snowdrop.Core.ChangeSet.Ty...
null
https://raw.githubusercontent.com/serokell/blockchain-util/a6428c6841e7002605a115002f58eff78ff9f128/snowdrop-core/src/Snowdrop/Core/ChangeSet/SumChangeSet.hs
haskell
module Snowdrop.Core.ChangeSet.SumChangeSet ( SumChangeSet (..) , modifySumChgSet , mappendStOrThrow ) where import Universum import Data.Default (Default (def)) import Data.Vinyl.TypeLevel (AllConstrained) import Snowdrop.Core.ChangeSet.Ty...
d04b1b1ae8433697e29b76bcaff40bc34863828c1d53a4ed8a7ddd0b5cf02160
dparis/gen-phzr
math.cljs
(ns phzr.math (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [min max])) (defn angle-between- "Find the angle of a segment from (x1, y1) -> (x2, y2). Parameters: * x-1 (number) - No description ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/math.cljs
clojure
or -PI and PI if radians. will be the same as the input angle if it was within bounds."
(ns phzr.math (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [min max])) (defn angle-between- "Find the angle of a segment from (x1, y1) -> (x2, y2). Parameters: * x-1 (number) - No description ...
182d8868d136d04e206f86a429ae932e723be45674a481a70f9c12e9f3486ec3
juxt-site/site
repl.clj
Copyright © 2021 , JUXT LTD . (ns juxt.site.repl (:require [clojure.pprint :refer [pprint]] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :refer [postwalk]] [crypto.password.bcrypt :as password] [juxt.site.main :as main] [juxt.site.operations :as oper...
null
https://raw.githubusercontent.com/juxt-site/site/5b96d6e794d7396557f50818c8d81a0505470721/src/juxt/site/repl.clj
clojure
TODO: could use a multimethod here Create a regex pattern which detects anything as a mapping key Test the line can be read Demote to tests [:status ^{:doc "Show status"} (fn [] (status))]
Copyright © 2021 , JUXT LTD . (ns juxt.site.repl (:require [clojure.pprint :refer [pprint]] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :refer [postwalk]] [crypto.password.bcrypt :as password] [juxt.site.main :as main] [juxt.site.operations :as oper...
c8396523e7804e4c5259cc2026b34d4301c8a70e6fdee7f783f4288592676e59
florabtw/soundoftext-haskell
SoundManager.hs
module SoundManager ( soundsDir , findSound ) where import Database (Sound(..)) import Database (saveSound, getSoundByLangTextPair) import Application (App(..)) import Application (db) import Snap.Snaplet (Handler, withTop) import Network.HTTP.Base (urlEncode) import Network.HTTP.Client (httpLbs, newManager, default...
null
https://raw.githubusercontent.com/florabtw/soundoftext-haskell/46c1a5ab378809ac2e1c5e005057d495a08d2887/src/SoundManager.hs
haskell
module SoundManager ( soundsDir , findSound ) where import Database (Sound(..)) import Database (saveSound, getSoundByLangTextPair) import Application (App(..)) import Application (db) import Snap.Snaplet (Handler, withTop) import Network.HTTP.Base (urlEncode) import Network.HTTP.Client (httpLbs, newManager, default...
c796a52ff2f383446b9c5d99b0dc93a899d990249f7cab52296024c2792ace04
zcaudate/hara
process.clj
(ns hara.function.task.process (:require [clojure.set :as set] [hara.function :as fn] [hara.core.base.result :as result] [hara.data.base.nested :as nested] [hara.data.base.seq :as seq] [hara.function.task.bulk :as bulk])) (defn main-function "creates a ma...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/function/task/process.clj
clojure
(ns hara.function.task.process (:require [clojure.set :as set] [hara.function :as fn] [hara.core.base.result :as result] [hara.data.base.nested :as nested] [hara.data.base.seq :as seq] [hara.function.task.bulk :as bulk])) (defn main-function "creates a ma...
a1c1eaf579ed00499f87a0da17c4297d523282053cb326be533147987e044e36
aspiwack/porcupine
TaskPipelineUtils.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeOperators #-} # LANGUAGE ViewPatterns # {-# OPTIONS_GHC "-fno-wa...
null
https://raw.githubusercontent.com/aspiwack/porcupine/23dcba1523626af0fdf6085f4107987d4bf718d7/porcupine-s3/src/Network/AWS/S3/TaskPipelineUtils.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # # OPTIONS_GHC "-fno-warn-orphans" # These instances may overlap in theory, but in practice there is probably no # OVERLAPPABLE # ^ Verbose TODO: Replace that by proper multipart sending | Upload a whole folder t...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # module Network.AWS.S3.TaskPipelineUtils ( runAll , getEnv , uploadObj , uploadFolder , streamS3Folder , streamObj , downloadFo...
267755d5c50fd27ff5cd2a4bb5fb811213ad4d0499318158054868931d350210
pveber/bistro
sra_toolkit.mli
open Bistro open Formats val img : container_image list type 'a output val fastq : fastq output val fastq_gz : fastq gz output val fasta : fasta output val fastq_dump : ?minReadLen:int -> ?_N_:int -> ?_X_:int -> ?defline_qual:string -> ?defline_seq:string -> 'a output -> [`id of string | `idw of strin...
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/lib/bio/sra_toolkit.mli
ocaml
open Bistro open Formats val img : container_image list type 'a output val fastq : fastq output val fastq_gz : fastq gz output val fasta : fasta output val fastq_dump : ?minReadLen:int -> ?_N_:int -> ?_X_:int -> ?defline_qual:string -> ?defline_seq:string -> 'a output -> [`id of string | `idw of strin...
8aa1208d1ded1937df6ca2856dd98eaa07d84b1eed3b83b6b4296ac3402793e0
realworldocaml/examples
compare_mono.ml
let cmp (a:int) (b:int) = if a > b then a else b
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/back-end/compare_mono.ml
ocaml
let cmp (a:int) (b:int) = if a > b then a else b
5e2130dc5d50ebc79199c7bf2e71a6816542f5f9f3e7a7f4c62cf64528d6e45e
spechub/Hets
Sign.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./RelationalScheme / Sign.hs Description : signaturefor Relational Schemes Copyright : , Uni Bremen 2008 License : GPLv2 or higher , see LICENSE.txt or LIZENZ.txt Maintainer : Stability : provisional Portability : portab...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/RelationalScheme/Sign.hs
haskell
# LANGUAGE DeriveDataTypeable # id of a table id of the symbol id of the table datatype of the symbol is it a key? I hope that this works right, I do not want to debug this composition of Rel morphisms pretty printing stuff
| Module : ./RelationalScheme / Sign.hs Description : signaturefor Relational Schemes Copyright : , Uni Bremen 2008 License : GPLv2 or higher , see LICENSE.txt or LIZENZ.txt Maintainer : Stability : provisional Portability : portable Signature for Relational Schem...
c8ac90a8e15813c641b3e0489ece7e8d99c4f875a4d6094526dc528fd39a56e6
mirleft/ocaml-tls
handshake_crypto13.ml
open Core let cdiv (x : int) (y : int) = if x > 0 && y > 0 then (x + y - 1) / y else if x < 0 && y < 0 then (x + y + 1) / y else x / y let left_pad_dh group msg = let bytes = cdiv (Mirage_crypto_pk.Dh.modulus_size group) 8 in let padding = Cstruct.create (bytes - Cstruct.length msg) in padding <+> msg le...
null
https://raw.githubusercontent.com/mirleft/ocaml-tls/8ec55e5883c8852b8603c07658542273e508badb/lib/handshake_crypto13.ml
ocaml
truncated share, better reject this
open Core let cdiv (x : int) (y : int) = if x > 0 && y > 0 then (x + y - 1) / y else if x < 0 && y < 0 then (x + y + 1) / y else x / y let left_pad_dh group msg = let bytes = cdiv (Mirage_crypto_pk.Dh.modulus_size group) 8 in let padding = Cstruct.create (bytes - Cstruct.length msg) in padding <+> msg le...
2a4ab9f0134b14c5b3c293199f0d93e3e2fff992313fe2df8170a27e8b29ab0a
PLTools/GT
test001.mli
@type 'l t = R | W | L of string | S of string | B of (int -> int -> int) * string | E | C of int | J of 'l | JT of 'l | JF of 'l
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test001.mli
ocaml
@type 'l t = R | W | L of string | S of string | B of (int -> int -> int) * string | E | C of int | J of 'l | JT of 'l | JF of 'l
1e410dfc903e544aa08e4ddc9c698fb7cc30efaaabb9e159e91d898e57e0da3a
ocaml-ppx/ocamlformat
misc_2019.ml
module Unsafe_blit = struct external unsafe_blit : src:t_ -> src_pos:int -> dst:t_ -> dst_pos:int -> len:int -> unit = "core_array_unsafe_int_blit" [@@noalloc] end (** @open *) include module type of struct include Base.Array end with type 'a t := 'a t * Return the class of ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/failing/tests/misc_2019.ml
ocaml
* @open * String concatenation.
module Unsafe_blit = struct external unsafe_blit : src:t_ -> src_pos:int -> dst:t_ -> dst_pos:int -> len:int -> unit = "core_array_unsafe_int_blit" [@@noalloc] end include module type of struct include Base.Array end with type 'a t := 'a t * Return the class of the given flo...
54ef336fba76418bcce93bae77fd3b04a3a65a4f6a5734fe9dc147a8b81c7610
facebookarchive/pfff
flag_parsing_java.ml
let verbose_lexing = ref true let verbose_parsing = ref true let exn_when_lexical_error = ref true let debug_lexer = ref false let show_parsing_error = ref true let error_recovery = ref false
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_java/parsing/flag_parsing_java.ml
ocaml
let verbose_lexing = ref true let verbose_parsing = ref true let exn_when_lexical_error = ref true let debug_lexer = ref false let show_parsing_error = ref true let error_recovery = ref false
fe376aa647c44de2282879f4d50916c0727def4ce744cdeb97a7508e302d04eb
ocsigen/obrowser
pervasives.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/pervasives.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : pervasives.ml 9412 2009 - 11 ...
7ee86282a00ab067029aae8ab86a9a80eb6c9bffefe55219e1ddb2e32fe3da26
acieroid/scala-am
append.scm
(and (equal? (append '(1 2 3) '(4 5)) '(1 2 3 4 5)) (equal? (append '(1 2 3) '()) '(1 2 3)) (equal? (append '() '(1 2 3)) '(1 2 3)) (null? (append '() '())))
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/scp1/append.scm
scheme
(and (equal? (append '(1 2 3) '(4 5)) '(1 2 3 4 5)) (equal? (append '(1 2 3) '()) '(1 2 3)) (equal? (append '() '(1 2 3)) '(1 2 3)) (null? (append '() '())))
cf757d50ebd6610fcf2dfbe9957e019e8d4822f2eecffc3f3530ea7060078fb2
fpco/inline-c
ParseSpec.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module Language.C.Types.ParseSpec (spec) where import Control.Applicative import Contro...
null
https://raw.githubusercontent.com/fpco/inline-c/b37b60f1712b12b43c86493cafb9ac324443d22e/inline-c/test/Language/C/Types/ParseSpec.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # modifyMaxDiscardRatio: 'isGoodType' and 'isGoodHaskellIdentifierType' usually make it within the Work around <> Work around <> ---------------------------------------------------------------------- see <-c/pull/97#issuecomment-538648101> ---------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module Language.C.Types.ParseSpec (spec) where import Control.Applicative import Control.Monad.Trans.Class (lift) import Data.Hashable (Ha...
f7b6998754822e9bb7b287540c9274a859bb05501f71aeb6107920a6a5db02d5
mbutterick/aoc-racket
day18.rkt
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[18] @defmodule[aoc-racket/day18] @link[""]{The puzzle}. Our @link-rp["day18-input.txt"]{input} is a 100 × 100 grid describing the initial state of a matrix of lights. @chunk[<day18> <day18-setup> <day18-q1> <day18-q2> ...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/day18.rkt
racket
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[18] @defmodule[aoc-racket/day18] @link[""]{The puzzle}. Our @link-rp["day18-input.txt"]{input} is a 100 × 100 grid describing the initial state of a matrix of lights. @chunk[<day18> <day18-setup> <day18-q1> <day18-q2> ...
06cf217cc83d9dcf09fd6a744b085b0cff49e9d818736d26c805c0bc95503a25
mdedwards/slippery-chicken
scheduler.lisp
;;; ********************************************************************** Copyright ( C ) 2003 ( ) ;;; This program is free software; you can redistribute it and modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( ...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/src/cm-2.6.0/src/scheduler.lisp
lisp
********************************************************************** This program is free software; you can redistribute it and either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICU...
Copyright ( C ) 2003 ( ) modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . generated by scheme->cltl from scheduler.scm on 23 - Mar-2005 12:21:21 (in-package :cm) (defmacro %qe-time (qe) `(car ,qe)) (defmacro %qe-time-set! (qe time) `(r...
c18e4ec5b0389414ae3c98f1bb423e4ddfee8d600164c1f118895b4609044620
mitchellwrosen/boston-haskell-arcade
View.hs
module Bha.Internal.View ( Cells , set , Scene(..) , sceneToTbScene , cursorColL , cursorRowL , text , rect , rect' ) where import Bha.Internal.Prelude import Data.List (zip) import Data.Monoid (mappend) import Termbox.Banana (Attr, Cell(..), Cursor(..)) import qualified Data.HashMap.Stri...
null
https://raw.githubusercontent.com/mitchellwrosen/boston-haskell-arcade/2e85fbc4ddd18bad520c7544572f7205ef02015f/src-internal/Bha/Internal/View.hs
haskell
module Bha.Internal.View ( Cells , set , Scene(..) , sceneToTbScene , cursorColL , cursorRowL , text , rect , rect' ) where import Bha.Internal.Prelude import Data.List (zip) import Data.Monoid (mappend) import Termbox.Banana (Attr, Cell(..), Cursor(..)) import qualified Data.HashMap.Stri...
5d0aa22e3d59a346c6fffcae8f2687bb27369f822b01907744e0b80ce3d9c31c
hidaris/thinking-dumps
interp.rkt
#lang typed/racket (provide (all-defined-out)) (require "parser.rkt") (require "ast.rkt") (require "env.rkt") (: value-of-bool (BoolExp Environment -> Bool)) (define (value-of-bool exp env) (match exp [(IsZero n) (let ([val (value-of n env)]) (let ([sval (val->num val)]) (if (zero? sval...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap3/3-16/interp.rkt
racket
#lang typed/racket (provide (all-defined-out)) (require "parser.rkt") (require "ast.rkt") (require "env.rkt") (: value-of-bool (BoolExp Environment -> Bool)) (define (value-of-bool exp env) (match exp [(IsZero n) (let ([val (value-of n env)]) (let ([sval (val->num val)]) (if (zero? sval...
d843a27160abcde43c348f5e9bc146a45539f3088212881c302d342626b64b28
tud-fop/vanda-haskell
Text.hs
# LANGUAGE FlexibleInstances # ----------------------------------------------------------------------------- -- | Module : . Corpus . . Text Copyright : ( c ) Technische Universität Dresden 2012 -- License : BSD-style -- -- Maintainer : , -- Stability : unknown -- Portability : portable ...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Vanda/Corpus/Penn/Text.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : , Stability : unknown Portability : portable 'Int's for grammar tags and tokens. --------------------------------------------------------------------------- | Used in the parsing process ...
# LANGUAGE FlexibleInstances # Module : . Corpus . . Text Copyright : ( c ) Technische Universität Dresden 2012 Allows parsing and unparsing tree banks using either ' 's or module Vanda.Corpus.Penn.Text ( PennFamily ( parsePenn, unparsePenn, yield ) , treeToPenn , parsePennMap ) where ...
cf5c3b9a33f422b22b8b1e2414f3ee48847df57f9951229197aaf5a3fe215121
technomancy/slamhound
swank_elisp_payloads.clj
["swank/payload/slamhound.el"]
null
https://raw.githubusercontent.com/technomancy/slamhound/68bad50282b8b559eb012d6574ef6a0e1485b3a2/resources/swank_elisp_payloads.clj
clojure
["swank/payload/slamhound.el"]
0e948018262a208ec82ff596ff7831b74c9f7f8d0ee6dd561b0fc8dd37046e72
emqx/emqx
test_mqtt_broker.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/test/test_mqtt_broker.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(test_mqtt_broker). -compile(nowarn_export_all). -compile(export_all). -define(LOGT(For...
21ef9c597e01f092a9a5d8c9beb9dc50f617dc4c03860fd6cbba44c793622239
seagreen/acme-pcf-specification
Eval.hs
module Pcf.Eval where import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text import Pcf.Expr import Pcf.Prelude * TermEnv newtype TermEnv = TermEnv (HashMap Text Value) deriving stock (Eq, Show) deriving newtype (Semigroup, Monoid) lookup :: Text -> TermEnv -> Maybe Value lookup ...
null
https://raw.githubusercontent.com/seagreen/acme-pcf-specification/dce650a782d3861d544e386fc919434ba291fa9c/impl/src/Pcf/Eval.hs
haskell
* Value * Eval TODO: evaluation order? Example expr: Example recId: rec : Nat -> Nat Example body: Example id: Example expression that hits this case:
module Pcf.Eval where import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text import Pcf.Expr import Pcf.Prelude * TermEnv newtype TermEnv = TermEnv (HashMap Text Value) deriving stock (Eq, Show) deriving newtype (Semigroup, Monoid) lookup :: Text -> TermEnv -> Maybe Value lookup ...
b90672adb796795e4c1f4087e6779f3e4880c361830d2a79f4994aa66c1acc77
crategus/cl-cffi-gtk
overlay-decorative.lisp
;;;; Example Decorative Overlay - 2021-12-7 ;;;; ;;;; Another example of an overlay with some decorative and some interactive ;;;; controls. (in-package :gtk-example) (defun example-overlay-decorative (&optional (application nil)) (within-main-loop (let* ((window (make-instance 'gtk-window ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/demo/gtk-example/overlay-decorative.lisp
lisp
Example Decorative Overlay - 2021-12-7 Another example of an overlay with some decorative and some interactive controls.
(in-package :gtk-example) (defun example-overlay-decorative (&optional (application nil)) (within-main-loop (let* ((window (make-instance 'gtk-window :title "Example Overlay Decorative" :type :toplevel :applica...
b4021b9794401c870129e9af5885c687b3acfef9215d847845f14caadadc6501
rtrusso/scp
read-dat3.scm
(asdf)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/read-dat3.scm
scheme
(asdf)
019a5c3b8820b08aa8f082a9e8cbbfd75729ff6b88a8e03abcfcd08c1ddad42a
vouillon/osm
parser.ml
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/vouillon/osm/5b06ed6fc6c508b8187209628cf02129a119b50a/osm/parser.ml
ocaml
XXXX - Check required features ** ** ** ** ** ** ** id lat lon keys_vals ** id keys vals refs ** id keys vals roles_sid memids types ** ** XXX ** stringtable primitivegroup granularity lat_offset lon_offset ** Gc.full_major (); Gc.print_stat stderr; flush stdout;
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
f53e709358cbb8c8cc2d46c55dc6ca4c59a31fb99625229012d35ca95cb3dd6f
lambdaschmiede/kaocha-testcontainers-plugin
kaocha_tc_test.clj
(ns lambdaschmiede.kaocha-tc-test (:require [clojure.test :refer :all] [lambdaschmiede.kaocha-tc :refer [get-container]]) (:import [org.testcontainers.containers GenericContainer])) (deftest for-each-test (testing "The 'for each' container exists" (let [pg-container (get-container :postgres-2)] ...
null
https://raw.githubusercontent.com/lambdaschmiede/kaocha-testcontainers-plugin/0615752d3393027df614ff437608e2bbe850d598/test/lambdaschmiede/kaocha_tc_test.clj
clojure
(ns lambdaschmiede.kaocha-tc-test (:require [clojure.test :refer :all] [lambdaschmiede.kaocha-tc :refer [get-container]]) (:import [org.testcontainers.containers GenericContainer])) (deftest for-each-test (testing "The 'for each' container exists" (let [pg-container (get-container :postgres-2)] ...
6b6d7e0b75beb519ce2872f4fc8c1834acea65f0bdb47aa84a80adc2824734be
jimenezrick/mumq
mumq_sup.erl
-module(mumq_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -include("mumq.hrl"). -define(CHILD(Id, Mod, Type, Args), {Id, {Mod, start_link, Args}, permanent, 5000, Type, [Mod]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, [...
null
https://raw.githubusercontent.com/jimenezrick/mumq/cd2c43c0dc7ea0d31ce5fef5c106d49314e4db7b/src/mumq_sup.erl
erlang
-module(mumq_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -include("mumq.hrl"). -define(CHILD(Id, Mod, Type, Args), {Id, {Mod, start_link, Args}, permanent, 5000, Type, [Mod]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, [...
d6d1d387884d4b6efbd8b1c38fc8b28542da0140f4fa52b441c9431f9fa8cd99
cj1128/sicp-review
2.48.scm
(define (make-segment start end) (cons start end)) (define (start-segment s) (car s)) (define (end-segment s) (cdr s))
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.2/2.48.scm
scheme
(define (make-segment start end) (cons start end)) (define (start-segment s) (car s)) (define (end-segment s) (cdr s))
e9ffb1d4330830e8a1e230485ab8979099bc0ecde5ce2dadc79d0aa67e0e45f6
ibabushkin/hapstone
CapstoneSpec.hs
module Internal.CapstoneSpec where import Foreign import Foreign.C.String import Foreign.C.Types import Test.Hspec import Test.QuickCheck import Hapstone.Internal.Capstone import Internal.Default -- | main spec spec :: Spec spec = describe "Hapstone.Internal.Capstone" $ do csSkipdataStructStorableSpec csSe...
null
https://raw.githubusercontent.com/ibabushkin/hapstone/4ac11f0a1e23e5a0f23351149c70bd541ddf5344/test/Internal/CapstoneSpec.hs
haskell
| main spec space allocation mnemonic callback user_data space allocation regs_read regs_read_count regs_write regs_write_count groups groups_count id address size bytes mnemonic op_str pointer sizes
module Internal.CapstoneSpec where import Foreign import Foreign.C.String import Foreign.C.Types import Test.Hspec import Test.QuickCheck import Hapstone.Internal.Capstone import Internal.Default spec :: Spec spec = describe "Hapstone.Internal.Capstone" $ do csSkipdataStructStorableSpec csSetSkipdataSpec ...
a97e3820103fc4be2c8b9bdc23903b8f7fdfdad79946f78ba59911ac012e7c51
cirodrig/triolet
PrintMemoryIR.hs
module SystemF.PrintMemoryIR (PprFlags(..), defaultPprFlags, briefPprFlags, tersePprFlags, pprLit, pprDmd, pprCallDmd, pprSpecificity, pprTyPat, pprPat, pprPatternMatch, pprExp, pprExpPrec, pprAlt, pprFun, pp...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/SystemF/PrintMemoryIR.hs
haskell
| Include function type arguments in the output. Function type arguments can usually, but not always, be inferred from their value arguments. | Include type annotations in the output even when the annotations are redundant. | Include demand annotations in the pretty-printed output | Include imports in the...
module SystemF.PrintMemoryIR (PprFlags(..), defaultPprFlags, briefPprFlags, tersePprFlags, pprLit, pprDmd, pprCallDmd, pprSpecificity, pprTyPat, pprPat, pprPatternMatch, pprExp, pprExpPrec, pprAlt, pprFun, pp...
289670e832556fc3e876d0c87105fb34333076efe8d3c569df7980ee8d88dedd
jindrichmynarz/sparql-to-graphviz
sparql.clj
(ns sparql-to-graphviz.sparql (:require [sparql-to-graphviz.endpoint :refer [endpoint]] [sparclj.core :as sparql] [stencil.core :refer [render-string]] [clojure.java.io :as io])) ; ----- Private functions ----- (defn- render-template "Render Mustache `template` file using `data...
null
https://raw.githubusercontent.com/jindrichmynarz/sparql-to-graphviz/29baed9ea7befe3c0b1693e3391afbff75820e86/src/sparql_to_graphviz/sparql.clj
clojure
----- Private functions ----- ----- Public functions -----
(ns sparql-to-graphviz.sparql (:require [sparql-to-graphviz.endpoint :refer [endpoint]] [sparclj.core :as sparql] [stencil.core :refer [render-string]] [clojure.java.io :as io])) (defn- render-template "Render Mustache `template` file using `data`." [template & {:keys [data]}...
958dd8b49ed5ba3a9d4880c397aa420e95f26186c60f54a020ddfed138979006
alex-gutev/tridash
structure-checks.lisp
;;;; structure-checks.lisp ;;;; ;;;; Tridash Programming Language. Copyright ( C ) 2019 - 2021 ;;;; ;;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or...
null
https://raw.githubusercontent.com/alex-gutev/tridash/1d6163f8bda3908e8a2f197245b07511efa68e78/test/structure-checks.lisp
lisp
structure-checks.lisp Tridash Programming Language. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
Copyright ( C ) 2019 - 2021 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (defpackage :tridash/test.structure-checks (:use :generic-cl :ale...
1f72833dede765207721a57cada032df2eebabb7aef0da64114f20648d23ef1e
stumpwm/mahogany
key.lisp
A large part of this file is taken directly from stumpwm : Copyright ( C ) 2003 - 2008 ;; This file is part of stumpwm . ;; stumpwm 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 ...
null
https://raw.githubusercontent.com/stumpwm/mahogany/3d8a4e761c5b17496a1b9c02a3562b8cedcd351e/lisp/keyboard/key.lisp
lisp
you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this software; see the file COPY...
A large part of this file is taken directly from stumpwm : Copyright ( C ) 2003 - 2008 This file is part of stumpwm . it under the terms of the GNU General Public License as published by stumpwm is distributed in the hope that it will be useful , You should have received a copy of the GNU General Publ...
4d12f9447c31fdea65580b59819e1c4f98abc427bbe3849bcb84d9578fd7f15d
AlacrisIO/legicash-facts
invalid_rlptest_json.ml
open Ppx_deriving_rlp_runtime open Rlptest_util open OUnit2 (* Read the tests from and run them. *) let invalid_rlptest_json = Yojson.Safe.from_string [%blob "invalidRLPTest.json"] (* --------------------------------------------------------------- *) (* Generating test cases *) let invalid_rlptest_c...
null
https://raw.githubusercontent.com/AlacrisIO/legicash-facts/5d3663bade68c09bed47b3f58fa12580f38fdb46/src/ppx_deriving_rlp/test/invalid_rlptest_json.ml
ocaml
Read the tests from and run them. --------------------------------------------------------------- Generating test cases check that decoding fails check that the exception raised contains the invalid string --------------------------------------------------------------- Running the tests using rlp...
open Ppx_deriving_rlp_runtime open Rlptest_util open OUnit2 let invalid_rlptest_json = Yojson.Safe.from_string [%blob "invalidRLPTest.json"] let invalid_rlptest_case (name, in_out) = let in_json = Yojson.Safe.Util.member "in" in_out and out_json = Yojson.Safe.Util.member "out" in_out in (if not (in_jso...
9895a69924ea38ca87acd201ac850a0b9126f859ca8b547e92a2a46029d4286b
nikita-volkov/rebase
Prim.hs
module Rebase.Data.ByteString.Builder.Prim ( module Data.ByteString.Builder.Prim ) where import Data.ByteString.Builder.Prim
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/ByteString/Builder/Prim.hs
haskell
module Rebase.Data.ByteString.Builder.Prim ( module Data.ByteString.Builder.Prim ) where import Data.ByteString.Builder.Prim
4e3c8af07d3306d9b9ca0633ba5cfa1b519b0f300c0145c290212364e220e53f
input-output-hk/cardano-ledger
Examples.hs
# LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Examples ( CHAINExample (..), testCHAINExample, ) where import Cardano.Ledger.Block (Block) import Cardano.Ledger.Shelley () import Cardano.Ledger.Shelley.Scripts () import Cardano.Protocol.TPraos.BHeader (BHeader) import Control.State.Transition.Ex...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/e0947b0c2e99ef929d20593be03e199560392f42/eras/shelley/test-suite/test/Test/Cardano/Ledger/Shelley/Examples.hs
haskell
^ State to start testing with ^ Block to run chain state transition system on ^ type of fatal error, if failure expected and final chain state if success expected and checks that trace ends with expected state or expected error.
# LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Examples ( CHAINExample (..), testCHAINExample, ) where import Cardano.Ledger.Block (Block) import Cardano.Ledger.Shelley () import Cardano.Ledger.Shelley.Scripts () import Cardano.Protocol.TPraos.BHeader (BHeader) import Control.State.Transition.Ex...
097a4dc4c50dd6612a999f8b7f1c3674ed19c838d938757aac685b7cb24de617
esl/escalus
escalus_utils.erl
%%============================================================================== Copyright 2010 Erlang Solutions Ltd. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% ...
null
https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/src/escalus_utils.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(escalus_utils). -export([log_stanzas/2, pretty_stanza_list/1, distinct_pairs/2, distinct_ordered_pair...
68094d0b6510af28f11eec6fa4d8fdeb37ee2a80d0295e39e899a81234ecba2f
hraberg/deuce
floatfns.clj
(ns deuce.emacs.floatfns (:use [deuce.emacs-lisp :only (defun defvar)]) (:require [clojure.core :as c] [deuce.emacs.alloc :as alloc]) (:refer-clojure :exclude [float])) (defun ftruncate (arg) "Truncate a floating point number to an integral float value. Rounds the value toward zero." (double (l...
null
https://raw.githubusercontent.com/hraberg/deuce/9d507adb6c68c0f5c19ad79fa6ded9593c082575/src/deuce/emacs/floatfns.clj
clojure
(ns deuce.emacs.floatfns (:use [deuce.emacs-lisp :only (defun defvar)]) (:require [clojure.core :as c] [deuce.emacs.alloc :as alloc]) (:refer-clojure :exclude [float])) (defun ftruncate (arg) "Truncate a floating point number to an integral float value. Rounds the value toward zero." (double (l...
e3d7bcbed6ef7f34053c374ec81b430104dc89233d5df5e8e8d60bdd091a870f
khinsen/leibniz
main.rkt
#lang racket
null
https://raw.githubusercontent.com/khinsen/leibniz/881955b4c642114fbdc2f36ecc99582ae2371238/leibniz/main.rkt
racket
#lang racket
bc2224914bbed4cabaec43685d793edae1f42e228ebac4aea2998baf53282fdd
ghcjs/ghcjs-dom
XPathResult.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.XPathResult (js_iterateNext, iterateNext, iterateNext_, js_snapshotItem, snapsh...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/XPathResult.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/XPathResult.numberValue Mozilla XPathResult.numberValue documentation> | <-US/docs/Web/API/XPathResult.booleanValue Mozilla XPathResult.booleanValue documentation> | <-US/docs/Web/API/XPathResult.single...
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.XPathResult (js_iterateNext, iterateNext, iterateNext_, js_snapshotItem, snapshotItem, snapshotItem_, pattern ANY_TYPE, pattern NUMBER_TYPE, pattern STRING_TYPE, pattern ...
4e2b7093272b9d510bc755da8eefa33c81cb8807a88e62f313c43da2e7145880
MLstate/opalang
RAList.ml
(* see mli *) type comparison = Lesser | Equal | Greater exception Invalid_subscript of (int*int) exception Empty exception StopFold (*to implement fold until *) (** the asked value is lesser than all entries *) exception Not_found_lesser (** the asked value is greater than all entries *) exception Not_found_greater ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/ocamllib/libbase/RAList.ml
ocaml
see mli to implement fold until * the asked value is lesser than all entries * the asked value is greater than all entries * CompleteBinaryTree ******************************************************************************************************* get a possibly simplified view * public view to abstract true t...
type comparison = Lesser | Equal | Greater exception Invalid_subscript of (int*int) exception Empty exception Not_found_lesser exception Not_found_greater * Random Access List Happily copied from Purely Functional Random - Access Lists from Okasaki Add lookup for monotonuous list Happily copied from P...
8030e917d1708cd6e626cc0ae33abc64350b4a085e9921dc9ae7a388634d26fb
quephird/fun-with-quil
twenty-fifteen.clj
(ns fun-with-quil.animations.twenty-fifteen (:require [quil.core :as q :include-macros true])) (defn setup [] (let [w (q/width) h (q/height)] (q/smooth) (q/background 0) (q/no-stroke) (q/color-mode :hsb) (q/translate (* 0.5 w) (* 0.5 h)))) (defn draw [] (let [fc (q/frame-count) ...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/animations/twenty-fifteen.clj
clojure
(ns fun-with-quil.animations.twenty-fifteen (:require [quil.core :as q :include-macros true])) (defn setup [] (let [w (q/width) h (q/height)] (q/smooth) (q/background 0) (q/no-stroke) (q/color-mode :hsb) (q/translate (* 0.5 w) (* 0.5 h)))) (defn draw [] (let [fc (q/frame-count) ...
6c9ea1ca7655f7d09b75fc94b8543b206983a5b3efb88ddd4a0765a773863509
ghcjs/ghcjs-base
Number.hs
module JavaScript.Number where
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/JavaScript/Number.hs
haskell
module JavaScript.Number where
d54e3a8dfc2e04982d4a8e3cf782192eb3e6b41d297a21d61b0e8dcb7110bb9b
AshleyYakeley/Truth
Syntax.hs
module Pinafore.Language.Grammar.Syntax where import Language.Expression.Dolan import Pinafore.Base import Pinafore.Language.Name import Pinafore.Markdown import Shapes import Text.Parsec (SourcePos) data SyntaxConstructorOrSubtype extra = ConstructorSyntaxConstructorOrSubtype FullName ...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-language/lib/Pinafore/Language/Grammar/Syntax.hs
haskell
negative, positive
module Pinafore.Language.Grammar.Syntax where import Language.Expression.Dolan import Pinafore.Base import Pinafore.Language.Name import Pinafore.Markdown import Shapes import Text.Parsec (SourcePos) data SyntaxConstructorOrSubtype extra = ConstructorSyntaxConstructorOrSubtype FullName ...
1f970297a11833b9b637152d6b16dc6554de7dd92a1e276490fd00ee2dac0fc7
richhickey/clojure-contrib
dispatch.clj
dispatch.clj -- part of the pretty printer for Clojure by April 3 , 2009 Copyright ( c ) , Feb 2009 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of thi...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/pprint/dispatch.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 ...
dispatch.clj -- part of the pretty printer for Clojure by April 3 , 2009 Copyright ( c ) , Feb 2009 . All rights reserved . (in-ns 'clojure.contrib.pprint) (defn use-method "Installs a function as a new method of multimethod associated with dispatch-value. " [multifn dispatch-val func] (. multi...
25fe5686455f048c323d132aedef9f9c5c8d170a5e8f8e91fc4ae138ca3a66fc
TrustInSoft/tis-kernel
builtins.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/value/domains/cvalue/builtins.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
33222408df4a7b437e8b220887575e46c7ed64d04d245df4194930c5a31dfbfc
lehitoskin/blight
number-conversions.rkt
#lang typed/racket/base ; number-conversions.rkt ; provides several conversions from and to ; decimal and hexadecimal (provide dec->hex hex->dec) (define (whole-number? (val : Any)) : Boolean (and (integer? val) (or (zero? val) (positive? val)))) ; takes a number, returns a string (define (dec->hex ...
null
https://raw.githubusercontent.com/lehitoskin/blight/807b0437c92ee41c68ca5a767d973817ae416b65/number-conversions.rkt
racket
number-conversions.rkt provides several conversions from and to decimal and hexadecimal takes a number, returns a string takes a string, returns a number
#lang typed/racket/base (provide dec->hex hex->dec) (define (whole-number? (val : Any)) : Boolean (and (integer? val) (or (zero? val) (positive? val)))) (define (dec->hex (x : Nonnegative-Integer)) : String (if (< x 16) Leading zero so it can be used with Tox IDs . (string-append "0" (stri...
31b5adcfc26199528eaf563376ef4b8cffc7b782600133de35f17fe9db50737c
funcool/rxhttp
watch.clj
(require '[cljs.build.api :as b]) (def options {:main 'rxhttp.test-runner :output-to "out/tests.js" :output-dir "out" :target :nodejs :optimizations :none :pretty-print false :language-in :ecmascript5 :language-out :ecmascript5 :verbose true}) (b/watch (b/inputs "test" "src") options)
null
https://raw.githubusercontent.com/funcool/rxhttp/a108cf526569ea4a5a019eb233680e2af600b37c/scripts/watch.clj
clojure
(require '[cljs.build.api :as b]) (def options {:main 'rxhttp.test-runner :output-to "out/tests.js" :output-dir "out" :target :nodejs :optimizations :none :pretty-print false :language-in :ecmascript5 :language-out :ecmascript5 :verbose true}) (b/watch (b/inputs "test" "src") options)
5da158b51922952327795557f4cd15cc16579095aabacd204b2bfac2cc1cccfc
skanev/playground
32-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../32.scm") (load-relative "helpers/letrec.scm") (define eopl-3.32-tests (test-suite "Tests for EOPL exercise 3.32" (check-equal? (run "letrec even(x) = if zero?(x) then 1 else (odd -(x, 1)...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/tests/32-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../32.scm") (load-relative "helpers/letrec.scm") (define eopl-3.32-tests (test-suite "Tests for EOPL exercise 3.32" (check-equal? (run "letrec even(x) = if zero?(x) then 1 else (odd -(x, 1)...
936fb639eb592977a220b708c8e8d27f95cdf07222c41064f82b1bd5e30b7d81
dinosaure/art
atomic.mli
type mmu val run : mmu -> 'a Rowex.t -> 'a
null
https://raw.githubusercontent.com/dinosaure/art/40af4c34a2e2ec9632cb73a74ac2ec0fd7f62a81/lib/atomic.mli
ocaml
type mmu val run : mmu -> 'a Rowex.t -> 'a
781cc3c571e3978bb659a8a64ce83815cb8c48de084521a507c7763b20bb90e0
nakkaya/clodiuno
photoresistor.clj
(ns photoresistor (:use :reload-all clodiuno.core) (:use :reload-all clodiuno.firmata)) ;; refer ;; -a-photoresistor-to-an-arduino/ ;; for circuit diagram. (def photo-pin 0) (def led-pin 13) (def threshold 250) (def board (arduino :firmata "/dev/tty.usbserial-A600aeCj")) (pin-mode board 13 OUTPUT) ;;start recei...
null
https://raw.githubusercontent.com/nakkaya/clodiuno/07baa0f05ff830d9e58be0017cde0013e32aefc8/resources/examples/photoresistor.clj
clojure
refer -a-photoresistor-to-an-arduino/ for circuit diagram. start receiving data for photo-pin
(ns photoresistor (:use :reload-all clodiuno.core) (:use :reload-all clodiuno.firmata)) (def photo-pin 0) (def led-pin 13) (def threshold 250) (def board (arduino :firmata "/dev/tty.usbserial-A600aeCj")) (pin-mode board 13 OUTPUT) (enable-pin board :analog photo-pin) (doseq [_ (range 1000000)] (let [val (an...
c2fff24dd1b3843e92f94913707cb8aba9261d515bc625ffa23b6b9465cc4530
wangsix/VMO_repeated_themes_discovery
converter.lisp
;(in-package :common-lisp-user) (load (concatenate 'string *lisp-code-root* "/File conversion" "/csv-files.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/humdrum-by-col.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/midi-save.lisp")) (setq *pa...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/beethovenOp2No1Mvt3/polyphonic/repeatedPatterns/tomCollins/I/script/converter.lisp
lisp
(in-package :common-lisp-user)
(load (concatenate 'string *lisp-code-root* "/File conversion" "/csv-files.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/humdrum-by-col.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/midi-save.lisp")) (setq *path&name* (concatenate 'string...
d60b51672b3922a8ad22858e5ba840711447ddacb2132f629436a7d9c0aa252d
district0x/district-ui-router
build.clj
(ns build (:require [clojure.tools.build.api :as b] [deps-deploy.deps-deploy :as dd])) (def lib 'district0x/district-ui-router) ; ends up as <group-id>/<artifact-id> in pom.xml (def version "1.1.0-SNAPSHOT") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file...
null
https://raw.githubusercontent.com/district0x/district-ui-router/ce8a2f655f372e9ea7672608cc4163a0e3f57abb/build.clj
clojure
ends up as <group-id>/<artifact-id> in pom.xml
(ns build (:require [clojure.tools.build.api :as b] [deps-deploy.deps-deploy :as dd])) (def version "1.1.0-SNAPSHOT") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) (defn clean [_] (b/delete {:path "targ...