_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
3b97eba8b18c0cadcaba22f37ba5324398811792d00bc902226d96473c32f9c7
noir-clojure/cljs-template
main.clj
(ns {{name}}.views.main (:require [{{name}}.views.common :as common]) (:use [noir.core :only [defpage]] [hiccup.core :only [html]])) (defpage "/" [] (common/layout [:div#content]))
null
https://raw.githubusercontent.com/noir-clojure/cljs-template/09e8fdf89854f1bb9d852d7c0916cbd96c22c79c/src/leiningen/new/cljs_template/main.clj
clojure
(ns {{name}}.views.main (:require [{{name}}.views.common :as common]) (:use [noir.core :only [defpage]] [hiccup.core :only [html]])) (defpage "/" [] (common/layout [:div#content]))
333b445511cc7e468bcf298b3722821c1f9aac01cdc4d117af029faa777a2eae
bobzhang/ocaml-book
extStream.ml
(***********************************************************************) (* *) (* pa_cexp *) (* *) ( C ) 2008...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/camlp4/examples/pa_cexp_0.01/lib/extStream.ml
ocaml
********************************************************************* pa_cexp ...
( C ) 2008 by ( ) License version 2.1 as published by the Free Software Foundation , include Stream let rec (--) a b = if a > b then [<>] else [<'a; a+1 -- b>] let rec map (s, f) = [<match s with parser [<'h>] -> [<'f h; map (s, f)>] | [<>] -> [<>]>] let rec flatten ss = ...
9be50fe5f2743ad1d20d01aadadbd021e9d6a8e537431b43c6f6f8e9e2720d24
eholk/harlan
M5.scm
(library (harlan middle languages M5) (export M5 unparse-M5 parse-M5) (import (rnrs) (nanopass) where is M4 ? ;; After desugar-match (define-language M5 (extends M3) (entry Module) (Decl (decl) (- (define-datatype (x r) pt ...) (define-datatype x pt ...)) ...
null
https://raw.githubusercontent.com/eholk/harlan/3afd95b1c3ad02a354481774585e866857a687b8/harlan/middle/languages/M5.scm
scheme
After desugar-match
(library (harlan middle languages M5) (export M5 unparse-M5 parse-M5) (import (rnrs) (nanopass) where is M4 ? (define-language M5 (extends M3) (entry Module) (Decl (decl) (- (define-datatype (x r) pt ...) (define-datatype x pt ...)) (+ (typedef x t))) ...
6598e8a4472a9b1644e985c8d190029ca4d2956c7928378113a5712c850eebab
zwizwa/staapl
actors.rkt
#lang racket/base (require data/queue racket/match) ;; FIXME: forgot essential element. It needs to be possible to pick ;; messages out-of-order from the message queue. This is a simple way ;; to allow waiting for multiple messages using nested receive ;; statements. ;; Actor evaluation. ;; Note sure whe...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/sm/actors.rkt
racket
FIXME: forgot essential element. It needs to be possible to pick messages out-of-order from the message queue. This is a simple way to allow waiting for multiple messages using nested receive statements. Actor evaluation. Note sure where this is going next. The idea is to distill state machine DAGs from the c...
#lang racket/base (require data/queue racket/match) (define-struct process (mailbox handlers) #:mutable #:transparent) (define (send pid msg) (enqueue! (process-mailbox pid) msg)) (define self (make-parameter #f)) (define processes (make-parameter (make-queue))) (define (receive/suspend alist) (s...
2cb09f3c8ebb7f2882c7af45e2a124caf567b9418965cb3c554c0216aac34a43
MarcKaufmann/congame
api.rkt
#lang racket/base (require json koyo/http koyo/json web-server/http "../components/shadow.rkt" "../components/study-instance.rkt") (provide put-instance-page) (define ((put-instance-page db) req instance-id) (let/ec esc (define the-shadow (lookup-shadow/key d...
null
https://raw.githubusercontent.com/MarcKaufmann/congame/cdb3d67a48d84457555297cce0116af44fe36be1/congame-identity/pages/api.rkt
racket
#lang racket/base (require json koyo/http koyo/json web-server/http "../components/shadow.rkt" "../components/study-instance.rkt") (provide put-instance-page) (define ((put-instance-page db) req instance-id) (let/ec esc (define the-shadow (lookup-shadow/key d...
f20f84dccea9e1a4abb2545d91e689d7096cf5588f640dd80819c43efb8fa0d2
silkapp/rest
Error.hs
# LANGUAGE CPP , FlexibleContexts , GADTs , NoImplicitPrelude # CPP , FlexibleContexts , GADTs , NoImplicitPrelude #-} #if MIN_VERSION_base(4,9,0) {-# OPTIONS_GHC -Wno-redundant-constraints #-} #endif -- | Error types that can be returned by handlers, as well as some -- utilities for m...
null
https://raw.githubusercontent.com/silkapp/rest/f0462fc36709407f236f57064d8e37c77bdf8a79/rest-core/src/Rest/Error.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # | Error types that can be returned by handlers, as well as some utilities for manipulating these errors. Error utilities. | Wrap your custom error type in a 'Reason'. This prevents the need for a Semigroup or Monoid instance for the error type, which is necessary if using...
# LANGUAGE CPP , FlexibleContexts , GADTs , NoImplicitPrelude # CPP , FlexibleContexts , GADTs , NoImplicitPrelude #-} #if MIN_VERSION_base(4,9,0) #endif module Rest.Error ( module Rest.Types.Error , mapE , orThrow , orThrowWith , eitherToStatus , domainReason , (>|<) )...
f22dd9462297a012ef27b5e485e7219e4d9f7f7b8d0b636e67589dc4a67b14b6
Bogdanp/koyo
http.rkt
#lang racket/base (require net/url racket/contract racket/format racket/string web-server/http) ;; URL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (provide url-scrub) (define/contract (url-scrub u) (-> url? url?) (struct-copy url u [path (for/list ([pp ...
null
https://raw.githubusercontent.com/Bogdanp/koyo/93f3fd06ee596a62bb0b286cb6290a800e911154/koyo-lib/koyo/http.rkt
racket
URL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Requests ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket/base (require net/url racket/contract racket/format racket/string web-server/http) (provide url-scrub) (define/contract (url-scrub u) (-> url? url?) (struct-copy url u [path (for/list ([pp (in-list (url-path u))]) (path/param (path/p...
eda39d9babe1cf623d7a5d66c32bb450d1eb35d4e882f88f2f67f5d5382ce61c
entangled/entangled
FileIO.hs
-- ~\~ language=Haskell filename=src/FileIO.hs -- ~\~ begin <<lit/a4-fileio.md|src/FileIO.hs>>[init] # LANGUAGE NoImplicitPrelude # module FileIO where import RIO -- ~\~ begin <<lit/a4-fileio.md|file-io-imports>>[init] import qualified RIO.Text as T import Errors (EntangledError(SystemError)) import Select (selectM) ...
null
https://raw.githubusercontent.com/entangled/entangled/bd3e996959f3beddba6c0727e9a11d1190e8cb7b/src/FileIO.hs
haskell
~\~ language=Haskell filename=src/FileIO.hs ~\~ begin <<lit/a4-fileio.md|src/FileIO.hs>>[init] ~\~ begin <<lit/a4-fileio.md|file-io-imports>>[init] ~\~ end ~\~ begin <<lit/a4-fileio.md|file-io-imports>>[1] ~\~ end ~\~ begin <<lit/a4-fileio.md|file-io-imports>>[2] ~\~ end ~\~ begin <<lit/a4-fileio.md|file-io-pr...
# LANGUAGE NoImplicitPrelude # module FileIO where import RIO import qualified RIO.Text as T import Errors (EntangledError(SystemError)) import Select (selectM) import RIO.Directory ( createDirectoryIfMissing, doesDirectoryExist , listDirectory, removeFile, removeDirectory ) import RIO.FilePath ...
c04f4058211072d485d4c21bf23ce5dfbbb67609271823912381952a3e98f1f1
valmirjunior0088/curios
Program.hs
module Core.Program ( Item (..) , Program (..) , check ) where import Core.Syntax (Type, Term) import qualified Core.Syntax as Syntax import Core.Bindings (Bindings) import qualified Core.Bindings as Bindings import qualified Core.Check as Check import Error (Origin (..), Error (..)) import Control.Monad ...
null
https://raw.githubusercontent.com/valmirjunior0088/curios/65d96bde4b57a4256da54a561461017a6735d1c3/src/Core/Program.hs
haskell
module Core.Program ( Item (..) , Program (..) , check ) where import Core.Syntax (Type, Term) import qualified Core.Syntax as Syntax import Core.Bindings (Bindings) import qualified Core.Bindings as Bindings import qualified Core.Check as Check import Error (Origin (..), Error (..)) import Control.Monad ...
4cad208b8ce4a910360e6e15fc86c10131241f16bf23c0ff6d21ee2238523d23
marsijanin/iolib.termios
ffi-termios-constants-unix.lisp
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*- Termios ( 3p ) api wrappers for iolib - Grovel for termios constants . ;;;; TODO: check non POSXI features for other (non linux) systems: i.e # + bsd etc . Currently non POSIX features are # + linux marked or # + ( or linux bsd ) marked i...
null
https://raw.githubusercontent.com/marsijanin/iolib.termios/b5b9009ae427682022483d5c2c096a7ad84a56a1/ffi-termios-constants-unix.lisp
lisp
-*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*- TODO: check non POSXI features for other (non linux) systems: i.e for some non posix features valid character sizes valid character sizes lflags iflags but (find :xsi *features*) return NIL so i'm leaving xsi features unmarked oflags contr...
Termios ( 3p ) api wrappers for iolib - Grovel for termios constants . # + bsd etc . Currently non POSIX features are # + linux marked or # + ( or linux bsd ) marked if they requires _ BSD_SOURCE TODO : libfixposix migration ? (in-package #:iolib.serial) (include "termios.h") (define "_XOPEN_SOURCE") ...
645153d0b5c7f03e20409ab07c94fb842626e77f830c59bec3ff99ff92b3b9db
flavioc/cl-hurd
msg-notify.lisp
(in-package :mach) ;; ;; This file defines the msg notify foreign codes. ;; (defmacro %create-msg-notify () (let* ((+notify-first+ #o100) (+notify-port-destroyed+ (+ +notify-first+ #o5)) (+notify-dead-name+ (+ +notify-first+ #o10)) (+notify-no-senders+ (+ +notify-first+ #o6))) `(defc...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/mach/msg-notify.lisp
lisp
This file defines the msg notify foreign codes.
(in-package :mach) (defmacro %create-msg-notify () (let* ((+notify-first+ #o100) (+notify-port-destroyed+ (+ +notify-first+ #o5)) (+notify-dead-name+ (+ +notify-first+ #o10)) (+notify-no-senders+ (+ +notify-first+ #o6))) `(defcenum msg-notify (:notify-port-destroyed ,+notify-p...
e51932d7c610b93716ed37a2ec701d9549f8e3c28ed2eefb3e29ff96cb2aef8c
rd--/hsc3
rd-20060911.hs
cut - outs ( rd , 2006 - 09 - 11 ) let t = impulse ar 22 0 * (sinOsc kr 0.5 0 + 1) x = mouseX kr 0.005 0.12 Exponential 0.1 y = mouseY kr 0.01 0.52 Exponential 0.1 n _ = ringz (coinGate (0.05 + lfNoise0 kr 2 + y * 0.4 + t * 0.5) (t * 0.5)) (tExpRand (mce2 500 900) 1600 t) x s = mixFill 3 n b = tRa...
null
https://raw.githubusercontent.com/rd--/hsc3/fb2ae8fb1923515938b69481a8971cc6b6d7a258/Help/Graph/rd-20060911.hs
haskell
cut - outs ( rd , 2006 - 09 - 11 ) let t = impulse ar 22 0 * (sinOsc kr 0.5 0 + 1) x = mouseX kr 0.005 0.12 Exponential 0.1 y = mouseY kr 0.01 0.52 Exponential 0.1 n _ = ringz (coinGate (0.05 + lfNoise0 kr 2 + y * 0.4 + t * 0.5) (t * 0.5)) (tExpRand (mce2 500 900) 1600 t) x s = mixFill 3 n b = tRa...
ab0f4ee041e6b92bce8232674bcdd2021a481231082dcefd838c7e00e4d09b37
avsm/mirage-duniverse
name.ml
open! Import module Format = Caml.Format let fold_dot_suffixes name ~init:acc ~f = let rec collapse_after_at = function | [] -> [] | part :: parts -> if not (String.is_empty part) && Char.equal part.[0] '@' then [String.concat (String.drop_prefix part 1 :: parts) ~sep:"."] else p...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/ppxlib/src/name.ml
ocaml
White list the following attributes, as well as all their dot suffixes. Since these attributes are interpreted by the compiler itself, we cannot check at the level of a ppx rewriter that they have been properly interpreted, so we just accept them anywhere. Sadly, the compiler silently ignores the...
open! Import module Format = Caml.Format let fold_dot_suffixes name ~init:acc ~f = let rec collapse_after_at = function | [] -> [] | part :: parts -> if not (String.is_empty part) && Char.equal part.[0] '@' then [String.concat (String.drop_prefix part 1 :: parts) ~sep:"."] else p...
0837a608e6d9411bde17e01c7203a27f4ea778adc2cb29c5e022eb4ecb7e3e1e
onaio/milia
charts_test.clj
(ns milia.api.charts-test (:refer-clojure :exclude [get]) (:require [midje.sweet :refer :all] [milia.api.charts :refer :all] [milia.api.http :refer [parse-http]] [milia.utils.remote :refer [make-url]])) (let [url :fake-url dataset-id :fake-dataset-id dataview-id "fak...
null
https://raw.githubusercontent.com/onaio/milia/e6a5b3456167523f0a6d842e52b29f8e6ad37121/test/clj/milia/api/charts_test.clj
clojure
(ns milia.api.charts-test (:refer-clojure :exclude [get]) (:require [midje.sweet :refer :all] [milia.api.charts :refer :all] [milia.api.http :refer [parse-http]] [milia.utils.remote :refer [make-url]])) (let [url :fake-url dataset-id :fake-dataset-id dataview-id "fak...
14350942c962f600235a736ecf7694632e41d9a5ce5ffc71a3058b72bed99f05
michaelmelanson/monsoon
database.erl
%%%------------------------------------------------------------------- %%% File : database.erl Author : %%% Description : %%% Created : 2008 - 03 - 18 by %%%------------------------------------------------------------------- -module(database). -behaviour(gen_server). %% API -export([start_link/0]). %% ...
null
https://raw.githubusercontent.com/michaelmelanson/monsoon/58dd3fb78da0bdbdba2adc2ba28374cb5364afaa/src/database.erl
erlang
------------------------------------------------------------------- File : database.erl Description : ------------------------------------------------------------------- API gen_server callbacks ==================================================================== API ==========================================...
Author : Created : 2008 - 03 - 18 by -module(database). -behaviour(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). -define(SERVER, ?MODULE). Function : start_link ( ) - > { ok , Pid } | ignor...
fb945ef15339fd3612bd953216c39dbf31df9087bb8811f8bb1365fbeb037a89
johnyob/dromedary
test_pr7390.ml
open! Import open Util let%expect_test "" = let str = {| type empty = Empty;; type filled = Filled;; type ('a, 'fout, 'fin) option = | None constraint 'fin = 'fout | Some of 'a constraint 'fout = filled and 'fin = empty ;; type 'fill either = | Either o...
null
https://raw.githubusercontent.com/johnyob/dromedary/a9359321492ff5c38c143385513e673d8d1f05a4/test/typing/gadts/test_pr7390.ml
ocaml
open! Import open Util let%expect_test "" = let str = {| type empty = Empty;; type filled = Filled;; type ('a, 'fout, 'fin) option = | None constraint 'fin = 'fout | Some of 'a constraint 'fout = filled and 'fin = empty ;; type 'fill either = | Either o...
96159bb35a1418f921096c360ae4520e6f7ddefabfdfffbc2fa9fcf29ee3afd6
Naupio/pical
pita_app.erl
%%%------------------------------------------------------------------- %% @doc pita public API %% @end %%%------------------------------------------------------------------- -module(pita_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%===========================================...
null
https://raw.githubusercontent.com/Naupio/pical/8d1ea236645493e8a546bc66051c16649888bbbe/apps/rdd/src/pita/src/pita_app.erl
erlang
------------------------------------------------------------------- @doc pita public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ===========================================================...
-module(pita_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> pita_sup:start_link(). stop(_State) -> ok. Internal functions
b81691d782ca04031f514292c5b86253bb9f56deb76fb1a1b55bbc854046be01
greglook/vault
core.clj
(ns vault.system.core "Functions for controlling the core Vault system's lifecycle." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [com.stuartsierra.component :as component]) (:import java.io.File)) # # System Configuration (def system "Vault system var." nil) (defn...
null
https://raw.githubusercontent.com/greglook/vault/3c117589c574bf5d3028c745b24bb4f1ac688098/src/vault/system/core.clj
clojure
## Lifecycle
(ns vault.system.core "Functions for controlling the core Vault system's lifecycle." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [com.stuartsierra.component :as component]) (:import java.io.File)) # # System Configuration (def system "Vault system var." nil) (defn...
0e7f4d34efaead5f560fbe2a3761b0fa53375937f24304e35f22905276b971c7
tomjridge/imp_fs
imp_free_ops.ml
(** Operations to get a free block; currently just a counter *) (* free space ------------------------------------------------------- *) (* all stores share the same free space map *) open Imp_pervasives open Tjr_btree.Base_types (* mref *) open Imp_state let with_world = Tjr_monad.State_passing_instance.with_wor...
null
https://raw.githubusercontent.com/tomjridge/imp_fs/ba86e8e9204c59b18f041bf21332a2a4846ae20b/_src_TODO/a_base/imp_free_ops.ml
ocaml
* Operations to get a free block; currently just a counter free space ------------------------------------------------------- all stores share the same free space map mref
open Imp_pervasives open Imp_state let with_world = Tjr_monad.State_passing_instance.with_world let free_ops = { get=(fun () -> with_world (fun t -> t.free,t)); set=(fun free -> with_world (fun t -> ((), {t with free}))); }
77c06c322b92f00385f1cec65e980d115597b301f5c90b27582e86eb5bc10437
emil0r/reverie
pages.clj
(ns reverie.admin.api.interface.frames.pages "Namespace for manipulating the tree by destructive changes. Handled through iframes." (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk] [cheshire.core :refer [enco...
null
https://raw.githubusercontent.com/emil0r/reverie/a29c223b7326e6d5a5e0874d33c37ff2fa0dfd4d/reverie-core/src/reverie/admin/api/interface/frames/pages.clj
clojure
get the boolean types, create a map of false values and merge it with the cleaned params in such a manner that the cleaned params will override the values of the booleans map. this is for boolean values not being sent by the browser when they're not filled in
(ns reverie.admin.api.interface.frames.pages "Namespace for manipulating the tree by destructive changes. Handled through iframes." (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk] [cheshire.core :refer [enco...
bf0b1d08aaa9d9cfc439306628a133add6af3f2054947df1b4ae4e3a9ecc2438
akira08280/programming-in-haskell
nim.hs
Nim example from chapter 10 of Programming in Haskell , , Cambridge University Press , 2016 . import Data.Char -- Game utilities next :: Int -> Int next 1 = 2 next 2 = 1 type Board = [Int] initial :: Board initial = [5,4,3,2,1] finished :: Board -> Bool finished = all (== 0) valid :: Board -> Int -> Int ->...
null
https://raw.githubusercontent.com/akira08280/programming-in-haskell/4067f729145429604aa7f3c8eee59b409addc685/Code/nim.hs
haskell
Game utilities IO utilities Game of nim
Nim example from chapter 10 of Programming in Haskell , , Cambridge University Press , 2016 . import Data.Char next :: Int -> Int next 1 = 2 next 2 = 1 type Board = [Int] initial :: Board initial = [5,4,3,2,1] finished :: Board -> Bool finished = all (== 0) valid :: Board -> Int -> Int -> Bool valid board ...
ca882c0158ee4ef47a6595435d32e43403f3d60d7629e8e2fb0159c1220de3b8
bufferswap/ViralityEngine
transform-state.lisp
(in-package #:virality) ;; Implementation for the defstruct TRANSFORM-STATE. (defun make-translate-state () (make-transform-state :previous (v3:zero) :current (v3:zero) :incremental (v3:zero) :incremental-delta (v3:zero) :interpolated (v3:zero))) (defun make-rotate-state () (make-transform-state ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/core-late/transform-state.lisp
lisp
Implementation for the defstruct TRANSFORM-STATE.
(in-package #:virality) (defun make-translate-state () (make-transform-state :previous (v3:zero) :current (v3:zero) :incremental (v3:zero) :incremental-delta (v3:zero) :interpolated (v3:zero))) (defun make-rotate-state () (make-transform-state :previous (q:id) :current (q:id) :incremental...
3eca82f5c793e85fb1e82ccbd047b5e0a40ea9162b96c5fd9038405940f951b9
khinsen/leibniz
drracket-buttons.rkt
#lang racket/base This code is taken from the Scribble pluging for with minor ; modifications. I don't understand what all of this does in detail, so ; this is probably not optimal. (require racket/runtime-path racket/gui/base racket/class mrlib/bitmap-label racket/system ...
null
https://raw.githubusercontent.com/khinsen/leibniz/881955b4c642114fbdc2f36ecc99582ae2371238/leibniz/drracket-buttons.rkt
racket
modifications. I don't understand what all of this does in detail, so this is probably not optimal. if (eval 'doc) goes wrong, then we assume that's because of an earlier failure, so we just don't do anything.
#lang racket/base This code is taken from the Scribble pluging for with minor (require racket/runtime-path racket/gui/base racket/class mrlib/bitmap-label racket/system net/sendurl drracket/tool-lib) (provide drracket-buttons) (module test racket/base) (defi...
38712d60ffb0b62f0d276314d2a9fe09b178a1279a1099df3ed431e89ee68f0d
wtetzner/exploding-fish
exploding_fish.clj
Copyright ( c ) 2011,2012,2013 ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ;; modify, merge, publ...
null
https://raw.githubusercontent.com/wtetzner/exploding-fish/108b7403178fd2b312c7ffa7a2c88391e48ebc19/src/org/bovinegenius/exploding_fish.clj
clojure
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( c ) 2011,2012,2013 files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (ns org.bovineg...
23b5878a658f53fa5134360683621e348ad38fa4074e93c8f38b4dc06472b9b5
tmarble/webica
core.clj
Copyright ( c ) 2016 ;; ;; This software is licensed under the terms of the Apache License , Version 2.0 which can be found in ;; the file LICENSE at the root of this distribution. (ns testing.webica.core (:require [clojure.string :as string] [clojure.test :refer [deftest testing is]] [...
null
https://raw.githubusercontent.com/tmarble/webica/c48c4a750492430607042d0f15082af7d487dc08/test/testing/webica/core.clj
clojure
This software is licensed under the terms of the the file LICENSE at the root of this distribution. inspired by #introducing-the-selenium-webdriver-api-by-example"
Copyright ( c ) 2016 Apache License , Version 2.0 which can be found in (ns testing.webica.core (:require [clojure.string :as string] [clojure.test :refer [deftest testing is]] [webica.core :as w :refer [sleep]] [webica.by :as by] [webica.chrome-driver :as chrome...
54f9aa21a4a075a6e0a79c9261149ec7b58fb2f4c79c3c97afe151e12d6bd211
ndmitchell/rattle
Benchmark.hs
# LANGUAGE RecordWildCards # module Benchmark(main) where import Benchmark.Args import qualified Benchmark.FSATrace import qualified Benchmark.Redis import qualified Benchmark.Micro import qualified Benchmark.Intro import Control.Monad benchmarks = ["fsatrace" * Benchmark.FSATrace.main ,"redis" * Benchmark....
null
https://raw.githubusercontent.com/ndmitchell/rattle/f1f10504ef175dd005c8affdddfc1fb615c040f2/benchmark/Benchmark.hs
haskell
# LANGUAGE RecordWildCards # module Benchmark(main) where import Benchmark.Args import qualified Benchmark.FSATrace import qualified Benchmark.Redis import qualified Benchmark.Micro import qualified Benchmark.Intro import Control.Monad benchmarks = ["fsatrace" * Benchmark.FSATrace.main ,"redis" * Benchmark....
33adad44aaf9f1268478b14b5016ad9094292586ca8a65238378b36f434a8581
jarmitage/jarmlib
Transport.hs
-- -moss/DrivenByMoss-Documentation/blob/master/Generic-Tools-Protocols/Open-Sound-Control-(OSC).md#receive---transport Transport OSC specs :{ " /{bwTransport } " : stop , play , , restart , repeat , click , punchIn , punchOut , record , overdub bwTransport = [OSC "/{transport}" $ ArgList [], ( OSC " /click / v...
null
https://raw.githubusercontent.com/jarmitage/jarmlib/853f6d18ab32630397be91ea89846d55e59e3d70/tidal/osc/targets/Bitwig/OSCSpecs/Transport.hs
haskell
-moss/DrivenByMoss-Documentation/blob/master/Generic-Tools-Protocols/Open-Sound-Control-(OSC).md#receive---transport Just $ VF 0 ) ] ) , -- Not defined ? { -,1 } Toggles click in preroll { 1,- } Just $ VF 0)]),-- { 0 - MAX_VALUE } { 0,1 } { 0,1 } Just $ VS " latch")]),-- { latch , touch , write } { + , - } Smal...
Transport OSC specs :{ " /{bwTransport } " : stop , play , , restart , repeat , click , punchIn , punchOut , record , overdub bwTransport = [OSC "/{transport}" $ ArgList [], { 0 - 666 } ( OSC " /tempo / tap " $ ArgList [ ( " tap " , Nothing ) ] ) , :} :{ let transport = pS "transport" tempo = pF "raw...
6a3a5fd0cbf01b2a1a78f6b419f1531f21997c60d834e5646eec12314755a1dc
EFanZh/EOPL-Exercises
exercise-2.12-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-2.12.rkt") (check-pred empty-stack? (empty-stack)) (check-false (empty-stack? (push (empty-stack) 1))) (check-false (empty-stack? (push (push (empty-stack) 1) 2))) (check-eqv? (top (push (empty-stack) 1)) 1) (check-pred empty-stack? (pop (push (empt...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-2.12-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-2.12.rkt") (check-pred empty-stack? (empty-stack)) (check-false (empty-stack? (push (empty-stack) 1))) (check-false (empty-stack? (push (push (empty-stack) 1) 2))) (check-eqv? (top (push (empty-stack) 1)) 1) (check-pred empty-stack? (pop (push (empt...
b922b529cd77b6d61a117839d3a8e2f85f8b248909d924d992e7c49f2a074eba
rtrusso/scp
const2.scm
(define x #(1 2 3 (4 5 6) "asdf")) (display (vector-length x)) (newline)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/const2.scm
scheme
(define x #(1 2 3 (4 5 6) "asdf")) (display (vector-length x)) (newline)
1901b366776a4688f74f9a81b5cc6beaf46b49f499c70edd896cedabd607e4da
nikita-volkov/hasql
Array.hs
module Hasql.Private.Decoders.Array where import Hasql.Private.Prelude import qualified PostgreSQL.Binary.Decoding as A newtype Array a = Array (ReaderT Bool A.Array a) deriving (Functor) # INLINE run # run :: Array a -> Bool -> A.Value a run (Array imp) env = A.array (runReaderT imp env) # INLINE dimension #...
null
https://raw.githubusercontent.com/nikita-volkov/hasql/0dda3e587a4d076b2ca9524b29a3ac4b1863eabe/library/Hasql/Private/Decoders/Array.hs
haskell
module Hasql.Private.Decoders.Array where import Hasql.Private.Prelude import qualified PostgreSQL.Binary.Decoding as A newtype Array a = Array (ReaderT Bool A.Array a) deriving (Functor) # INLINE run # run :: Array a -> Bool -> A.Value a run (Array imp) env = A.array (runReaderT imp env) # INLINE dimension #...
2e49a9e60e529e731fe37cf10183756a7fe066a1977f48279261796fd9a5d193
ckirkendall/enfocus
test_setup.clj
(ns enfocus.reporting.test-setup (:require [cemerick.cljs.test :refer (with-test-out)])) (defmacro setup-tests [] `(do (defmethod cemerick.cljs.test/report :fail [m#] (with-test-out (cemerick.cljs.test/inc-report-counter :fail) (println "\nFAIL in" (cemerick.cljs.test/testing-vars-s...
null
https://raw.githubusercontent.com/ckirkendall/enfocus/54ee5d1ec4c1fd603d4766caac07bfc482f65abb/test/tools/enfocus/reporting/test_setup.clj
clojure
(ns enfocus.reporting.test-setup (:require [cemerick.cljs.test :refer (with-test-out)])) (defmacro setup-tests [] `(do (defmethod cemerick.cljs.test/report :fail [m#] (with-test-out (cemerick.cljs.test/inc-report-counter :fail) (println "\nFAIL in" (cemerick.cljs.test/testing-vars-s...
1b47a12b3b888ce0b992c7f6e72e5d115caf34edc1745e9e613fa2b913db18eb
niquola/json-schema.clj
macroschema_test.clj
(ns json-schema.macroschema-test (:require [json-schema.macroschema :as sut] [json-schema.utils :as u] [clojure.test :refer :all])) (deftest test-macroschema (def rsch {:required ["a" "b" "c"]}) (is (= [{:desc "a is required" :path []} {:desc "b is required" :path []} ...
null
https://raw.githubusercontent.com/niquola/json-schema.clj/85ca313d1b64b0005b4f783c2f58c0a47ec8d009/test/json_schema/macroschema_test.clj
clojure
(def tsch {:type ["object" "string"]}) (let [validator (compile {:properties {:bar {:type "integer", :required true}}, :extends {:properties {:foo {:type "string", :required true}}}}) (is (= false (empty? (:errors res)))) res) (let [validator (compile {:properties {:bar {:type "integ...
(ns json-schema.macroschema-test (:require [json-schema.macroschema :as sut] [json-schema.utils :as u] [clojure.test :refer :all])) (deftest test-macroschema (def rsch {:required ["a" "b" "c"]}) (is (= [{:desc "a is required" :path []} {:desc "b is required" :path []} ...
6afa1f180a1f5efa6d817627cd20377f93d491305530dc2bdff6d833fd0d1499
well-typed/large-records
Options.hs
module Data.Record.Anon.Internal.Plugin.Source.Options ( -- * Options Options(..) , parseOpts -- * Mode , Mode(..) , parseMode ) where {------------------------------------------------------------------------------- Options -------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/well-typed/large-records/01856f6eb661d4001335b0ab9684d7adc20bd3ea/large-anon/src/Data/Record/Anon/Internal/Plugin/Source/Options.hs
haskell
* Options * Mode ------------------------------------------------------------------------------ Options ------------------------------------------------------------------------------ ^ Dump generated code ^ Omit the call to 'applyDiff' ------------------------------------------------------------------------------...
module Data.Record.Anon.Internal.Plugin.Source.Options ( Options(..) , parseOpts , Mode(..) , parseMode ) where data Options = Options { ^ Integrate with @typelet@ for truly O(1 ) coresize } defaultOptions :: Options defaultOptions = Options { debug = False , typelet = False , noapp...
cbd09aaaa8c135dd28f9992f2139c212d73f5ed7891043930255115a8e771069
tisnik/clojure-examples
github_steps.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (use '[cucumber+expect7.core]) (requ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/cucumber%2Bexpect7/features/step_definitions/github_steps.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (use '[cucumber+expect7.core]) (require '[expectations :refer [expect]]) (def URL "") (def API-URL "") (def context (atom {:response nil})) (System/setProperty "https.protocols" "TLSv1,TLSv1.1,TLSv1.2") (defn request [address] (let [url (new...
ddaadb06e4dfb8e3fb6cae633fe6c7bc475950304abe0bd8b6a3d572e210f3e4
nikita-volkov/rebase
Internal.hs
module Rebase.Data.Vector.Storable.Internal ( module Data.Vector.Storable.Internal ) where import Data.Vector.Storable.Internal
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Vector/Storable/Internal.hs
haskell
module Rebase.Data.Vector.Storable.Internal ( module Data.Vector.Storable.Internal ) where import Data.Vector.Storable.Internal
064446bbdc8072084ad9e6ee27dcb78bb213a5f6dbbfab2854b473951a33cc7c
aeolus-project/zephyrus
cudf_of.mli
(****************************************************************************) (* *) This file is part of Zephyrus . (* *) Z...
null
https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/output/cudf_of.mli
ocaml
************************************************************************** (at your option) any later version. ...
This file is part of Zephyrus . Zephyrus 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 Zephyru...
5e5307e1f80030cc5a147b720f3db4e6865749a96a1471cc2dba58965917e3e8
ryantm/hdbc-mysql
MySQL.hs
| Module : Database . HDBC.MySQL Copyright : Copyright ( c ) 2009 - 2010 License : LGPL Maintainer : Stability : experimental Portability : GHC This module provides a MySQL driver for the HDBC database interface . To use it , invoke the ' connectMySQL ' method to create an @D...
null
https://raw.githubusercontent.com/ryantm/hdbc-mysql/80f8077b29ee27bce4141b385a8b28f42cbbbe46/Database/HDBC/MySQL.hs
haskell
| Module : Database . HDBC.MySQL Copyright : Copyright ( c ) 2009 - 2010 License : LGPL Maintainer : Stability : experimental Portability : GHC This module provides a MySQL driver for the HDBC database interface . To use it , invoke the ' connectMySQL ' method to create an @D...
103fdc2464783ffe2ce691d30015db002b0ea7bd0edbd81186819c490bb450bb
dalaing/reflex-host-examples
Host6.hs
Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # # LANGUAGE TypeF...
null
https://raw.githubusercontent.com/dalaing/reflex-host-examples/ef3aa5f428e87b289fd7999c97ee679c231b5e05/src/Host6.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs #
Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Host6 ( ...
276cdae20a7526b40fba7fb410231a356b14e0994eef496da2059f3873f85d80
RichiH/git-annex
Fsck.hs
Sqlite database used for incremental fsck . - - Copyright 2015 < > - : - Licensed under the GNU GPL version 3 or higher . - - Copyright 2015 Joey Hess <> -: - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE QuasiQuotes , TypeFamilies , TemplateHaskell # # LANGUAGE OverloadedStrin...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Database/Fsck.hs
haskell
# LANGUAGE RankNTypes # Each key stored in the database has already been fscked as part - of the latest incremental fsck pass. The database is removed when starting a new incremental fsck pass. - - This may fail, if other fsck processes are currently running using the - database. Removing the database in that si...
Sqlite database used for incremental fsck . - - Copyright 2015 < > - : - Licensed under the GNU GPL version 3 or higher . - - Copyright 2015 Joey Hess <> -: - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE QuasiQuotes , TypeFamilies , TemplateHaskell # # LANGUAGE OverloadedStrin...
511b5f9b1352d12d7c65e1cd2fa3e0e928d4d5f3c9ec7063c7a447b40f63bbda
jordanthayer/ocaml-search
streamed_regression.ml
* @author jtd7 @since 2010 - 10 - 15 Uses our learning algorithms to do learning @author jtd7 @since 2010-10-15 Uses our learning algorithms to do learning *) module RR = Recorded_run let lms bias run get_features target = let num_points = Hashtbl.length run.RR.run in Verb.pe ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/offline_fitting/streamed_regression.ml
ocaml
* @author jtd7 @since 2010 - 10 - 15 Uses our learning algorithms to do learning @author jtd7 @since 2010-10-15 Uses our learning algorithms to do learning *) module RR = Recorded_run let lms bias run get_features target = let num_points = Hashtbl.length run.RR.run in Verb.pe ...
bfa0f40f3a2fb9b52b63a8e38a91776c0ec10e197d2b41a16661ecb0c12269c3
typedclojure/typedclojure
uniquify.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b3c9ef6786a792ae991c438ea8dca31175aa4a7/typed/cljc.analyzer/src/typed/cljc/analyzer/passes/uniquify.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns typed.cljc.analyzer.passes.uniquify (:require [typed.cljc.analyzer.ast :refer [update-children children]] [typed.cljc.analyzer.env :as env])) (defn push-new-locals-frame "Binding expressions like let/loop need to create a new locals frame befo...
8e6409550194ecb7df5b6c5421a8754fa6af124a2910bec5726fdd1f6d8d15ed
janestreet/base
printf.mli
* Functions for formatted output . [ fprintf ] and related functions format their arguments according to the given format string . The format string is a character string which contains two types of objects : plain characters , which are simply copied to the output channel , and conversion spec...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/printf.mli
ocaml
* Same as [fprintf], but does not print anything. Useful for ignoring some material when conditionally printing. * Same as [fprintf], but instead of printing on an output channel, returns a string. * Same as [fprintf], but instead of printing on an output channel, appends the formatted arguments to the given ...
* Functions for formatted output . [ fprintf ] and related functions format their arguments according to the given format string . The format string is a character string which contains two types of objects : plain characters , which are simply copied to the output channel , and conversion spec...
78208324a6cb4a85825f1e80d0f0b85f9d3570b43bae85fa47d4bd5c78aecda7
craigfe/ppx_effects
shadowed_raise.ml
let raise = `shadowed let () = match () with () -> () | [%effect? _] -> ()
null
https://raw.githubusercontent.com/craigfe/ppx_effects/140c377ea8996716aebc148fe2f1b4c7c271cb77/test/passing/shadowed_raise.ml
ocaml
let raise = `shadowed let () = match () with () -> () | [%effect? _] -> ()
16c26a3bf7e1b0991eb1b5583ca392e60890c1b1c4ee9616c15c4602e39699a1
racket/htdp
test-engine.rkt
#lang racket/base (require syntax/modread stepper/private/shared stepper/private/shared-typed stepper/private/syntax-hider stepper/private/model tests/utils/sexp-diff lang/run-teaching-program (only-in srfi/13 string-contains) racket/match ...
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-test/tests/stepper/test-engine.rkt
racket
so it can be attached. one A SIMPLE EXAMPLE OF USING THIS FRAMEWORK: note that this example uses the abbreviation from test-abbrev; don't uncomment it! you can abstract over this application with a define-syntax - the name of the test - the language level (or levels) to run in - the steps; the '::' divides ste...
#lang racket/base (require syntax/modread stepper/private/shared stepper/private/shared-typed stepper/private/syntax-hider stepper/private/model tests/utils/sexp-diff lang/run-teaching-program (only-in srfi/13 string-contains) racket/match ...
7ce2a151fa823de9b5fb1a133eef19df2e4dff1363d8de8e43daa83b3e3ffb67
heroku/cowboyku
cowboyku_rest.erl
Copyright ( c ) 2011 - 2013 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/heroku/cowboyku/ba7120bdb119ac676909e51f0738bde1d4fdd4ee/src/cowboyku_rest.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2013 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN Originally based on the Webmachine Diagram from a...
576c3756cee38d7cafffc9b495accf09dd028ecf39f8590da8f5b87ce0b7f950
silkapp/girella
Json.hs
# LANGUAGE DeriveDataTypeable , FlexibleInstances , , LambdaCase , MultiParamTypeClasses , TemplateHaskell , TypeFamilies , UndecidableInstances # DeriveDataTypeable , FlexibleInstances , GeneralizedNewtypeDeriving , LambdaCase , MultiParamTypeClasses , TemplateHaskell ...
null
https://raw.githubusercontent.com/silkapp/girella/f2fbbaaa2536f1afc5bc1a493d02f92cec81da18/src/Girella/Json.hs
haskell
| Json data stored in a postgres text column, this does not decode into a specific type.
# LANGUAGE DeriveDataTypeable , FlexibleInstances , , LambdaCase , MultiParamTypeClasses , TemplateHaskell , TypeFamilies , UndecidableInstances # DeriveDataTypeable , FlexibleInstances , GeneralizedNewtypeDeriving , LambdaCase , MultiParamTypeClasses , TemplateHaskell ...
7271a42bab883c694f9572829d6a77963d3c128a650ad3a4658bfc362b8c9de0
slindley/effect-handlers
TopLevel.hs
{- Top-level handlers -} # LANGUAGE TypeFamilies , MultiParamTypeClasses , GADTs , TypeOperators , RankNTypes , FlexibleContexts , QuasiQuotes # MultiParamTypeClasses, GADTs, TypeOperators, RankNTypes, FlexibleContexts, QuasiQuotes #-} module TopLevel ...
null
https://raw.githubusercontent.com/slindley/effect-handlers/39d0d09582d198dd6210177a0896db55d92529f4/TopLevel.hs
haskell
Top-level handlers
# LANGUAGE TypeFamilies , MultiParamTypeClasses , GADTs , TypeOperators , RankNTypes , FlexibleContexts , QuasiQuotes # MultiParamTypeClasses, GADTs, TypeOperators, RankNTypes, FlexibleContexts, QuasiQuotes #-} module TopLevel where import Handlers im...
3287544674641deaeaaffd27690718e7e2ffdb64f1b97b41f9815ed3303bb636
naproche/naproche
Statement.hs
-- | Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) -- --Syntax of ForThel statements. {-# LANGUAGE OverloadedStrings #-} module SAD.ForTheL.Statement ( statement, sTerm, anotion, dig, choice, classNotion, mapNotion ) where import Data.Set (Set) import Data.Function ((&)) import Control...
null
https://raw.githubusercontent.com/naproche/naproche/6284a64b4b84eaa53dd0eb7ecb39737fb9135a0d/src/SAD/ForTheL/Statement.hs
haskell
| Syntax of ForThel statements. # LANGUAGE OverloadedStrings # Example: x = y for every real number x. ^^^^^^^^^^^^^^^^^^^^^^^ | terms are equal, followed by optional later quantifiers. If no quantifiers are present the statement is returned as-is, otherwise the quantifiers are applied to...
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) module SAD.ForTheL.Statement ( statement, sTerm, anotion, dig, choice, classNotion, mapNotion ) where import Data.Set (Set) import Data.Function ((&)) import Control.Applicative (liftA2, (<**>), Alternative(..)) import Control.Monad (guard)...
6e083b403437fa1acd36af2b0f652ae8c8d9bfb3454da10b19d60b55f207662a
ucsd-progsys/nate
odoc_comments_global.ml
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_comments_global.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_comments_global.ml , v 1.2 ...
490a9b44a1f2fa6ad738e70fae89d41a52b57e0af673e0d06c042ebb9ab44a1e
noinia/hgeometry
ParserPrimitives.hs
# Language FlexibleContexts # {-# Language OverloadedStrings #-} module Ipe.ParserPrimitives( runP, runP' , pMany, pMany1, pChoice , pChar, pSpace, pWhiteSpace, pInteger , pNatural, pPaddedNatur...
null
https://raw.githubusercontent.com/noinia/hgeometry/cdb7c617d36cef4748f373489ef6bdc1aa39ba55/hgeometry-ipe/src/Ipe/ParserPrimitives.hs
haskell
# Language OverloadedStrings # -------------------------------------------------------------------------- | reexporting some standard combinators string parced (i.e. number of digits) and the resulting antural number. | copy of the original notFollowedBy but replaced the error message to get rid of the Show depend...
# Language FlexibleContexts # module Ipe.ParserPrimitives( runP, runP' , pMany, pMany1, pChoice , pChar, pSpace, pWhiteSpace, pInteger , pNatural, pPaddedNatural ...
0004c98092e134ea9289da378e32a351219f862d52e2eb7715d1eb00f955cb37
Mbodin/murder-generator
relation.mli
(** Module Relation Explicits the different types of relations between characters. *) (** Basic relations *) type basic = * The two characters does n’t know each other . * The two characters hate each others , or have motive to specifically hinder the actions of the other one . hinder the ...
null
https://raw.githubusercontent.com/Mbodin/murder-generator/2024a924ffb4ee12d1b7119b699346b21e098892/src/relation.mli
ocaml
* Module Relation Explicits the different types of relations between characters. * Basic relations * The characters may hinder or help each other, but it will never be an end goal: their interactions will naturally just be these kinds of temporary alliances and hindering. * The chara...
type basic = * The two characters does n’t know each other . * The two characters hate each others , or have motive to specifically hinder the actions of the other one . hinder the actions of the other one. *) * The two characters have reasons to trust each others . * Both characters try to a...
43fd2971e6781e8b354793fce4db0b7e63f0c5ceef8bf072e3d12e31c29cb197
snoyberg/conduit
ExtraSpec.hs
module Data.Conduit.ExtraSpec where import Data.Conduit import Test.Hspec import Test.Hspec.QuickCheck import Data.Conduit.List (isolate, peek, consume) import qualified Data.Conduit.List as CL import qualified Data.Text as T import qualified Data.Text.Encoding as T import qualified Data.ByteString as S import qualifi...
null
https://raw.githubusercontent.com/snoyberg/conduit/1771780ff4b606296924a28bf5d4433ae6a916f3/conduit-extra/test/Data/Conduit/ExtraSpec.hs
haskell
module Data.Conduit.ExtraSpec where import Data.Conduit import Test.Hspec import Test.Hspec.QuickCheck import Data.Conduit.List (isolate, peek, consume) import qualified Data.Conduit.List as CL import qualified Data.Text as T import qualified Data.Text.Encoding as T import qualified Data.ByteString as S import qualifi...
044cb4178f89ae8534f361c790a33029df524fe0a38abf6aa0a3e72e67e4697b
avsm/eeww
effect.mli
(**************************************************************************) (* *) (* OCaml *) (* *) , I...
null
https://raw.githubusercontent.com/avsm/eeww/23ca8b36127b337512e13c6fb8e86b3a7254d4f9/boot/ocaml/stdlib/effect.mli
ocaml
************************************************************************ OCaml ...
, Indian Institute of Technology , Madras Copyright 2021 Indian Institute of Technology , Madras the GNU Lesser General Public License version 2.1 , with the [@@@alert unstable "The Effect interface may change in incompatible ways in the future." ] * Effects . ...
16a7791b379ed41a9e00e583b4175299c79d32a4a9895c0214e0554b9665d847
tfausak/rattletrap
U32.hs
module Rattletrap.Type.U32 where import qualified Data.Word as Word import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattl...
null
https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/U32.hs
haskell
module Rattletrap.Type.U32 where import qualified Data.Word as Word import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattl...
1f34ff921c697efb715cc6a2c00e12e92412055c1d06f8e83c38f76437fbf103
nikodemus/SBCL
parms.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/sparc/parms.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. the natural width of a machine word (as seen in e.g. register width, address space) number of bits per byte where a byte is the smallest addr...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") Machine Architecture parameters : (eval-when (:compile-toplevel :load-toplevel :execute) number of...
e6f66825c8195135e34c95458169aa38cb06f92d26386a5d065517e3bd20f365
yutopp/rill
project_file.ml
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/common/project_file.ml
ocaml
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
843b377e8a2f4063d357e3724a179ccace4ebfd8d3872d78cedae8465088568a
sirherrbatka/vellum
docstring.lisp
(cl:in-package #:vellum.column) (docs:define-docs :formatter docs.ext:rich-aggregating-formatter (function column-type (:description "Type of the elements stored in the column." :arguments ((column "Data frame column.")))) (function move-iterator (:description "Shifts ITERATOR forward on all colu...
null
https://raw.githubusercontent.com/sirherrbatka/vellum/7f31e9d17aa7dd9bf5acfcac47ca6f85a05dbbd6/src/column/docstring.lisp
lisp
(cl:in-package #:vellum.column) (docs:define-docs :formatter docs.ext:rich-aggregating-formatter (function column-type (:description "Type of the elements stored in the column." :arguments ((column "Data frame column.")))) (function move-iterator (:description "Shifts ITERATOR forward on all colu...
48a8da77a739383aa76adee32c2cacedda084a80693afa31c2e31d5832441983
diagrams/diagrams-core
Core.hs
----------------------------------------------------------------------------- -- | -- Module : Diagrams.Core Copyright : ( c ) 2011 - 2015 diagrams - core team ( see LICENSE ) -- License : BSD-style (see LICENSE) -- Maintainer : -- -- The core library of primitives forming the basis of an embedded ...
null
https://raw.githubusercontent.com/diagrams/diagrams-core/eb11ff1299801e5dc2da726f749a780cb69f9ec2/src/Diagrams/Core.hs
haskell
--------------------------------------------------------------------------- | Module : Diagrams.Core License : BSD-style (see LICENSE) Maintainer : The core library of primitives forming the basis of an embedded domain-specific language for describing and rendering diagrams. Normal users of the di...
Copyright : ( c ) 2011 - 2015 diagrams - core team ( see LICENSE ) functionality from other modules in the core library . Library occasionally find it useful to directly import one of the of the relevant definitions are in the " Diagrams . Core . Types " module . Indeed the definition of the diagram ty...
d2525689bf583d258207339b642f0476d9140c14ab77fb0bd4c960a283f75d45
emqx/emqx
emqx_authz_postgresql_SUITE.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/394e8ab6a463580f02480e52cfbd876456cd2297/apps/emqx_authz/test/emqx_authz_postgresql_SUITE.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 im...
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(emqx_authz_postgresql_SUITE). -compile(nowarn_export_all). -compile(export_all). -incl...
5d683561f9ce6e48ba251c2675a908583e7f7d03fd5cdd398e56cd092a1a9f6d
futurice/haskell-mega-repo
API.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # module Futurice.App.ProxyMgmt.API where import Futurice.Lomake import Futurice.Lucid.Foundation (HtmlPage) import Futurice.Prelude import Futurice.Servant import Prelude () import Servant import Servant.API.Generic import Servant.Chart (Chart, SVG) im...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/proxy-mgmt-app/src/Futurice/App/ProxyMgmt/API.hs
haskell
Admin Commands Charts
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # module Futurice.App.ProxyMgmt.API where import Futurice.Lomake import Futurice.Lucid.Foundation (HtmlPage) import Futurice.Prelude import Futurice.Servant import Prelude () import Servant import Servant.API.Generic import Servant.Chart (Chart, SVG) im...
df80434ea108af43eefa20bc75bd78ad85ad46f905a620fe94b4143fa95a0268
haskell-servant/servant-swagger
doctests.hs
module Main where import Build_doctests (flags, pkgs, module_sources) import Data.Foldable (traverse_) import Test.DocTest main :: IO () main = do traverse_ putStrLn args doctest args where args = flags ++ pkgs ++ module_sources
null
https://raw.githubusercontent.com/haskell-servant/servant-swagger/1909e44e965dca24cb1f5cee4b08c0781dfdbff6/test/doctests.hs
haskell
module Main where import Build_doctests (flags, pkgs, module_sources) import Data.Foldable (traverse_) import Test.DocTest main :: IO () main = do traverse_ putStrLn args doctest args where args = flags ++ pkgs ++ module_sources
2a3c74173db84a1eac2800e425534280d7d2922a7abf56708f197dd24ca81b39
wireapp/wire-server
CookieList_user.hs
# LANGUAGE OverloadedLists # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program 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 , e...
null
https://raw.githubusercontent.com/wireapp/wire-server/c428355b7683b7b7722ea544eba314fc843ad8fa/libs/wire-api/test/golden/Test/Wire/API/Golden/Generated/CookieList_user.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under 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 PARTI...
# LANGUAGE OverloadedLists # Copyright ( C ) 2022 Wire Swiss GmbH < > 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 option ) any You should have received a copy of the GNU Affero General Public License along mo...
fa54913ccfc091bae44511cbdb07a7586db03d0903304248e7c7ace1a9cd8e25
jiangpengnju/htdp2e
ex134.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex134) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/arbitrarily-large-data/lists/ex134.rkt
racket
about the language level of this file in a form that our tools can easily process. Explain why this expression produces the same answers as the or expression in Which version is better? Explain. A: They share same meaning, or "semantics" Which is better? From the perspective of Clarity, I think the 'or' version ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex134) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Here is another way of formulating the second cond clause in con...
62ef1efa25c8b2a6ba68795342b3fc5dfb04972dceb1d9d054ffa7001ab6e137
ailisp/flute
package.lisp
(in-package :cl-user) (defpackage flute (:use :cl) (:import-from :assoc-utils :alist :alistp :hash-alist :aget :delete-from-alistf) (:import-from :let-over-lambda :defmacro! :mkstr :flat...
null
https://raw.githubusercontent.com/ailisp/flute/90ebcd6e82f637f49b6de7d625ccc51ec4c92900/src/package.lisp
lisp
builtin HTML elements <time> and <map> conflicts with cl symbol, are defined and exported as |time|, |map| user defined elements for reference tag name, attributes and children elements in user element definition attribute accessing utilility element slots escape utility helper for generate html string
(in-package :cl-user) (defpackage flute (:use :cl) (:import-from :assoc-utils :alist :alistp :hash-alist :aget :delete-from-alistf) (:import-from :let-over-lambda :defmacro! :mkstr :flat...
98996f2c2775a398efc4737bfb3cf7b28939de9742e099d417e8f717f2dc9673
colis-anr/colis-language
test.ml
open Format open Colis_constraints open SymbolicUtility.ConstraintsCompatibility let name = "test" (******************************************************************************) (* test *) (********************************************************...
null
https://raw.githubusercontent.com/colis-anr/colis-language/2e94f665babd6f026877262059235272f48f4ced/src/symbolic/utilities/test.ml
ocaml
**************************************************************************** test **************************************************************************** The Unary cases above are complete, everything else is an error The Binary cases above...
open Format open Colis_constraints open SymbolicUtility.ConstraintsCompatibility let name = "test" let interp_test_parse_error args : utility = specification_cases [ let descr = "test: parse error in `" ^ (String.concat " " args) ^ "`" in error_case ~descr noop ] let interp_test_empty () : utility = s...
358beaf583bac5ec6c14134f667bd56681e770cba85bd1545e0d90417a88c64c
GregoryTravis/rhythmr
ZoundCAW.hs
module ZoundCAW ( writeZounds ) where import External import Zounds import Util writeZounds :: String -> FilePath -> [Zound] -> IO [String] writeZounds fileStub dir sounds = mapM (contentAddressableWrite fileStub dir "wav" . writer) sounds where writer :: Zound -> String -> IO () writer sound filename = wri...
null
https://raw.githubusercontent.com/GregoryTravis/rhythmr/55fd5b5af6a52da16b7d730c27fb408aa3c61538/src/ZoundCAW.hs
haskell
module ZoundCAW ( writeZounds ) where import External import Zounds import Util writeZounds :: String -> FilePath -> [Zound] -> IO [String] writeZounds fileStub dir sounds = mapM (contentAddressableWrite fileStub dir "wav" . writer) sounds where writer :: Zound -> String -> IO () writer sound filename = wri...
09eeb5556c2f4e3dbe88fc402947cf14f6f64f3388e24a4b45cc495c07e2836f
ChrisPenner/rasa
Render.hs
# language FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , ExistentialQuantification # FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , ExistentialQuantification #-} module Rasa.Ext.Slate.Internal.Render ( renderAll , Renderable(..) ) where import Rasa.E...
null
https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa-ext-slate/src/Rasa/Ext/Slate/Internal/Render.hs
haskell
| Get the current terminal size. | Render the Editor | Divides up available space according to the given 'SplitRule'. | Renders widgets to images
# language FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , ExistentialQuantification # FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , ExistentialQuantification #-} module Rasa.Ext.Slate.Internal.Render ( renderAll , Renderable(..) ) where import Rasa.E...
0cd971cd9d25b2f7e72bc78d5d7106f69ee1cf8cce40ed7fef18b6c2d416fbdc
spawnfest/eep49ers
dets.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2018 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/src/dets.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2018 . 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(dets). -export([all/0, bchunk/2, close/1, delete/2, delete_all_objects/1, ...
0b5e7c72c7732800e7bf7568155bf2236da4fecd83f8a0990f714150a2b91785
corecursive/sicp-study-group
ex01_24.scm
* Exercise 1.24 :* Modify the ` timed - prime - test ' procedure of * Note Exercise 1 - 22 : : to use ` fast - prime ? ' ( the Fermat method ) ;; `fast-prime?' procedure (define (fast-prime? n times) (define (expmod base exp m) (sleep 1) ;; artificial sleep (cond ((= exp 0) 1) ((even? ...
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/d87da159d16d09493fd500f736c186edfeecfb83/plundaahl/exercises/ex01_24.scm
scheme
`fast-prime?' procedure artificial sleep and prints the time taken for each. I have nested the prime test functions, just because Note that this function will return #t/#f depending on the result of prime? Utility sleep function, because even my potato computer is too fast! explain any discrepancy you find?...
* Exercise 1.24 :* Modify the ` timed - prime - test ' procedure of * Note Exercise 1 - 22 : : to use ` fast - prime ? ' ( the Fermat method ) (define (fast-prime? n times) (define (expmod base exp m) (cond ((= exp 0) 1) ((even? exp) (remainder (square (expmod base (/ exp 2) m))...
c6997e457bdb7e940f9292a463f45e183f160a33871bd7966c7ae58385ce7f41
subtitle-master/subtitlemaster
open_subtitles.cljs
(ns sm.sources.open-subtitles (:require-macros [wilkerdev.util.macros :refer [<? go-catch]]) (:require [wilkerdev.util.nodejs :refer [lstat fopen fread] :as node] [wilkerdev.util :as util] [wilkerdev.util.reactive :as r] [sm.util :as sm-util] [sm.protocols :refer [Sea...
null
https://raw.githubusercontent.com/subtitle-master/subtitlemaster/d88c2fb007c6c3d4030fefbd4b7e3eafb0e797a9/src/cljs/sm/sources/open_subtitles.cljs
clojure
TODO: implement auto-search when it's working
(ns sm.sources.open-subtitles (:require-macros [wilkerdev.util.macros :refer [<? go-catch]]) (:require [wilkerdev.util.nodejs :refer [lstat fopen fread] :as node] [wilkerdev.util :as util] [wilkerdev.util.reactive :as r] [sm.util :as sm-util] [sm.protocols :refer [Sea...
22ab7409c65d0804375b8384025e38f393652af050eff207704402ede2fa1b3e
danlentz/cl-btree
mock.lisp
(in-package :common-lisp-user) (defpackage :unit-test.mock (:nicknames :mock) (:use :common-lisp :asdf) (:export #:with-mock-function #:with-mock-functions)) (in-package :unit-test.mock) (defmacro with-mock-function ((function-name mock) &body body) (let ((old (gensym))) `(let ((,ol...
null
https://raw.githubusercontent.com/danlentz/cl-btree/ff422472c4d3e8172d6fae85063eb8c40f18404d/vendor/mock.lisp
lisp
(in-package :common-lisp-user) (defpackage :unit-test.mock (:nicknames :mock) (:use :common-lisp :asdf) (:export #:with-mock-function #:with-mock-functions)) (in-package :unit-test.mock) (defmacro with-mock-function ((function-name mock) &body body) (let ((old (gensym))) `(let ((,ol...
91ddc5a7ce0d47cf83fafd01af95a2121a3aab455807c634ccb38c577c0624b0
ocaml/ocaml-re
re_posix.ml
[@@@deprecated "Use Re.Posix"] include Re.Posix
null
https://raw.githubusercontent.com/ocaml/ocaml-re/09c2745a2d8d1517b3d597396e82e122903b0017/deprecated/re_posix.ml
ocaml
[@@@deprecated "Use Re.Posix"] include Re.Posix
a3a786413a94e5eb917e621b4c5e92a2b88612625b6e92e01501e2e75c6eade2
chrisdone/hell
Main.hs
{-# LANGUAGE OverloadedStrings #-} -- | Test suite. module Main where import Data.Foldable import Hell.Lexer import Hell.Types import Test.Hspec import qualified Text.Megaparsec as Mega main :: IO () main = hspec spec spec :: SpecWith () spec = lexer lexer :: SpecWith () le...
null
https://raw.githubusercontent.com/chrisdone/hell/3cda9573b56047c670ef764478cd996a20079b33/test/Main.hs
haskell
# LANGUAGE OverloadedStrings # | Test suite.
module Main where import Data.Foldable import Hell.Lexer import Hell.Types import Test.Hspec import qualified Text.Megaparsec as Mega main :: IO () main = hspec spec spec :: SpecWith () spec = lexer lexer :: SpecWith () lexer = describe "Lexer" (describe "U...
b6b1f5dc4c13b641eb8fdcef95558841b3b019b5abc1435dd2395dc57ba64931
diprism/perpl
Exprs.hs
Datatypes representing PPL code structures module Struct.Exprs where import Data.String (IsString(fromString)) The program goes through three stages : 1 . The parser produces a user - level program ( UsProgs , UsTm , UsTp ) . 2 . Type inference turns it into a scheme - ified program ( SProgs , Term , Type )...
null
https://raw.githubusercontent.com/diprism/perpl/047aee0070993df61ed47e329948d64731c5b6c7/src/Struct/Exprs.hs
haskell
User-level program definitions, main Individual user-level definition Scheme-ified definition Scheme-ified program definitions, main definitions, main ctor name, param types Variable bound by lambda bound by define, extern, data rhs ctors bound by data Arg is (tm : tp) User-level term x \ x : tp. tm tm...
Datatypes representing PPL code structures module Struct.Exprs where import Data.String (IsString(fromString)) The program goes through three stages : 1 . The parser produces a user - level program ( UsProgs , UsTm , UsTp ) . 2 . Type inference turns it into a scheme - ified program ( SProgs , Term , Type )...
b8b2f88d83cc1881cb1145ca7aa07aa8c415ff4956c43bda7e9c4da6e8102a47
adrieng/melitte
UnicodeSigil.mli
type encoding = | ASCII | UTF8 val encoding_of_string : string -> encoding option val set_encoding : encoding -> unit type t val string : t -> string val doc : t -> PPrint.document val pp : Format.formatter -> t -> unit val lambda : t val forall : t val srarrow : t val drarrow : t val slarrow : t val dl...
null
https://raw.githubusercontent.com/adrieng/melitte/1906bfabd8848a50728b2175e5ab915f78f07e99/src/UnicodeSigil.mli
ocaml
type encoding = | ASCII | UTF8 val encoding_of_string : string -> encoding option val set_encoding : encoding -> unit type t val string : t -> string val doc : t -> PPrint.document val pp : Format.formatter -> t -> unit val lambda : t val forall : t val srarrow : t val drarrow : t val slarrow : t val dl...
01e83bd9a5e8b97d8d1e5c2e8549c536b248943fb125e072898356aa347c6140
gigamonkey/toot
taskmaster.lisp
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; * Redistributions of source code must reta...
null
https://raw.githubusercontent.com/gigamonkey/toot/90f3854f2e548c9ad102c53caba834255dfabfa2/taskmaster.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form mus...
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :toot) (defgeneric execute-acceptor (taskmaster...
03dca98058bc51a839671ccf89f0f69dd1cdb214aca669123542c460d6a0000d
felipeZ/Haskell-abinitio
SerializeBasis.hs
| Module : Science . QuantumChemistry . BasisSet . SerializeBasis Description : Store plain - text basis into binary format Copyright : Module: Science.QuantumChemistry.BasisSet.SerializeBasis Description: Store plain-text basis into binary format Copyright: @2016 Felipe Zapata -} module Science.QuantumChe...
null
https://raw.githubusercontent.com/felipeZ/Haskell-abinitio/c019bc37c8de78affddf97eb858c1ef18af76d83/Science/QuantumChemistry/BasisSet/SerializeBasis.hs
haskell
=================> Internal Modules <====================== =======================> <==============================
| Module : Science . QuantumChemistry . BasisSet . SerializeBasis Description : Store plain - text basis into binary format Copyright : Module: Science.QuantumChemistry.BasisSet.SerializeBasis Description: Store plain-text basis into binary format Copyright: @2016 Felipe Zapata -} module Science.QuantumChe...
101deb2b26f1816e6aa95e32499a334bae4d40d87f2a9371c96ae23149ff7d70
Apress/practical-webdev-haskell
Lib.hs
module Lib ( main ) where import ClassyPrelude import qualified Adapter.RabbitMQ.Common as MQ import qualified Adapter.RabbitMQ.Auth as MQAuth import qualified Adapter.InMemory.Auth as M import qualified Adapter.PostgreSQL.Auth as PG import qualified Adapter.Redis.Auth as Redis import qualified Adapter.HTTP.Main a...
null
https://raw.githubusercontent.com/Apress/practical-webdev-haskell/17b90c06030def254bb0497b9e357f5d3b96d0cf/08/src/Lib.hs
haskell
module Lib ( main ) where import ClassyPrelude import qualified Adapter.RabbitMQ.Common as MQ import qualified Adapter.RabbitMQ.Auth as MQAuth import qualified Adapter.InMemory.Auth as M import qualified Adapter.PostgreSQL.Auth as PG import qualified Adapter.Redis.Auth as Redis import qualified Adapter.HTTP.Main a...
5a673938a131968b3707a1a91487333acbf0c0f68393c5284a6950cdb58642ba
colis-anr/colis-language
options.ml
type unknown_behaviour = Exception | Incomplete | Error let unknown_behaviour = ref Exception let real_world = ref false let external_sources = ref "" let print_states_dir = ref "" let cpu_time_limit = ref infinity let memory_limit = ref max_int (* memory limit stored in words *) let set_memory_limit s = let l = S...
null
https://raw.githubusercontent.com/colis-anr/colis-language/14b8087fa6323fb817d32c07236a2a084def01a1/src/internals/options.ml
ocaml
memory limit stored in words
type unknown_behaviour = Exception | Incomplete | Error let unknown_behaviour = ref Exception let real_world = ref false let external_sources = ref "" let print_states_dir = ref "" let cpu_time_limit = ref infinity let set_memory_limit s = let l = String.length s in if l = 0 then (); let m = match s.[l...
a0fc618848c363c8e6a752d579343a0a5474d666131d2b8966c4f01fdb11581e
vernemq/vernemq
vmq_status_http.erl
Copyright 2018 Erlio GmbH Basel Switzerland ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/vernemq/vernemq/72b565d20defbc2339d4c2cb8f19daba80357305/apps/vmq_server/src/vmq_status_http.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 2018 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_status_http). -behaviour(vmq_http_config). -include("vmq_metrics.hrl"). -export([routes/0, is_authorized/2]). -e...
9d7ac2de61fc9a062a3984d4ae06d3c11b0f7f08982a1fdb1f6e27c10b2824e4
zachallaun/datomic-cljs
rest_client.cljs
(ns datomic-cljs.rest-client (:require [datomic-cljs.http :as http]))
null
https://raw.githubusercontent.com/zachallaun/datomic-cljs/a2accf1d999b7d6a554a9322f52b230eae1b58b3/src/datomic_cljs/rest_client.cljs
clojure
(ns datomic-cljs.rest-client (:require [datomic-cljs.http :as http]))
f5421c3a4d8d0754d55a6e5a8ffe8f8bd54fc27466be6e44ac098c5fa0aac0f8
arrdem/katamari
extensions.clj
(ns katamari.server.extensions "The server's middleware extension interface." {:authors ["Reid 'arrdem' McKenzie <>"]} (:require [clojure.string :as str] [clojure.spec.alpha :as s] [ring.util.response :as resp])) FIXME ( arrdem 2018 - 09 - 29 ): ;; ;; Does it make sense to have the wh...
null
https://raw.githubusercontent.com/arrdem/katamari/55e2da2c37c02774a1332e410ceebee0a0742d27/src/katamari/src/katamari/server/extensions.clj
clojure
Does it make sense to have the whole stack the middleware protocol? Are there better tools for trampolining requests? The task protocol is that tasks are middleware functions [handler] -> [config stack request] -> resp "Handlers" should attempt to parse or otherwise recognize requests they can should NO...
(ns katamari.server.extensions "The server's middleware extension interface." {:authors ["Reid 'arrdem' McKenzie <>"]} (:require [clojure.string :as str] [clojure.spec.alpha :as s] [ring.util.response :as resp])) FIXME ( arrdem 2018 - 09 - 29 ): process , and produce a Ring response ...
bb5172c4fe147d1fe791a8222f0a25d97db01f7227e9db8b2d050a3983a53dde
cyga/real-world-haskell
QC.hs
file : ch11 / QC.hs instance Arbitrary Char where arbitrary = elements (['A'..'Z'] ++ ['a' .. 'z'] ++ " ~!@#$%^&*()") file : ch11 / QC.hs instance Arbitrary Doc where arbitrary = do n <- choose (1,6) :: Gen Int case n of 1 -> return Empty 2 -> do x <- arbitrary ...
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch11/QC.hs
haskell
file : ch11 / QC.hs instance Arbitrary Char where arbitrary = elements (['A'..'Z'] ++ ['a' .. 'z'] ++ " ~!@#$%^&*()") file : ch11 / QC.hs instance Arbitrary Doc where arbitrary = do n <- choose (1,6) :: Gen Int case n of 1 -> return Empty 2 -> do x <- arbitrary ...
535cf34d1f38e9b877059ef3de1c7c424b9cc27dfd25b7a710c4068b460f0267
blindglobe/clocc
string.lisp
;;; String Utilities ;;; Copyright ( C ) 1997 - 2008 by This is Free Software , covered by the GNU GPL ( v2 + ) ;;; See ;;; $ I d : , v 1.17 2008/06/16 16:02:33 sds Exp $ ;;; $Source: /cvsroot/clocc/clocc/src/cllib/string.lisp,v $ (eval-when (:compile-toplevel :load-toplevel :execute) (require :cllib-base ...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/cllib/string.lisp
lisp
String Utilities See $Source: /cvsroot/clocc/clocc/src/cllib/string.lisp,v $ `index-t' }}} string.lisp ends here
Copyright ( C ) 1997 - 2008 by This is Free Software , covered by the GNU GPL ( v2 + ) $ I d : , v 1.17 2008/06/16 16:02:33 sds Exp $ (eval-when (:compile-toplevel :load-toplevel :execute) (require :cllib-base (translate-logical-pathname "clocc:src;cllib;base")) (require :cllib-withtype (translate-logical...
5bcdd3c50ebb28f50b626cb103a2dbfa837e56ec61de18304a6a6f6f9d46ed82
links-lang/links
webif.ml
open Notfound open List open Proc open ProcessTypes open Webserver_types open Utility let ( >>= ) = Lwt.bind module WebIf = functor (Webs : WEBSERVER) -> struct module S = Serialisation.MarshalSerialiser module U = Serialisation.UnsafeJsonSerialiser module Eval = Evalir.Eval(Webs) type web_request = | ...
null
https://raw.githubusercontent.com/links-lang/links/97f3fd9205c20c5cb6a5aaad2c33a632c2ab270a/core/webif.ml
ocaml
thunk continuation argument function closure environment arguments There is an artificial distinction between primitive functions (builtin functions) and function pointers (functions defined as part of a Links program). This is the point where we have to do something about it in order ...
open Notfound open List open Proc open ProcessTypes open Webserver_types open Utility let ( >>= ) = Lwt.bind module WebIf = functor (Webs : WEBSERVER) -> struct module S = Serialisation.MarshalSerialiser module U = Serialisation.UnsafeJsonSerialiser module Eval = Evalir.Eval(Webs) type web_request = | ...
0dbe49d337edc2f2531e1392bbeb27bb18a577078e5a91553752edf273046fe5
fyquah/hardcaml_zprize
config.ml
module type S = Config_intf.S
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/hardcaml_axi/src/config.ml
ocaml
module type S = Config_intf.S
2ae7f2cf8e48e2855e561d71d36c4ea225fe49b8c87ab4b8d03ae7bf9f2f6553
janestreet/bonsai
main.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Gallery = Bonsai_web_ui_gallery module User_defined_notification = struct let name = "User defined notifications" let description = {| You can define your own notification type to represent your domain specific logic. The API also gives you con...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/notifications/main.ml
ocaml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Gallery = Bonsai_web_ui_gallery module User_defined_notification = struct let name = "User defined notifications" let description = {| You can define your own notification type to represent your domain specific logic. The API also gives you con...
3ebd66cdd152e2b6d94097166bc8e506c7510ec55cf0dc72f5f8c12134be9f60
racketscript/racketscript
let.rkt
#lang racket (define (foobar a b) (let ([c (+ a a)]) (+ c (let ([a 2]) (* a b (let ([b 10]) b)))))) (displayln (equal? (foobar 5 7) 150))
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/basic/let.rkt
racket
#lang racket (define (foobar a b) (let ([c (+ a a)]) (+ c (let ([a 2]) (* a b (let ([b 10]) b)))))) (displayln (equal? (foobar 5 7) 150))
94868b547df61cf31a8be140bccbb1c15e9837f90a4ab1ca44154e52fda1d8ce
Bodigrim/quote-quot
Test.hs
-- | Copyright : ( c ) 2020 - 2022 Licence : BSD3 -- # LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # module Main (main) where import Data.Bits import Data.Int import Data.Proxy import Data.Word import Nu...
null
https://raw.githubusercontent.com/Bodigrim/quote-quot/0d6ba7f7bf2f96c051fc74a68210b6fd253fe0b9/tests/Test.hs
haskell
|
Copyright : ( c ) 2020 - 2022 Licence : BSD3 # LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # module Main (main) where import Data.Bits import Data.Int import Data.Proxy import Data.Word import Numeric.Qu...
7647f5652d1ff47b9e81ac19b97919d71f3a2fbe5ecb25fd0240120abc99a70e
voxoz/emqttd
emqttd_lib_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) %% 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 %% %% ...
null
https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/test/emqttd_lib_SUITE.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 ) 2013 - 2017 EMQ Enterprise , Inc. ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqttd_lib_SUITE). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). -define(SOCKOPTS, [ binar...
8e50944d16461c23574e2d6f024b60a9c6978dcca77fb09318cd66b0c9fd0820
pfdietz/ansi-test
numberp.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Sep 6 18:20:36 2003 Contains : Tests of NUMBERP (deftest numberp.error.1 (signals-error (numberp) program-error) t) (deftest numberp.error.2 (signals-error (numberp 0 nil) program-error) t) (deftest numberp.error.3 (signals-error (numberp 'a n...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/numbers/numberp.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat Sep 6 18:20:36 2003 Contains : Tests of NUMBERP (deftest numberp.error.1 (signals-error (numberp) program-error) t) (deftest numberp.error.2 (signals-error (numberp 0 nil) program-error) t) (deftest numberp.error.3 (signals-error (numberp 'a nil nil) program-error) ...
6a2e0fc81fc8290eae184c33976c8fc97a74d5358f368f9f5e58363a9609053d
rems-project/lem
either.ml
type ('a, 'b) either = | Left of 'a | Right of 'b let either_case fa fb x = match x with | (Left a) -> fa a | (Right b) -> fb b let eitherEqualBy eql eqr (left: ('a, 'b) either) (right: ('a, 'b) either) = match (left, right) with | ((Left l), (Left l')) -> eql l l' | ((Right r), (Right r')) -> eq...
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/ocaml-lib/either.ml
ocaml
type ('a, 'b) either = | Left of 'a | Right of 'b let either_case fa fb x = match x with | (Left a) -> fa a | (Right b) -> fb b let eitherEqualBy eql eqr (left: ('a, 'b) either) (right: ('a, 'b) either) = match (left, right) with | ((Left l), (Left l')) -> eql l l' | ((Right r), (Right r')) -> eq...
eea68369ebcd9b366ff9dda936158069761511c802ae7ea8fea97ce337535800
input-output-hk/cardano-base
Seed.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # -- | Seeds for key generation. -- module Cardano.Crypto.Seed ( Seed -- * Constructing seeds , mkSeedFromBytes , getSeedBytes , readSeedFromSystemEntropy , splitSeed , expandSeed -- * Using seeds , ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-base/1ea947d123981193a6055a193bc2b0e5fd5001ba/cardano-crypto-class/src/Cardano/Crypto/Seed.hs
haskell
# LANGUAGE RankNTypes # | Seeds for key generation. * Constructing seeds * Using seeds | A seed contains a finite number of bytes, and is used for seeding cryptographic algorithms including key generation. This is not itself a PRNG, but can be used to seed a PRNG. | Construct a 'Seed' deterministically from a...
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # module Cardano.Crypto.Seed ( Seed , mkSeedFromBytes , getSeedBytes , readSeedFromSystemEntropy , splitSeed , expandSeed , getBytesFromSeed , getBytesFromSeedT , runMonadRandomWithSeed , SeedBytesExhausted(..) ) where import ...
3726a728c56ec057470cc759f869e30a6c3a095aeb2b65ae02a8dfb16c72fee3
xapi-project/stdext
test.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/stdext/bcc64a49327c4c9b1e8a679c15515101c88ba847/lib/xapi-stdext-encodings/test.ml
ocaml
Pull in the infix operators from Encodings used in this test === Mock exceptions ==================================================== * Simulates a decoding error. === Mock types =========================================================== * Generates mock character widths, in bytes. === Mock UCS validators ===...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
12e7e58a79f760a1f0716f112c2019e133e9270fe86f57ddc2204f249c053b52
dfinity/motoko
definition.ml
module Lsp = Lsp.Lsp_t module DI = Declaration_index let position_of_pos (pos : Source.pos) : Lsp.position = Lsp. { The LSP spec requires zero - based positions position_line = (if pos.Source.line > 0 then pos.Source.line - 1 else 0); position_character = pos.Source.column; } let range_of_regi...
null
https://raw.githubusercontent.com/dfinity/motoko/209bc0429c06e5a578ada2bd87306456a6dc325f/src/languageServer/definition.ml
ocaml
Find the relevant path for the declaration Update `path` from the relevant module Try to find the start/end cursor range in the relevant module Note: ignoring `path` output value from `find_named` Unresolved identifiers in the same file By default, point to the top of the relevant file TODO: use the module...
module Lsp = Lsp.Lsp_t module DI = Declaration_index let position_of_pos (pos : Source.pos) : Lsp.position = Lsp. { The LSP spec requires zero - based positions position_line = (if pos.Source.line > 0 then pos.Source.line - 1 else 0); position_character = pos.Source.column; } let range_of_regi...
8f4e45e2840d904840f68b7df98b397a9aedc4b729cdece71c99dc8d7be4a436
GregoryTravis/rhythmr
Loop.hs
# LANGUAGE DeriveGeneric # module Loop ( Loop(..) , loopFilename , getHash , getSourceTrackHash , getSourceTrackName ) where import Data.Binary import Data.List.Split (splitOn) import GHC.Generics (Generic) import System.FilePath.Posix (dropExtension, takeBaseName) import System.IO.Unsafe (unsafePerformIO) import Me...
null
https://raw.githubusercontent.com/GregoryTravis/rhythmr/55fd5b5af6a52da16b7d730c27fb408aa3c61538/src/Loop.hs
haskell
# LANGUAGE DeriveGeneric # module Loop ( Loop(..) , loopFilename , getHash , getSourceTrackHash , getSourceTrackName ) where import Data.Binary import Data.List.Split (splitOn) import GHC.Generics (Generic) import System.FilePath.Posix (dropExtension, takeBaseName) import System.IO.Unsafe (unsafePerformIO) import Me...
c8537f1d80d0885af367b667555f30925a585ca62c95cfab5e73fe49768f00b5
travelping/capwap
capwap_app.erl
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > %% This program 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 option) any later version. %% Thi...
null
https://raw.githubusercontent.com/travelping/capwap/c2e503c5ad7d6b4c0ff3df2a4d5deed73d5f7c51/src/capwap_app.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General P...
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > 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(capwap_app). -behaviour(applica...
8e1ec76ffa60c3bd72a3633c4bfaacaf2ee116690ffa4f59593eb7484ff1f551
junegunn/treely
style.clj
(ns treely.style "A predefined set of maps for tree styles. Each map defines the following attributes: - `:indent` - `:bar` - `:branch` - `:last-branch`") (def unicode "Tree style with Unicode characters (default)" {:indent " " :bar "│   " :branch "├── " :last-branch "└─...
null
https://raw.githubusercontent.com/junegunn/treely/62f159c7ad24c67a9007138405f985335383ab0c/src/treely/style.clj
clojure
(ns treely.style "A predefined set of maps for tree styles. Each map defines the following attributes: - `:indent` - `:bar` - `:branch` - `:last-branch`") (def unicode "Tree style with Unicode characters (default)" {:indent " " :bar "│   " :branch "├── " :last-branch "└─...
7ad935172e822a7633fe7b32ff5ee98506f66cf9709f8a2b6ca21ef9b66ef59f
yomimono/stitchcraft
positioning.ml
open Types let dimensions paper = let dpi = 72. in let get_points = Pdfunits.convert dpi Pdfpaper.(unit paper) Pdfunits.PdfPoint in let margin_points = Pdfunits.(convert dpi Inch PdfPoint 0.5) in let max_x = (get_points Pdfpaper.(width paper)) -. margin_points and max_y = (get_points Pdfpaper.(height paper)...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/b1ec89478e284c691d769d9f4f1f32fbe4756fdf/pattern/lib/positioning.ml
ocaml
on the page, find the right upper-left-hand corner for this pixel given the x and y coordinates and `t` representing this page
open Types let dimensions paper = let dpi = 72. in let get_points = Pdfunits.convert dpi Pdfpaper.(unit paper) Pdfunits.PdfPoint in let margin_points = Pdfunits.(convert dpi Inch PdfPoint 0.5) in let max_x = (get_points Pdfpaper.(width paper)) -. margin_points and max_y = (get_points Pdfpaper.(height paper)...
62cf3207a72ef810b6625ca6bf255eb78f90af38f9f90428f8d196ec7fc6eb6b
kupl/FixML
sub30.ml
type formula = TRUE | FALSE | NOT of formula | ANDALSO of formula * formula | ORELSE of formula * formula | IMPLY of formula * formula | LESS of expr * expr and expr = NUM of int | PLUS of expr * expr | MINUS of expr * expr ...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula/submissions/sub30.ml
ocaml
type formula = TRUE | FALSE | NOT of formula | ANDALSO of formula * formula | ORELSE of formula * formula | IMPLY of formula * formula | LESS of expr * expr and expr = NUM of int | PLUS of expr * expr | MINUS of expr * expr ...