_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
4a0b2ad22465cffa3e9a7edcc0d394ada69b16785c09af9b857e10c02ff0d184
jordanthayer/ocaml-search
spt_gtk.mli
* @author jtd7 @since 2010 - 05 - 06 @author jtd7 @since 2010-05-06 *) val create_display : < draw : Drawing.context -> 'a; height : Length.t; output : string -> unit; set_size : w:Length.t -> h:Length.t -> 'b; width : Length.t; .. > -> string -> unit EOF
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt/src/spt_gtk.mli
ocaml
* @author jtd7 @since 2010 - 05 - 06 @author jtd7 @since 2010-05-06 *) val create_display : < draw : Drawing.context -> 'a; height : Length.t; output : string -> unit; set_size : w:Length.t -> h:Length.t -> 'b; width : Length.t; .. > -> string -> unit EOF
b97606807f0f352235ef956d1a218e4e73dcbadd665a715e7594239f45f73f08
LightAndLight/typed-cfg
Main.hs
module Main where import Criterion.Main import Test import qualified TestLMS as LMS import Data.ByteString (ByteString) import Data.ByteString.Internal (c2w) import Data.Text (Text) import Data.Void (Void) import Data.Word (Word8) import Text.Megaparsec import Text.Megaparsec.Char import qualified Data.ByteString.C...
null
https://raw.githubusercontent.com/LightAndLight/typed-cfg/ceb3c8d3ea8990959835af1d2cc9bd3dbb100502/benchmarks/Main.hs
haskell
module Main where import Criterion.Main import Test import qualified TestLMS as LMS import Data.ByteString (ByteString) import Data.ByteString.Internal (c2w) import Data.Text (Text) import Data.Void (Void) import Data.Word (Word8) import Text.Megaparsec import Text.Megaparsec.Char import qualified Data.ByteString.C...
cb46221be17fed5b346f37d3d1b3e53f2cae946d48e4f9dae4366a295b843423
appleshan/cl-http
cgi.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Package : HTTP ; Base : 10 -*- (in-package "HTTP") Prototype UNIX CGI access from CL - HTTP . Copyright ( C ) 1995 ( OBC ) . ;;; All Rights Reserved. ;;; We hit our head against CL - HTTP 's assumption that all ;;; url must be pre-exported (even in *auto-expo...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/acl/jkf/server/cgi.lisp
lisp
Syntax : ansi - common - lisp ; Package : HTTP ; Base : 10 -*- All Rights Reserved. url must be pre-exported (even in *auto-export* mode) this For now we expect the contents of the CGI-BIN and subdirectories to be exported once. We don't expect it to change later, this can be argued as a security measure. And w...
(in-package "HTTP") Prototype UNIX CGI access from CL - HTTP . Copyright ( C ) 1995 ( OBC ) . We hit our head against CL - HTTP 's assumption that all conflicts with what we expect on UNIX , but it 's much more secure ? a set of raw search objects for UNIXCGI and response methods that escape to UNIX shel...
a35b0e5ce9c74e3b8e5bebe6796657073fadab20f170416f6c7bba1e72bf8f97
spurious/sagittarius-scheme-mirror
%3a98.scm
-*- mode : scheme ; coding : utf-8 ; -*- SRFI 98 ported for Sagittarius Scheme by (library (srfi :98) (export get-environment-variable get-environment-variables) (import (srfi :98 os-environment-variables)) )
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a98.scm
scheme
coding : utf-8 ; -*-
SRFI 98 ported for Sagittarius Scheme by (library (srfi :98) (export get-environment-variable get-environment-variables) (import (srfi :98 os-environment-variables)) )
43582c64decd1b2e505a57fedae2dfa8c1a4954e66d534030b1a81f685e228b1
dsorokin/aivika
Results.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances , ExistentialQuantification , OverlappingInstances # -- | -- Module : Simulation.Aivika.Results Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8....
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Results.hs
haskell
| Module : Simulation.Aivika.Results License : BSD3 Stability : experimental The module allows exporting the simulation results from the model. * Definitions Focused on Modeling * Definitions Focused on Using the Library * Definitions Focused on Extending the Library | Represents a provider of the s...
# LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances , ExistentialQuantification , OverlappingInstances # Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Results Results, ResultTransform, ResultName...
7433ce283b55f9100c99d12c565660a16d13ee19ad1b4d60d5229f88cb4bce1c
ocaml-ppx/ocamlformat
max_indent.ml
let () = fooooo |> List.iter (fun x -> let x = x $ y in fooooooooooo x ) let () = fooooo |> List.iter (fun some_really_really_really_long_name_that_doesn't_fit_on_the_line -> let x = some_really_really_really_long_name_that_doesn't_fit_on_the_line $ y in ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/passing/tests/max_indent.ml
ocaml
let () = fooooo |> List.iter (fun x -> let x = x $ y in fooooooooooo x ) let () = fooooo |> List.iter (fun some_really_really_really_long_name_that_doesn't_fit_on_the_line -> let x = some_really_really_really_long_name_that_doesn't_fit_on_the_line $ y in ...
0f160a044a3b0ece42d59275e28496d86048a686a0121e4343d5510b4b02b286
nikita-volkov/list-t
Main.hs
# OPTIONS_GHC -F -pgmF htfpp # import BasePrelude hiding (toList) import Control.Monad.Morph import qualified ListT as L import MTLPrelude import Test.Framework main = htfMain $ htf_thisModulesTests -- * MMonad -- embed lift = id prop_mmonadLaw1 (l :: [Int]) = let s = L.fromFoldable l in runIdentity $ streamsE...
null
https://raw.githubusercontent.com/nikita-volkov/list-t/b35fd220c62d439923fd1695649955b02f45070b/htf-test/Main.hs
haskell
* MMonad embed lift = id embed f (lift m) = f m * Applicative * Monad * Monoid * Other
# OPTIONS_GHC -F -pgmF htfpp # import BasePrelude hiding (toList) import Control.Monad.Morph import qualified ListT as L import MTLPrelude import Test.Framework main = htfMain $ htf_thisModulesTests prop_mmonadLaw1 (l :: [Int]) = let s = L.fromFoldable l in runIdentity $ streamsEqual s (embed lift s) prop_mmo...
ab20dba3b2d76b0df98d8338ae30a46b16e7c74dd0c24045f31a559acac62529
wilkerlucio/pathom
batch_transform_auto_batch.cljs
(ns com.wsscode.pathom.book.connect.batch-transform-auto-batch (:require [com.wsscode.pathom.core :as p] [com.wsscode.pathom.connect :as pc] [cljs.core.async :as async :refer [go]])) (pc/defresolver list-things [_ _] {::pc/output [{:items [:number]}]} {:items [{:number 3} {:num...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/docs-src/modules/ROOT/examples/com/wsscode/pathom/book/connect/batch_transform_auto_batch.cljs
clojure
(ns com.wsscode.pathom.book.connect.batch-transform-auto-batch (:require [com.wsscode.pathom.core :as p] [com.wsscode.pathom.connect :as pc] [cljs.core.async :as async :refer [go]])) (pc/defresolver list-things [_ _] {::pc/output [{:items [:number]}]} {:items [{:number 3} {:num...
35b7b5b0fb7e2822993a78ce922c80022d5439173b14bb77d6275a56a4e55ade
PatrickMaier/HdpH
Static.hs
-- 'Static' support, mimicking [ 1 ] et al . " for the cloud " . Haskell Symposium 2011 . -- Author : ----------------------------------------------------------------------------- The ' Static ' type constructor as proposed in [ 1 ] is not yet supported by GHC ( as of version 7.4.1 ) . This module provid...
null
https://raw.githubusercontent.com/PatrickMaier/HdpH/e836a5bcf5a6c93239f9c0d0109d7b81b459897f/hdph-closure/src/Control/Parallel/HdpH/Closure/Static.hs
haskell
'Static' support, mimicking --------------------------------------------------------------------------- necessarily differs in some aspects. However, the type constructor 'Static' Differences between 'Control.Parallel.HdpH.Closure.Static' and a builtin 'Static' are: o Static values must be declared at toplevel ...
[ 1 ] et al . " for the cloud " . Haskell Symposium 2011 . Author : The ' Static ' type constructor as proposed in [ 1 ] is not yet supported by GHC ( as of version 7.4.1 ) . This module provides a workaround that itself and its eliminator ' unstatic ' work exactly as proposed in [ 1 ] . # OPTIONS_GHC...
f329b39292da0ffd4db78a64d4d295b76a911a2e82ce13ca647c53e426f41d20
ztellman/clj-radix
project.clj
(defproject clj-radix "0.1.0" :description "A radix tree" :url "-radix" :license {:name "MIT License" :url "-license.org/"} :dependencies [[primitive-math "0.1.4"]] :profiles {:dev {:dependencies [[org.clojure/clojure "1.6.0"] [criterium "0.4.3"] ...
null
https://raw.githubusercontent.com/ztellman/clj-radix/4318310c8c6c69eabe1ece2d8efe82b47f66b544/project.clj
clojure
(defproject clj-radix "0.1.0" :description "A radix tree" :url "-radix" :license {:name "MIT License" :url "-license.org/"} :dependencies [[primitive-math "0.1.4"]] :profiles {:dev {:dependencies [[org.clojure/clojure "1.6.0"] [criterium "0.4.3"] ...
4afa75cb72934a503c1c919f22570eb5a25a83a033075efb6850cf1f25bdf5ad
Copilot-Language/copilot-core
Type.hs
-------------------------------------------------------------------------------- Copyright © 2011 National Institute of Aerospace / Galois , Inc. -------------------------------------------------------------------------------- | Typing for Core . -- All expressions and streams in Core are accompanied by a repres...
null
https://raw.githubusercontent.com/Copilot-Language/copilot-core/a8b79da96b11da20c36c4d4e0624e234a4d04323/src/Copilot/Core/Type.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ the types of the underlying expressions used or carried by the streams. This information is needed by the compiler to generate code, since it must initialize ...
Copyright © 2011 National Institute of Aerospace / Galois , Inc. | Typing for Core . All expressions and streams in Core are accompanied by a representation of # LANGUAGE ExistentialQuantification , GADTs , KindSignatures , ScopedTypeVariables , Undecida...
fe6a33ec7ba68d89bf33a7c01a8554ded05e815c2614fd8b3841ef8272a9c1f8
kelamg/HtDP2e-workthrough
ex110.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 ex110) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex110.rkt
racket
about the language level of this file in a form that our tools can easily process. area of disk Number -> Number computes the area of a disk with radius r Any -> Number computes the area of a disk with radius v, if v is a positive number
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex110) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define (area-of-disk r) (* 3.14 (* r r))) (define (checked-...
3b12f20851fbe91fa607a87fde7ae5df7b918d1a9568b023b8aae96a479a4ed9
Tim-ats-d/Postem-markup
compiler.mli
(** {1 API} *) val compile : unit -> unit (** Compile the document passed at CLI and write result on a file or on stdout according to CLI argument. *)
null
https://raw.githubusercontent.com/Tim-ats-d/Postem-markup/95eca3820ccc375f0bbd2cfe41daa9fe2cbe808e/src/compiler.mli
ocaml
* {1 API} * Compile the document passed at CLI and write result on a file or on stdout according to CLI argument.
val compile : unit -> unit
2e02f96246416c5f8f0c65bbb2c0d7150f2dbecec4c6eaf4300f838fef158ce5
rjnw/sham
reqs.rkt
#lang racket (require "../pat.rkt" "../ooo.rkt" "../kw-info.rkt" "../utils.rkt" "../generics.rkt" "../stx.rkt" "../spec.rkt" (submod "../spec.rkt" ast) (submod "../spec.rkt" compiler) (submod "../class.rkt" compiler) (submod "../class.rkt" pat) (submod "../generics.rkt" compiler) ;; (prefix-in rt: (for-t...
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/syntax/cmplr/reqs.rkt
racket
(prefix-in rt: (for-template "../../runtime/compiler.rkt")) (prefix-in rt: (for-template "../../runtime/compiler.rkt"))
#lang racket (require "../pat.rkt" "../ooo.rkt" "../kw-info.rkt" "../utils.rkt" "../generics.rkt" "../stx.rkt" "../spec.rkt" (submod "../spec.rkt" ast) (submod "../spec.rkt" compiler) (submod "../class.rkt" compiler) (submod "../class.rkt" pat) (submod "../generics.rkt" compiler) ) (provide (all-from-o...
3d3af8730df3db4ea9b61ed3ff855f0eaf52711e06fa6b934cb913b95f682066
johnmn3/cljs-thread
injest.clj
(ns cljs-thread.injest (:require [injest.impl] [injest.util :as util] [cljs-thread.macro-impl :as i])) (defmacro tfan [conveyer names xf-group] (let [yfn `(clojure.core/fn ~names (injest.impl/compose-transducer-group ~xf-group))] `(do (fn [args#] (cljs-thread.injest/fan ~conveyer ~yfn args#...
null
https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/src/cljs_thread/injest.clj
clojure
(ns cljs-thread.injest (:require [injest.impl] [injest.util :as util] [cljs-thread.macro-impl :as i])) (defmacro tfan [conveyer names xf-group] (let [yfn `(clojure.core/fn ~names (injest.impl/compose-transducer-group ~xf-group))] `(do (fn [args#] (cljs-thread.injest/fan ~conveyer ~yfn args#...
d7498725e5faad9d0acc9c857441577089a0952466c4581703496524a52bb48d
ndaniels/MRFy
SearchStrategy.hs
# LANGUAGE BangPatterns , ScopedTypeVariables # module SearchStrategy where import Control.Monad.LazyRandom import qualified Data.List as DL import qualified Data.Vector as V import qualified Data.Vector.Unboxed as U import System.Random (mkStdGen, Random, random, randomR, randoms, StdGen) import Test.QuickCheck impo...
null
https://raw.githubusercontent.com/ndaniels/MRFy/9b522d991a9bf98a6690f791dc92ad6fe675115c/SearchStrategy.hs
haskell
| @isTick N t k@ is a clock that ticks @t@ times as emitting diagnostic output at regular intervals of a search | @takeNGenerations n generations@ returns the history of the useful states found in @take n generations@. It would be nice to use @take@ and @catMaybes@ here, but the function has to make noise, too....
# LANGUAGE BangPatterns , ScopedTypeVariables # module SearchStrategy where import Control.Monad.LazyRandom import qualified Data.List as DL import qualified Data.Vector as V import qualified Data.Vector.Unboxed as U import System.Random (mkStdGen, Random, random, randomR, randoms, StdGen) import Test.QuickCheck impo...
f2e8652ecfd14397ba751a1cff2a77d95dc4f8e7a1c8d26eb2e872efc9670bc7
lamdu/momentu
FocusDelegator.hs
module GUI.Momentu.Widgets.FocusDelegator ( FocusEntryTarget(..) , Config(..) , make ) where import qualified Control.Lens as Lens import qualified GUI.Momentu.Element as Element import GUI.Momentu.Element.Id (ElemId) import GUI.Momentu.EventMap (EventMap) import qualified GUI.Momen...
null
https://raw.githubusercontent.com/lamdu/momentu/e935da46099e7c9664a8a21a2b6af0b89a3f4c48/src/GUI/Momentu/Widgets/FocusDelegator.hs
haskell
We're not delegating, so replace the child eventmap with an event map to either delegate to it (if it is enterable) or to nothing (if it is not):
module GUI.Momentu.Widgets.FocusDelegator ( FocusEntryTarget(..) , Config(..) , make ) where import qualified Control.Lens as Lens import qualified GUI.Momentu.Element as Element import GUI.Momentu.Element.Id (ElemId) import GUI.Momentu.EventMap (EventMap) import qualified GUI.Momen...
8ef4aa8d8f5253c676f407f2beda42f41bdf202699d2a11deb92181088cd7ddd
flodihn/NextGen
libfaction_sup.erl
%%---------------------------------------------------------------------- @author < > %% @doc %% This is the supervisor for the player library 'libplayer'. %% @end %%--------------------------------------------------------------------- -module(libfaction_sup). -behaviour(supervisor). -export([ start_link/...
null
https://raw.githubusercontent.com/flodihn/NextGen/3da1c3ee0d8f658383bdf5fccbdd49ace3cdb323/AreaServer/src/libfaction/libfaction_sup.erl
erlang
---------------------------------------------------------------------- @doc This is the supervisor for the player library 'libplayer'. @end ---------------------------------------------------------------------
@author < > -module(libfaction_sup). -behaviour(supervisor). -export([ start_link/0, init/1 ]). start_link() -> supervisor:start_link({local, libfaction_sup}, libfaction_sup, []). init([]) -> RestartStrategy = one_for_one, MaxRestarts = 10, MaxSecondsBetweenRestarts = 30, S...
249889289164fb9de1eb3fff90f0aa3b095f1ca608f919e14b743354081d4ea7
soegaard/sketching
sketch-load-and-update-pixels.rkt
#lang sketching TODO - this example does n't work - why ? (define (setup) (frame-rate 1) (size 640 360) (color-mode 'rgb width height 100)) (define load? #t) (define (draw) (when load? (load-pixels) (set! load? #f)) (for* ([x width] [y height]) (define c (color x y 50)) ; (void) (s...
null
https://raw.githubusercontent.com/soegaard/sketching/99892486efad866eabe6ab34515fb3951b2a7858/sketching-examples/examples/sketch-load-and-update-pixels.rkt
racket
(void)
#lang sketching TODO - this example does n't work - why ? (define (setup) (frame-rate 1) (size 640 360) (color-mode 'rgb width height 100)) (define load? #t) (define (draw) (when load? (load-pixels) (set! load? #f)) (for* ([x width] [y height]) (define c (color x y 50)) (set-pixel x y ...
a38d18023d51825bd274ff6071fed197be0b5d2991da292d8a036d974ba50ab2
alavrik/piqi-erlang
piqi_sup.erl
Copyright 2009 , 2010 , 2011 , 2012 , 2013 %% 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, softwar...
null
https://raw.githubusercontent.com/alavrik/piqi-erlang/063ecc4f8fd54543acf01953b0a63b2b7ebf17a9/src/piqi_sup.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 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @doc OTP supervisor behavior for Piqi -module(piqi_sup). -behaviour(supervisor). -export([start_link/1]). -export([pick_piqi_...
9a2d7c6478c8faa2d0f2b366a8a1a63d6e3c510381e33e4f392e84f4ae9ebbcc
lowasser/TrieMap
Representation.hs
module Data.TrieMap.Representation (Repr(..), genRepr, genOptRepr, genOrdRepr) where import Data.TrieMap.Representation.Class import Data.TrieMap.Representation.Instances () import Data.TrieMap.Representation.TH
null
https://raw.githubusercontent.com/lowasser/TrieMap/1ab52b8d83469974a629f2aa577a85de3f9e867a/Data/TrieMap/Representation.hs
haskell
module Data.TrieMap.Representation (Repr(..), genRepr, genOptRepr, genOrdRepr) where import Data.TrieMap.Representation.Class import Data.TrieMap.Representation.Instances () import Data.TrieMap.Representation.TH
aca5d06d35430e24e1dff96c76713ecda554ce74dd38752e916dbcc676cdccd4
composewell/streamly
Combinators.hs
# OPTIONS_GHC -Wno - deprecations # -- | Module : Streamly . Internal . Data . Stream . Combinators Copyright : ( c ) 2017 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC -- -- # DEPRECATED " Please use . Data . Stream.*\ " instea...
null
https://raw.githubusercontent.com/composewell/streamly/5327f181db2cf956461b74ed50720eebf119f25a/src/Streamly/Internal/Data/Stream/IsStream/Combinators.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental ----------------------------------------------------------------------------- Concurrency control ----------------------------------------------------------------------------- XXX need to write these in direct style otherwise they will brea...
# OPTIONS_GHC -Wno - deprecations # Module : Streamly . Internal . Data . Stream . Combinators Copyright : ( c ) 2017 Composewell Technologies Portability : GHC # DEPRECATED " Please use . Data . Stream.*\ " instead . " # ( maxThreads , maxBuffer , maxYields , rate , avgRate , m...
210b614463dcb38356a18843fe3b06f5129dc6b4a3d7117b18ca5b899344ae75
chunsj/TH
sentiment.lisp
(defpackage :sentiment-example (:use #:common-lisp #:mu #:th #:th.db.imdb)) (in-package :sentiment-example) ;; read imdb review data (from udacity course) (defparameter *imdb* (read-imdb-data2)) each line of imdb reviews data is a review corresponding to each label in labels . ;; we need ...
null
https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/examples/etc/sentiment.lisp
lisp
read imdb review data (from udacity course) we need to read each review and convert them as a unique collection of words we need to build word-to-index map our real dataset will be the indices corresponding to each words prepare dataset for training for testing build network for easier reset prediction test p...
(defpackage :sentiment-example (:use #:common-lisp #:mu #:th #:th.db.imdb)) (in-package :sentiment-example) (defparameter *imdb* (read-imdb-data2)) each line of imdb reviews data is a review corresponding to each label in labels . (defun process-review (review) (remove-duplicates (->> (...
d4eaf943fd1de72072dc3547e7509bde02d0b28e90ae9eeaef6400fe8c4f07b3
CodyReichert/qi
repetition-closures.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / repetition - closures.lisp , v 1.34 2009/09/17 19:17:31 edi Exp $ ;;; This is actually a part of closures.lisp which we put into a ;;; separate file because it is rather complex. We only ...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-ppcre-master/repetition-closures.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- This is actually a part of closures.lisp which we put into a separate file because it is rather complex. We only deal with REPETITIONs here. Note that this part of the code contains some rather crazy micro-optimizations which were introduced to be as c...
$ Header : /usr / local / cvsrep / cl - ppcre / repetition - closures.lisp , v 1.34 2009/09/17 19:17:31 edi Exp $ Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY...
b61ef61098f0651c5ea3633469a78492aa04d9a2f665ca11c0f694ed3dd2117d
sealchain-project/sealchain
InMemory.hs
| This module contains in - memory implementation of Kademlia P2P - discovery . module Network.Discovery.Transport.InMemory ( InMemoryDiscoveryErrorCode , inMemoryDiscovery ) where import qualified Control.Concurrent.STM as STM import qualified Control.Concurrent.STM.TVar as TVar import ...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/networking/src/Network/Discovery/Transport/InMemory.hs
haskell
| An InMemory network transport can be used as a NetworkDiscovery. It takes addresses from the transport's internal state. No need to do anything on close, since we don't exactly use any resources.
| This module contains in - memory implementation of Kademlia P2P - discovery . module Network.Discovery.Transport.InMemory ( InMemoryDiscoveryErrorCode , inMemoryDiscovery ) where import qualified Control.Concurrent.STM as STM import qualified Control.Concurrent.STM.TVar as TVar import ...
54956e8f7f0056436bf8c9de5349a7308a2a171d6722f5ecdfa6e600cfcd89dc
erlang/rebar3
r3_hex_core.erl
%% Vendored from hex_core v0.7.1, do not edit manually %% @doc %% hex_core entrypoint module. %% # # # Config %% %% Most functions in the hex_core API takes a configuration. The configuration sets things %% like HTTP client to use, and API and repository URL. Some of these configuration options %% will likely be sta...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/src/vendored/r3_hex_core.erl
erlang
Vendored from hex_core v0.7.1, do not edit manually @doc hex_core entrypoint module. Most functions in the hex_core API takes a configuration. The configuration sets things like HTTP client to use, and API and repository URL. Some of these configuration options will likely be static for your application and som...
# # # Config # # # # # Options * ` http_adapter ' - A tuple of a callback module used for HTTP requests , see [ ` ) * ` http_user_agent_fragment ' - Will be appended to the ` user - agent ` HTTP header ( default : ` ( ) ' ) . ( defaults to hexpm public key ` ' ) . -module(r3_hex_core). -export([default...
984dfce4919a60dc2cd0b1f4a42e0d5b90e0e337beebf696ea9ea7b8fca727f4
Frama-C/Frama-C-snapshot
logic_env_script.ml
open Cil_types let emitter = Emitter.create "test" [ Emitter.Global_annot ] ~correctness:[] ~tuning:[] let add () = let li = Cil_const.make_logic_info "bla" in li.l_body <- LBpred Logic_const.ptrue; let glob = Dfun_or_pred (li,Cil_datatype.Location.unknown) in Logic_utils.add_logic_function li; Annotatio...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/syntax/logic_env_script.ml
ocaml
open Cil_types let emitter = Emitter.create "test" [ Emitter.Global_annot ] ~correctness:[] ~tuning:[] let add () = let li = Cil_const.make_logic_info "bla" in li.l_body <- LBpred Logic_const.ptrue; let glob = Dfun_or_pred (li,Cil_datatype.Location.unknown) in Logic_utils.add_logic_function li; Annotatio...
f77c29c81c030c9acb3175f3b89baf35210b725a74fe5ef6632291540c418f66
erikd/haskell-big-integer-experiment
times-bench.hs
import qualified Criterion.Main as C import New3.GHC.Integer.Internals import New3.Integer () import Check.Helpers main :: IO () main = do list <- fmap (map (mkNatural . snd)) $ mkLargeIntegerList 20 (10, 10) C.defaultMain [ C.bgroup ( "Product of " ++ show (length list) ...
null
https://raw.githubusercontent.com/erikd/haskell-big-integer-experiment/7841ec3fcc5be219fa16963849bd12137112f8a9/times-bench.hs
haskell
import qualified Criterion.Main as C import New3.GHC.Integer.Internals import New3.Integer () import Check.Helpers main :: IO () main = do list <- fmap (map (mkNatural . snd)) $ mkLargeIntegerList 20 (10, 10) C.defaultMain [ C.bgroup ( "Product of " ++ show (length list) ...
b5f0eaf8e6f2c0035e2a0951b4cdf4a6bd5d964d01a84923595ab2ff5ffd4fd6
spell-music/csound-catalog
Amsterdam.hs
| Instruments from Csound amsterdam catalog by Risset module Csound.Catalog.Wave.Amsterdam( tibetan ) where import Csound.Base | Tibetan chant . It 's a chorus of many sinusoids . -- -- > tibetan n off cps -- * n - the number of sinusoids ( the best is 9 ) -- * off - frequency step of the harmo...
null
https://raw.githubusercontent.com/spell-music/csound-catalog/2a4e12227bd6e27bc0eac05b3465e9a7f1f4bdbf/src/Csound/Catalog/Wave/Amsterdam.hs
haskell
> tibetan n off cps * cps - the frequency of the note
| Instruments from Csound amsterdam catalog by Risset module Csound.Catalog.Wave.Amsterdam( tibetan ) where import Csound.Base | Tibetan chant . It 's a chorus of many sinusoids . * n - the number of sinusoids ( the best is 9 ) * off - frequency step of the harmonics ~ ( 0.01 , 0.03 ) tibetan :...
35d670eaccdad5746f346c9b9c7cf655629a565711ea313dfe1a8048e5c5488a
ocaml-sf/learn-ocaml-corpus
solution.ml
let rec height : 'a bt -> int * int = function | Empty -> 0, 1 | Node(t,_,t') -> let h, n = height t and h', n' = height t' in 1 + (max h h'), n + n' let rec balanced : 'a bt -> bool * int = function | Empty -> true, 1 | Node(t,_,t') -> let b, n = balanced t in if not b then ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq1/ex1/solution.ml
ocaml
For the solution, we try with both traversal orders. ouh, naughty ouh, naughty
let rec height : 'a bt -> int * int = function | Empty -> 0, 1 | Node(t,_,t') -> let h, n = height t and h', n' = height t' in 1 + (max h h'), n + n' let rec balanced : 'a bt -> bool * int = function | Empty -> true, 1 | Node(t,_,t') -> let b, n = balanced t in if not b then ...
727131ebc353d5e8255b75443a88be9e5d4d2722f5a61bf8326ecd291a35c556
josefs/Gradualizer
guard_fail.erl
-module(guard_fail). -compile([export_all, nowarn_export_all]). -spec wrong_guard(integer() | atom()) -> atom() | not_atom. wrong_guard(A) when is_integer(A) -> A; wrong_guard(_) -> not_atom. -record(r1, { f }). -record(r2, { f }). -spec wrong_record(#r1{} | #r2{}) -> #r2{} | not_r2. wrong_record(R) when i...
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/should_fail/guard_fail.erl
erlang
We currently don't infer X :: nonempty_list() from hd(X) error: N can still be a float
-module(guard_fail). -compile([export_all, nowarn_export_all]). -spec wrong_guard(integer() | atom()) -> atom() | not_atom. wrong_guard(A) when is_integer(A) -> A; wrong_guard(_) -> not_atom. -record(r1, { f }). -record(r2, { f }). -spec wrong_record(#r1{} | #r2{}) -> #r2{} | not_r2. wrong_record(R) when i...
9554ab0abcce09b3178135366e388753b381f4a997b66813af8ff5e13b744e27
ndaniels/MRFy
RandomDecay.hs
# OPTIONS_GHC -Wall -fno - warn - name - shadowing # # LANGUAGE BangPatterns , ScopedTypeVariables # module SearchStrategies.RandomDecay where import Control.Monad.LazyRandom import Data.List (sortBy) import qualified Data.Vector.Unboxed as V import LazySearchModel import ParRandom import Score import SearchStrategy ...
null
https://raw.githubusercontent.com/ndaniels/MRFy/9b522d991a9bf98a6690f791dc92ad6fe675115c/SearchStrategies/RandomDecay.hs
haskell
| Represents a decaying population of placements ^ Better than previous generation ^ log(ideal population) ^ true population ^ Invariant: the @placements@ list is *nearly* sorted in order of decreasing score (best score at end). Invariant: @length placements == ceiling (exp logPop)@. bogus! see comment on scor...
# OPTIONS_GHC -Wall -fno - warn - name - shadowing # # LANGUAGE BangPatterns , ScopedTypeVariables # module SearchStrategies.RandomDecay where import Control.Monad.LazyRandom import Data.List (sortBy) import qualified Data.Vector.Unboxed as V import LazySearchModel import ParRandom import Score import SearchStrategy ...
a9cc08e5934d8087b7fc9843b65f539f1dc355516d8aaa7a0031f050c57e7369
darrenldl/ocaml-lxc
console.ml
let container_name = "playtime" let () = let c = Lxc.new_container container_name |> Result.get_ok in if not (Lxc.Container.is_defined c) then ( print_endline "Container is not defined"; exit 1 ); ( match Lxc.Container.console c with | Ok _ -> () | Error _ -> print_endline "Failed to ...
null
https://raw.githubusercontent.com/darrenldl/ocaml-lxc/b3dd6155c39723930325bf87e081641d5c11c3ee/examples/console.ml
ocaml
let container_name = "playtime" let () = let c = Lxc.new_container container_name |> Result.get_ok in if not (Lxc.Container.is_defined c) then ( print_endline "Container is not defined"; exit 1 ); ( match Lxc.Container.console c with | Ok _ -> () | Error _ -> print_endline "Failed to ...
647acaa525b2a0136bf3b50902e60497ed39bd45ddfe9ef0eb2281642859be5e
runtimeverification/haskell-backend
AST.hs
| Module : SMT.AST Description : AST for ( parts of ) the SMT commands Copyright : ( c ) Iavor , 2014 ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Use the Smt * versions of data types to work with the SimpleSMT interface . Module ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/563d082d233ac82781976deae14d333c373718bf/kore/src/SMT/AST.hs
haskell
| A data type constructor. - | A constructor-based data type declaration. If the list of constructors is empty, the data type is empty. - | A non-constructor-based data type declaration. | A function declaration. | Instantiate Constructor with the types needed by SimpleSMT. | Instantiate ConstructorArgument wi...
| Module : SMT.AST Description : AST for ( parts of ) the SMT commands Copyright : ( c ) Iavor , 2014 ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Use the Smt * versions of data types to work with the SimpleSMT interface . Module ...
0e84a33fbca7bba9074aee0d348ece2d778b31a4e1a2fb2ffabf5b269c2751cb
haesbaert/rawlink
rawcap_eio.ml
* Copyright ( c ) 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE A...
null
https://raw.githubusercontent.com/haesbaert/rawlink/8c705a242ea0abca55dee19bb8f1e3b9c6572f83/bin/rawcap_eio.ml
ocaml
* Copyright ( c ) 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE A...
23092e50023cb82e6c9dab144c2b3c781901a599951acd809d6903c7ad54729d
fujita-y/ypsilon
struct.scm
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. (library (core struct) (export define-struct) (import (core primitives) (core syntax-case) (core lists)) (define-syntax define-struct (lambda (x) ...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/44260d99e24000f9847e79c94826c3d9b76872c2/stdlib/core/struct.scm
scheme
See LICENSE file for terms and conditions of use. [end]
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . (library (core struct) (export define-struct) (import (core primitives) (core syntax-case) (core lists)) (define-syntax define-struct (lambda (x) (syntax-case x () ((?_ ?struct-name ?fie...
dc50cddbc3b729e42aef8d1d5280ee3bf44d8de2bf6e7250b3d91e2cced35c3c
nibbula/terminal
terminal-dumb-color.lisp
;;; ;;; terminal-dumb-color.lisp - Dumb terminal with text effects and color. ;;; (defpackage :terminal-dumb-color (:documentation "Dumb color terminal") (:use :cl :dlib :terminal :char-util :dgray :fatchar :terminal-dumb :terminal-ansi) (:export #:terminal-dumb-color-stream #:terminal-dumb-color ...
null
https://raw.githubusercontent.com/nibbula/terminal/af19e78a46f5d5236dc4aca926e88c9dafd857b4/terminal-dumb-color.lisp
lisp
terminal-dumb-color.lisp - Dumb terminal with text effects and color. We inherit most methods from terminal-dumb. The color methods are from We have no idea what the size is. But it's big. (values nil nil) @@@ This is not your mother's cached-color-count. For a stream, we don't have a back channel, so we can't a...
(defpackage :terminal-dumb-color (:documentation "Dumb color terminal") (:use :cl :dlib :terminal :char-util :dgray :fatchar :terminal-dumb :terminal-ansi) (:export #:terminal-dumb-color-stream #:terminal-dumb-color )) (in-package :terminal-dumb-color) (declaim #.`(optimize ,.(getf terminal-con...
4d3887a2e20d3bb559fa9e12a796f68589d0a1d46e0726b58945f7fcead5ca9d
ucsd-progsys/liquid-fixpoint
Graph.hs
-- | This module re-exports the data types, operations and -- serialization functions for representing and computing -- with constraint dependencies. module Language.Fixpoint.Graph (module X ) where import Language.Fixpoint.Graph.Types as X import Language.Fixpoint.Graph.Partition as X import Language.Fixpoin...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-fixpoint/9dfaaea5e2dff080434cd0f16686d3de43d3c0f9/src/Language/Fixpoint/Graph.hs
haskell
| This module re-exports the data types, operations and serialization functions for representing and computing with constraint dependencies.
module Language.Fixpoint.Graph (module X ) where import Language.Fixpoint.Graph.Types as X import Language.Fixpoint.Graph.Partition as X import Language.Fixpoint.Graph.Reducible as X import Language.Fixpoint.Graph.Deps as X
208d0157a2f2ec1edc45511b8b0180b62c3dd6b2c0820d121b19eba515daf713
geophf/1HaskellADay
Solution.hs
# LANGUAGE ExistentialQuantification # module Y2018.M03.D05.Solution where - I 'm going to do something a bit quixotic . " Introduction to Logic and to the Methodology of Deductive Sciences , " by , 1941 I know I 'm tilting at windmills here , because blew all this foundational work out of the wate...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M03/D05/Solution.hs
haskell
} dat last one, doe. But, yes, a parenthesize expression is atomic, so ... and have some pretty representation of an atom? of course, this makes Read instance harder to decide... } ... etc I'm thinking we have to bifurcate constants and variables here, but then that makes expressing functions all the harder becau...
# LANGUAGE ExistentialQuantification # module Y2018.M03.D05.Solution where - I 'm going to do something a bit quixotic . " Introduction to Logic and to the Methodology of Deductive Sciences , " by , 1941 I know I 'm tilting at windmills here , because blew all this foundational work out of the wate...
b32f3544e907c94201fc179e71223d933f8f6910d363cd7ff06a949b1d36d421
yellowbean/clojucture
csv.clj
(ns clojucture.io.csv (:require [clojure.java.io :as io]) (:import [tech.tablesaw.api Table ColumnType] [tech.tablesaw.io.csv CsvWriter CsvReader CsvReadOptions$Builder CsvReadOptions] [tech.tablesaw.io Source] (java.util Locale))) (defn- column-type-mapping [x] (case x :dou...
null
https://raw.githubusercontent.com/yellowbean/clojucture/3ad99e06ecd9e5c478f653df4afbd69991cd4964/src/clj/clojucture/io/csv.clj
clojure
(ns clojucture.io.csv (:require [clojure.java.io :as io]) (:import [tech.tablesaw.api Table ColumnType] [tech.tablesaw.io.csv CsvWriter CsvReader CsvReadOptions$Builder CsvReadOptions] [tech.tablesaw.io Source] (java.util Locale))) (defn- column-type-mapping [x] (case x :dou...
ef51795023b3b34382bb3d74f9dd5682e2e0fb7a0d1018b1955bb750d2bfb53e
haskellfoundation/error-message-index
Main.hs
add :: Num a => a -> a -> a add x y = x + y
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-39999/to-polymorphic/after/Main.hs
haskell
add :: Num a => a -> a -> a add x y = x + y
f8ed7e219d8efe21899b6fa0deedfcb26454e74712b720db10b772818a9ace18
input-output-hk/cardano-ledger
AlonzoValidTxUTXOW.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE Typ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/da48c5ba96b72426a51f36507d49604505fc96a7/libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/AlonzoValidTxUTXOW.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # alonzoUTXOWTests (Conway Mock) TODO ========================================================================= ============================== DATA ======================================== ==================================================...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Test.Cardano.Ledger.Examples.AlonzoVa...
1905f1de315086e3ba5df9af254284c1e2d12890a0d4a43dbb6216b6008bb442
robert-strandh/CLIMatis
packages.lisp
(defpackage #:rigidity (:use #:common-lisp) (:export #:little-rigid #:very-rigid #:rigid-contract #:rigid-expand #:force-at-size #:size-at-force #:natural-size #:combine-in-parallel #:combine-in-series #:sizes-in-series))
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Rigidity/packages.lisp
lisp
(defpackage #:rigidity (:use #:common-lisp) (:export #:little-rigid #:very-rigid #:rigid-contract #:rigid-expand #:force-at-size #:size-at-force #:natural-size #:combine-in-parallel #:combine-in-series #:sizes-in-series))
03fa00f17a6ac44c9becdce34024bfb2056fd97ea90fb865793a019b3e9b8f15
HaskellForCats/HaskellForCats
2014-0207learnYouTypes.hs
module Shapes ( Point(..) , Shape(..) , surface , nudge , baseCircle , baseRect ) where
null
https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/MenaBeginning/Ch008/2014-0207learnYouTypes.hs
haskell
module Shapes ( Point(..) , Shape(..) , surface , nudge , baseCircle , baseRect ) where
10134af3427f3f1555277240f504d4769a334270fd2ca9425a538f47478aaeb2
g000001/MacLISP-compat
SUBSEQ.lisp
SUBSEQ -*-Mode : Lisp;Package : SI;Lowercase : T-*- ;;; ************************************************************************ * * * NIL * * * * * * * SUBSEQuencing and coercion functions * * * * * * * * * * * * * * * * * * * ;;; *********************************************************************...
null
https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/SUBSEQ.lisp
lisp
Package : SI;Lowercase : T-*- ************************************************************************ ************************************************************************ ************************************************************************ functions. General coercion routines TO-<mumble>, which ta...
* * * NIL * * * * * * * SUBSEQuencing and coercion functions * * * * * * * * * * * * * * * * * * * * * ( c ) Copyright 1981 Massachusetts Institute of Technology * * * * * * * * * * * * SUBSEQ and REPLACE are seen as a specific usage of the " coercion " (herald SUBSEQ /39) #+(or LISPM (and NIL (not MacLI...
88e069065e6126121ff0ad47a4ff599ccf5c2eb40efb5ddb02b3f4d62e41a22c
YoshikuniJujo/test_haskell
Uncurry.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE ScopedTypeVariables, TypeApplications #-} {-# LANGUAGE GADTs #-} # LANGUAGE DataKinds , PolyKinds # {-# LANGUAGE KindSignatures, TypeOperators #-} # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -Wall -fno - warn - t...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/f504f2165136eb9ee96751861e199b15fcccaed0/themes/hetero-list/try-hetero-parameter-list/src/Data/TypeLevel/Uncurry.hs
haskell
# LANGUAGE ScopedTypeVariables, TypeApplications # # LANGUAGE GADTs # # LANGUAGE KindSignatures, TypeOperators #
# LANGUAGE TemplateHaskell # # LANGUAGE DataKinds , PolyKinds # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -Wall -fno - warn - tabs # module Data.TypeLevel.Uncurry where import Data.TypeLevel.Uncurry.TH uc `mapM` [2 .. 62] showUc `mapM` [2 .. 62]
5f264beadcdc0c0489e0c626de1d897475ae119b73d7b7c8a05dad64eb9c74cf
helpshift/hydrox
core.clj
(ns example.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/helpshift/hydrox/2beb3c56fad43bbf16f07db7ee72c5862978350c/example/src/example/core.clj
clojure
(ns example.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
d3a7b4aef62dc6582bf3d3820e4605002da6547457f81e9b095b52451d56a5ee
evertedsphere/silica
ByteString.hs
# LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE PatternGuards # # LANGUAGE FlexibleContexts # #ifdef TRUSTWORTHY # LANGUAGE Trustworthy # #endif #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif #ifndef MIN_VERSION_bytestring #define MIN_VERSION_bytestring(x,y,z) ...
null
https://raw.githubusercontent.com/evertedsphere/silica/346006f7b58142c6479395e93338134f541034cc/src/Silica/Internal/ByteString.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE BangPatterns # --------------------------------------------------------------------------- | Module : Data.ByteString.Strict.Lens License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable This module spends a lot of time fiddl...
# LANGUAGE CPP # # LANGUAGE PatternGuards # # LANGUAGE FlexibleContexts # #ifdef TRUSTWORTHY # LANGUAGE Trustworthy # #endif #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif #ifndef MIN_VERSION_bytestring #define MIN_VERSION_bytestring(x,y,z) 1 #endif Copyright : ( C ) 2012 - 2016 Maintai...
14887c08961b43d02d459c0f5e1b7eeab03a2cf7e83d05486563851be17f4f57
crosswire/xiphos
festival.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ;;; ...
null
https://raw.githubusercontent.com/crosswire/xiphos/a9283769ef4d0d47f1d09a3ca4138610bb96a46c/win32/festival/lib/festival.scm
scheme
;; ; ; Copyright (c) 1996,1997 ;; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this softwar...
(defvar festival_version "unknown" "festival_version A string containing the current version number of the system.") (defvar festival_version_number '(x x x) "festival_version_number A list of major, minor and subminor version numbers of the current system. e.g. (1 0 12).") (define (apply_method method utt) ...
9c2a2c308dcde1b31038e001225a0c8b0497e24e0a32ab5082c2a81a94333ffc
mdedwards/slippery-chicken
utils.lisp
;;; ********************************************************************** Copyright ( C ) 2003 ( ) ;;; This program is free software; you can redistribute it and modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( ...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/src/cm-2.6.0/src/utils.lisp
lisp
********************************************************************** This program is free software; you can redistribute it and either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICU...
Copyright ( C ) 2003 ( ) modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . generated by scheme->cltl from utils.scm on 23 - Mar-2005 12:21:15 (in-package :cm) (defparameter %months #("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" ...
a902c1e10c6c292cdbfc466b7d3b33f9cd8611f6b3d51691a83a24569b8a7e0c
theleoborges/imminent
result_test.clj
(ns imminent.result-test (:require [imminent.core :as core] [imminent.result :refer :all] [clojure.test :refer :all] [clojure.core.match :refer [match]]) (:import (imminent.result Success Failure))) (deftest pattern-matching (testing "success" (are [x y] (= x y) ...
null
https://raw.githubusercontent.com/theleoborges/imminent/9429072dc2b46d2e23cb64992e40faa682c7eb47/test/imminent/result_test.clj
clojure
TODO: test bifunctor functions TODO: test existing functions for exceptions
(ns imminent.result-test (:require [imminent.core :as core] [imminent.result :refer :all] [clojure.test :refer :all] [clojure.core.match :refer [match]]) (:import (imminent.result Success Failure))) (deftest pattern-matching (testing "success" (are [x y] (= x y) ...
0aebc072b3d34b8df1d29e0ce6abed083216302ef168e17946b8bf795516cd81
input-output-hk/cardano-base
C.hs
# LANGUAGE CApiFFI # {-# LANGUAGE DerivingStrategies #-} module Cardano.Crypto.Libsodium.C ( -- * Initialization c_sodium_init, -- * Memory management c_sodium_memzero, c_sodium_malloc, c_sodium_free, c_sodium_free_funptr, -- * Hashing -- ** SHA256 c_crypto_hash_sh...
null
https://raw.githubusercontent.com/input-output-hk/cardano-base/39f9cf0eaf15a6888a47ac9d8de0b37dd1131d0b/cardano-crypto-class/src/Cardano/Crypto/Libsodium/C.hs
haskell
# LANGUAGE DerivingStrategies # * Initialization * Memory management * Hashing ** SHA256 * ED25519 * Helpers * Constants ----------------------------------------------------------------------------- Initialization ----------------------------------------------------------------------------- | @void sodium_ini...
# LANGUAGE CApiFFI # module Cardano.Crypto.Libsodium.C ( c_sodium_init, c_sodium_memzero, c_sodium_malloc, c_sodium_free, c_sodium_free_funptr, c_crypto_hash_sha256, c_crypto_hash_sha256_final, c_crypto_hash_sha256_init, c_crypto_hash_sha256_update, * * Blake2b 256 ...
83f042bc84f5f455eba6bceefd2235ea792c56eeb39ebb1d4e16dfb4f739c92c
poroh/ersip
ersip_transport.erl
%%% Copyright ( c ) 2018 Dmitry Poroh %%% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %%% %%% SIP transport %%% -module(ersip_transport). -export([make/1, make_by_uri/1, tcp/0, tls/0, udp/0, ws/0, wss/0, sctp/0, is_known_transport/1, ...
null
https://raw.githubusercontent.com/poroh/ersip/bf7422cd6b96a11483b8726fead08872d87ec677/src/uri/ersip_transport.erl
erlang
All rights reserved. SIP transport =================================================================== Types =================================================================== =================================================================== API ================================================================...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . -module(ersip_transport). -export([make/1, make_by_uri/1, tcp/0, tls/0, udp/0, ws/0, wss/0, sctp/0, is_known_transport/1, is_message_oriented/1, is_tls/1, ...
14bdd0870ce24caf86eb93922c8dd04b01dc190fd21455addf2c260353907e95
Clojure2D/clojure2d-examples
camera.clj
(ns rt4.in-one-weekend.ch08a.camera (:require [rt4.in-one-weekend.ch08a.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (def ^:const ^double aspect-ratio (/ 16.0 9.0)) (defpro...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch08a/camera.clj
clojure
(ns rt4.in-one-weekend.ch08a.camera (:require [rt4.in-one-weekend.ch08a.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (def ^:const ^double aspect-ratio (/ 16.0 9.0)) (defpro...
58454314614d68ea1dc76433e060f3dc4c005ba888aa78a06effd4bafeeb6b7d
progman1/genprintlib
pos.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/pos.mli
ocaml
************************************************************************ OCaml ...
, projet , INRIA Rocquencourt Copyright 2003 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val get_desc : Instruct.debug_event -> string;;
0c6c468d9d05d728d7115e52922abaf4efec5ab8d0d09afa8972b16f697ed2a4
input-output-hk/marlowe-cardano
Test.hs
----------------------------------------------------------------------------- -- -- Module : $Headers License : Apache 2.0 -- -- Stability : Experimental Portability : Portable -- | Testing contracts . -- ----------------------------------------------------------------------------- # LANGUAGE...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/97f3850ec5c1e7ae7c62fe43610a3bf2ffb355ba/marlowe-cli/src/Language/Marlowe/CLI/Test.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-unused-imports # * Testing ^ The tests. ^ Action for runn...
License : Apache 2.0 Portability : Portable | Testing contracts . # LANGUAGE BlockArguments # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module Language.Marlowe.CLI.Test runTests ) where import Cardano.Api ( ConsensusModeParams(CardanoModeParams) , EpochSlots(..) , IsSh...
19a81b04509d835c385e15bba16c19543d1957bcede93a7a5d2a0fd8aee544d0
TerrorJack/ghc-alter
Functions.hs
{-# LANGUAGE Safe #-} -- This module deliberately declares orphan instances: # OPTIONS_GHC -Wno - orphans # ----------------------------------------------------------------------------- -- | -- Module : Text.Show.Functions Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see t...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Text/Show/Functions.hs
haskell
# LANGUAGE Safe # This module deliberately declares orphan instances: --------------------------------------------------------------------------- | Module : Text.Show.Functions License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable...
# OPTIONS_GHC -Wno - orphans # Copyright : ( c ) The University of Glasgow 2001 > showsPrec _ _ = " module Text.Show.Functions () where | @since 2.01 instance Show (a -> b) where showsPrec _ _ = showString "<function>"
7d75f33d96a8b269ce4a2219f7fd4ad15f1717fbd9b9fc592942c403f5de7c88
tfausak/advent-of-code
1.hs
-- stack --resolver lts-12.0 script main = print . sum . map read . lines . filter (/= '+') =<< getContents
null
https://raw.githubusercontent.com/tfausak/advent-of-code/26f0d9726b019ff7b97fa7e0f2f995269b399578/2018/1/1.hs
haskell
stack --resolver lts-12.0 script
main = print . sum . map read . lines . filter (/= '+') =<< getContents
f0b45f7c3bb926697b4230c7941fd1dfae6d0a11a39ec0189da9474c9045a14b
ympbyc/Carrot
to-js.scm
;;;; Carrot -> JS 2014 Minori Yamashita < > ;;; (define-module to-js (export compile) (use srfi-1) (use Util) (use DataTypes) (define (compile exprs-ht) (str (fold (fn [name*expr js-src] (let ([name (car name*expr)] [expr (cdr name*expr)]) (st...
null
https://raw.githubusercontent.com/ympbyc/Carrot/5ce3969b3833bcf1b466d808a74d0a03653ef6ab/compilers/to-js.scm
scheme
Carrot -> JS funcall else return _FALSE_; }; else return _FALSE_; }; else return _FALSE_; }; else return _FALSE_; }; else return _FALSE_; }; return t + 1; };
2014 Minori Yamashita < > (define-module to-js (export compile) (use srfi-1) (use Util) (use DataTypes) (define (compile exprs-ht) (str (fold (fn [name*expr js-src] (let ([name (car name*expr)] [expr (cdr name*expr)]) (str js-src ...
756e1790de2d2dbc6f61b7e5429a46f4942e4f8f0f5401c3f53c654301578516
mkremins/flense
history.cljs
(ns flense.actions.history) (defn save [loc prev] (-> loc (assoc :prev prev) (dissoc :next))) (defn redo [{:keys [next] :as loc}] (when next (assoc next :prev loc))) (defn undo [{:keys [prev] :as loc}] (when prev (assoc prev :next loc)))
null
https://raw.githubusercontent.com/mkremins/flense/e3fc84c7878583de1100959951e9d2611ea7339e/src/flense/actions/history.cljs
clojure
(ns flense.actions.history) (defn save [loc prev] (-> loc (assoc :prev prev) (dissoc :next))) (defn redo [{:keys [next] :as loc}] (when next (assoc next :prev loc))) (defn undo [{:keys [prev] :as loc}] (when prev (assoc prev :next loc)))
a0a483e1c5ee8d0d9d63b778aa2df8c0ecc2a6b699cd94005b25029376b28794
exercism/haskell
Triangle.hs
module Triangle (TriangleType(..), triangleType) where data TriangleType = Equilateral | Isosceles | Scalene | Illegal deriving (Eq, Show) triangleType :: (Num a, Ord a) => a -> a -> a -> TriangleType triangleType a b c = error "You need to imple...
null
https://raw.githubusercontent.com/exercism/haskell/2b98084efc7d5ab098975c462f7977ee19c2fd29/exercises/practice/triangle/src/Triangle.hs
haskell
module Triangle (TriangleType(..), triangleType) where data TriangleType = Equilateral | Isosceles | Scalene | Illegal deriving (Eq, Show) triangleType :: (Num a, Ord a) => a -> a -> a -> TriangleType triangleType a b c = error "You need to imple...
00bb521ee0a4f7a9c51cd79fb4c0d9d328ac544c89b95ba56e13e9c3e7ab0863
jackfirth/point-free
info.rkt
#lang info (define name "point-free") (define scribblings '(("point-free.scrbl" ())))
null
https://raw.githubusercontent.com/jackfirth/point-free/d294a342466d5071dd2c8f16ba9e50f9006b54af/point-free/info.rkt
racket
#lang info (define name "point-free") (define scribblings '(("point-free.scrbl" ())))
1750dd2ce35f80ceca5c5dfe637940b57e636ac9eee664021f91253b3dc151db
dbmcclain/LispPlotter
scanner.lisp
(in-package :plotter) ;;------------------------------------------------------------------- Abstract superclass < scanner > represent objects that respond to the NEXT - ITEM method ;; (defclass <scanner> () ()) (defclass <limited-scanner> (<scanner>) ((limit :accessor scanner-limit :initarg :limit) (po...
null
https://raw.githubusercontent.com/dbmcclain/LispPlotter/c019c7062711f454308a69aa9bed26584c0708fd/scanner.lisp
lisp
------------------------------------------------------------------- =============== =============== =============== =============== ===============
(in-package :plotter) Abstract superclass < scanner > represent objects that respond to the NEXT - ITEM method (defclass <scanner> () ()) (defclass <limited-scanner> (<scanner>) ((limit :accessor scanner-limit :initarg :limit) (pos :accessor scanner-position :initform 0))) (defclass <counting-scann...
f9383cd3d5b6b8d452630d3880d5c9d31ced8651a86b5fb22cbd49aa9f783616
ocramz/sparse-linear-algebra
Stream.hs
# language ExistentialQuantification # module Data.Sparse.Internal.Stream where import Data.Vector.Fusion.Stream.Monadic (Stream(..), Step(..)) import Data.Vector.Fusion.Bundle.Size (Size(..)) from Data . Vector . Fusion . Stream . Monadic -- -- | Result of taking a single step in a stream -- data Step s a = Yield...
null
https://raw.githubusercontent.com/ocramz/sparse-linear-algebra/77f14ebc5c545cb665cdd840149a021f3df07183/src/Data/Sparse/Internal/Stream.hs
haskell
-- | Result of taking a single step in a stream data Step s a = Yield a s -- ^ a new element and a new seed | Skip s -- ^ just a new seed | Done -- ^ end of stream -- | Result of taking a single step in a stream data Step s a where Yield :: a -> s -> Step s a Skip :: ...
# language ExistentialQuantification # module Data.Sparse.Internal.Stream where import Data.Vector.Fusion.Stream.Monadic (Stream(..), Step(..)) import Data.Vector.Fusion.Bundle.Size (Size(..)) from Data . Vector . Fusion . Stream . Monadic instance Functor ( Step s ) where data MergeState sa sb i a = Mer...
127addc3a76dfe96acce693e88b43aa1758255bcf96a04082a345c58c06fb854
haskell-works/hw-json
Example1.hs
{-# LANGUAGE BangPatterns #-} # OPTIONS_GHC -fno - warn - unused - matches # # OPTIONS_GHC -fno - warn - name - shadowing # # OPTIONS_GHC -fno - warn - unused - local - binds # module Example1 where import Data.Aeson import qualified Data.ByteString.Lazy as LBS example :: IO () example = do !bs <- LBS....
null
https://raw.githubusercontent.com/haskell-works/hw-json/371d20c836dba90271d62d736f2b51b9cf418ea6/examples/Example1.hs
haskell
# LANGUAGE BangPatterns #
# OPTIONS_GHC -fno - warn - unused - matches # # OPTIONS_GHC -fno - warn - name - shadowing # # OPTIONS_GHC -fno - warn - unused - local - binds # module Example1 where import Data.Aeson import qualified Data.ByteString.Lazy as LBS example :: IO () example = do !bs <- LBS.readFile "corpus/bench/hospita...
20122e85e7b31d0bc9360734b3cc92c00152101f28d47f596017d65dc367cc7e
OPLSS/oplss-notes-2017
mbaexercise.rkt
#lang racket (require redex) (provide (all-defined-out)) MBA - Mixed Language of Boolean and Arithmetic Expressions ;; Now with static ascription! ;; Natural Numbers (define (>0 n) (> n 0)) ;; Syntax from - s = = > ⌊⌋ ( U+230A U+230B ) ;; from-d ==> ⌈⌉ (U+2308 U+2309) d ∈ DBA ; s ∈ SBA ; n ∈ ℕ ; b ∈ BOOL...
null
https://raw.githubusercontent.com/OPLSS/oplss-notes-2017/9b7c15ed2aabaf8db8b15d1b666e2277d2504c24/Garcia/code/mbaexercise.rkt
racket
Now with static ascription! Natural Numbers Syntax from-d ==> ⌈⌉ (U+2308 U+2309) s ∈ SBA ; n ∈ ℕ ; b ∈ BOOL ; p ∈ PROG w ∈ CANON ; r ∈ REDEX ⊆ PROG ; f ∈ FAULTY ⊆ DBA ; c ∈ CONTRACTUM DECTXT n b (from-d n) (from-d b)) n b (from-s n) (from-s b)) Exy : context that produces X code when plugged with Y code de...
#lang racket (require redex) (provide (all-defined-out)) MBA - Mixed Language of Boolean and Arithmetic Expressions (define (>0 n) (> n 0)) from - s = = > ⌊⌋ ( U+230A U+230B ) (define-language MBA (s ::= n (pred s) (succ s) (zero? s) b (if s s s) (:: s τ) (from-d d)) (d ::= n (pred d) (succ d) (zero? d)...
61aef681c51edd5b9da5e977d8f8fe56e6a752a5dd913c9a29924033b5c3c6d9
ocaml-gospel/gospel
impure1.mli
type t (*@ mutable model view: int *) val f : t -> int (*@ y = f x pure modifies x *) { gospel_expected| [ 125 ] File " impure1.mli " , line 5 , characters 8 - 9 : 5 | ( * @ y = f x ^ Error : Type checking error : a pure function can not have writes . |...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/pure/negative/impure1.mli
ocaml
@ mutable model view: int @ y = f x pure modifies x @ y = f x ^ Error: Type checking error: a pure function cannot have writes. |gospel_expected}
type t val f : t -> int { gospel_expected| [ 125 ] File " impure1.mli " , line 5 , characters 8 - 9 : 5 | ( * @ y = f x ^ Error : Type checking error : a pure function can not have writes . |gospel_expected } [125] File "impure1.mli", line 5, characters 8-9:...
f64c5da64f62cb9130b85102c51129f9c601402d822c0a8e8afba6b11649f35c
mirage/irmin
test_git.ml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/9bcce092a500e7e7e88dab3e0240091488e46abe/test/irmin-git/test_git.ml
ocaml
Convert dir to file; changes order in listing
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
88bbc9329f94ec88e106cfac67a5ed4fdbce89a4db2a29c81ccdbc9dfb55aa13
herd/herdtools7
log.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/internal/lib/log.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
27c20d38781a41858a9e6f734ab77cc3c9c8aa7aa770c846e2807d1ac05139b3
mcorbin/riemann-discovery
project.clj
(defproject riemann-discovery "0.3.1-SNAPSHOT" :description "Service discovery for Riemann (riemann.io)" :url "-discovery" :license {:name "MIT"} :profiles {:dev {:dependencies [[riemann "0.3.0"] [org.clojure/clojure "1.9.0"]]}})
null
https://raw.githubusercontent.com/mcorbin/riemann-discovery/c9f68ed4c90e12526c511e459261f2c408ddc234/project.clj
clojure
(defproject riemann-discovery "0.3.1-SNAPSHOT" :description "Service discovery for Riemann (riemann.io)" :url "-discovery" :license {:name "MIT"} :profiles {:dev {:dependencies [[riemann "0.3.0"] [org.clojure/clojure "1.9.0"]]}})
dc512f298229a44d37c66a76513e5199a1b53511fc71b12c409b027417502715
euhmeuh/wasm-adventure
memory.rkt
#lang racket (provide data mem data-section) (require racket/list "utils.rkt") (define *memory* '()) (define *offsets* (make-hash)) (struct entry (name offset value)) (define (memstring? obj) (and (pair? obj) (eq? (car obj) 'memstring))) (define (memstring-elements memstr) (cddr memstr)) (define (memstring-...
null
https://raw.githubusercontent.com/euhmeuh/wasm-adventure/691e01eac3a2350bd35d783b3b138b8ab45cadf8/src/memory.rkt
racket
save the offset of every symbol encoutered in the memstring in a hash-table and return it the offset is relative to base-offset transform a list of values into a string representing bytes Examples: "\DE\AD\BE\EF\11\22\33\44\00\00\00\FF" "\00\01\00\02\00\03"
#lang racket (provide data mem data-section) (require racket/list "utils.rkt") (define *memory* '()) (define *offsets* (make-hash)) (struct entry (name offset value)) (define (memstring? obj) (and (pair? obj) (eq? (car obj) 'memstring))) (define (memstring-elements memstr) (cddr memstr)) (define (memstring-...
2a5d0cc8f805aa53a0511e98932cac2791817c1bc8d1f788bd151839b43ef9be
haskell-lisp/yale-haskell
print-valdefs.scm
print-valdefs.scm -- print AST structures for local declarations ;;; author : date : 14 Jan 1992 ;;; ;;; This file corresponds to ast/valdef-structs.scm. ;;; ;;; (define-ast-printer signdecl (object xp) (with-ast-block (xp) (write-delimited-list (signdecl-vars object) xp (function write) "," "" ...
null
https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/printers/print-valdefs.scm
scheme
This file corresponds to ast/valdef-structs.scm. This interacts with the layout rule stuff. See util.scm. pattern definition var-ref. The infix? slot from the single-fun-def must override the slot on the var-ref, since there can be a mixture of operator definition normal prefix function definition Pattern ...
print-valdefs.scm -- print AST structures for local declarations author : date : 14 Jan 1992 (define-ast-printer signdecl (object xp) (with-ast-block (xp) (write-delimited-list (signdecl-vars object) xp (function write) "," "" "") (write-string " ::" xp) (write-whitespace xp) (write ...
90074f0c1dc8a3830574d1656746de96b4d3b69f1eb7a4563790e9f7a4b0a1fd
apache/couchdb-ddoc-cache
ddoc_cache_util.erl
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, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-ddoc-cache/c762e90a33ce3cda19ef142dd1120f1087ecd876/src/ddoc_cache_util.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(ddoc_cache_util). -export([ new_uuid/0 ]). new_uuid() -> to_hex(crypto:rand_bytes(16), []). to_hex(<<>>, Acc) -> list_to_binary(li...
7af8d2333bd2c49f2a804ab11b34ae0e57a5c1958ed7d3075a8016434325893f
kmi/irs
new.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology news-ontology)
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/news-ontology/new.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology news-ontology)
ef6e5beb8448bc7f977b7bc72775b095b34cea2949c7331941b741b9f756eb75
waymonad/waymonad
Signal.hs
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2018 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
null
https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/Utility/Signal.hs
haskell
| Set a 'Way' action as signal handler. | Set a 'Way' action as signal handler. | Set a signal handler that will remove itself after it's fired once. This can be used for destroy handlers that don't have to be stored anywhere.
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2018 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
7adef80477496c18afdcc7421bb3ad818d5fd559dbb8e2f27fa61675dea6a202
argp/bap
batSubstring.ml
* re - implementation of SML 's Substring library in OCaml . * Copyright ( C ) 2008 Friendly < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * versio...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batSubstring.ml
ocaml
string, offset, length $T contains contains (of_string "foobar") 'c' = false contains (of_string "foobar") 'o' = true contains (of_string "") 'Z' = false * not implemented: collate * not implemented: position
* re - implementation of SML 's Substring library in OCaml . * Copyright ( C ) 2008 Friendly < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * versio...
5ba84e57f98d66508f8f2436b15707942805280ee8dbfb6b26684248250ca8f2
chenyukang/eopl
lang.scm
;; grammar for the CLASSES language. Based on IMPLICIT-REFS, plus ;; multiple-argument procedures, multiple-declaration letrecs, and ;; multiple-declaration lets. ;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comme...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch9/base/classes/lang.scm
scheme
grammar for the CLASSES language. Based on IMPLICIT-REFS, plus multiple-argument procedures, multiple-declaration letrecs, and multiple-declaration lets. grammatical specification ;;;;;;;;;;;;;;;; new productions for oop method formals this is special-cased to prevent it from mutation sllgen boilerplate...
(define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno digit)) number) (number ("-" digit (arbno digit)) number) )) ...
d435fd6c1e2b1fb1f34f747fb70cbad46b3c1d51c1d585d7c77168bcccff05da
rtoy/ansi-cl-tests
define-modify-macro.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Oct 19 11:42:14 2002 ;;;; Contains: Tests of DEFINE-MODIFY-MACRO (in-package :cl-test) (deftest define-modify-macro.1 (values (eval '(define-modify-macro dmm1-appendf (&rest args) append "Append lists onto a list")) (eval '(let ((u '(p ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/define-modify-macro.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of DEFINE-MODIFY-MACRO (deftest define-modify-macro.error.1 (signals-error (define-modify-macro) program-error) t) (deftest define-modify-macro.error.2 (signals-error (define-modify-macro dfm-error-1) program-error) t) (deftest define-modify-macro.error.3 (si...
Author : Created : Sat Oct 19 11:42:14 2002 (in-package :cl-test) (deftest define-modify-macro.1 (values (eval '(define-modify-macro dmm1-appendf (&rest args) append "Append lists onto a list")) (eval '(let ((u '(p q r)) v) (list (setq v u) (dmm1-appendf u '(a...
6946767c157cf5e5a181797585db1e2cc983aa62d7709af635e9a4b82242e48c
iu-parfunc/lvars
Par.hs
-- | Convenience module that reexports various parallel combinators. module Data.Par ( * Parallle consmuption of /O(1)/-splittable data module Data.Par.Splittable, -- * Ranges of numbers, aka iteration spaces module Data.Par.Range, * Basic per - element parallelism for T...
null
https://raw.githubusercontent.com/iu-parfunc/lvars/78e73c96a929aa75aa4f991d42b2f677849e433a/src/par-collections/Data/Par.hs
haskell
| Convenience module that reexports various parallel combinators. * Ranges of numbers, aka iteration spaces
module Data.Par ( * Parallle consmuption of /O(1)/-splittable data module Data.Par.Splittable, module Data.Par.Range, * Basic per - element parallelism for Traversables module Data.Par.Traversable ) where import Data.Par.Traversable import Data.Par.Splitt...
83bf0d8762ea4fa5a33d576ad95f075efae78f445c8de0c102d00c2f5353390d
hauleth/ssh_signature
ssh_signature.erl
-module(ssh_signature). -dialyzer([ {no_improper_lists, split/1}, Needed due to fact that OTP 25 removed ` { ed_pri , _ , _ , _ } ' key format {no_match, [ ed_to_pub/1, pk_sign/3, pk_verify/4, priv_to_public/1, sig_type/2, type_sig/3 ]}, {nowarn_functio...
null
https://raw.githubusercontent.com/hauleth/ssh_signature/784871a584db40a6a2e954b5d6093babecf0a28e/src/ssh_signature.erl
erlang
The `NS' must be not empty. == Options == <ul> <li>`hash' - hash algorithm used on input data. Can be either `sha256' or `sha512'. Defaults to `sha512'.</li> </ul> @end @doc Verify `Signature' of `Data'. Notice that this function do not check authenticity of the provided key. That is left to the...
-module(ssh_signature). -dialyzer([ {no_improper_lists, split/1}, Needed due to fact that OTP 25 removed ` { ed_pri , _ , _ , _ } ' key format {no_match, [ ed_to_pub/1, pk_sign/3, pk_verify/4, priv_to_public/1, sig_type/2, type_sig/3 ]}, {nowarn_functio...
1c604b1738b391b7e584a64fa51ae74b576727d199157662b0502c5941195646
cndreisbach/clojure-web-dev-workshop
client.cljs
(ns we-owe.client (:require [we-owe.views.templates :as templates] [goog.json :as gjson] [goog.dom.forms :as forms] [dommy.core :as dom] [ajax.core :refer [GET POST]]) (:use-macros [dommy.macros :only [node sel1]])) (declare init-add-debt-form) (defn- add-debt-form ...
null
https://raw.githubusercontent.com/cndreisbach/clojure-web-dev-workshop/95d9fdf94b39f8a1e408b8bf75a81b92899ee7d9/code/06-cljs/src-cljs/we-owe/client.cljs
clojure
(ns we-owe.client (:require [we-owe.views.templates :as templates] [goog.json :as gjson] [goog.dom.forms :as forms] [dommy.core :as dom] [ajax.core :refer [GET POST]]) (:use-macros [dommy.macros :only [node sel1]])) (declare init-add-debt-form) (defn- add-debt-form ...
b22020f73418074589d258a0d4c31e02517bdf44b3b6980c3e406c5e2d9deaff
kupl/LearnML
original.ml
let rec max (lst : int list) : int = match lst with [] -> 0 | hd :: tl -> if hd > max tl then hd else max tl
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/max/sub40/original.ml
ocaml
let rec max (lst : int list) : int = match lst with [] -> 0 | hd :: tl -> if hd > max tl then hd else max tl
ba122ca8860d6d8784a93ca82261c40a81f524dcf0efafc9e6feb5c969be64be
rsnikhil/Forvis_RISCV-ISA-Spec
Forvis_Spec_FD.hs
Copyright ( c ) 2018 , -- See LICENSE for license details module Forvis_Spec_FD where -- ================================================================ -- Part of: specification of all RISC-V instructions. This module is the specification of the RISC - V ' F ' and ' D ' Extension -- i.e., single- and dou...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v3/Forvis_Spec_FD.hs
haskell
See LICENSE for license details ================================================================ Part of: specification of all RISC-V instructions. i.e., single- and double-precision floating point. ================================================================ Haskell lib imports For bit-wise 'and' (.&.) etc....
Copyright ( c ) 2018 , module Forvis_Spec_FD where This module is the specification of the RISC - V ' F ' and ' D ' Extension import Bit_Utils import ALU import FPU import Arch_Defs import Machine_State import CSR_File import Virtual_Mem instr_specs_FD :: [(Instr_Spec, String)] instr_specs_FD = [(s...
0abb639dd589335cd068546e4c099bfb0565a5a9765e027c78c638ed2e4e3709
AdRoll/rebar3_hank
flow.erl
-module(flow). -export([iif/0]). -ifndef(IFNDEF). -define(IFNDEF, true). -endif. -define(IFDEF, true). -ifdef(IFDEF). -type ifdef() :: ifdef. -export_type([ifdef/0]). -endif. -define(IF(X), not X). -if(?IF(?VALUE)). iif() -> true. -elif(not ?IF(?VALUE)). iif() -> false. -else. iif() -> wat. -endif. -define(...
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/76e0ab51a871f1a50abf8a13065b67f0b4ecd1df/test/files/unused_macros/flow.erl
erlang
-module(flow). -export([iif/0]). -ifndef(IFNDEF). -define(IFNDEF, true). -endif. -define(IFDEF, true). -ifdef(IFDEF). -type ifdef() :: ifdef. -export_type([ifdef/0]). -endif. -define(IF(X), not X). -if(?IF(?VALUE)). iif() -> true. -elif(not ?IF(?VALUE)). iif() -> false. -else. iif() -> wat. -endif. -define(...
e348eb384ecaa4570a37181b750df4fb039396e0d4b74b7a603056a4e51d5dfe
xvw/preface
join.ml
module Functor = Functor.From_bifunctor
null
https://raw.githubusercontent.com/xvw/preface/8b0154ba20cf46fbd58eb7df707b874504070938/lib/preface_make/join.ml
ocaml
module Functor = Functor.From_bifunctor
d323e661dab9080bdc152d9921f0228b7d1e2e338ca7e3711ec5cdb45a4795bc
sorenmacbeth/vizard
lite.clj
(ns vizard.lite (:require [vizard.colors :refer [brews]])) (defn colors [name] (get brews name name)) (defn lite [vl-spec data-vals] (assoc-in vl-spec [:data :values] data-vals))
null
https://raw.githubusercontent.com/sorenmacbeth/vizard/4623ca18e87f0dc0eab591899a970e738623ccdd/src/clj/vizard/lite.clj
clojure
(ns vizard.lite (:require [vizard.colors :refer [brews]])) (defn colors [name] (get brews name name)) (defn lite [vl-spec data-vals] (assoc-in vl-spec [:data :values] data-vals))
76dff9ed4ec7166287fea6e009b55e8607662862d2c63e8ab300dc7fda40967c
processone/ejabberd
mod_private_opt.erl
%% Generated automatically %% DO NOT EDIT: run `make options` instead -module(mod_private_opt). -export([cache_life_time/1]). -export([cache_missed/1]). -export([cache_size/1]). -export([db_type/1]). -export([use_cache/1]). -spec cache_life_time(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer(). cach...
null
https://raw.githubusercontent.com/processone/ejabberd/b860a25c82515ba51b044e13ea4e040e3b9bbc41/src/mod_private_opt.erl
erlang
Generated automatically DO NOT EDIT: run `make options` instead
-module(mod_private_opt). -export([cache_life_time/1]). -export([cache_missed/1]). -export([cache_size/1]). -export([db_type/1]). -export([use_cache/1]). -spec cache_life_time(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer(). cache_life_time(Opts) when is_map(Opts) -> gen_mod:get_opt(cache_life_...
3fbe123a0e3f8158ac50cefd457f9ef71637550cc716c4e621ade551e9e8c6ad
exercism/babashka
project.clj
(defproject allergies "0.1.0-SNAPSHOT" :description "allergies exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/allergies/project.clj
clojure
(defproject allergies "0.1.0-SNAPSHOT" :description "allergies exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
ebf957b9fedd67198bbb9d8b2789839026c732f76e06444ec8fa5e7b175f752c
janestreet/opamcheck
package.ml
package.ml Copyright 2017 author : Copyright 2017 Inria author: Damien Doligez *) open Printf open Util type t = { name : string; version : string; lit : Minisat.Lit.t; dep_opt : string list; deps : Ast.package Ast.formula; } type u = { sat : Minisat.t; packs : t list; pack_ma...
null
https://raw.githubusercontent.com/janestreet/opamcheck/6af68a21805ed6f0b5427788a51f9cb6ba4c79c2/src/package.ml
ocaml
package.ml Copyright 2017 author : Copyright 2017 Inria author: Damien Doligez *) open Printf open Util type t = { name : string; version : string; lit : Minisat.Lit.t; dep_opt : string list; deps : Ast.package Ast.formula; } type u = { sat : Minisat.t; packs : t list; pack_ma...
998e7a134ea035c928cb2c139e66bc9d783bc824f95909cd82f6f3e4961083e2
vdloo/kodictl
nowplaying.rkt
#!/usr/bin/env racket #lang racket/base (require json) (require "../action.rkt") (require "../utils.rkt") (require "active-players.rkt") (provide kodictl-nowplaying) (define kodi-json-rpc-nowplaying (λ () (kodi-json-rpc-map-active-players (λ (playerid) (dict-get (dict-get (dict-get ...
null
https://raw.githubusercontent.com/vdloo/kodictl/31c775a0889c06fcf65a0d91d15937144eb6a30a/kodictl/commands/nowplaying.rkt
racket
#!/usr/bin/env racket #lang racket/base (require json) (require "../action.rkt") (require "../utils.rkt") (require "active-players.rkt") (provide kodictl-nowplaying) (define kodi-json-rpc-nowplaying (λ () (kodi-json-rpc-map-active-players (λ (playerid) (dict-get (dict-get (dict-get ...
85ccab0d7165fcaa1149b7b753e06434ead20b6a0e0769c77126e657a38556f4
CodyReichert/qi
openmcl.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CCL ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - fad / openmcl.lisp , v 1.6 2009/09/30 14:23:10 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modif...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-fad-master/openmcl.lisp
lisp
Syntax : COMMON - LISP ; Package : CCL ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
$ Header : /usr / local / cvsrep / cl - fad / openmcl.lisp , v 1.6 2009/09/30 14:23:10 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package ...
579c819860607dbd252640c1dc62bd3852f17712dd30f03192b7d7a6b3840c6f
fukamachi/clozure-cl
x86-win64-syscalls.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; Copyright ( C ) 2008 - 2009 Clozure Associates This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the ;;; file "LICENSE". The LLGPL consists...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/library/x86-win64-syscalls.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at
Copyright ( C ) 2008 - 2009 Clozure Associates This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed with Clozure CL as the file " LGPL " . Where these (in-p...
f29ce0d840975ac31d7ef425560769f22600387bec19660d232506a0d123b542
mfelleisen/RacketSchool
mon-mor-4.rkt
#lang racket (require redex) ;; ------------------------------------------------------- (define-language PCF (e ::= x (lambda (x) e) (e e) ;; booleans tt ff (if e e e) ;; arithmetic n (e + e)) (n ::= integer) (x ::= variable-not-otherwise-mentioned) ...
null
https://raw.githubusercontent.com/mfelleisen/RacketSchool/ada599f31d548a538a37d998b32d80aa881d699a/Plan/Code/mon-mor-4.rkt
racket
------------------------------------------------------- booleans arithmetic -------------------------------------------------------
#lang racket (require redex) (define-language PCF (e ::= x (lambda (x) e) (e e) tt ff (if e e e) n (e + e)) (n ::= integer) (x ::= variable-not-otherwise-mentioned) #:binding-forms (lambda (x) e #:refers-to x)) (default-language PCF) (...
061e592469f49b800589810629342131ba33d70b862aefe65f1ae2f8add1f8c5
archimag/mongo-cl-driver
client.lisp
write-concern.lisp ;;;; ;;;; This file is part of the MONGO-CL-DRIVER library, released under Lisp-LGPL. ;;;; See file COPYING for details. ;;;; Author : < > (in-package #:mongo-cl-driver) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Write Concern ;;;;...
null
https://raw.githubusercontent.com/archimag/mongo-cl-driver/300c10bd3d0b3ca3a82c8b32087bddbc7b6a86c3/driver/client.lisp
lisp
This file is part of the MONGO-CL-DRIVER library, released under Lisp-LGPL. See file COPYING for details. Write Concern Server Config MongoClient
write-concern.lisp Author : < > (in-package #:mongo-cl-driver) (defgeneric write-concern (obj) (:documentation "Return Write Concern for OBJ")) (defclass write-concern () ((w :initform :receipt-acknowledged :reader write-concern-w) (j :initarg :j :initform nil :accessor write-concern-j) (fsync :ini...
89670d609b8923d60ef03944003a92507ab720fd873a5a6815c02e5cc153bbb9
lspitzner/brittany
Test531.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func = fooooooooooooooooooooooooooooooooo + foooooooooooooooooooooooooooooooo [ foooooooooooooooooooooooooooooooo , foooooooooooooooooooooooooooooooo , foooooooooooooooooooooooooooooooo ]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test531.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func = fooooooooooooooooooooooooooooooooo + foooooooooooooooooooooooooooooooo [ foooooooooooooooooooooooooooooooo , foooooooooooooooooooooooooooooooo , foooooooooooooooooooooooooooooooo ]
c191fe7146e853894cd673cfe3ea7f6b59259800b9119aceea59111cf3c8ef02
ericfinster/catt.io
rawcheck.ml
(*****************************************************************************) (* *) (* Raw Expression Checking *) (* *) ...
null
https://raw.githubusercontent.com/ericfinster/catt.io/0f2446860b7daba8ac2c343f933056195151a819/lib/rawcheck.ml
ocaml
*************************************************************************** Raw Expression Checking ****************...
open Format open Suite open Pd open Term open Expr open Typecheck open Mtl type raw_env = { tau : (string * int) suite; section_ids : string list; section_args : tm_expr suite; } let empty_raw_env = { tau = Emp ; section_ids = [] ; section_args = Emp } module RawErrMnd = ErrT(struc...
7b776e6b2e6e60436980b4e482ac4db0695cbe3a050b756e9ecb28043c3ccb50
akvo/akvo-flow-api
survey_test.clj
(ns org.akvo.flow-api.datastore.survey-test (:require [clojure.test :refer [use-fixtures deftest testing is are]] [org.akvo.flow-api.component.remote-api] [org.akvo.flow-api.datastore :as ds] [org.akvo.flow-api.datastore.survey :as survey] [org.akvo.flow-api.datastore.u...
null
https://raw.githubusercontent.com/akvo/akvo-flow-api/223306dfdeb7f2cdb79f10c06eaa9ecb51f67c94/api/test/clojure/org/akvo/flow_api/datastore/survey_test.clj
clojure
(ns org.akvo.flow-api.datastore.survey-test (:require [clojure.test :refer [use-fixtures deftest testing is are]] [org.akvo.flow-api.component.remote-api] [org.akvo.flow-api.datastore :as ds] [org.akvo.flow-api.datastore.survey :as survey] [org.akvo.flow-api.datastore.u...
43b2f8800750fb75770eeae8ac505b7fff934b814ce424b5de2fd8ca54a6d204
paurkedal/batyr
connection.ml
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
null
https://raw.githubusercontent.com/paurkedal/batyr/12c9382b862f3925e22c37f21082bad72a05fd92/rockettime/lib/connection.ml
ocaml
useless Needs Unicode library.
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
f9e33143197bc5222bcbef1b45520ce9435295eb6bb390db8f5002be19846494
bn-d/ppx_pyformat
ppx_pyformat_runtime.mli
val align_left : char -> int -> string -> string val align_right : char -> int -> string -> string val align_center : char -> int -> string -> string type padding_config = char * int type sign = Plus | Minus | Space type grouping_option = Comma | Underscore val int_to_binary : ?padding:padding_config -> ?sign:sig...
null
https://raw.githubusercontent.com/bn-d/ppx_pyformat/bcb0031cf9fbce12d54d0e8d927ecf41ff3cab97/runtime/ppx_pyformat_runtime.mli
ocaml
* Only support ASCII at the moment
val align_left : char -> int -> string -> string val align_right : char -> int -> string -> string val align_center : char -> int -> string -> string type padding_config = char * int type sign = Plus | Minus | Space type grouping_option = Comma | Underscore val int_to_binary : ?padding:padding_config -> ?sign:sig...
ff5bc90d170901094bd22dfe940afbf6082121f2ebee0fa0d6ea034b2c15ae19
helium/router
router_discovery_handler.erl
-module(router_discovery_handler). -behavior(libp2p_framed_stream). %% ------------------------------------------------------------------ %% API Function Exports %% ------------------------------------------------------------------ -export([ server/4, client/2, version/0, dial/1, send/2 ]). %% -...
null
https://raw.githubusercontent.com/helium/router/da873a5e62fa606460af9ea48943aa15a4ffc725/src/router_discovery_handler.erl
erlang
------------------------------------------------------------------ API Function Exports ------------------------------------------------------------------ ------------------------------------------------------------------ libp2p_framed_stream Function Exports ------------------------------------------------------...
-module(router_discovery_handler). -behavior(libp2p_framed_stream). -export([ server/4, client/2, version/0, dial/1, send/2 ]). -export([ init/3, handle_data/3, handle_info/3 ]). -define(VERSION, "discovery/1.0.0"). -record(state, {}). server(Connection, Path, _TID, Args) -> l...