_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
e201d3403fbcc8bae717f41a0bbea1641fc0ead1b50ffd366e4a700df4da048b
facebookarchive/pfff
pretty_print.ml
* * Copyright ( C ) 2011 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/pretty/pretty_print.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Helpers ************************************************************************...
* * Copyright ( C ) 2011 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
a8706124009dddbf26d3edf485e92b8188ca4e40440b7d832eccc8da38272897
opencensus-beam/opencensus_zipkin
opencensus_zipkin.erl
-module(opencensus_zipkin). %% API exports -export([]). %%==================================================================== %% API functions %%==================================================================== %%==================================================================== Internal functions %%=======...
null
https://raw.githubusercontent.com/opencensus-beam/opencensus_zipkin/c9b8e58328e85a000db12ebedd8b2c9a2be3c75c/src/opencensus_zipkin.erl
erlang
API exports ==================================================================== API functions ==================================================================== ==================================================================== ====================================================================
-module(opencensus_zipkin). -export([]). Internal functions
e0eff895a86757110d2a283d49408857e9b31b0037eef8da063f76a8439720dd
jeffshrager/biobike
object-editor-defs.lisp
-*- Package : data - editor ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :data-editor) ;;; +=========================================================================+ | Copyright ( c ) 2009 JP Massar | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/data-editor/object-editor-defs.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :data-editor) | Copyright ( c ) 2009 JP Massar | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is fu...
44cfd35752bdcb8e7a946c092c2deb6b705f2381a62e50858e3a0b7d5bfa40c8
f-o-a-m/kepler
MetricsSpec.hs
# LANGUAGE TemplateHaskell # module Tendermint.SDK.Test.MetricsSpec (spec) where import Control.Concurrent.MVar (readMVar) import Data.Map.Strict ((!)) import qualified Data.Map.Strict as Map import Polysem...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-sdk/test/Tendermint/SDK/Test/MetricsSpec.hs
haskell
register should contain new counter metric increment it again time an action check registry hist buckets
# LANGUAGE TemplateHaskell # module Tendermint.SDK.Test.MetricsSpec (spec) where import Control.Concurrent.MVar (readMVar) import Data.Map.Strict ((!)) import qualified Data.Map.Strict as Map import Polysem...
f055b964f52af5e4e272703f2832a6fa6400392dccda74637842c2a1be02d800
chenyukang/eopl
environments.scm
;;;;;;;;;;;;;;;; environments ;;;;;;;;;;;;;;;; ;;; This should probably be factored out into a module called ;;; environments.scm, like it is in most of the other interpreters. (define empty-env (lambda () '())) (define empty-env? (lambda (x) (null? x))) (define extend-env (lambda (sym val old-env) (...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch5/base/environments.scm
scheme
environments ;;;;;;;;;;;;;;;; This should probably be factored out into a module called environments.scm, like it is in most of the other interpreters. ok, this is an extend-env no, this is an extend-env-rec los is at position pos of the original los entry ::= (id expval) not precise, but will do.
(define empty-env (lambda () '())) (define empty-env? (lambda (x) (null? x))) (define extend-env (lambda (sym val old-env) (cons (list sym val) old-env))) (define extend-env-rec* (lambda (p-names b-vars p-bodies saved-env) (cons (list p-names b-vars p-bodies) saved-env))) (define appl...
b933310088faedca2201d93f88609bd62134a8d4bba92e3365138720513acdfc
metaocaml/ber-metaocaml
t071-boolnot.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;; if not true then raise Not_found;; * 0 CONSTINT 42 ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t071-boolnot.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;; if not true then raise Not_found;; * 0 CONSTINT 42 ...
68b26ac8b1c3815800d95ec8f2224e6693f26a22f39020764afb4f64850af9e1
district0x/district-registry
templates.cljs
(ns district-registry.server.emailer.templates (:require [bignumber.core :as bn] [clojure.string :as str] [district.web3-utils :as web3-utils])) (defn- format-token-amount [amount] (-> amount web3-utils/wei->eth-number (bn/fixed 3))) (defn format-link [url text] (str "<a href=\"" url "\" >" text "</...
null
https://raw.githubusercontent.com/district0x/district-registry/c2dcf7978d2243a773165b18e7a76632d8ad724e/src/district_registry/server/emailer/templates.cljs
clojure
(ns district-registry.server.emailer.templates (:require [bignumber.core :as bn] [clojure.string :as str] [district.web3-utils :as web3-utils])) (defn- format-token-amount [amount] (-> amount web3-utils/wei->eth-number (bn/fixed 3))) (defn format-link [url text] (str "<a href=\"" url "\" >" text "</...
d18de0489f043e72c860d27c3bdbf265ecd937a5e2e2146de496289dceecbb7b
tekul/broch
BlazeUI.hs
{-# LANGUAGE OverloadedStrings #-} module Broch.Server.BlazeUI ( loginPage , approvalPage ) where import Control.Monad (forM_) import Data.Int (Int64) import Data.Text (Text) import Data.Time.Clock.POSIX import Text.Blaze.Html5 as H import Text....
null
https://raw.githubusercontent.com/tekul/broch/885ace4652cad4dcd806c8c31c1a59bf6a9a3337/Broch/Server/BlazeUI.hs
haskell
# LANGUAGE OverloadedStrings #
module Broch.Server.BlazeUI ( loginPage , approvalPage ) where import Control.Monad (forM_) import Data.Int (Int64) import Data.Text (Text) import Data.Time.Clock.POSIX import Text.Blaze.Html5 as H import Text.Blaze.Html5.Attributes as A hiding ...
ed0aca78b38f396be77fbb15fbfd4b1456f8d52b05803744959cdf9975cad77c
racket/frtime
timer.rkt
#lang frtime (require frtime/gui/simple) (current-widget-parent (new ft-frame% (width 400) (stretchable-width #t))) (define-values-rec [gauge-value (min 15 (- seconds (hold (map-e (lambda (_) (value-now seconds)) reset) ...
null
https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/gui/demo/timer.rkt
racket
#lang frtime (require frtime/gui/simple) (current-widget-parent (new ft-frame% (width 400) (stretchable-width #t))) (define-values-rec [gauge-value (min 15 (- seconds (hold (map-e (lambda (_) (value-now seconds)) reset) ...
e27c82181619c803c13e50c849e33d5c863a9a9e2de6e85209c789ec88048d89
mbutterick/aoc-racket
input.rkt
#lang reader "lang.rkt" focdealm ggsipflx rvibwxbm vqrfyyrh hsjtzpgs ozymxpoy jiecwags lztseufl dfwibwsn skiuhnwl kamgzqog axeqncwa gobivxto nwgoryhd tzrlitrq uzoldxbv zsteobha pfcgdqkg prcqlunp iwivemkh vpkilupm ewuznabz veaptost cyvirffe ejhhqfng ibsqztgg xzczkboh bckhbodf vbycgonv esmoyyku unccgdgj cqwnqlzs edoqmykb...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day06/input.rkt
racket
#lang reader "lang.rkt" focdealm ggsipflx rvibwxbm vqrfyyrh hsjtzpgs ozymxpoy jiecwags lztseufl dfwibwsn skiuhnwl kamgzqog axeqncwa gobivxto nwgoryhd tzrlitrq uzoldxbv zsteobha pfcgdqkg prcqlunp iwivemkh vpkilupm ewuznabz veaptost cyvirffe ejhhqfng ibsqztgg xzczkboh bckhbodf vbycgonv esmoyyku unccgdgj cqwnqlzs edoqmykb...
f49ca520cd4a6cdb788c3f95fbc78deed4e2cfee9779fc8fa85112c95b1a9949
sjl/cl-blt
boxes.lisp
(in-package :bearlibterminal/high-level) (defun draw-box-outline (x y w h top bottom left right top-left top-right bot-left bot-right) (loop :for bx :from (1+ x) :below (+ x w -1) :do (setf (blt:cell-char bx y) top (...
null
https://raw.githubusercontent.com/sjl/cl-blt/ee69ac7bfb473e9cdd8c2d50d45ef288ef315ff3/src/high-level/boxes.lisp
lisp
(in-package :bearlibterminal/high-level) (defun draw-box-outline (x y w h top bottom left right top-left top-right bot-left bot-right) (loop :for bx :from (1+ x) :below (+ x w -1) :do (setf (blt:cell-char bx y) top (...
2fa83881fcef88ac56954d9bc344bb7c227d1dfeb97cc398e8b55514fca64696
VisionsGlobalEmpowerment/webchange
writing_practice.clj
(ns webchange.dev-templates.writing-practice (:require [webchange.dev-templates :as t] [webchange.templates.core :as templates] [webchange.course.core :as core])) (comment (def test-course-slug (-> (t/create-test-course-with-dataset) :slug)) (def scene-slug "test-activity") (t/update-activity test...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/118ba5ee407ba1261bac40a6ba5729ccda6e8150/env/dev/clj/webchange/dev_templates/writing_practice.clj
clojure
(ns webchange.dev-templates.writing-practice (:require [webchange.dev-templates :as t] [webchange.templates.core :as templates] [webchange.course.core :as core])) (comment (def test-course-slug (-> (t/create-test-course-with-dataset) :slug)) (def scene-slug "test-activity") (t/update-activity test...
d5594e964d82447755b8bc77ea18bf3c755bf589037a42b43a05822b853d7172
libguestfs/supermin
automake2junit.ml
#!/usr/bin/ocamlrun ocaml Copyright ( C ) 2010 - 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option )...
null
https://raw.githubusercontent.com/libguestfs/supermin/fd9f17c7eb63979af882533a0d234bfc8ca42de3/tests/automake2junit.ml
ocaml
#!/usr/bin/ocamlrun ocaml Copyright ( C ) 2010 - 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option )...
8369ea637a1ec15e4039115d5ac5d07c83632e86d86ea40195cf75882daef145
danoctavian/bit-smuggler
Client.hs
# LANGUAGE RecordWildCards # module Network.BitSmuggler.Client where import Prelude as P hiding (read) import qualified Data.Tuple as Tup import Control.Monad.Trans.Resource import System.Log.Logger import Control.Monad.IO.Class import Control.Monad import Control.Exception import Control.Concurrent import Control.Con...
null
https://raw.githubusercontent.com/danoctavian/bit-smuggler/4385ed67f1fec4ed441832fc9a119de632b796aa/BitSmuggler/src/Network/BitSmuggler/Client.hs
haskell
, currentInfoHash :: InfoHash start torrent client (with config) == CLIENT INITIALIZATION = closed gate setup proxies (socks and reverse) tell client to start working on file chosen at random after user function executed it's some other connection - just proxy data without any parsing or tampering don't do...
# LANGUAGE RecordWildCards # module Network.BitSmuggler.Client where import Prelude as P hiding (read) import qualified Data.Tuple as Tup import Control.Monad.Trans.Resource import System.Log.Logger import Control.Monad.IO.Class import Control.Monad import Control.Exception import Control.Concurrent import Control.Con...
ef7f883d2ae527041274f05b37c7de8f90398cfcddd3ab1661bcd976802528f0
teikalang/teika
offset.mli
type offset type t = offset [@@deriving show, eq] val zero : offset val one : offset (* repr *) (* TODO: this API is non ideal *) val of_int : int -> offset val repr : offset -> int (* operations *) val ( + ) : offset -> offset -> offset val ( - ) : offset -> offset -> offset val ( < ) : offset -> offset -> bool val...
null
https://raw.githubusercontent.com/teikalang/teika/00d96ade010be4520a8de0fe7e27b06d5a08f55a/teika/offset.mli
ocaml
repr TODO: this API is non ideal operations
type offset type t = offset [@@deriving show, eq] val zero : offset val one : offset val of_int : int -> offset val repr : offset -> int val ( + ) : offset -> offset -> offset val ( - ) : offset -> offset -> offset val ( < ) : offset -> offset -> bool val ( > ) : offset -> offset -> bool
aba311a263e98ca969e0519f1599540dc56608591d4da114198aa8ef6c035381
danlentz/datomic-rdf
core.clj
(ns datomic-rdf.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/danlentz/datomic-rdf/cffa0d425d70de690a42c354cd3c4c503b17700f/src/datomic_rdf/core.clj
clojure
(ns datomic-rdf.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
b79c21be8ecfea4179dfdf3bf158dfd6c77def9872f72525e1af193b11eac8fa
borgeby/jarl
reader_test.cljc
(ns jarl.config.reader-test (:require #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer [deftest testing is]]) [jarl.config.reader :as config] [jarl.runtime.environment :as environment])) (deftest read-json-config (testing "simple json...
null
https://raw.githubusercontent.com/borgeby/jarl/2659afc6c72afb961cb1e98b779beb2b0b5d79c6/core/src/test/cljc/jarl/config/reader_test.cljc
clojure
(ns jarl.config.reader-test (:require #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer [deftest testing is]]) [jarl.config.reader :as config] [jarl.runtime.environment :as environment])) (deftest read-json-config (testing "simple json...
cd3438c9645c9c43839757cab58f9ce1c82c1ae59f9d086b75d30cdbe6b5dff3
ddssff/cabal-debian
Debianize.hs
module Debianize (updateDebianization) where import Codec.Binary.UTF8.String (decodeString) import Control.Arrow (second) import Control.Exception (SomeException, try, bracket) import Control.Monad (when,mplus) import Control.Monad.Reader (ReaderT(runReaderT)) import Control.Monad.Trans (lift) import Data.Either (part...
null
https://raw.githubusercontent.com/ddssff/cabal-debian/763270aed987f870762e660f243451e9a34e1325/Attic/Debianize.hs
haskell
DebianBinPackageName, ^whether to forcibly create file ^info from the .cabal file ^command line flags ^compiler details ^directory in which to create files should this be hardcoded, or automatically read from /var/lib/dpkg/status?
module Debianize (updateDebianization) where import Codec.Binary.UTF8.String (decodeString) import Control.Arrow (second) import Control.Exception (SomeException, try, bracket) import Control.Monad (when,mplus) import Control.Monad.Reader (ReaderT(runReaderT)) import Control.Monad.Trans (lift) import Data.Either (part...
ac76818edb17226824dd65073f51330cb14eb9515113eb8b93244236ec221f5d
earl-ducaine/cl-garnet
lapidary-functions.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : LAPIDARY ; Base : 10 -*- The Garnet User Interface Development Environment ;; This code was written as part of the Garnet project at Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any part of Garnet ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/lapidary/lapidary-functions.lisp
lisp
Syntax : Common - Lisp ; Package : LAPIDARY ; Base : 10 -*- to be put on the mailing list. This file contains code that is exported from lapidary which an application constructed using lapidary might use rewrite the set of opal:gv-... functions so that they are forgiving of broken links For formulas that wan...
The Garnet User Interface Development Environment This code was written as part of the Garnet project at Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any part of Garnet , please contact (in-package :lapidary) (defun gv-bottom (gob) (if gob (1- (+...
4eccbb47d3893c383d84f577cd74e2bf9d456c5de0a0c6aee0028b3a2497d4be
dongweiming/lisp-koans-answer
variables-parameters-constants.lsp
(defun test-variable-assignment-with-setf () ;; the let pattern allows us to create local variables with ;; lexical scope. (let (var_name_1 (var_name_2 "Michael")) ;; variables may be defined with or without initial values. (and (equalp var_name_2 "Michael") new values may be assigned to variables ...
null
https://raw.githubusercontent.com/dongweiming/lisp-koans-answer/33eb6e38c7179c677db0df0a31cadd49617ae8db/koans/variables-parameters-constants.lsp
lisp
the let pattern allows us to create local variables with lexical scope. variables may be defined with or without initial values. referring to the elements of a list defparameter requires an initial form. It is a compiler error to exclude it (defparameter param_no_init) ;; this will fail defconstant also require...
(defun test-variable-assignment-with-setf () (let (var_name_1 (var_name_2 "Michael")) (and (equalp var_name_2 "Michael") new values may be assigned to variables with setf (setf var_name_2 "Janet") (equalp var_name_2 "Janet") setf may assign multiple variables in one form . (setf var_name_1...
f5a2ab9bd586ccc8e9b10593f98d35b81a4b32f5b541b64e975dfae7fd4f283d
koka-lang/koka
PPrint.hs
------------------------------------------------------------------------------ Copyright 2012 - 2021 , Microsoft Research , . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be -- found in the LICENSE file at the...
null
https://raw.githubusercontent.com/koka-lang/koka/2909df715aebf57966fbdd4afdc7a477f55f239e/src/Lib/PPrint.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the found in the LICENSE file at the root of this distribution. --------------------------------------------------------------------------- ------------------------------...
Copyright 2012 - 2021 , Microsoft Research , . terms of the Apache License , Version 2.0 . A copy of the License can be Pretty print module based on /prettier printer/ * , prettier printer/ Draft paper , April 1997 , revised March 1998 . < -labs.com/cm/cs/who/wadler/papers/prettier/p...
c3360d15e5f171afc58511d0844fd0bda8d2ef9904f7db3b094f1ccd69cbf194
rudolph-miller/clipper
s3.lisp
(in-package :cl-user) (defpackage clipper.s3 (:use :cl :clipper.config :clipper.format :clipper.database :clipper.image :zs3)) (in-package :clipper.s3) (syntax:use-syntax :annot) (defclass environment-credentials ()()) (setf *credentials* (make-instance 'environment-credentia...
null
https://raw.githubusercontent.com/rudolph-miller/clipper/b07a1be210d5504cd67c8e303168cb4bc09f642e/src/s3.lisp
lisp
(in-package :cl-user) (defpackage clipper.s3 (:use :cl :clipper.config :clipper.format :clipper.database :clipper.image :zs3)) (in-package :clipper.s3) (syntax:use-syntax :annot) (defclass environment-credentials ()()) (setf *credentials* (make-instance 'environment-credentia...
8301fe5ca9a62db491b63553d689f639241bbb671e126395d19a6a24692d39f2
atdixon/me.untethr.nostr-relay
metrics_porcelain.clj
(ns me.untethr.nostr.page.metrics-porcelain (:require [hiccup.core :refer :all :exclude [html]] [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.common.metrics]) (:import (com.codahale.metrics Counter Gauge Histogram Meter MetricFilter MetricRegistry Snapshot Timer) (com.codahale...
null
https://raw.githubusercontent.com/atdixon/me.untethr.nostr-relay/724a2af1599b630de413d78555e70bc57073552c/src/me/untethr/nostr/page/metrics_porcelain.clj
clojure
-- -- latencies total counts and window throughputs
(ns me.untethr.nostr.page.metrics-porcelain (:require [hiccup.core :refer :all :exclude [html]] [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.common.metrics]) (:import (com.codahale.metrics Counter Gauge Histogram Meter MetricFilter MetricRegistry Snapshot Timer) (com.codahale...
f5785eb7bdd21383ba1cfb8188e25515ff22faec3720fc60fa17eb60e14e593e
earl-ducaine/cl-garnet
tour-transcript.lisp
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: COMMON-LISP-USER -*- ;;; ;;; A rough attempt to verify that the garnet "tour" works. ;;; (in-package :demo) (defun do-tour () "An inelegant function to run us through the tour, to check and see if things seem to be working..." (create-instance 'MYWINDOW inter:i...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/demos/tour-transcript.lisp
lisp
-*- Mode: LISP; Syntax: COMMON-LISP; Package: COMMON-LISP-USER -*- A rough attempt to verify that the garnet "tour" works. In the COMMON-LISP-USER package only do this if your Lisp is NOT a recent only do this if your Lisp is NOT a recent only do this if your Lisp is NOT a recent only do this if your Lisp is NOT a...
(in-package :demo) (defun do-tour () "An inelegant function to run us through the tour, to check and see if things seem to be working..." (create-instance 'MYWINDOW inter:interactor-window) (opal:update MYWINDOW) (y-or-n-p "Continue?") (create-instance 'MYAGG opal:aggregate) (s-value MYWINDOW :aggrega...
8a552158f46fd5c469aa2781f379a897d9f3669401847fd33a3a418f67f23a23
manuel-serrano/hop
scheme-record.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / js2scheme / scheme - record.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/51068b29eeb08f9c1154c7279baec8f6b6ed1c67/js2scheme/scheme-record.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Record generation */ *===========================...
* serrano / prgm / project / hop / hop / js2scheme / scheme - record.scm * / * Author : * / * Creation : Thu Jul 15 07:09:51 2021 * / * Last change : Sun Nov 27 09:36:48 2022 ( serrano ) * / * Co...
33e03810921de0066042afce0943fdaefc239db9b62249c22cf4f870425d98ea
Kakadu/fp2022
termination_check.ml
* Copyright 2021 - 2022 , Kakadu , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Base open Ast type state = string list let add_err s msg = msg :: s let rec pass_stmt s = function | RetStmt _ -> s, true | VarDecl (_, FuncLit (sign, block)) -> check_fn s "anonymous" sign block, fa...
null
https://raw.githubusercontent.com/Kakadu/fp2022/853ab6831fdce3b3e1b68d49e5163d0293d56bf5/Golang/lib/termination_check.ml
ocaml
* Copyright 2021 - 2022 , Kakadu , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Base open Ast type state = string list let add_err s msg = msg :: s let rec pass_stmt s = function | RetStmt _ -> s, true | VarDecl (_, FuncLit (sign, block)) -> check_fn s "anonymous" sign block, fa...
7d3cb9014db991fc75ecc734280319e8d37f074d9dc1cd75474f6709e1acb921
jpmonettas/old-flow-storm
tracer.cljc
(ns flow-storm.tracer (:require [taoensso.sente :as sente] [clojure.core.async :as async :refer [take!]] [editscript.core :as edit.core] [editscript.edit :as edit.edit] [cognitect.transit :as transit] [taoensso.sente.packers.transit :as sente-transit]...
null
https://raw.githubusercontent.com/jpmonettas/old-flow-storm/6a43e0a9d3d9424564c008de2b1027208cd39d6e/src/flow_storm/tracer.cljc
clojure
we resolve add-tap like this so flow-storm can be used in older versions of clojure don't connect if we already have a connection this is so connect can be called multiple times, usefull in hot reload context when the init function in called again without restarting everything to avoid warning block until we have...
(ns flow-storm.tracer (:require [taoensso.sente :as sente] [clojure.core.async :as async :refer [take!]] [editscript.core :as edit.core] [editscript.edit :as edit.edit] [cognitect.transit :as transit] [taoensso.sente.packers.transit :as sente-transit]...
6cd9c681f7b7a8c43d290eefb6487a70092ca0e9ad1ab4c65910b09856299777
haskell-backpack/backpack-str
Partial.hs
module Str.ByteString.Char8.Partial ( -- * String types Str, Chr, Index, -- * Introducing and eliminating strings S.empty, S.singleton, S.pack, S.unpack, -- * Basic interface cons, S.cons', S.snoc, S.append, S.head, S.uncons, S.unsnoc, S.last, ...
null
https://raw.githubusercontent.com/haskell-backpack/backpack-str/18c070d3b434593446f20d4206f0b607385a8acf/str-bytestring/partial/Str/ByteString/Char8/Partial.hs
haskell
* String types * Introducing and eliminating strings * Basic interface * Transforming strings * Case conversion * Justification * Reducing strings (folds) * Special folds * Building strings * Accumulating maps * Infinite strings * Unfolds and replicates * Breaking into lines and words * Predicates * View...
module Str.ByteString.Char8.Partial ( Str, Chr, Index, S.empty, S.singleton, S.pack, S.unpack, cons, S.cons', S.snoc, S.append, S.head, S.uncons, S.unsnoc, S.last, S.tail, S.init, S.null, S.length, compareLength, S.map, S.reverse...
7babeaefce7469e62a3bd527ace3631f74abf39af0a2f11a0b147ff204c9b03b
takikawa/racket-ppa
bsp.rkt
#lang typed/racket/base (require racket/list racket/match racket/promise math/flonum "split.rkt") (provide BSP shapes (struct-out points) (struct-out line) (struct-out poly) (struct-out lines) BSP-Shape (rename-out [shape? bsp-shape?]) BSP tree (struct-out bsp-node) (st...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/plot-lib/plot/private/plot3d/bsp.rkt
racket
=================================================================================================== Shape types Parent type, not exported as a structure =================================================================================================== ==============================================================...
#lang typed/racket/base (require racket/list racket/match racket/promise math/flonum "split.rkt") (provide BSP shapes (struct-out points) (struct-out line) (struct-out poly) (struct-out lines) BSP-Shape (rename-out [shape? bsp-shape?]) BSP tree (struct-out bsp-node) (st...
b296bb926f48e6494b99378820e967649f7745c61b0d6b24bf198902fc65ed3f
namin/leanTAP
nnf.scm
(library (nnf) (export nnf prepare A E) (import (chezscheme) (alphaK)) NNF taken from translation of leanTAP ;; see / ;; this adaptation positions noms in the right places (define-syntax A (syntax-rules () ((A var body) `(forall var ,(lambda (var) `body))))) (define-syntax E (syntax-rules () ...
null
https://raw.githubusercontent.com/namin/leanTAP/33ae44acfe424e462f7eb26e28b324920229e04c/alphaleantap/nnf.scm
scheme
see / this adaptation positions noms in the right places note that match-pattern may do binding. Here, other clauses are outside of these binding (match-pattern val pattern kt kf) trivial re-writing using the standard tautologies propagate inside skolemization. See the paper handle literals
(library (nnf) (export nnf prepare A E) (import (chezscheme) (alphaK)) NNF taken from translation of leanTAP (define-syntax A (syntax-rules () ((A var body) `(forall var ,(lambda (var) `body))))) (define-syntax E (syntax-rules () ((E var body) `(ex var ,(lambda (var) `body))))) (define (show...
8461770f695f7f600377b3b745f27a62f780863f341eb3bf33892fd1f292b1fd
mochi/beambag
plist_to_gb_trees.erl
% anonymous function % in: <name of target module> <new data — output from parser function> % out: <$$magic substitute> fun(_Module, NewData) -> gb_trees:from_orddict(lists:usort(NewData)) end.
null
https://raw.githubusercontent.com/mochi/beambag/2fef80ea65882b5b72f5a841f14095bf606080dd/packaging/plist_to_gb_trees.erl
erlang
anonymous function in: <name of target module> <new data — output from parser function> out: <$$magic substitute>
fun(_Module, NewData) -> gb_trees:from_orddict(lists:usort(NewData)) end.
45f44adfce0577f9fe1702e32d2a901b138b0bd2ba81c9a28e61fbb7b02194a8
nuvla/ui
events.cljs
(ns sixsq.nuvla.ui.cimi-detail.events (:require [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.cimi-detail.spec :as cimi-detail-spec] [sixsq.nuvla.ui.cimi.events :as cimi-events] [sixsq.nuvla...
null
https://raw.githubusercontent.com/nuvla/ui/52718be9e639345b031673e69bc231b38974f3a9/code/src/cljs/sixsq/nuvla/ui/cimi_detail/events.cljs
clojure
(ns sixsq.nuvla.ui.cimi-detail.events (:require [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.cimi-detail.spec :as cimi-detail-spec] [sixsq.nuvla.ui.cimi.events :as cimi-events] [sixsq.nuvla...
5633902e1da4a44d08710467cc707e57639eabf3b6c4377240a59f5649c1c803
lojic/LearningRacket
bank-account-channel.rkt
#lang racket (require "../concurrency.rkt") (provide open-bank balance update) (define/atomchan (open-bank) (box 0)) (define/atomchan (balance account) (unbox account)) (define/atomchan (update account amount) (set-box! account (+ amount (unbox account))) (unbox account))
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/bank-account/bank-account-channel.rkt
racket
#lang racket (require "../concurrency.rkt") (provide open-bank balance update) (define/atomchan (open-bank) (box 0)) (define/atomchan (balance account) (unbox account)) (define/atomchan (update account amount) (set-box! account (+ amount (unbox account))) (unbox account))
ea4301d29f05beb750d82c0ad85655a51331783f5e8abd18d19a226e11ed42d5
racket/racket-lang-org
resources.rkt
#lang plt-web (require "../testing.rkt" "../identity.rkt") (provide download-site) (define download-site (site "download" #:url (rewrite-for-testing "-lang.org/") #:page-headers (identity-headers)))
null
https://raw.githubusercontent.com/racket/racket-lang-org/88dada2ee769ada9afaf1e3ec1fb28b8ddf216db/download/resources.rkt
racket
#lang plt-web (require "../testing.rkt" "../identity.rkt") (provide download-site) (define download-site (site "download" #:url (rewrite-for-testing "-lang.org/") #:page-headers (identity-headers)))
6d81fa704e122968c2ada9cfa3b2bf9ea201d28856c71ab6aa3844d44f033f15
ndmitchell/rattle
Pipeline.hs
-- Run commands separated by -- a ; b - do a, continue with b ignoring the escape code -- a || b - do a, only do b if a fails -- a && b - do a, only do b if a succeeds -- there is no bracketing module Pipeline(main) where import Development.Shake.Command import System.Environment import System.Exit main :: IO () ma...
null
https://raw.githubusercontent.com/ndmitchell/rattle/f1f10504ef175dd005c8affdddfc1fb615c040f2/pipeline/Pipeline.hs
haskell
Run commands separated by a ; b - do a, continue with b ignoring the escape code a || b - do a, only do b if a fails a && b - do a, only do b if a succeeds there is no bracketing
module Pipeline(main) where import Development.Shake.Command import System.Environment import System.Exit main :: IO () main = exitWith =<< run =<< getArgs isSpecial x = x `elem` [";", "&&", "||"] run :: [String] -> IO ExitCode run xs | (a, op:b) <- break isSpecial xs = case op of ";" -> run a >> run b ...
7292fe985c9d0b7fc5a0ae1b461f376afde2597e0aea042bb66030f59448067f
raph-amiard/CamllVM
30_aligncol_clean.ml
open Str let input = "\ Given$a$text$file$of$many$lines,$where$fields$within$a$line$ are$delineated$by$a$single$'dollar'$character,$write$a$program that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$ column$are$separated$by$at$least$one$space. Further,$allow$for$each$word$in$a$column$to$be$either$left$ ...
null
https://raw.githubusercontent.com/raph-amiard/CamllVM/d36928f0e81a6f4f65ddd3a8653887d187632dc2/test/nonworkingtests/30_aligncol_clean.ml
ocaml
number of columns left column-aligned output right column-aligned output center column-aligned output
open Str let input = "\ Given$a$text$file$of$many$lines,$where$fields$within$a$line$ are$delineated$by$a$single$'dollar'$character,$write$a$program that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$ column$are$separated$by$at$least$one$space. Further,$allow$for$each$word$in$a$column$to$be$either$left$ ...
0940b540199982cfe8e4614137d5243d150e46b97ad3c4521f5c6b837e5226ed
hammerlab/ketrew
pbs.mli
(**************************************************************************) Copyright 2014 , 2015 : < > , < > , Arun < > , < > ...
null
https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/src/lib/pbs.mli
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , 2015 : < > , < > , Arun < > , < > Licensed under the Apache License , Version 2.0 ( the " Licen...
b837866753a283e4af4fa483489577919977f2471afa99b910670db4ca094243
basho/yokozuna
yz_exchange_fsm.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2012 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_exchange_fsm.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2012 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module...
b91194fd7aa46639f8e69a3400389ef758cd56a385af09bd4463ec8a45c767a7
hgoes/vvt
Main.hs
module Main where import Paths_vvt import System.Process import System.IO import System.Environment import System.FilePath import System.Console.GetOpt import System.Directory import Data.Version import Text.ParserCombinators.ReadP import Control.Monad.Except import Data.Char (isDigit) data Action = Verify FilePath ...
null
https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/bin/Main.hs
haskell
let clang = (proc "ls" ["-l"]) { std_out = CreatePipe }
module Main where import Paths_vvt import System.Process import System.IO import System.Environment import System.FilePath import System.Console.GetOpt import System.Directory import Data.Version import Text.ParserCombinators.ReadP import Control.Monad.Except import Data.Char (isDigit) data Action = Verify FilePath ...
16fab1d6c181fe00a3831d97da96901dd9e7b720998d11983486d66e25db2670
tomjridge/kv-lite
rocksdb_impl.ml
* Implementation using open Util module M = struct type 'a t = 'a end open M type 'a or_error = ('a,string)Stdlib.result let ( >>= ) m f = m |> f let return (x:'a) : 'a t = x let error_to_exn (x:'a or_error) = match x with | Ok x -> return x | Error e -> failwith e (* NOTE for clear, we want to just reo...
null
https://raw.githubusercontent.com/tomjridge/kv-lite/4f5377a37f3ff55504613912f38af661e4df4d4d/src/rocksdb_impl.ml
ocaml
NOTE for clear, we want to just reopen with a clean database NOTE this prints the error and exits; use set_error_hook for more nuanced behaviour delete and make a new one? batch operations can only be puts, for some reason
* Implementation using open Util module M = struct type 'a t = 'a end open M type 'a or_error = ('a,string)Stdlib.result let ( >>= ) m f = m |> f let return (x:'a) : 'a t = x let error_to_exn (x:'a or_error) = match x with | Ok x -> return x | Error e -> failwith e type t = { mutable db: Rocksdb.t; ...
0248434ba9d4dd3cfdb627bec5676e76135c6674bcbd67a1c7e3dabaa6e808b6
chaitanyagupta/chronicity
repeater-weekend.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- ;;; repeater-weekend.lisp ;;; See the LICENSE file for licensing information. (cl:in-package #:chronicity) (defclass repeater-weekend (repeater) ((current-weekend-start :initform nil))) (defmethod r-next ((repeater repeater-weekend) ...
null
https://raw.githubusercontent.com/chaitanyagupta/chronicity/5841d1548cad0ca6917d8e68933124a5af68f5ec/src/repeaters/repeater-weekend.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- repeater-weekend.lisp See the LICENSE file for licensing information. TODO: We should fix, and understand this better
(cl:in-package #:chronicity) (defclass repeater-weekend (repeater) ((current-weekend-start :initform nil))) (defmethod r-next ((repeater repeater-weekend) pointer) (with-slots (current-weekend-start now) repeater (if (not current-weekend-start) (case pointer (:future (let ...
65c12a70eefbbfb16faa703291939a2134b96cd1fc162e0d4ac33da6361bd4ce
alexj136/HWhile
DesugarIP.hs
module DesugarIP ( desugarProg ) where import PureSyntax import InterSyntax a program , that is , convert it to pure while syntax desugarProg :: InProgram -> Program desugarProg ( InProgram n r blk w ) = Program n r (desugarBlock blk) w a block desugarBlock :: InBlock -> Block desugarBlock = concat . map desug...
null
https://raw.githubusercontent.com/alexj136/HWhile/05fd675cbb5e71a2e779eaae7e8c738a3a50f46e/src/lib/DesugarIP.hs
haskell
module DesugarIP ( desugarProg ) where import PureSyntax import InterSyntax a program , that is , convert it to pure while syntax desugarProg :: InProgram -> Program desugarProg ( InProgram n r blk w ) = Program n r (desugarBlock blk) w a block desugarBlock :: InBlock -> Block desugarBlock = concat . map desug...
af74523217b7d0703a057f4828ebe0a26e2e2abb2edc9ac85eaef88b7ff5ded3
nfrisby/coxswain
Shower.hs
module Data.Sculls.Internal.Shower where | The @Bool@ is only @True@ for the leftmost argument of ' mappend ' . newtype Shower = MkShower {unShower :: Bool -> ShowS} instance Monoid Shower where mempty = MkShower (const id) MkShower f `mappend` MkShower g = MkShower $ \frst -> f frst . g False runShower :: Sho...
null
https://raw.githubusercontent.com/nfrisby/coxswain/bfd5777964a5b4ba64e1bcc4cf18df1c9d8fc558/sculls/src/Data/Sculls/Internal/Shower.hs
haskell
module Data.Sculls.Internal.Shower where | The @Bool@ is only @True@ for the leftmost argument of ' mappend ' . newtype Shower = MkShower {unShower :: Bool -> ShowS} instance Monoid Shower where mempty = MkShower (const id) MkShower f `mappend` MkShower g = MkShower $ \frst -> f frst . g False runShower :: Sho...
d57c0d755ce91359b8bd49095875c3064eb4eeff913d6d8a03096ec15df7d717
andreas/ocaml-memcached
test_async.ml
open Core.Std open Async.Std exception AssertionError of string exception AssertionFailure of string type ('suite_params, 'params) t = { before_all: unit -> 'suite_params Deferred.t; before: 'suite_params -> 'params Deferred.t; after: 'params -> unit Deferred.t; after_all: 'suite_params -> unit Deferred.t; ...
null
https://raw.githubusercontent.com/andreas/ocaml-memcached/a05432eb41dab4139819b66070a9806d92166a6b/test_async.ml
ocaml
open Core.Std open Async.Std exception AssertionError of string exception AssertionFailure of string type ('suite_params, 'params) t = { before_all: unit -> 'suite_params Deferred.t; before: 'suite_params -> 'params Deferred.t; after: 'params -> unit Deferred.t; after_all: 'suite_params -> unit Deferred.t; ...
f3bcac75e435939a795688ec08aebd2e234a706edacf313ebee57ea1a5e04674
dalaing/little-languages
Main.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where -- from 'transformers' import ...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/nb/repl/Main.hs
haskell
from 'transformers' from 'haskeline' from 'ansi-wl-pprint' local | Parses a string into a term, typechecks the term, and then evaluates it.
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where import Control.Monad.IO.Clas...
380316fd7ea2bad904ecaab9db79ea0019764be5d32ee6483a2d9200186c0da3
openmusic-project/OMChroma
ctl.lisp
;===================================================== ; CHROMA ;===================================================== part of the OMChroma library - > High - level control of sound synthesis in OM ;===================================================== ; ;This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cr-models/ctl.lisp
lisp
===================================================== CHROMA ===================================================== ===================================================== This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. See file LIC...
part of the OMChroma library - > High - level control of sound synthesis in OM modify it under the terms of the GNU General Public License File author : , by serge 07/08/2001 (in-package :om) (defun mk-array (class numcols fixedargs &rest argkeys) (let* ((rep (make-instance class :numcols numcols))...
a77005e3e8dbd6c2948cf0c7424fcacc3e63e1aac533e563325f5ae96e6f5a2a
cky/guile
inspect.scm
;;; Guile VM debugging facilities Copyright ( C ) 2001 , 2009 , 2010 , 2011 Free Software Foundation , Inc. ;;; ;;; This library 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 ; either version 3 ...
null
https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/module/system/vm/inspect.scm
scheme
Guile VM debugging facilities This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
Copyright ( C ) 2001 , 2009 , 2010 , 2011 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (system vm ins...
70c9fc7f91374535c9cb4a003066d52e5c97afebd6e5cbc9ff85ea76ca907af0
Olical/depot
outdated.clj
(ns depot.outdated (:require [clojure.java.shell :as sh] [clojure.string :as str] need for multimethods [clojure.tools.deps.alpha.extensions :as ext] [clojure.tools.deps.alpha.util.maven :as maven] [depot.zip :as dzip] [version-clj.core :as version]) (:i...
null
https://raw.githubusercontent.com/Olical/depot/afc872578fcd7a58ff67fa2eb46714436dbec28c/src/depot/outdated.clj
clojure
(ns depot.outdated (:require [clojure.java.shell :as sh] [clojure.string :as str] need for multimethods [clojure.tools.deps.alpha.extensions :as ext] [clojure.tools.deps.alpha.util.maven :as maven] [depot.zip :as dzip] [version-clj.core :as version]) (:i...
bcfec3a071dfb0215cdc44c25a26e63936b3d419b5eeddf3d91f3bf783a43e34
charlieg/Sparser
form-rules.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1992,1993,1994 -- all rights reserved ;;; ;;; File: "form rules" ;;; Module: "objects;forms:" Version : 0.2 December 1994 ;; initiated 9/3/92 v2.3 0.1 ( 10/12 ) changed the arguments 0.2 ( 6/6/93 ) ditto -- added...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/forms/form-rules.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "form rules" Module: "objects;forms:" initiated 9/3/92 v2.3 (12/30/94) added Def-syntax-rule
copyright ( c ) 1992,1993,1994 -- all rights reserved Version : 0.2 December 1994 0.1 ( 10/12 ) changed the arguments 0.2 ( 6/6/93 ) ditto -- added new - category (in-package :sparser) (defmacro def-form-rule (rhs-labels &key form referent new-category) `(def-form-ru...
216e53f007284f55890bc0b37e80149fb7b47787fe5c924ff286120041255f58
mmsbrggr/hsudoku
Type.hs
| Module : Sudoku . Type Description : Data types and constructors regarding sudokus . Copyright : ( c ) , 2017 License : MIT Defines the data types and constructors regarding sudokus . Module: Sudoku.Type Description : Data types and constructors regarding sudokus. Copyright: (c) Marcel Moosbrug...
null
https://raw.githubusercontent.com/mmsbrggr/hsudoku/7f20491c2d13213a0ba311595f3294123f7dd89c/src/Sudoku/Type.hs
haskell
Data types ---------- | The data type representing a single sudoku board. | Representing the difficulty level of a sudoku. | Turns the sudoku into a pretty string representation of a board. Parameters ---------- | The side-length of the sudoku. | The side-length of boxes in the sudokus. | The symbol represent...
| Module : Sudoku . Type Description : Data types and constructors regarding sudokus . Copyright : ( c ) , 2017 License : MIT Defines the data types and constructors regarding sudokus . Module: Sudoku.Type Description : Data types and constructors regarding sudokus. Copyright: (c) Marcel Moosbrug...
ebe19fcb1e42c38cf05b7be1c8e1975cdb4daf49551141a30e84a33e9467f61c
jepsen-io/jepsen
support.clj
(ns aerospike.support "Core DB setup and support features" (:require [clojure [pprint :refer [pprint]] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [dom-top.core :refer [with-retry letr]] [jepsen [cor...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/aerospike/src/aerospike/support.clj
clojure
asinfo helpers: Client functions: Wait for connection Wait for workable ops asinfo commands: Sends to all clustered nodes. asinfo utilities: (info "Waiting for all nodes observed") (info "Waiting for all nodes pending") (info "Waiting for all nodes active") (info "Waiting for migrations") Server setup sigh...
(ns aerospike.support "Core DB setup and support features" (:require [clojure [pprint :refer [pprint]] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [dom-top.core :refer [with-retry letr]] [jepsen [cor...
cbffa7961399b63e60812fcc64b3de109464083070dca55df034f55f5d5d62e2
mirage/ocaml-github
create_hook.ml
* Copyright ( c ) 2013 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-github/5ff0db61fe034e2bb9c76eb633727fca67960ecd/lib_test/create_hook.ml
ocaml
* Copyright ( c ) 2013 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
eb0fa3de6f6ebf8187cff9f354b0dc969c6c659f79dc4ba14833b944b79121aa
lspitzner/exference
Cont.hs
module Control.Monad.Trans.Cont where newtype Cont r a = Cont ((a -> r) -> r) -- runCont :: Cont r a -> (a -> r) -> r instance Control . . ( Cont r )
null
https://raw.githubusercontent.com/lspitzner/exference/d8a336f8b9df905e54173339f78ba892daa3f688/environment/Cont.hs
haskell
runCont :: Cont r a -> (a -> r) -> r
module Control.Monad.Trans.Cont where newtype Cont r a = Cont ((a -> r) -> r) instance Control . . ( Cont r )
3da452522e2bc31bb2382f409ba42adf65d9a7c2b5269a8a28dab8dc7e191e28
erlymon/erlymon
em_gt06_protocol_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , < > %%% @doc Erlymon is an open source GPS tracking system for various GPS tracking devices . %%% Copyright ( C ) 2015 , < > . %%% This file is part of Erlymon . %%% Erlymon is free software : yo...
null
https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/test/protocols/em_gt06_protocol_SUITE.erl
erlang
------------------------------------------------------------------- @doc but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see </>. @end -------------------------------------------------------...
@author ( C ) 2015 , < > Erlymon is an open source GPS tracking system for various GPS tracking devices . Copyright ( C ) 2015 , < > . This file is part of Erlymon . Erlymon is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
be0983e9970e711e2a678e3b169942d0ea837f3e55254d4362122cb32be5f647
lambda-pi-plus/lambda-pi-plus
Common.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE PatternSynonyms #-} module Common where import Prelude hiding (print) import Control.Monad.Except import Data.Char import Data.List import Text.PrettyPrint.HughesPJ hiding (parens) import qualified Text.PrettyPrint.HughesPJ as PP import qualified Text.Parsec as P import...
null
https://raw.githubusercontent.com/lambda-pi-plus/lambda-pi-plus/78eba7ebb7b2ed94f7cb06f0d1aca4d07eb3626f/src/Common.hs
haskell
# LANGUAGE PatternSynonyms # TODO multiFile <|> P.char '_' reserved lambdaPi "." let x = t assume x :: t, assume x :: * lhs2TeX hacking, allow to print "magic" string more lhs2TeX hacking, allow to print to files read-eval-print loop welcome enter loop Returns value's type, value with metas filled in,...
# LANGUAGE FlexibleInstances # module Common where import Prelude hiding (print) import Control.Monad.Except import Data.Char import Data.List import Text.PrettyPrint.HughesPJ hiding (parens) import qualified Text.PrettyPrint.HughesPJ as PP import qualified Text.Parsec as P import qualified Text.Parsec.Pos as Pos i...
3208914715a36fbebf0c5febb37d84b8ac0fc904af29cad261a69df2135f2af7
reborg/clojure-essential-reference
4.clj
< 1 > < 2 > (type (fn q? [])) ; <3> ;; my_package$eval1777$q_QMARK___1778
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/Types%2CClasses%2CHierarchiesandPolymorphism/TypeCheckingandCoercion/4.clj
clojure
<3> my_package$eval1777$q_QMARK___1778
< 1 > < 2 >
e910ee975d8e687869771475eeea7f3b4c88405adcff4c93b92aebee8924d07d
ksseono/the-joy-of-clojure
unify.clj
(ns joy.logic.unify (:require [clojure.walk :as walk])) ;; Listing 16.3 ;; (defn lvar? "Determines if a value represents a logic variable" [x] (boolean (when (symbol? x) (re-matches #"^\?.*" (name x))))) (comment (lvar? '?x) ;;=> true (lvar? 'a) ;;=> false (lvar? 2) ;;=> false ) ...
null
https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch16/joy/logic/unify.clj
clojure
=> true => false => false => {?x ?y, ?y 1} => {?x (?y)} => nil => [:html [:head [:title "Hi!"]] [:body [:h1 "Hi!"]]] => {?x ?y, ?y 1} => {?y 1, ?x (?y 2)}
(ns joy.logic.unify (:require [clojure.walk :as walk])) Listing 16.3 (defn lvar? "Determines if a value represents a logic variable" [x] (boolean (when (symbol? x) (re-matches #"^\?.*" (name x))))) (comment (lvar? '?x) (lvar? 'a) (lvar? 2) ) Listing 16.4 (defn satisfy1 [l r knowled...
a12a2c13b7da459efe022c687e9bf8cbf3a299221e1ab03b7fe936bacfbaa835
Frama-C/Frama-C-snapshot
numerors_domain.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/domains/numerors/numerors_domain.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
1de5d5d201dadcd0ccadfa94a22c095501fed0d11fe17d669274546e93bbb7c1
herd/herdtools7
itimer.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/a0fe203b95a1a7ba9e81208c1cf0bda27ecfd22a/herd/itimer.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2021 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
17f325ba550232d5548b1e0451dbe177a06b5c52e084291ef5360c237a79d379
schacon/erlangit
git_io.erl
%% %% Git Output Printing Functions %% -module(git_io). -export([print_log/2, print_tree/1]). -ifdef(TEST). -include("etest/git_io_test.erl"). -endif. -include("git.hrl"). print_branches(Git ) - > % print branches out to stdout %io:fwrite("Branches:~n"). print_tree([Entry|Rest]) -> io:fwrite("~-7.6s", [Entry...
null
https://raw.githubusercontent.com/schacon/erlangit/814a058ce2abcf8e46027d79d65754611f96b97c/src/git_io.erl
erlang
Git Output Printing Functions print branches out to stdout io:fwrite("Branches:~n"). traverse the reference, printing out all the log information to stdout TODO - revparse these
-module(git_io). -export([print_log/2, print_tree/1]). -ifdef(TEST). -include("etest/git_io_test.erl"). -endif. -include("git.hrl"). print_branches(Git ) - > print_tree([Entry|Rest]) -> io:fwrite("~-7.6s", [Entry#tree.mode]), io:fwrite("~s ", [Entry#tree.sha]), io:fwrite("~s~n", [Entry#tree.name]), print_t...
f032b9d9428bc658d25402fa860bbace675b8f679a6c4b5e2ea250d6d3306c4d
public-law/oregon-law-parser
Main.hs
module Main where import Amendment import Control.Arrow.Unicode import Control.Monad import Data.Aeson.Encode.Pretty (encodePretty) import qualified Data.ByteString.Lazy as B import Data.Eq.Unicode import Data.Function ((&)) import GH...
null
https://raw.githubusercontent.com/public-law/oregon-law-parser/320c2d0f9afcc2a5099532e0f5f74d55fe2cba57/analyze/src/Main.hs
haskell
module Main where import Amendment import Control.Arrow.Unicode import Control.Monad import Data.Aeson.Encode.Pretty (encodePretty) import qualified Data.ByteString.Lazy as B import Data.Eq.Unicode import Data.Function ((&)) import GH...
f77b0841055b5e7f0f7a0492824ce24f3e481f6de2874f910e9fc16927821101
luontola/varjocafe
core_test.clj
(ns varjocafe.core-test (:use midje.sweet varjocafe.testutil) (:import (org.joda.time Days LocalDate)) (:require [clj-time.core :as t] [varjocafe.core :as core] [varjocafe.settings :as settings] [varjocafe.testdata :as testdata])) (defn dates-since [start] (cons star...
null
https://raw.githubusercontent.com/luontola/varjocafe/cb4c68dce0ef5dd2031ba379dd63b63e8b9433b7/test/varjocafe/core_test.clj
clojure
XXX: Date and food constants must be updated when test data is updated.
(ns varjocafe.core-test (:use midje.sweet varjocafe.testutil) (:import (org.joda.time Days LocalDate)) (:require [clj-time.core :as t] [varjocafe.core :as core] [varjocafe.settings :as settings] [varjocafe.testdata :as testdata])) (defn dates-since [start] (cons star...
bc6deda08da35b75514b9c18e01b5ef717f6ae414cdbfd210632e5c63b7fdeb8
malcolmreynolds/GSLL
pareto.lisp
;; Pareto distribution , Sat Oct 8 2006 - 21:23 Time - stamp : < 2009 - 05 - 24 21:38:03EDT pareto.lisp > $ Id$ (in-package :gsl) ;;; /usr/include/gsl/gsl_randist.h ;;; /usr/include/gsl/gsl_cdf.h (defmfun sample ((generator random-number-generator) (type (eql 'pareto)) &key a b) "gsl_ran_pareto" ((...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/random/pareto.lisp
lisp
Pareto distribution /usr/include/gsl/gsl_randist.h /usr/include/gsl/gsl_cdf.h Examples and unit test
, Sat Oct 8 2006 - 21:23 Time - stamp : < 2009 - 05 - 24 21:38:03EDT pareto.lisp > $ Id$ (in-package :gsl) (defmfun sample ((generator random-number-generator) (type (eql 'pareto)) &key a b) "gsl_ran_pareto" (((mpointer generator) :pointer) (a :double) (b :double)) :definition :method :c-return...
11f82548693f33aa1d2d2446a161eb70c5ef1a4b1edba504091ab6ae590a0080
haslab/HAAP
OracleT5.hs
# LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # module Main where import LI11718 import OracleT4 import Mapas import OracleT3 import OracleT2 import OracleT1 import System.Environment import Test.QuickCheck.Gen import Data.List import Data.Maybe import Safe import Data.Char import Debug.Trace import GHC.F...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g186/src/OracleT5.hs
haskell
terra = Propriedades 2 3 4 2 15 180 - begin gloss --- decide ( t ) m botnunoid end gloss -- mapas4!!i { -mapas5!!i- } --mapas16!!i Tarefa6
# LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # module Main where import LI11718 import OracleT4 import Mapas import OracleT3 import OracleT2 import OracleT1 import System.Environment import Test.QuickCheck.Gen import Data.List import Data.Maybe import Safe import Data.Char import Debug.Trace import GHC.F...
ea7abcef593641fc3f3ce8183375bf7f9fa3373f754b0c5b256973646c4ba607
theobat/massalia
PlantFilter.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE N...
null
https://raw.githubusercontent.com/theobat/massalia/6bfef43b935a01938b12e25ec7515fee23104a28/dataseed/MassaliaSchema/Industry/PlantFilter.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedLists # module MassaliaSchema.Industry.PlantFilter ( PlantFi...
e02d3015995c5a1f5fe9c16d153702ff4e3af8d2b8f79d781a48dd5fa9d323ac
Dwlo/clj-sorting-algorithms
merge_sort.clj
(ns sorting-algorithms.merge-sort "Sorting using merge sort algorithm.") (defn explode "Explodes a vector with one or many values into multiples single value vectors." [vals] (for [i vals] [i])) (defn merge-sort "Merges and sorts two arrays already sorted." [[head1 & rest1 :as vals1] [head2 & rest2 :as va...
null
https://raw.githubusercontent.com/Dwlo/clj-sorting-algorithms/2f040a892d4b6468f6b747d4d2f8bab84491c982/src/sorting_algorithms/merge_sort.clj
clojure
(ns sorting-algorithms.merge-sort "Sorting using merge sort algorithm.") (defn explode "Explodes a vector with one or many values into multiples single value vectors." [vals] (for [i vals] [i])) (defn merge-sort "Merges and sorts two arrays already sorted." [[head1 & rest1 :as vals1] [head2 & rest2 :as va...
882ac1fe1e414405466cb371c2ea2d38eabe92b5796ccbb9cd96366294075893
AshleyYakeley/Truth
Unsafe.hs
module Shapes.Unsafe ( module I ) where import Unsafe.IO as I import Unsafe.Type as I
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Changes/shapes/src/Shapes/Unsafe.hs
haskell
module Shapes.Unsafe ( module I ) where import Unsafe.IO as I import Unsafe.Type as I
312f8ca9a65f1a7e53f71a3d4df19b5541ff958179239dd37ccb08e598057f56
simon-katz/lein-nomis-ns-graph
p200_options.clj
(ns leiningen.nomis-ns-graph.p100-args-and-options.p200-options (:require [leiningen.core.main :as lcm])) ;;;; ___________________________________________________________________________ (def ^:private output-spec-keys [:filename :write-gv-file?]) (defn ^:private maybe-add-source-paths [command-line-options ...
null
https://raw.githubusercontent.com/simon-katz/lein-nomis-ns-graph/e30d8af3022ee1d9b1c49571847925c45617e66b/src/leiningen/nomis_ns_graph/p100_args_and_options/p200_options.clj
clojure
___________________________________________________________________________
(ns leiningen.nomis-ns-graph.p100-args-and-options.p200-options (:require [leiningen.core.main :as lcm])) (def ^:private output-spec-keys [:filename :write-gv-file?]) (defn ^:private maybe-add-source-paths [command-line-options project] (if (:source-paths command-line...
4c2442e70ac1559372fd34db9de7bea397e8fe3b997a9efcde8f6dcda4c88982
knutin/kprof
kprof_tracer.erl
@author < > 2011 %% %% @doc Handle trace messages %% start/1 is spawned by kprof_server when the user starts a %% trace. All trace messages are forwarded to this process, which is %% responsible for actually finding the request. -module(kprof_tracer). -export([mk_tracer/2, trace_handler/2, request2graph/1]...
null
https://raw.githubusercontent.com/knutin/kprof/f5e9262183bbb765e131c650e518dc9e034c9a13/src/kprof_tracer.erl
erlang
@doc Handle trace messages trace. All trace messages are forwarded to this process, which is responsible for actually finding the request.
@author < > 2011 start/1 is spawned by kprof_server when the user starts a -module(kprof_tracer). -export([mk_tracer/2, trace_handler/2, request2graph/1]). -export([pid/1]). -record(state, {traces, returns, entrypoint, request_target}). mk_tracer(EntryPoint, RequestTarget) -> S = #state{traces = di...
b174ca77c367b5f505f0eb546d404c9337bd8121688716163081e6a887a4c761
ksseono/the-joy-of-clojure
event_sourcing.clj
;; Listing 14.2 ;; (ns joy.event-sourcing (:require [joy.generators :refer [rand-map]])) (defn valid? [event] (boolean (:result event))) (comment (valid? {}) ;;=> false (valid? {:result 42}) ;;=> true ) ;; Listing 14.3 ;; (defn effect [{:keys [ab h] :or {ab 0, h 0}} event] (let ...
null
https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch14/joy/event_sourcing.clj
clojure
=> false => true => ({}
Listing 14.2 (ns joy.event-sourcing (:require [joy.generators :refer [rand-map]])) (defn valid? [event] (boolean (:result event))) (comment (valid? {}) (valid? {:result 42}) ) Listing 14.3 (defn effect [{:keys [ab h] :or {ab 0, h 0}} event] (let [ab (inc ab) h (if (= :hit (:...
c1f059f4ef6a1478963b1df209280f8693f6ecf34090a7988fb56bbefa2da762
tip-org/tools
EqualFunctions.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE FlexibleContexts # # LANGUAGE PatternGuards # module Tip.Pass.EqualFunctions(collapseEqual, removeAliases) where import Tip.Core import Tip.Fresh import Data.Either import Data.List (delete, inits, nub) import Data.Map (Map) import qualified Da...
null
https://raw.githubusercontent.com/tip-org/tools/34350072587bd29157d18331eb895a1b2819555f/tip-lib/src/Tip/Pass/EqualFunctions.hs
haskell
| If we have > f x = E[x] f is better g is better | Pair up a list with its previous elements | If we have > g [a] x y = f [T1 a,T2 a] x y then we remove @g [t]@ and replace it with @f [T1 t,T2 t]@ everywhere
# LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE FlexibleContexts # # LANGUAGE PatternGuards # module Tip.Pass.EqualFunctions(collapseEqual, removeAliases) where import Tip.Core import Tip.Fresh import Data.Either import Data.List (delete, inits, nub) import Data.Map (Map) import qualified Da...
ffdad4f9985c30665cb6bc7c966c567328bbc04e526e15187470c3dbd5e3b1eb
spell-music/csound-expression
Build.hs
module Csound.Dynamic.Build ( -- * Expression tree -- | Working with expression tree toExp, onExp, -- * Rates -- * Queries getRates, isMultiOutSignature, getPrimUnsafe, -- * Constructors -- | Basic constructors prim, opcPrefix, oprPrefix, oprInfix, numExp1, tfm, tfmNoInlineArgs, pn, withInits, ...
null
https://raw.githubusercontent.com/spell-music/csound-expression/345df2c91c9831dd895f58951990165598504814/csound-expression-dynamic/src/Csound/Dynamic/Build.hs
haskell
* Expression tree | Working with expression tree * Rates * Queries * Constructors | Basic constructors ** Opcodes constructors * Global init statements * Arrays ---------------------------------------------- basic constructors for opcodes with single output for opcodes with multiple outputs | Converts Hask...
module Csound.Dynamic.Build ( toExp, onExp, getRates, isMultiOutSignature, getPrimUnsafe, prim, opcPrefix, oprPrefix, oprInfix, numExp1, tfm, tfmNoInlineArgs, pn, withInits, double, int, str, verbatim, instrIdE, inlineVar, gInit, gInitDouble, Spec1, spec1, opcs, opcsNoInlineArgs, opr1, opr1k, infOpr,...
1e4f241716d2d397c8fc9fa27301e5e45c35c221b2242cdfc7eb1fe16dfc263a
Kappa-Dev/KappaTools
pattern.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2023 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/868244140fe5b5a563a6ebd48baed42f785954a8/core/term/pattern.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2023 CNRS - Harvard Medical School - INRIA - IRIF type sharing_level = No_sharing | Compatible_patterns | Max_sharing let sharing_level_of_yojson = function | `String "no_sharing" -> No_sharing | `String "compatible_patterns" -> Compatible_patterns | `String "max_sharing" -> Max_sh...
56e44ca3bf2f5516010a18b7cc6f6960e914f5568510bf71a73d0339f15c8043
dhleong/wish
starter_eq_test.cljs
(ns wish.sheets.dnd5e.overlays.starter-eq-test (:require [cljs.test :refer-macros [deftest testing is]] [wish.sheets.dnd5e.overlays.starter-eq :refer [expand-starting-eq]])) (deftest expand-starting-eq-est (testing "Simple `and` UNselected" (is (= [] (expand-starting-eq [[:a...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/test/cljs/wish/sheets/dnd5e/overlays/starter_eq_test.cljs
clojure
*nothing* chosen a choice was made but later de-selected normal case; a choice has been made
(ns wish.sheets.dnd5e.overlays.starter-eq-test (:require [cljs.test :refer-macros [deftest testing is]] [wish.sheets.dnd5e.overlays.starter-eq :refer [expand-starting-eq]])) (deftest expand-starting-eq-est (testing "Simple `and` UNselected" (is (= [] (expand-starting-eq [[:a...
b47576bb7b3e8779d09ea55d72f1f9c3a3da6888e10b6e217a763a030c132527
hedgehogqa/haskell-hedgehog-classes
Functor.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE QuantifiedConstraints # {-# LANGUAGE RankNTypes #-} module Hedgehog.Classes.Functor (functorLaws) where import Hedgehog import Hedgehog.Classes.Common -- | Tests the following 'Functor' laws: -- -- [__Identity__]: @'fmap' 'id'@ ≡ @'id'@ [ _ _ Composition _ _ ] : @'fmap '...
null
https://raw.githubusercontent.com/hedgehogqa/haskell-hedgehog-classes/4d97b000e915de8ba590818f551bce7bd862e7d4/src/Hedgehog/Classes/Functor.hs
haskell
# LANGUAGE RankNTypes # | Tests the following 'Functor' laws: [__Identity__]: @'fmap' 'id'@ ≡ @'id'@
# LANGUAGE ScopedTypeVariables # # LANGUAGE QuantifiedConstraints # module Hedgehog.Classes.Functor (functorLaws) where import Hedgehog import Hedgehog.Classes.Common [ _ _ Composition _ _ ] : @'fmap ' f ' . ' ' fmap ' g@ ≡ @'fmap ' ( f ' . ' g)@ [ _ _ Const _ _ ] : @'fmap ' ( ' const ' x)@ ≡ @x ' < $ ' @ functo...
40e425f90fcea0555ae9eea3d0e13848c2c17336662dbf8dd1cbec75d60b0df4
blindglobe/clocc
defgeneric.lisp
(in-package :cluei) (defgeneric deallocate-event (event)) (defgeneric contact-callbacks (c)) (defgeneric (setf contact-callbacks) (nv c)) (defgeneric contact-compress-exposures(c)) (defgeneric contact-compress-motion(c)) (defgeneric contact-event-mask(c)) (defgeneric (setf contact-event-mask)(nv c)) (defgeneric conta...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/clue/defgeneric.lisp
lisp
(in-package :cluei) (defgeneric deallocate-event (event)) (defgeneric contact-callbacks (c)) (defgeneric (setf contact-callbacks) (nv c)) (defgeneric contact-compress-exposures(c)) (defgeneric contact-compress-motion(c)) (defgeneric contact-event-mask(c)) (defgeneric (setf contact-event-mask)(nv c)) (defgeneric conta...
71150928d1e32492f0858d988d16a7a0f751cdff11b2bef6c11b4a5c8920c093
softlab-ntua/bencherl
class_RandomManager.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca 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 , either version 3 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/random/class_RandomManager.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Management of random number generation. Now all actors, notably stochastic ones, have their own (private) ran...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
307371da7f032407b162fdc2bab93318093186167bb71f505fcdb67afd58ed33
dradtke/Lisp-Text-Editor
gendocs.lisp
(in-package :cl-user) (asdf:load-system :atdoc) (let* ((base (asdf:component-pathname (asdf:find-system :trivial-garbage))) (output-directory (merge-pathnames "doc/" base)) (css-file (merge-pathnames "doc/index.css" base))) (ensure-directories-exist output-directory) (atdoc:generate-html-documentati...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/trivial-garbage-20120107-git/gendocs.lisp
lisp
(in-package :cl-user) (asdf:load-system :atdoc) (let* ((base (asdf:component-pathname (asdf:find-system :trivial-garbage))) (output-directory (merge-pathnames "doc/" base)) (css-file (merge-pathnames "doc/index.css" base))) (ensure-directories-exist output-directory) (atdoc:generate-html-documentati...
e102942123674408f17ab0a887d3aac87979b0410d3d25a853ae251bce449709
tmattio/inquire
exn.ml
exception Exit of int exception Interrupted_by_user
null
https://raw.githubusercontent.com/tmattio/inquire/f5bb64ab8d9ed8987c8e529007cf380ab67fd9fd/lib/exn.ml
ocaml
exception Exit of int exception Interrupted_by_user
57fa7b33cc850c83151681f78fcc604e2f3c9a0f86b26c564b1942e3ed083b11
DavidAlphaFox/RabbitMQ
mochiweb_request.erl
@author < > 2007 Mochi Media , Inc. %% @doc MochiWeb HTTP Request abstraction. -module(mochiweb_request). -author(''). -include_lib("kernel/include/file.hrl"). -include("internal.hrl"). -define(QUIP, "Any of you quaids got a smint?"). -export([new/5]). -export([get_header_value/2, get_primary_header_value/...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/mochiweb-wrapper/mochiweb-git/src/mochiweb_request.erl
erlang
@doc MochiWeb HTTP Request abstraction. @type key() = atom() | string() | binary() @type value() = atom() | string() | binary() | integer() @type headers(). A mochiweb_headers structure. @type request(). A mochiweb_request parameterized module instance. @type response(). A mochiweb_response parameterized module i...
@author < > 2007 Mochi Media , Inc. -module(mochiweb_request). -author(''). -include_lib("kernel/include/file.hrl"). -include("internal.hrl"). -define(QUIP, "Any of you quaids got a smint?"). -export([new/5]). -export([get_header_value/2, get_primary_header_value/2, get_combined_header_value/2, get/2, dump...
bedd957793279abd914b73f00532a57d1ed903dcba534472d69d6c25030b4565
Frama-C/Frama-C-snapshot
slicingProject.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/slicing/slicingProject.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
0d99fa095d557cf666b8c73a469acdf93b1f2ae8dd75156ad70595034706f1f0
sdiehl/elliptic-curve
BN254D.hs
module Data.Curve.Weierstrass.BN254D ( module Data.Curve.Weierstrass , Point(..) -- * BN254D curve , module Data.Curve.Weierstrass.BN254D ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass -----------------------------------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BN254D.hs
haskell
* BN254D curve ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- | BN254D curve. | Field of coefficients of BN254D curve. # INLINABLE a_ # # INLINABLE h_ # | Affine BN254D curve point. | Jacobian BN254D...
module Data.Curve.Weierstrass.BN254D ( module Data.Curve.Weierstrass , Point(..) , module Data.Curve.Weierstrass.BN254D ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass data BN254D | Field of points of curve . type Fq = Prime Q type Q = 0x2400...
66783fe05c1c66935012452a45312d8fc74e0165ea7ff4aa49950718343307e9
rossberg/1ml
lexer.mli
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val convert_pos : Lexing.position -> Source.pos val token : Lexing.lexbuf -> Parser.token (* raises Source.Error *)
null
https://raw.githubusercontent.com/rossberg/1ml/028859a6a687d874981f440bdc5be5f8daa4a777/lexer.mli
ocaml
raises Source.Error
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val convert_pos : Lexing.position -> Source.pos
7308bf996f1658b82fc105cf6c5528019dce443d2c4b1ad7721252032509b493
crategus/cl-cffi-gtk
rtest-gio-content-type.lisp
(def-suite gio-content-type :in gio-suite) (in-suite gio-content-type) ;;; g_content_type_equals g_content_type_is_mime_type ;;; g_content_type_is_unknown ;;; g_content_type_get_description (test g-content-type-description (is (every #'stringp (mapcar #'g-content-type-descript...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gio-content-type.lisp
lisp
g_content_type_equals g_content_type_is_unknown g_content_type_get_description g_content_type_get_mime_type g_content_type_get_icon g_content_type_get_symbolic_icon g_content_type_can_be_executable g_content_type_guess g_content_type_guess_for_tree g_content_types_get_registered
(def-suite gio-content-type :in gio-suite) (in-suite gio-content-type) g_content_type_is_mime_type (test g-content-type-description (is (every #'stringp (mapcar #'g-content-type-description (g-content-types-registered))))) (test g-content-type-mime-type (is (every...
72776397e67d190f90d84b54edee6ac13a023ee2846eb5aea457ddd217ae4311
jamis/rtc-ocaml
chap06.ml
let draw_sphere sphere ray_z wall_z canvas_size = let ray_origin = RTCTuple.point 0. 0. ray_z in let wall_size = 2. *. (wall_z -. ray_z) /. (abs_float ray_z) +. 1. in let pixel_size = wall_size /. (float_of_int canvas_size) in let half = wall_size /. 2. in let light = RTCLight.point (RTCTuple.point (-10.) 10....
null
https://raw.githubusercontent.com/jamis/rtc-ocaml/f5ba04e874ef0b54d100cdabfe9a67c2b80a643f/progs/chap06.ml
ocaml
let draw_sphere sphere ray_z wall_z canvas_size = let ray_origin = RTCTuple.point 0. 0. ray_z in let wall_size = 2. *. (wall_z -. ray_z) /. (abs_float ray_z) +. 1. in let pixel_size = wall_size /. (float_of_int canvas_size) in let half = wall_size /. 2. in let light = RTCLight.point (RTCTuple.point (-10.) 10....
70f9868d1e8dcae55b865e340e6d8d5678f977f0e9fa0d3290cc82ba5ab70a42
Clozure/ccl-tests
random-types.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Oct 6 05:04:45 2003 ;;;; Contains: Generating random types and testing relationships on them (in-package :cl-test) (compile-and-load "types-aux.lsp") (compile-and-load "random-aux.lsp") (compile-and-load "random-int-form.lsp") (defparameter *random-types* n...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/random-types.lsp
lisp
-*- Mode: Lisp -*- Contains: Generating random types and testing relationships on them Add more cases here replace with component type do (print (list t1 t2)) do (print (list t1 t2)) Returns non-nil if a problem is found do (print (list t1 t2))
Author : Created : Mon Oct 6 05:04:45 2003 (in-package :cl-test) (compile-and-load "types-aux.lsp") (compile-and-load "random-aux.lsp") (compile-and-load "random-int-form.lsp") (defparameter *random-types* nil) (defun make-random-type (size) (if (<= size 1) (rcase (1 nil) (1 t) ...
ecc95285d185d6a6ef06e290d133f0c6c614a0417dc26bcc1aabe5ba18c32a3c
input-output-hk/project-icarus-importer
Web.hs
-- | Web part of wallet. {-# OPTIONS_GHC -Wno-unused-imports #-} # OPTIONS_GHC -Wno - dodgy - exports # module Pos.Wallet.Web ( module Pos.Wallet.Web.Tracking , module Pos.Wallet.Web.Swagger , module Pos.Wallet.Web.State , module Pos.Wallet.Web.Sockets , module Pos.Wallet...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet/src/Pos/Wallet/Web.hs
haskell
| Web part of wallet. # OPTIONS_GHC -Wno-unused-imports #
# OPTIONS_GHC -Wno - dodgy - exports # module Pos.Wallet.Web ( module Pos.Wallet.Web.Tracking , module Pos.Wallet.Web.Swagger , module Pos.Wallet.Web.State , module Pos.Wallet.Web.Sockets , module Pos.Wallet.Web.Server , module Pos.Wallet.Web.Pending , modul...
a691e8e0070f0507872ea39040f00d787cb015cfd1993fca2ddc506555eea056
GaloisInc/ivory
AST.hs
{-# LANGUAGE CPP #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Ivory.Language.Syntax.AST where import Prelude () import Prelude.Compat import Ivory.Language.Syntax.Concrete.Location import Ivory.Langua...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Syntax/AST.hs
haskell
# LANGUAGE CPP # Modules --------------------------------------------------------------------- | An external module that defines an imported resource. A header file in C is an example of this. ^ The name of this module ^ Included headers: lists instead of Sets because some systems depend on a particu...
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Ivory.Language.Syntax.AST where import Prelude () import Prelude.Compat import Ivory.Language.Syntax.Concrete.Location import Ivory.Language.Syntax.Names import ...
67cbd0e836202b8bb16fbc17b9feb9cd7f29379fdadc9e185e85f24f09e1b285
emqx/minirest
minirest_body_encoder.erl
Copyright ( c ) 2013 - 2022 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 of the License at %% %% -2.0 %% %% Unless required by applicable law...
null
https://raw.githubusercontent.com/emqx/minirest/e08265f8d5a2ce157912614e7c6293c7c1528ab1/src/body_encoder/minirest_body_encoder.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2013 - 2022 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(minirest_body_encoder). -include("minirest_http.hrl"). -export([ file_content_type_head...
f1ef2880dbbd76ae18c4bba1df0fc7ebabff766e96a2670749992947e1cb891e
tamarin-prover/tamarin-prover
Settings.hs
| Module : Web . Settings Description : Various default parameters and settings . Copyright : ( c ) 2011 License : GPL-3 Maintainer : < > Stability : experimental Portability : non - portable Module : Web.Settings Description : Various default parameters a...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/c78c7afd3b93b52dd4d2884952ec0fc273832a0d/src/Web/Settings.hs
haskell
| Default port to listen on. | Location of static files on the system. | The base path (URL) for serving static files. | Subdirectory to use for images. | Filename for persistent state
| Module : Web . Settings Description : Various default parameters and settings . Copyright : ( c ) 2011 License : GPL-3 Maintainer : < > Stability : experimental Portability : non - portable Module : Web.Settings Description : Various default parameters a...
ac0681fcd61dd0d69f254c0d234c1423601a8fc61014e1419910fa095129fb82
simonmar/parconc-examples
geturls8.hs
import GetURL import Async import qualified Data.ByteString as B ----------------------------------------------------------------------------- -- <<main main = do (r1,r2) <- concurrently (getURL "") (getURL "") print (B.length r1, B.length r2) -- >>
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/geturls8.hs
haskell
--------------------------------------------------------------------------- <<main >>
import GetURL import Async import qualified Data.ByteString as B main = do (r1,r2) <- concurrently (getURL "") (getURL "") print (B.length r1, B.length r2)
95ee526551ffb3237decc6ad60f8b0347309ba8054b97251b82788c17c150d50
krisajenkins/SuperBomberElf
Engine.hs
{-# LANGUAGE MultiWayIf #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Engine ( handleGameEvent ) where import Config import Control.Lens import Control.Monad.Writer import qualified Data.Map as ...
null
https://raw.githubusercontent.com/krisajenkins/SuperBomberElf/3442095fc53e7bdb0709fc60575324cfb4b948db/server/src/Engine.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE RankNTypes # ----------------------------------------------------------
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Engine ( handleGameEvent ) where import Config import Control.Lens import Control.Monad.Writer import qualified Data.Map as Map import Data.Maybe import Data.Set (Set...
165cb4a750b6d6c12a25b637a70e0fec70296e784c31a69e7832be7faed84129
Frama-C/Frama-C-snapshot
calculus.mli
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/calculus.mli
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
f8bd9913db301f0f1103e0a94aa23f598c9ba2943a0e2050610e583f56659092
Ptival/yugioh
Victory.hs
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # -- | A `Victory` describes who won a duel, and how they won it. module YuGiOh.Victory ( Victory, VictoryCondition (..), makeVictory, ) where import Control.Lens import Data.String.Interpolate import Y...
null
https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/Victory.hs
haskell
| A `Victory` describes who won a duel, and how they won it.
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module YuGiOh.Victory ( Victory, VictoryCondition (..), makeVictory, ) where import Control.Lens import Data.String.Interpolate import YuGiOh.Classes.Displayable import YuGiOh.Player data VictoryCond...
5fa1dcadde4daf31d4be2d3d2bd4e78a23ccfee4bd8c5ce2c37baea2d37b1424
nuprl/gradual-typing-performance
benchmark.rkt
#lang racket/base ;; Define & describe benchmark programs (provide ;; -- all `define-benchmark` (struct-out benchmark) ALL-BENCHMARKS ( ) benchmark-rktd ;; (-> Benchmark Version Path-String) benchmark-modulegraph ;; (-> Benchmark ModuleGraph) benchmark->num-configurations benchmark->num-modu...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/jfp-2016/benchmark.rkt
racket
Define & describe benchmark programs -- all `define-benchmark` (-> Benchmark Version Path-String) (-> Benchmark ModuleGraph) (-> Benchmark Natural) (-> Benchmark Version Natural) (-> Benchmark Benchmark Boolean) (-> Benchmark Elem) For formatting ===============================================================...
#lang racket/base (provide (struct-out benchmark) ALL-BENCHMARKS ( ) benchmark-rktd benchmark-modulegraph benchmark->num-configurations benchmark->num-modules benchmark->num-iterations benchmark->module-names ( - > Benchmark ( ) ) benchmark<? (rename-out [format:bm bm]) (all-fro...
192c9d2676cde2ebbbe954280542b9d0a7306cb5ff32dd8d5447f4f5c1e69c6e
Kappa-Dev/KappaTools
matrices.mli
module type Matrice = sig type point type line = Occu1.trans list * (Occu1.trans, Fraction.fraction) Hashtbl.t type matrice type var val mat_of_var_list : Remanent_parameters_sig.parameters -> Exception.method_handler -> var list -> Exception.method_handler * matrice val make: Remanent_parameters_sig....
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/abstract_domains/numerical_domains/matrices.mli
ocaml
module type Matrice = sig type point type line = Occu1.trans list * (Occu1.trans, Fraction.fraction) Hashtbl.t type matrice type var val mat_of_var_list : Remanent_parameters_sig.parameters -> Exception.method_handler -> var list -> Exception.method_handler * matrice val make: Remanent_parameters_sig....
4db9f5ca0a472cc2530f2cde7dbff812bd6ab815a53c0cca710fc6c7d8508279
RedPRL/algaeff
State.ml
module type Param = sig type state end module type S = sig include Param val get : unit -> state val set : state -> unit val modify : (state -> state) -> unit val run : init:state -> (unit -> 'a) -> 'a end module Make (P : Param) = struct include P type _ Effect.t += | Get : state Effect.t |...
null
https://raw.githubusercontent.com/RedPRL/algaeff/90c44ed605a25792331d9ebe6969b0fe8e318c11/src/State.ml
ocaml
module type Param = sig type state end module type S = sig include Param val get : unit -> state val set : state -> unit val modify : (state -> state) -> unit val run : init:state -> (unit -> 'a) -> 'a end module Make (P : Param) = struct include P type _ Effect.t += | Get : state Effect.t |...
63a4aaa28d8dc7ca2377f89b8cee8146d7516fbdd696db2c43ba77e994b44ef7
kmi/irs
saved-new.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology medical-ontology) (def-class clinical-instrument (medical-ontology-object) ((associated-medical-condition :type medical-condition))) (def-class patient (person) ((has-medical-condition :type medical-condition))) (de...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/medical-ontology/saved-new.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology medical-ontology) (def-class clinical-instrument (medical-ontology-object) ((associated-medical-condition :type medical-condition))) (def-class patient (person) ((has-medical-condition :type medical-condition))) (def-class medical-condition (...
f8b1a942c5c4adc0154945772093a011584d72a1aeb9ef5ddaa5c6acc99ad8bf
inconvergent/cl-veq
lets.lisp
(in-package :veq) VMVB / VLET (defun -vmvb (type dim arg expr body &key (repvarg t)) (declare (symbol arg) (list expr) (fixnum dim)) (let ((body `(mvb ((varg ,dim ,arg)) ,expr (declare (,type ,arg)) ,@body))) (if repvarg (replace-varg body) body))) (defun -vlet (typ...
null
https://raw.githubusercontent.com/inconvergent/cl-veq/04386c4019e1f7a6824fc97640458232f426c32d/src/lets.lisp
lisp
TODO: escape all variables that can cause capture in all these macros
(in-package :veq) VMVB / VLET (defun -vmvb (type dim arg expr body &key (repvarg t)) (declare (symbol arg) (list expr) (fixnum dim)) (let ((body `(mvb ((varg ,dim ,arg)) ,expr (declare (,type ,arg)) ,@body))) (if repvarg (replace-varg body) body))) (defun -vlet (typ...
5a7cb37c3e508d38b78416ba749c405284f7b3591af479890a69a97c43c7e28a
leonidas/lambda-webdev
Container.hs
# LANGUAGE ViewPatterns # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} module Network.WebSockets.Messaging.Container where import Control.Applicative import Data.Aeson import Data.Text (Text) type ReqId = Int data Container = ProtocolError !Text | ProtocolDebug !Text | Request ...
null
https://raw.githubusercontent.com/leonidas/lambda-webdev/0213745e6d2cd071007a158b1dc7a83f238bdc00/lib/Network/WebSockets/Messaging/Container.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE ViewPatterns # module Network.WebSockets.Messaging.Container where import Control.Applicative import Data.Aeson import Data.Text (Text) type ReqId = Int data Container = ProtocolError !Text | ProtocolDebug !Text | Request !ReqId !Value | Response !ReqId !Value | Notification !Value i...