_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
f38bfcb3631614387fbcc49e7b4dcf6add650132e133313d8ea44f8cc6a9ad6b
saurabhnanda/odd-jobs
Job.hs
# LANGUAGE RankNTypes , FlexibleInstances , FlexibleContexts , PartialTypeSignatures , UndecidableInstances # # LANGUAGE ExistentialQuantification , RecordWildCards , ScopedTypeVariables # module OddJobs.Job ( -- * Starting the job-runner -- -- $startRunner startJobRunner -- * Configuring the jo...
null
https://raw.githubusercontent.com/saurabhnanda/odd-jobs/cc05b640528697ba37529ee617a031d1acd60c4b/src/OddJobs/Job.hs
haskell
* Starting the job-runner $startRunner * Configuring the job-runner $config * Creating/scheduling jobs $createJobs ** Structured logging $logging * Job-runner interals $internals * Database helpers * JSON helpers $jsonHelpers | The documentation of odd-jobs currently promotes 'startJobRunner', whi...
# LANGUAGE RankNTypes , FlexibleInstances , FlexibleContexts , PartialTypeSignatures , UndecidableInstances # # LANGUAGE ExistentialQuantification , RecordWildCards , ScopedTypeVariables # module OddJobs.Job ( startJobRunner , Config(..) , ConcurrencyControl(..) , ResourceCfg(..) , createJob , schedu...
4267fe625e9c31d4cd0dc45275fe1ae91b3f2f72bdacbf4ec69fa352040bcfef
lexi-lambda/racket-r7rs
record.rkt
#lang racket/base (require (for-syntax racket/base racket/function racket/list racket/match racket/syntax syntax/parse)) (provide define-record-type) (begin-for-syntax (define current-record-definition (make-pa...
null
https://raw.githubusercontent.com/lexi-lambda/racket-r7rs/5834ec6e66f63c61589130aaebd0f25ab3eefc2b/r7rs-lib/private/record.rkt
racket
A reified version of the record-field syntax class. Raises a syntax error if the given field id isn't in (current-record-fields), otherwise does nothing. identifier? -> void? Gets the index for a record field (in current-record-fields) given a particular field name. identifier? -> nonnegative-integer? ensure all...
#lang racket/base (require (for-syntax racket/base racket/function racket/list racket/match racket/syntax syntax/parse)) (provide define-record-type) (begin-for-syntax (define current-record-definition (make-pa...
56acdbc8de145ea863ffbf475424b24402c57d81ae6ccbd60b1c0a5945b7eda0
static-analysis-engineering/codehawk
bCHMIPSMetrics.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT )...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/8f49bb5b93bd4925b16ee8e31650c2a9080310aa/CodeHawk/CHB/bchlibmips32/bCHMIPSMetrics.ml
ocaml
bchlib bchlibmips32
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT )...
5845d0d9a7238631835957b33cfc5daa055e6b2125fe650ec8eb5f5c83b01e84
lehitoskin/ivy
db.rkt
#lang racket/base ; db.rkt ; contains class definitions for interacting with racquel and sqlite (require db/base db/sqlite3 racket/bool racket/class racket/contract racket/list racket/string racquel (only-in srfi/13 string-contain...
null
https://raw.githubusercontent.com/lehitoskin/ivy/e34c6e26a7ea32c3fe1f55d6d03cd32cd61d6209/db.rkt
racket
db.rkt contains class definitions for interacting with racquel and sqlite make sure the table and columns exist a single tag class which is associated with a list of images img is the image's path-string passing an image% object is a-okay img is the image's path-string passing an image% object is a-okay a sing...
#lang racket/base (require db/base db/sqlite3 racket/bool racket/class racket/contract racket/list racket/string racquel (only-in srfi/13 string-contains-ci) "files.rkt") (provide (all-defined-out) disconnect ...
bbd009242cae725b54faddf9a2f8ea194c8f65d7fcdd5023d34ecb7957f359b6
gildor478/ounit
segfault.ml
external cause_segfault: unit -> unit = "caml_cause_segfault"
null
https://raw.githubusercontent.com/gildor478/ounit/faf4936b17507406c7592186dcaa3f25c6fc138a/test/common/segfault.ml
ocaml
external cause_segfault: unit -> unit = "caml_cause_segfault"
a4fa6adf9a108761da9e60a45bbcb98f031bf67c4a7ec6d744f903a8a468067f
inhabitedtype/ocaml-aws
requestSpotFleet.mli
open Types type input = RequestSpotFleetRequest.t type output = RequestSpotFleetResponse.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/requestSpotFleet.mli
ocaml
open Types type input = RequestSpotFleetRequest.t type output = RequestSpotFleetResponse.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
659e908862bcb9fc36a0425bd94ccb8669117e25d48dfb556cf9e5ea276e20a8
jumarko/web-development-with-clojure
handler.clj
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/guestbook/test/clj/guestbook/test/handler.clj
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns guestbook.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [gues...
4b85cb1894495fd70c462601f4408e9fd8456cea1d77a1ba2e275c9188db25fc
3b/3bst
st.lisp
;;; See LICENSE for licence details. (in-package #:3bst) ;;; todo: better interface for sending output to child process ;; possibly users could subclass TERM and define a method to handle output? ;; for now just bind this to a function like ;; (lambda (term string) ...) (defparameter *write-to-child-hook* nil) ...
null
https://raw.githubusercontent.com/3b/3bst/37f319ceee8f1c1b5a99a5d27e602ae78b7dbf95/st.lisp
lisp
See LICENSE for licence details. todo: better interface for sending output to child process possibly users could subclass TERM and define a method to handle output? for now just bind this to a function like (lambda (term string) ...) possibly these should be propertie of term? "1;2"=vt100w/advanced video o...
(in-package #:3bst) (defparameter *write-to-child-hook* nil) (defvar *default-foreground* 7) (defvar *default-background* 0) (defvar *tab-spaces* 8) (defvar *bindings* (make-hash-table :test 'equalp)) #++(defconstant +UTF-INVALID+ #xFFFD) #++(defconstant +UTF-SIZ+ 4) #++(defconstant +ESC-BUF-SIZ+ (128*+...
0ff1c57fe0487bfe3c5aa27bef9211dfac02119ddc17cb30514cec8c44b7a05d
huangjs/cl
dlarfb.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lapack/lapack/dlarfb.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
8a6dd08069858d1d865f95119df8248c936476801d9daf32b6821148159dc867
dmitryvk/sbcl-win32-threads
with-stuff.lisp
;;;; code to tweak compilation environment, used to set up ;;;; for different phases of cross-compilation 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 i...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/cold/with-stuff.lisp
lisp
code to tweak compilation environment, used to set up for different phases of cross-compilation 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. a helper macro for WITH-ADDITIONAL-NICKNAME a...
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-COLD") (defmacro with-given-nicknames ((package-designator nicknames) &body body) (let ((p (gensym "P")) ...
22e845f02f4cc0a596837c8a9029d19ce4e7eec9b3fa2cc37437eabf8588908c
saolsen/floclo
core.clj
(ns floclo.core (:require [clojail.core :refer [sandbox]] [clojail.testers :refer [secure-tester secure-tester-without-def]] [clojure.core.async :refer [chan thread >!! go <!! <!]] [clojure.data.json :as json] [clojure.pprint :as p] [clojure.string :as strin...
null
https://raw.githubusercontent.com/saolsen/floclo/c92604eaf20c259083074ae4c4bf3a2ca79c3fde/src/floclo/core.clj
clojure
Hardcoded to use basic auth defined in environment for now.
(ns floclo.core (:require [clojail.core :refer [sandbox]] [clojail.testers :refer [secure-tester secure-tester-without-def]] [clojure.core.async :refer [chan thread >!! go <!! <!]] [clojure.data.json :as json] [clojure.pprint :as p] [clojure.string :as strin...
100211005d4f7c30c07f54c3aa981e1a9c93fe5633cad657a7291f9326aa049f
haroldcarr/learn-haskell-coq-ml-etc
todo.hs
import System.Environment import System.Directory import System.IO import Data.List dispatch :: [(String, [String] -> IO ())] dispatch = [("add", add) ,("view", view) ,("remove", remove) ] main = do (command:args) <- getArgs let (Just action) = lookup command dispatch ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/book/2011-Learn_You_a_Haskell/todo.hs
haskell
import System.Environment import System.Directory import System.IO import Data.List dispatch :: [(String, [String] -> IO ())] dispatch = [("add", add) ,("view", view) ,("remove", remove) ] main = do (command:args) <- getArgs let (Just action) = lookup command dispatch ...
b0d5fe8ff198743317cf4c9aae13524d9aa132473194d2239b22bc0e303829cb
drewc/druix
utils.scm
(define-module (druix utils) #:use-module (ice-9 popen) #:use-module (ice-9 rdelim) #:use-module (ice-9 textual-ports) #:use-module (guix build utils) #:use-module (guix packages) #:export (cmd-line $cmd sha256<-directory git-clone-repo ensure-git-repo git-repo-current-commit git-repo-describe--t...
null
https://raw.githubusercontent.com/drewc/druix/a3b22b3c1353dc42472df403f3fd4734e9c6b7e5/druix/utils.scm
scheme
=> /"path of repo"/ => ("commit" . "sha256")
(define-module (druix utils) #:use-module (ice-9 popen) #:use-module (ice-9 rdelim) #:use-module (ice-9 textual-ports) #:use-module (guix build utils) #:use-module (guix packages) #:export (cmd-line $cmd sha256<-directory git-clone-repo ensure-git-repo git-repo-current-commit git-repo-describe--t...
dc81a62170c3b2603708390600fba01ba8b95f47e36153c2cc1a546d305b3262
circuithub/rel8
Default.hs
module Rel8.Expr.Default ( unsafeDefault ) where -- base import Prelude () -- opaleye import qualified Opaleye.Internal.HaskellDB.PrimQuery as Opaleye -- rel8 import Rel8.Expr ( Expr ) import Rel8.Expr.Opaleye ( fromPrimExpr ) | Corresponds to the SQL @DEFAULT@ expression . -- This ' ' is unsafe for numer...
null
https://raw.githubusercontent.com/circuithub/rel8/c6ffdabf9655e268d82012734143a90cf233fcf9/src/Rel8/Expr/Default.hs
haskell
base opaleye rel8 will cause a runtime crash code @unsafeDefault + 1@ will crash, despite type checking. Given all these caveats, we suggest avoiding the use of default values where possible, instead being explicit. A common scenario where default values are used is with auto-incrementing identifier column...
module Rel8.Expr.Default ( unsafeDefault ) where import Prelude () import qualified Opaleye.Internal.HaskellDB.PrimQuery as Opaleye import Rel8.Expr ( Expr ) import Rel8.Expr.Opaleye ( fromPrimExpr ) | Corresponds to the SQL @DEFAULT@ expression . This ' ' is unsafe for numerous reasons , and should be us...
029a0afca3296d74801e2330c3388d9d7c8f62acf4fdb209ce46464211a8131b
circuithub/fast-downward
Goal.hs
{-# language OverloadedStrings #-} # language RecordWildCards # module FastDownward.SAS.Goal ( Goal(..), toSAS ) where import Data.Sequence ( Seq ) import qualified Data.Sequence as Seq import qualified Data.Text.Lazy.Builder import qualified Data.Text.Lazy.Builder.Int import FastDownward.SAS.VariableAssignment ( Var...
null
https://raw.githubusercontent.com/circuithub/fast-downward/9f6375af83f693076c957251e8ac0ab5c3dd63d7/FastDownward/SAS/Goal.hs
haskell
# language OverloadedStrings #
# language RecordWildCards # module FastDownward.SAS.Goal ( Goal(..), toSAS ) where import Data.Sequence ( Seq ) import qualified Data.Sequence as Seq import qualified Data.Text.Lazy.Builder import qualified Data.Text.Lazy.Builder.Int import FastDownward.SAS.VariableAssignment ( VariableAssignment ) import qualified ...
964b880154d4ec90aef3fa6ba957d832959ec3e6cf7c832fc36e1777aa9ad1dc
yoshiquest/forge-clj
event.clj
(ns forge-clj.event "Contains macros and functions for creating an event handler." (:require [forge-clj.util :refer [get-fullname gen-classname]]) (:import [net.minecraftforge.fml.common.eventhandler SubscribeEvent EventPriority])) (def event-packages (atom ["net.minecraftforge.fml.common.event." ...
null
https://raw.githubusercontent.com/yoshiquest/forge-clj/9ead6fcf9efc30ec0f0685562526ff7400c5cd3a/src/main/clojure/forge_clj/event.clj
clojure
(ns forge-clj.event "Contains macros and functions for creating an event handler." (:require [forge-clj.util :refer [get-fullname gen-classname]]) (:import [net.minecraftforge.fml.common.eventhandler SubscribeEvent EventPriority])) (def event-packages (atom ["net.minecraftforge.fml.common.event." ...
98c7b8a892fa8de377dd090a1f8609d9ed46e99bcaf1dbc6970ef700456c0435
tommyengstrom/domaindriven
ServerSpec.hs
# LANGUAGE TemplateHaskell # module DomainDriven.ServerSpec where import Action.ExtraParam import Action.ServerTest import Action.Store import Control.Concurrent import Control.Concurrent.Async import Control.Monad.Catch (try) import Control.Monad.Except import Data.Map qualified as M import Data.Text (Text) import D...
null
https://raw.githubusercontent.com/tommyengstrom/domaindriven/fb56041bb24b24b81aba26d1cf5b1dd91f91c2a2/domaindriven/test/DomainDriven/ServerSpec.hs
haskell
import Data.Kind (Type) --------------------------------------------------------------------------------------- extraParamAction_Sub1Server extraParamAction_Sub1Server runner = :<|> extraParamAction_Sub1_SayMyNumberHandler runner ) :: forall (m :: Type -> Type) ep_idrrs -> m Text extraParamActio...
# LANGUAGE TemplateHaskell # module DomainDriven.ServerSpec where import Action.ExtraParam import Action.ServerTest import Action.Store import Control.Concurrent import Control.Concurrent.Async import Control.Monad.Catch (try) import Control.Monad.Except import Data.Map qualified as M import Data.Text (Text) import D...
31b31b0fd0810e7043e8f193c1c6ed595ce27866edb9977d79c7422c986a41f6
bufferswap/ViralityEngine
symbol.lisp
(in-package #:vutils) (defun collect-symbols (package &key key test) "Collect a list of all symbols of `PACKAGE`." (let ((key (or key #'identity)) (test (or test (constantly t))) (symbols nil)) (do-symbols (symbol package) (when (funcall test symbol) (push (funcall key symbol) sym...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vutils/src/symbol.lisp
lisp
(in-package #:vutils) (defun collect-symbols (package &key key test) "Collect a list of all symbols of `PACKAGE`." (let ((key (or key #'identity)) (test (or test (constantly t))) (symbols nil)) (do-symbols (symbol package) (when (funcall test symbol) (push (funcall key symbol) sym...
9e5dbd47d4035ec79cef4f09c872dd19a8774fa482e835e12b202f2b94084fa0
Javran/advent-of-code
Day18.hs
module Javran.AdventOfCode.Y2017.Day18 ( ) where import Control.Monad import Control.Monad.Writer.CPS import Data.Char import qualified Data.IntMap.Strict as IM import qualified Data.Sequence as Seq import qualified Data.Vector as V import Data.Void import Javran.AdventOfCode.Misc (commitLeft1) import Javran.AdventO...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2017/Day18.hs
haskell
immediate value or a value from register below are basic parsers that won't consume extra spaces afterwards. ((pc, regs), last sent) machinery for tagging results with either internal or external. | Done with execution | Machine is paused but can be resumed without affecting input / output | Needs an input ...
module Javran.AdventOfCode.Y2017.Day18 ( ) where import Control.Monad import Control.Monad.Writer.CPS import Data.Char import qualified Data.IntMap.Strict as IM import qualified Data.Sequence as Seq import qualified Data.Vector as V import Data.Void import Javran.AdventOfCode.Misc (commitLeft1) import Javran.AdventO...
def9ee19b2f66d9dfeacfcd50db9c3722571538fcf3fa2b6f3bb0138a39dd528
kazu-yamamoto/logger
SingleLogger.hs
# LANGUAGE RecordWildCards # module System.Log.FastLogger.SingleLogger ( SingleLogger , newSingleLogger ) where import Control.Concurrent (forkIO, newEmptyMVar, MVar, takeMVar, putMVar) import Control.Concurrent.STM import System.Log.FastLogger.FileIO import System.Log.FastLogger.IO import System.Log.FastLog...
null
https://raw.githubusercontent.com/kazu-yamamoto/logger/93914dd1e487bf90b35a03e40ec24ab3b3e0f260/fast-logger/System/Log/FastLogger/SingleLogger.hs
haskell
-------------------------------------------------------------- | A non-scale but time-ordered logger. writer queue -------------------------------------------------------------- -------------------------------------------------------------- --------------------------------------------------------------
# LANGUAGE RecordWildCards # module System.Log.FastLogger.SingleLogger ( SingleLogger , newSingleLogger ) where import Control.Concurrent (forkIO, newEmptyMVar, MVar, takeMVar, putMVar) import Control.Concurrent.STM import System.Log.FastLogger.FileIO import System.Log.FastLogger.IO import System.Log.FastLog...
0d23931d7f0b7e5cf3e051d1c12a9a73572fe9e455f79e3fbaef35c79cd79499
happi/theBeamBook
json_test.erl
-module(json_test). -compile({parse_transform, json_parser}). -export([test/1]). test(V) -> <<{{ "name" : "Jack (\"Bee\") Nimble", "format": { "type" : "rect", "widths" : [1920,1600], "height" : (-1080), "interlace" : ...
null
https://raw.githubusercontent.com/happi/theBeamBook/3971e8e2d09e3676702a2a5fa8c494f1f803d555/code/compiler_chapter/src/json_test.erl
erlang
-module(json_test). -compile({parse_transform, json_parser}). -export([test/1]). test(V) -> <<{{ "name" : "Jack (\"Bee\") Nimble", "format": { "type" : "rect", "widths" : [1920,1600], "height" : (-1080), "interlace" : ...
a64d1ff5a2291d449a9fc33e529c532155cc31558e0eb827b3ca5f2174019cf7
backtracking/ocaml-bazaar
burr.ml
* Draw a piece of a six - piece puzzle in ASCII art , as follows : + ----+ + ----+----+ + ----+ / /| / /| / /| + + | + ----+ + | + + | / / + --| / / + -/ / + + ----+ / | + ----+ / + ---...
null
https://raw.githubusercontent.com/backtracking/ocaml-bazaar/e62c9139eeef1d00c0ef4628f7c8b6a66808cec1/burr.ml
ocaml
corners edges faces draw rear to front, and bottom to top (painter's algorithm) tests
* Draw a piece of a six - piece puzzle in ASCII art , as follows : + ----+ + ----+----+ + ----+ / /| / /| / /| + + | + ----+ + | + + | / / + --| / / + -/ / + + ----+ / | + ----+ / + ---...
a0cd1fe612e2acaaf79329666e3854c92f6f0317ea52bd06ad9758ddc7704696
haskell/aeson
Properties.hs
# LANGUAGE NoImplicitPrelude # module Properties (module Properties) where import Prelude.Compat import Instances () import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) import Test.QuickCheck (Property) import PropUtils import PropertyGeneric import PropertyKeys import PropertyQC impo...
null
https://raw.githubusercontent.com/haskell/aeson/74ecc025d8d928631e3bb97261b2d93da14e1d6e/tests/Properties.hs
haskell
# LANGUAGE NoImplicitPrelude # module Properties (module Properties) where import Prelude.Compat import Instances () import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) import Test.QuickCheck (Property) import PropUtils import PropertyGeneric import PropertyKeys import PropertyQC impo...
d7b9cf7990718252c34ed9524a7aa34d34a9a87cbc3c27a1fa1a6dd4f6a9452c
jaredly/reason-language-server
translprim.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/jaredly/reason-language-server/ce1b3f8ddb554b6498c2a83ea9c53a6bdf0b6081/ocaml_typing/407/translprim.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes open Primitive open Types open Typedtree open Typeopt open Lambda type error = ...
8ed48732bbc9200340aff7eee9fc6811514238ed073b0f251ad4c4ab60d466dc
rd--/hsc3
phasorModal.help.hs
-- phasorModal let input = lpf (dust2Id 'α' ar 3) 1500 freq = control kr "freq" 100.0 decay = control kr "decay" 0.25 damp = control kr "damp" 1.0 amp = control kr "amp" 0.5 phase = control kr "phase" 0.0 in X.phasorModal input freq decay damp amp phase -- phasorModal let pitchstretch = -0.1 f0...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/phasorModal.help.hs
haskell
phasorModal phasorModal
let input = lpf (dust2Id 'α' ar 3) 1500 freq = control kr "freq" 100.0 decay = control kr "decay" 0.25 damp = control kr "damp" 1.0 amp = control kr "amp" 0.5 phase = control kr "phase" 0.0 in X.phasorModal input freq decay damp amp phase let pitchstretch = -0.1 f0 = 80 k = 32 n = mceFi...
1ec50ad706ae09d0aaa99f4acf6ae70740b7bbfd8eb083753322a23f24646802
facebookarchive/pfff
test_parsing_hs.mli
Print the set of tokens in a file val test_tokens_hs : Common.filename -> unit This makes accessible the different test_xxx functions above from * the command line , e.g. ' $ pfff -parse_hs foo.lisp will call the * test_parse_hs function . * the command line, e.g. '$ pfff -parse_hs foo.lisp will call t...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_haskell/parsing/test_parsing_hs.mli
ocaml
Print the set of tokens in a file val test_tokens_hs : Common.filename -> unit This makes accessible the different test_xxx functions above from * the command line , e.g. ' $ pfff -parse_hs foo.lisp will call the * test_parse_hs function . * the command line, e.g. '$ pfff -parse_hs foo.lisp will call t...
752cf404e897256c2eb90e0c48ca5cd8f64a87c340a31dc0c3429e21242f30c4
EduardoRFS/ppx_let_locs
printtyp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/EduardoRFS/ppx_let_locs/46b0cdfc46c4bc1450a25b6ae455cc65e663acd0/ocaml/typing/printtyp.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Ctype open Format open Longident open Path open Asttypes open Types open Btype open Outcometree module...
1760d72957730128b878c27c3bd601b16218ffa63724e1a047b0aa29f7867c85
alejandrogallo/keyboard-lab
KeyboardReader.hs
{-# LANGUAGE TypeSynonymInstances #-} module KeyboardReader where import Dhall ( FromDhall, input, auto ) import Keyboard ( Key, Keyboard ) import Board ( Board, Switch ) import Data.Text (pack) instance FromDhall Key instance FromDhall Switch instance FromDhall Board readKeyboard :: String -> IO Keyboard readKeyboa...
null
https://raw.githubusercontent.com/alejandrogallo/keyboard-lab/6d67deb06806480d82967713ab8acac6b6b47771/KeyboardReader.hs
haskell
# LANGUAGE TypeSynonymInstances #
module KeyboardReader where import Dhall ( FromDhall, input, auto ) import Keyboard ( Key, Keyboard ) import Board ( Board, Switch ) import Data.Text (pack) instance FromDhall Key instance FromDhall Switch instance FromDhall Board readKeyboard :: String -> IO Keyboard readKeyboard p = input auto $ pack p readBoard ...
c705da8b02e31177ea09e29f8a0c7c4b5b0bd03490a34ad134b45976d43540e5
roman01la/clojurescript-workshop
core.cljs
(ns app.core (:require)) (enable-console-print!) (println "This text is printed from src/app/core.cljs. Go ahead and edit it and see reloading in action.") ;; define your app data so that it doesn't get over-written on reload (defonce app-state (atom {:text "Hello world!"})) (defn on-js-reload []) ;; optionall...
null
https://raw.githubusercontent.com/roman01la/clojurescript-workshop/48b02266d65cae8113edd4ce34c4ab282ad256d1/14.project_setup_dev_prod/app/src/app/core.cljs
clojure
define your app data so that it doesn't get over-written on reload optionally touch your app-state to force rerendering depending on your application (swap! app-state update-in [:__figwheel_counter] inc)
(ns app.core (:require)) (enable-console-print!) (println "This text is printed from src/app/core.cljs. Go ahead and edit it and see reloading in action.") (defonce app-state (atom {:text "Hello world!"})) (defn on-js-reload [])
ff85b76a2ab0148b89a295902f65895d047022ab28e250860c2c45cb5e2c9be8
ArulselvanMadhavan/haskell-first-principles
Ex26_8.hs
module Ex26_8 where import Control.Monad.Trans.Except import Control.Monad.Trans.Maybe import Control.Monad.Trans.Reader -- embedded :: MaybeT (ExceptT String (ReaderT () IO)) Int -- embedded = MaybeT (ExceptT (ReaderT (\() -> (const (Right (Just 1)) ())))) embedded1 :: ReaderT () IO In...
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter26/src/Ex26_8.hs
haskell
embedded :: MaybeT (ExceptT String (ReaderT () IO)) Int embedded = MaybeT (ExceptT (ReaderT (\() -> (const (Right (Just 1)) ()))))
module Ex26_8 where import Control.Monad.Trans.Except import Control.Monad.Trans.Maybe import Control.Monad.Trans.Reader embedded1 :: ReaderT () IO Int embedded1 = ReaderT ( \ _ - > return 1 ) embedded1 = ReaderT (const $ return 1) embedded2 :: ExceptT String (ReaderT () IO) Int embe...
0620215ba4de56be119d1aa59add1b3f219c05ddbca5984d22e4cbc59e426812
aryx/fork-efuns
macros.mli
val start_macro: Efuns.action val end_macro: Efuns.action val call_macro: Efuns.action
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/features/macros.mli
ocaml
val start_macro: Efuns.action val end_macro: Efuns.action val call_macro: Efuns.action
a2dfb7f289672ff14339ee457a72ab08ea8f65e45e4c09d7f0fcdd863b1833e7
wireless-net/erlang-nommu
wxGraphicsRenderer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxGraphicsRenderer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxGraphicsRenderer). -include("wx...
1bc2f52a9ab61b94d2d403886b37b36ac937b3ccb3ca31aed83def4694be0fb0
softwarelanguageslab/maf
sbar.scm
(define Capacity (int-top)) (define Haircuts (int-top)) (define waiting-room (actor "waiting-room" (waiting-customers barber-asleep) (enter (customer) (if (= (length waiting-customers) Capacity) (begin (send customer full) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/be58e02c63d25cab5b48fdf7b737b68b882e9dca/test/concurrentScheme/actors/contracts/savina/sbar.scm
scheme
(define Capacity (int-top)) (define Haircuts (int-top)) (define waiting-room (actor "waiting-room" (waiting-customers barber-asleep) (enter (customer) (if (= (length waiting-customers) Capacity) (begin (send customer full) ...
09e4489094eeff9140b4824110ea59e53889f165f847cfb6c79b01327254885c
qitab/ace.core
sequence-test.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . ;;;; ;;;; Tests for the ace.core.sequence package. ;;;; (ace.core.package:defpackage* #:ace.core.sequence-test (:use #:common-lisp #:ace.test #:ace.co...
null
https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/sequence-test.lisp
lisp
license that can be found in the LICENSE file or at . Tests for the ace.core.sequence package.
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style (ace.core.package:defpackage* #:ace.core.sequence-test (:use #:common-lisp #:ace.test #:ace.core.sequence) (:use-alias #:ace.core.sequence)) (in-package #:ace.core.sequence-test) (deftest removef-test () (let* ...
d8e9924753b6a14a8b82f5dacb84c1f01c23cfe7489b488243b50e0c394eb44d
lilactown/lilac.town
knobs.clj
(ns lilactown.knobs (:require [clojure.spec.alpha :as s])) (s/)
null
https://raw.githubusercontent.com/lilactown/lilac.town/295669e4511e79877da14232457dea26f098acd8/src/lilactown/knobs.clj
clojure
(ns lilactown.knobs (:require [clojure.spec.alpha :as s])) (s/)
6325762ed3706128a5d346f3276801682a5e6936408d0d05a0abfa761c930c21
hadolint/language-docker
Healthcheck.hs
# LANGUAGE RecordWildCards # module Language.Docker.Parser.Healthcheck ( parseHealthcheck, ) where import Data.Maybe (listToMaybe) import qualified Data.Text as T import Data.Time.Clock (secondsToDiffTime) import Language.Docker.Parser.Cmd (parseCmd) import Language.Docker.Parser.Prelude import Language.Docker.Sy...
null
https://raw.githubusercontent.com/hadolint/language-docker/24f7886b1b07a32b50b82497497a0544d43f1a45/src/Language/Docker/Parser/Healthcheck.hs
haskell
Let's do some validation on the flags
# LANGUAGE RecordWildCards # module Language.Docker.Parser.Healthcheck ( parseHealthcheck, ) where import Data.Maybe (listToMaybe) import qualified Data.Text as T import Data.Time.Clock (secondsToDiffTime) import Language.Docker.Parser.Cmd (parseCmd) import Language.Docker.Parser.Prelude import Language.Docker.Sy...
8f55d882fa0ab5e3bd583a6ee496e1b246978e6fd0d79d0a031bf53a44002d7d
CRogers/obc
gMenu.ml
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/lablgtk/gMenu.ml
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
9e6e77d0da194e1d7435f6cd1b173a140153755f494d8606a91a3f7aadf8950d
heyarne/airsonic-ui
helpers_test.cljs
(ns airsonic-ui.helpers-test (:require [cljs.test :refer [deftest testing is]] [airsonic-ui.helpers :as helpers])) (deftest add-classes (testing "Should add classes to a simple hiccup keyword" (is (= :div.foo (helpers/add-classes :div :foo))) (is (= :div.bar.bar (helpers/add-classes :div.bar :b...
null
https://raw.githubusercontent.com/heyarne/airsonic-ui/7adb03d6e2ba0ff764796a57b7e87f62b242c9b7/test/cljs/airsonic_ui/helpers_test.cljs
clojure
(ns airsonic-ui.helpers-test (:require [cljs.test :refer [deftest testing is]] [airsonic-ui.helpers :as helpers])) (deftest add-classes (testing "Should add classes to a simple hiccup keyword" (is (= :div.foo (helpers/add-classes :div :foo))) (is (= :div.bar.bar (helpers/add-classes :div.bar :b...
eb6800f81e1f7435274ed4bf5e93aec8cad6c30e289087b2e0feb548459ef0ee
pjagielski/disclojure-ui
user.clj
(ns user) (defn dev "Load and switch to the 'dev' namespace." [] (require 'repl) (in-ns 'repl) :loaded)
null
https://raw.githubusercontent.com/pjagielski/disclojure-ui/327d2af8f5a904e4ad66f79dc1682d5d79bea0d2/dev/user.clj
clojure
(ns user) (defn dev "Load and switch to the 'dev' namespace." [] (require 'repl) (in-ns 'repl) :loaded)
22d6e6d7ea19a9f6eb0c3ee875ed1e47664d6625f1c5cb8d9b3d7cdf33a7acd8
hirokai/PaperServer
Development.hs
# LANGUAGE CPP # module Settings.Development where import Prelude development :: Bool development = #if DEVELOPMENT True #else False #endif production :: Bool production = not development
null
https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Settings/Development.hs
haskell
# LANGUAGE CPP # module Settings.Development where import Prelude development :: Bool development = #if DEVELOPMENT True #else False #endif production :: Bool production = not development
e79bbfb63620a31ec5979f1be3bef29c199fa4bf3e5f99c500462b1fcd3c2891
ananthakumaran/eopl
24.clj
;; Use the tricks of the program above to write the pair of mutually recursive procedures , odd and even , as in exercise 3.32 (ns eopl.chap-3.24 (:use eopl.core.proc-lang) (:use clojure.test)) (deftest mutually-recursive-test (is (= (result "let _even = proc(e?) proc(o?) ...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_3/24.clj
clojure
Use the tricks of the program above to write the pair of mutually
recursive procedures , odd and even , as in exercise 3.32 (ns eopl.chap-3.24 (:use eopl.core.proc-lang) (:use clojure.test)) (deftest mutually-recursive-test (is (= (result "let _even = proc(e?) proc(o?) proc(n) if zero?(n) ...
8366416cb7e1db141d4a088442b9c724731df57d0167592169dbbb1759bd49cb
cyclone-scheme/winds
winds.scm
(import (scheme base) (scheme read) (only (scheme write) display) (scheme file) (scheme process-context) (scheme repl) (scheme cyclone pretty-print) (except (scheme cyclone util) delete! remove string-join) (scheme cyclone libraries) (except (srfi ...
null
https://raw.githubusercontent.com/cyclone-scheme/winds/aa607b31d46f777e7ff7454351ef545687cba81a/winds.scm
scheme
basic format strings User interface procedures Package authoring reads 'package.scm' skipping the initial (package ...) tag Try to guess package name if not already present in an old 'package.scm' file. ((libA) ...) -> libA ((cyclone libA) ...)) -> libA General interface Update all installed packages Info pro...
(import (scheme base) (scheme read) (only (scheme write) display) (scheme file) (scheme process-context) (scheme repl) (scheme cyclone pretty-print) (except (scheme cyclone util) delete! remove string-join) (scheme cyclone libraries) (except (srfi ...
016bf6127499b258916e2303fd6142ba504d8e580286521bbc2cd2cdcadd2575
kawasima/supreme-uploading
main.clj
(ns supreme-uploading.main (:gen-class) (:require [com.stuartsierra.component :as component] [duct.middleware.errors :refer [wrap-hide-errors]] [meta-merge.core :refer [meta-merge]] [supreme-uploading.config :as config] [supreme-uploading.system :refer [new-system]]))...
null
https://raw.githubusercontent.com/kawasima/supreme-uploading/35837b737719f7cca9f5a7ff67f21f486100331b/src/clj/supreme_uploading/main.clj
clojure
(ns supreme-uploading.main (:gen-class) (:require [com.stuartsierra.component :as component] [duct.middleware.errors :refer [wrap-hide-errors]] [meta-merge.core :refer [meta-merge]] [supreme-uploading.config :as config] [supreme-uploading.system :refer [new-system]]))...
cf67a70e2d3b521f22bdba786610f8164a42487768fa558d62841331d1081abc
IndecisionTree/adventofcode2022
Types.hs
# language GADTs # module AOC.Types ( Solution (..), Submission (..) ) where import Data.Text (Text) import GHC.Generics (Generic) import Web.Internal.FormUrlEncoded (ToForm) import Type.Reflection data Solution where Solution :: (Typeable b, Show b) => (Text -> a) -> (a -> b) -> (a -> b) -> Solution data ...
null
https://raw.githubusercontent.com/IndecisionTree/adventofcode2022/62df075ecaf6fe3405072384f5a6b95fb537faa4/aoc/AOC/Types.hs
haskell
# language GADTs # module AOC.Types ( Solution (..), Submission (..) ) where import Data.Text (Text) import GHC.Generics (Generic) import Web.Internal.FormUrlEncoded (ToForm) import Type.Reflection data Solution where Solution :: (Typeable b, Show b) => (Text -> a) -> (a -> b) -> (a -> b) -> Solution data ...
bf53b0d031708b1965e7c067f04f3fa66617d2d39a8641ef5d1ff65d436fd89f
B-Lang-org/bsc
SignalNaming.hs
module SignalNaming (signalNameFromAExpr) where import Data.List import Data.Char import Text.Regex import ASyntax import Prim import ErrorUtil(internalError) import PPrint import Id import PreIds -- remember to allow a few characters for __d3222 etc suffix signal_length_limit :: Int signal_length_limit = 50 signal...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/SignalNaming.hs
haskell
remember to allow a few characters for __d3222 etc suffix omit "_read" on register reads use the identifier name (it is the user-known function name); (don't complicate things with the argument list; the unique prefix at the end will be enough)
module SignalNaming (signalNameFromAExpr) where import Data.List import Data.Char import Text.Regex import ASyntax import Prim import ErrorUtil(internalError) import PPrint import Id import PreIds signal_length_limit :: Int signal_length_limit = 50 signalNameFromAExpr :: AExpr -> String signalNameFromAExpr expr = ...
32d36345f1044cf701ff530c956970f372f10e8454c46b55e964145995e63801
kevinchevalier/kemulator
OpCodes.hs
module OpCodes where import DataTypes import Data.Word import Operations import Data.List import Addressing import CPU6502 getOperation :: Word8 -> Op getOperation opcode = case (lookup opcode opcodes) of Just o -> o Nothing -> (noop, NoInputAddressing, NoOutputAddressing) opcodes ...
null
https://raw.githubusercontent.com/kevinchevalier/kemulator/f8bbaad5105f89006fbed8fe58a193fb5bfced8d/OpCodes.hs
haskell
module OpCodes where import DataTypes import Data.Word import Operations import Data.List import Addressing import CPU6502 getOperation :: Word8 -> Op getOperation opcode = case (lookup opcode opcodes) of Just o -> o Nothing -> (noop, NoInputAddressing, NoOutputAddressing) opcodes ...
0674f20876783c8aead14d09bd056b1492e160e8f98a436ff6e56e6ef18915fb
mfikes/fifth-postulate
ns258.cljs
(ns fifth-postulate.ns258) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns258.cljs
clojure
(ns fifth-postulate.ns258) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
2597582b2b3e066ce6f052f660e3d4534190ecb6667227844b2b3ce31999163e
slipstream/SlipStreamServer
service_attribute_namespace_test.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.service-attribute-namespace-test (:require [clojure.test :refer [deftest]] [com.sixsq.slipstream.ssclj.resources.service-attribute-namespace :as sn] [com.sixsq.slipstream.ssclj.resources.spec.service-attribute-namespace :as san] [com.sixsq.slipstream.ssclj...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/test/com/sixsq/slipstream/ssclj/resources/spec/service_attribute_namespace_test.cljc
clojure
(ns com.sixsq.slipstream.ssclj.resources.spec.service-attribute-namespace-test (:require [clojure.test :refer [deftest]] [com.sixsq.slipstream.ssclj.resources.service-attribute-namespace :as sn] [com.sixsq.slipstream.ssclj.resources.spec.service-attribute-namespace :as san] [com.sixsq.slipstream.ssclj...
c3b9fcc3217188bedadc95a15c9253257351e5884629627bb7e1091248e79e4c
wangsix/VMO_repeated_themes_discovery
occurrences.lisp
;(in-package :common-lisp-user) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "director-musices" :type "lisp") *lisp-co...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/mozartK282Mvt2/monophonic/repeatedPatterns/sectionalRepetitions/J/occurrences/script/occurrences.lisp
lisp
(in-package :common-lisp-user) Load the piece and the pattern. Define all occurrences. occi. Save as csv, lisp, and midi. Definition of ontime-pitch pairs. Definition for MIDI file. Save MIDI file (alter any anacrusis). Save lisp-format text file. Save CSV.
(load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "director-musices" :type "lisp") *lisp-code-root*)) (load (merge-pathnam...
ee3a0228ea0c82818effbd9ce7d780fac0eeced5bb621c61fabc579b99ff7497
techascent/tech.opencv
project.clj
(defproject techascent/tech.opencv "5.1-SNAPSHOT" :description "Opencv bindings via javacpp" :url "-ascent/tech.opencv" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-tools-deps "0.4.1"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-to...
null
https://raw.githubusercontent.com/techascent/tech.opencv/7e5a045c3e926fce28826f141cec45cf9873a157/project.clj
clojure
(defproject techascent/tech.opencv "5.1-SNAPSHOT" :description "Opencv bindings via javacpp" :url "-ascent/tech.opencv" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-tools-deps "0.4.1"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-to...
257ab547ba1148e49ec22b50cefc6b7b2a710689ab19351e4b6c580906a838dd
arcfide/chez-srfi
ec.scm
; <PLAINTEXT> ; Eager Comprehensions in [outer..inner|expr]-Convention ; ====================================================== ; , Eindhoven , The Netherlands , 26 - Dec-2007 ; Scheme R5RS (incl. macros), SRFI-23 (error). ; Loading the implementation into Scheme48 0.57 : ; ,open srfi-23 ; ,load ec.scm ; Lo...
null
https://raw.githubusercontent.com/arcfide/chez-srfi/96fb553b6ba0834747d5ccfc08c181aa8fd5f612/%253a42/ec.scm
scheme
<PLAINTEXT> Eager Comprehensions in [outer..inner|expr]-Convention ====================================================== Scheme R5RS (incl. macros), SRFI-23 (error). ,open srfi-23 ,load ec.scm ; File > Open ... "ec.scm", click Execute (require 'macro) (require 'record) (load "ec.scm") Implem...
, Eindhoven , The Netherlands , 26 - Dec-2007 Loading the implementation into Scheme48 0.57 : Loading the implementation into PLT / DrScheme 317 : Loading the implementation into SCM 5d7 : The fundamental comprehension do - ec the CPS is ( m ( cc ... ) arg ... ) - > ( cc ... expr ... ) mac...
1255c06093d3bca85e9ddfda359d840febe7931372b2a4623905d35a9e63deb9
Mercerenies/net-game
os.lisp
(defpackage #:net-game-os (:use :common-lisp) (:nicknames :ng-os) (:export :argv :pid :full-exit :connect-to-socket)) (in-package #:net-game-os) #| | This file consists of all of the GNU-specific code required to run the game. If you | wish to use another Common Li...
null
https://raw.githubusercontent.com/Mercerenies/net-game/da30ca36a7f468e6f9c062fd7bc5e4fed4ee95f9/lisp/os.lisp
lisp
| This file consists of all of the GNU-specific code required to run the game. If you | wish to use another Common Lisp implementation, all you need to do is add a line to | each of these functions mapping the function to its implementation-specific name | in the implementation of your choice.
(defpackage #:net-game-os (:use :common-lisp) (:nicknames :ng-os) (:export :argv :pid :full-exit :connect-to-socket)) (in-package #:net-game-os) (defun argv () "Returns the standard ARGV list of arguments passed into the program from the command line." (or #+cl...
446015688366dffa35926e7c1226f8fb7039658ca3703134c07939c8600a2c16
pixlsus/registry.gimp.org_static
patdavid-anaglyph-to-lr-pair.scm
; Create Luminosity Masks for an image Created by < > ; ; Will isolate light, mid, and dark tones in an image as channel masks Adapted from tutorial by ( originally for PS ) ; -1.html (define (script-fu-patdavid-anaglyph-to-pair Image Drawable) (let* ( ; define variables (RedLayer (car (g...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/patdavid-anaglyph-to-lr-pair.scm
scheme
Create Luminosity Masks for an image Will isolate light, mid, and dark tones in an image as channel masks -1.html define variables Get the image width... Finally register our script with script-fu.
Created by < > Adapted from tutorial by ( originally for PS ) (define (script-fu-patdavid-anaglyph-to-pair Image Drawable) (let* (RedLayer (car (gimp-layer-new-from-drawable Drawable Image)) ) (CyanLayer (car (gimp-layer-new-from-drawable Drawable Image)) ) (Red (car (gimp-layer-...
c4557bfdf162f8a728bb12bcfc20a834e61bde8ccfb7b520de5d3054b435b091
fractalide/fractalide
message.rkt
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/agents/gui/helper) (require racket/gui/base racket/match) (require (prefix-in class: racket/class)) (define base-default (hash 'label #f 'auto-resize #t 'style '() 'font normal-...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/gui/message.rkt
racket
in port out port
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/agents/gui/helper) (require racket/gui/base racket/match) (require (prefix-in class: racket/class)) (define base-default (hash 'label #f 'auto-resize #t 'style '() 'font normal-...
ead923378de884b6d79622bd39301f3f2dc48ccf8f28e49e9465a92e4897223a
racket/plai
test-random-mutator.rkt
#lang racket/base (require rackunit plai/random-mutator racket/runtime-path racket/file racket/pretty ;; test find-heap-values and save-random-mutator via the contract'd ;; interface, just in case they break their contracts (except-in plai/private/random-mu...
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/tests/test-random-mutator.rkt
racket
test find-heap-values and save-random-mutator via the contract'd interface, just in case they break their contracts random mutator generation tests test-code : exp -> boolean returns true if evaluating the example code (as a mutator) find-heap-values tests
#lang racket/base (require rackunit plai/random-mutator racket/runtime-path racket/file racket/pretty (except-in plai/private/random-mutator find-heap-values save-random-mutator)) returns one result at the top - level , namely the symbol ' passed . (define (test-code exp...
e170618ffc6035da6925cd176880f0fc6d1791a02c1583905b913309bc7903fa
janestreet/ppx_inline_test
config.ml
let%test_module _ = (module struct let x = ref 0 let init = lazy (x := 42) module Inline_test_config = struct include Inline_test_config let pre_test_hook () = Lazy.force init end let%test _ = !x = 42 end) ;;
null
https://raw.githubusercontent.com/janestreet/ppx_inline_test/dfac2df20bd1d38db55547977975e858ea87c0d6/test/config.ml
ocaml
let%test_module _ = (module struct let x = ref 0 let init = lazy (x := 42) module Inline_test_config = struct include Inline_test_config let pre_test_hook () = Lazy.force init end let%test _ = !x = 42 end) ;;
99bfed475ea5f582a37bb7720dff21b1b225c8dbc7adccf7e0a931a66cf9414e
rmascarenhas/foppl
sampling.clj
(ns foppl.sampling "Implements the sampling algorithms for the calculation of the posterior of the distribution represented by a graphical model. Currently implemented algorithms are Metropolis-within-Gibbs and Hamiltonian Monte Carlo." (:require [clojure.set :as set] [clojure.edn :as edn] ...
null
https://raw.githubusercontent.com/rmascarenhas/foppl/f3d7013c97652c8b555dae2bd7067e2b0134b030/src/foppl/sampling.clj
clojure
GIBBS SAMPLING ;; on which this implementation depends. calls to distribution functions (e.g., `normal`) to fully qualified function names (`anglican.runtime/normal`). This is so that expressions generated in the graphical model's link functions can be evaluated in arbitrary environments without having to refer...
(ns foppl.sampling "Implements the sampling algorithms for the calculation of the posterior of the distribution represented by a graphical model. Currently implemented algorithms are Metropolis-within-Gibbs and Hamiltonian Monte Carlo." (:require [clojure.set :as set] [clojure.edn :as edn] ...
6a7bbacd4699957fac901e8e3b8b1a0812ff33afe2bc2895dde27a5e35034bf5
bravit/bob19-tutorial-types
32-closed-type-families.hs
# LANGUAGE TypeFamilies # type family Widen a where Widen Bool = Int Widen Int = Integer Widen Char = String class Widener a where widen :: a -> Widen a instance Widener Bool where widen False = 0 widen True = 1 instance Widener Int where widen a = fromIntegral a instance...
null
https://raw.githubusercontent.com/bravit/bob19-tutorial-types/ba2a575e36b97ec01a18a39115e8a96a8543a53f/code/32-closed-type-families.hs
haskell
ghci $ >>> widen False >>> widen 'x' "x" >>> widen (widen True)
# LANGUAGE TypeFamilies # type family Widen a where Widen Bool = Int Widen Int = Integer Widen Char = String class Widener a where widen :: a -> Widen a instance Widener Bool where widen False = 0 widen True = 1 instance Widener Int where widen a = fromIntegral a instance...
da7f2377cdd84c29c2e443f20606aacd7e9036cfb250369f1145f26e7798a94f
BoeingX/haskell-programming-from-first-principles
Exercises.hs
module State.ThrowDown.Exercises where import System.Random data Die = DieOne | DieTwo | DieThree | DieFour | DieFive | DieSix deriving (Eq, Show) intToDie :: Int -> Die intToDie n = case n of 1 -> DieOne 2 -> DieTwo 3 -> DieThree 4 -> DieFour 5 -> DieFive ...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/src/State/ThrowDown/Exercises.hs
haskell
Use this tactic _extremely_ sparingly.
module State.ThrowDown.Exercises where import System.Random data Die = DieOne | DieTwo | DieThree | DieFour | DieFive | DieSix deriving (Eq, Show) intToDie :: Int -> Die intToDie n = case n of 1 -> DieOne 2 -> DieTwo 3 -> DieThree 4 -> DieFour 5 -> DieFive ...
f1d79a7b4d55fb5f1548068d9687db194d57cefd6316afee00bbe75160148526
primeteach/specomatic
field_def_test.cljc
(ns specomatic.field-def-test (:require [clojure.test :refer [deftest is testing]] [specomatic.core :as sc] [specomatic.field-def :as sf] [specomatic.spec :as sp])) (deftest accessor-test (testing "Accessor functions" (is (= ::sf/simple (sf/kind {:kind ::sf/simple})) "Kind...
null
https://raw.githubusercontent.com/primeteach/specomatic/de219bc8cd2119080ca1b68d0c2b837f14368215/test/specomatic/field_def_test.cljc
clojure
(ns specomatic.field-def-test (:require [clojure.test :refer [deftest is testing]] [specomatic.core :as sc] [specomatic.field-def :as sf] [specomatic.spec :as sp])) (deftest accessor-test (testing "Accessor functions" (is (= ::sf/simple (sf/kind {:kind ::sf/simple})) "Kind...
a5a26b2fe5b2d3489c7d4ee6361ca21b833d6a70aca2974d7c486a527ed4a604
zotonic/zotonic
mod_oembed.erl
@author < > 2011 - 2023 < > %% @doc Enables embedding media from their URL. %% @end Copyright 2011 - 2023 < > %% 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/zotonic/zotonic/3a8c0da9b6a4b04a405f89cd34496f44e734f243/apps/zotonic_mod_oembed/src/mod_oembed.erl
erlang
@doc Enables embedding media from their URL. @end 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 ...
@author < > 2011 - 2023 < > Copyright 2011 - 2023 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_oembed). -author("Arjan Scherpenisse <>"). -mod_title("OEmbed support"). -mod_description("A...
f27645bf7510cacee7b0bf1a328d4bded72b1e4a7e082f47822a28c50797d789
clojure-interop/java-jdk
TableView.clj
(ns javax.swing.text.TableView " Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells. The cell elements can have an arbitrary element structure ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/TableView.clj
clojure
this should be a value >= 0 and <= getViewCount - `int` This should be a value >= 0 and <= (getViewCount() - offset) - `int` this value can be nullto indicate no children are being added (useful to remove) - `javax.swing.text.View[]`"
(ns javax.swing.text.TableView " Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells. The cell elements can have an arbitrary element structure ...
2224ef1ec6d8064f1ede1aeda0e3ab19531ad4d4fa551cbbbce562d0bc077958
openvstorage/alba
cache_test.ml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open OUnit open Cache let assert_consistency cache = let open Cache in ...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/tools/cache_test.ml
ocaml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open OUnit open Cache let assert_consistency cache = let open Cache in ...
ad04c5dcaed8903c8f15ef4964e0c93aad1c32deeaed64c8c6486039aaf58ac3
austral/austral
SourceContext.mli
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions . See LICENSE file for details . SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions. See LICENSE file for details. SPDX...
null
https://raw.githubusercontent.com/austral/austral/69b6f7de36cc9576483acd1ac4a31bf52074dbd1/lib/SourceContext.mli
ocaml
* Tools for excerpting pieces of code. * A source context is a list of (line number, line text) pairs. * Given a source file and a span, return the source context. * Render a source context to plain text.
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions . See LICENSE file for details . SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions. See LICENSE file for details. SPDX...
b046e8c2fd84801d5d2e8a50b66884690a68c6bc5508dea7fcf48c486f993bc6
seanomlor/programming-in-haskell
square.hs
| Return square grid excluding diagonal from ( 0 , 0 ) to ( n , n ) square :: Int -> [(Int, Int)] square n = [(x, y) | (x, y) <- grid n n, x /= y] grid :: Int -> Int -> [(Int, Int)] grid m n = [(x, y) | x <- [0 .. m], y <- [0 .. n]]
null
https://raw.githubusercontent.com/seanomlor/programming-in-haskell/e05142e6709eeba2e95cf86f376a32c9e629df88/05-list-comprehensions/square.hs
haskell
| Return square grid excluding diagonal from ( 0 , 0 ) to ( n , n ) square :: Int -> [(Int, Int)] square n = [(x, y) | (x, y) <- grid n n, x /= y] grid :: Int -> Int -> [(Int, Int)] grid m n = [(x, y) | x <- [0 .. m], y <- [0 .. n]]
3afaa8e05f84f8b21b51c2270c6c1c602094e93a326677db2c2a6dbc97bcf69f
waddlaw/TAPL
Ex22_7_1.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module Language.Recon.Exercise.Ex22_7_1 ( calcPrincipalType, runRecon, example1, example2, example3, example4, ) where import RIO import qualified RIO.Lis...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/recon/src/Language/Recon/Exercise/Ex22_7_1.hs
haskell
# LANGUAGE OverloadedStrings # | 追加した | 追加した utils >>> calcPrincipalType example1 >>> calcPrincipalType example2 TyBool
# LANGUAGE LambdaCase # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module Language.Recon.Exercise.Ex22_7_1 ( calcPrincipalType, runRecon, example1, example2, example3, example4, ) where import RIO import qualified RIO.List as List import qualified RIO.Set ...
c706c6d51694909340b2aae2d22af2a14aec54c812cd32a18fc0d3fc37330a6c
eburlingame/arinc-parser
navaid_class.clj
(ns arinc424.fields.navaid-class (:require [arinc424.helpers :refer :all] [clojure.core.match :refer [match]] [clojure.test :refer :all])) (defn navaid-class-value [val] Page 84 (match-regex val ; VHF NAVAID [#"(V)(T|M|D|) " #(list ({"V" :vor} %1) ...
null
https://raw.githubusercontent.com/eburlingame/arinc-parser/1bef86924aef21888c27301bf51af90262ec4c52/src/arinc424/fields/navaid_class.clj
clojure
VHF NAVAID L/MF NAVAID
(ns arinc424.fields.navaid-class (:require [arinc424.helpers :refer :all] [clojure.core.match :refer [match]] [clojure.test :refer :all])) (defn navaid-class-value [val] Page 84 (match-regex val [#"(V)(T|M|D|) " #(list ({"V" :vor} %1) ...
39af3fd7e549ee62cb21d3966a4d5aa5fbc268f7185513408dba95fa6c95de9c
G-Corp/kafe
kafe_consumer_group_sup.erl
% @hidden -module(kafe_consumer_group_sup). -compile([{parse_transform, lager_transform}]). -behaviour(supervisor). -export([ start_link/0 , stop_child/1 , start_child/11 ]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). stop_child(Pid)...
null
https://raw.githubusercontent.com/G-Corp/kafe/78e014ae5b6d7e1077aa5cabf4adc21ed7abe203/src/kafe_consumer_group_sup.erl
erlang
@hidden
-module(kafe_consumer_group_sup). -compile([{parse_transform, lager_transform}]). -behaviour(supervisor). -export([ start_link/0 , stop_child/1 , start_child/11 ]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). stop_child(Pid) when is_p...
d7594fa99997640e9fd02cfcee84e31302c47458284161de724639b4ba704311
oakes/Dynadoc
aliases.cljc
(ns dynadoc.aliases (:require [clojure.core.async :as async])) (def chan async/promise-chan) (def put! async/put!) (def <!! #?(:clj async/<!! :cljs identity))
null
https://raw.githubusercontent.com/oakes/Dynadoc/2e3a4bd90bfeb6648674b0891341a047d210e500/src/dynadoc/aliases.cljc
clojure
(ns dynadoc.aliases (:require [clojure.core.async :as async])) (def chan async/promise-chan) (def put! async/put!) (def <!! #?(:clj async/<!! :cljs identity))
44f2d6c0390e79722a5a33a2de84810ee7bd77b844771438c2d4b63df945f45b
JoelSanchez/ventas
tx_processor.clj
(ns ventas.database.tx-processor (:require [mount.core :refer [defstate]] [clojure.tools.logging :as log] [ventas.utils :as utils] [ventas.database :as db])) (def ^:private callbacks (atom {})) (defn add-callback! [id cb] (swap! callbacks assoc id cb)) (defn remove-callback! [id] (swap! callbacks d...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/clj/ventas/database/tx_processor.clj
clojure
(ns ventas.database.tx-processor (:require [mount.core :refer [defstate]] [clojure.tools.logging :as log] [ventas.utils :as utils] [ventas.database :as db])) (def ^:private callbacks (atom {})) (defn add-callback! [id cb] (swap! callbacks assoc id cb)) (defn remove-callback! [id] (swap! callbacks d...
41ef83d1e3a4d64793baa260b8a2753e19ebc7f82961b8c15ced1617e0cff37b
openmusic-project/openmusic
basic-pack.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redist...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/cbf4464ee2336fafcd9c5c42d1b3de2ef7275a59/OPENMUSIC/code/projects/basicproject/basic-pack.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. =================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
330985db4c5edc01ad93f150a14629390118edaf4f018dbbb82e2f37fdb75f70
UnixJunkie/dokeysto
db_lz4.mli
* { 4 LZ4 compression / decompression for strings } val compress: string -> string val uncompress: string -> string * { 4 Read - only persistent string key to string value hash table ( values are uncompressed on the fly using LZ4 ) } (values are uncompressed on the fly using LZ4)} *) module ROZ: module typ...
null
https://raw.githubusercontent.com/UnixJunkie/dokeysto/48b0486769d127f60d523cce89db001179ced92b/src/db_lz4.mli
ocaml
* { 4 LZ4 compression / decompression for strings } val compress: string -> string val uncompress: string -> string * { 4 Read - only persistent string key to string value hash table ( values are uncompressed on the fly using LZ4 ) } (values are uncompressed on the fly using LZ4)} *) module ROZ: module typ...
128f2b674571da12887cc1c4450ea8bc90d0903b83d60a8335b1316f31e7c54e
practicalli/four-clojure
052_intro_to_destructuring.clj
(ns four-clojure.052-intro-to-destructuring) # 052 Intro to Destructuring ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Difficulty: Elementary ;; Topics: destructuring ;; Let bindings and function parameter lists support destructuring. (= [ 2 4 ] ( let [ [ a b c d e ] [ 0 1 2 3 4 ] ] _ _ ) ) Deconstruct the...
null
https://raw.githubusercontent.com/practicalli/four-clojure/9812b63769a06f9b0bfd63e5ffce380b67e5468b/src/four_clojure/052_intro_to_destructuring.clj
clojure
Difficulty: Elementary Topics: destructuring Let bindings and function parameter lists support destructuring. This challenge introduces us to the basics of destructuring in clojure. Destructuring is a way to get values from collections by using pattern matching. Destructuring is used to get values from functi...
(ns four-clojure.052-intro-to-destructuring) # 052 Intro to Destructuring (= [ 2 4 ] ( let [ [ a b c d e ] [ 0 1 2 3 4 ] ] _ _ ) ) Deconstruct the problem Define a name for a collection that represents the x & y co - ordinates for a line , (def my-line [[5 10] [10 20]]) = > # ' four - clojure.052 ...
f2a7ce19fec8e3660806313141198fe09cdae0fae0a58be6e9f072602d3bf50e
johnstonskj/simple-oauth2
http.rkt
#lang racket/base ;; ;; simple-oauth2 - private/http. ;; Simple OAuth2 client and server implementation ;; Copyright ( c ) 2019 ( ) . (provide (all-defined-out)) ;; ---------- Requirements (require racket/set racket/string) ;; ---------- Implementation (define (method-name sym) (cond [(set-me...
null
https://raw.githubusercontent.com/johnstonskj/simple-oauth2/b8cb40511f64dcb274e17957e6fc9ab4c8a6cbea/private/http.rkt
racket
simple-oauth2 - private/http. Simple OAuth2 client and server implementation ---------- Requirements ---------- Implementation ---------- Internal tests error-code error-message method-name header-name make-header-parameter make-header-parameters make-header-options make-header-string make-auth-header...
#lang racket/base Copyright ( c ) 2019 ( ) . (provide (all-defined-out)) (require racket/set racket/string) (define (method-name sym) (cond [(set-member? (set 'get 'head 'put 'post 'delete 'options) sym) (string-upcase (symbol->string sym))] [else #f])) (define (header-name/x sym) (...
e224ce6c57f585be650711945c9b58df5809360f982a0589cc51c259c3105cd3
synduce/Synduce
Serializer.ml
open Base open Sygus let sexp_of_symbol (s : symbol) : Sexp.t = Atom s let keyword_of_string (s : string) : string = ":" ^ s let sexp_of_attribute (a : attribute) : Sexp.t list = match a with | Attr (_, s) -> [ Atom (keyword_of_string s) ] | AttrVal (_, s, v) -> [ Atom (keyword_of_string s); Atom v ] ;; let se...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/src/syguslib/Serializer.ml
ocaml
No predeclaration in v1
open Base open Sygus let sexp_of_symbol (s : symbol) : Sexp.t = Atom s let keyword_of_string (s : string) : string = ":" ^ s let sexp_of_attribute (a : attribute) : Sexp.t list = match a with | Attr (_, s) -> [ Atom (keyword_of_string s) ] | AttrVal (_, s, v) -> [ Atom (keyword_of_string s); Atom v ] ;; let se...
e8947e8c6c789eb55b9c98441349aef421bc3e2221faae330062dab730d41cc5
jfacorro/clojure-lab
macroexpand.clj
(ns lab.plugin.clojure.macroexpand (:require [clojure.zip :as zip] [lab.core [plugin :refer [defplugin]] [keymap :as km] [lang :as lang]] [lab.model.protocols :as model] [lab.ui.core :as ui] [lab.plugin.clojure.nrepl :as nrepl...
null
https://raw.githubusercontent.com/jfacorro/clojure-lab/f0b5a4b78172984fc876f063f66e5e1592178da9/src/clj/lab/plugin/clojure/macroexpand.clj
clojure
(ns lab.plugin.clojure.macroexpand (:require [clojure.zip :as zip] [lab.core [plugin :refer [defplugin]] [keymap :as km] [lang :as lang]] [lab.model.protocols :as model] [lab.ui.core :as ui] [lab.plugin.clojure.nrepl :as nrepl...
687e2719b57d0c943f75f8a42baa0d7e2d1f9f7aababb9da9f9ea8b2b9cdda53
exoscale/clojure-kubernetes-client
v1_resource_field_selector.clj
(ns clojure-kubernetes-client.specs.v1-resource-field-selector (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-resource-field-selector-data v1-resource-field-selector) (def v1-resource-field-selector-data { (ds/opt :containerN...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_resource_field_selector.clj
clojure
(ns clojure-kubernetes-client.specs.v1-resource-field-selector (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-resource-field-selector-data v1-resource-field-selector) (def v1-resource-field-selector-data { (ds/opt :containerN...
8091bb134ba0dac62c51ae0787f6c53cff44061c3c0a4b7ef703ca790cee0a0d
yetanalytics/dl4clj
datasets_test.clj
(ns dl4clj.datasets-test (:refer-clojure :exclude [reset! rand]) (:require [clojure.test :refer :all] [dl4clj.utils :refer [array-of get-labels as-code]] [nd4clj.linalg.factory.nd4j :refer [indarray-of-rand]] [dl4clj.datasets.fetchers.default-dataset-fetchers :refer :all] ...
null
https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/test/dl4clj/datasets_test.clj
clojure
-summary.html add in tests for datasets.api.datasets iris dataset mnist raw mnist come back and up date this after you change get labels need to implement other forms of computation to verify this file split collection input split input stream input split list string input split numbered file input split s...
(ns dl4clj.datasets-test (:refer-clojure :exclude [reset! rand]) (:require [clojure.test :refer :all] [dl4clj.utils :refer [array-of get-labels as-code]] [nd4clj.linalg.factory.nd4j :refer [indarray-of-rand]] [dl4clj.datasets.fetchers.default-dataset-fetchers :refer :all] ...
67386a6db3090fb9928f2e2aa8e59aa02fe0801a2321531ec9036ab3482f5eaf
vonli/Ext2-for-movitz
variables.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2003 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; ;;;; Filename: variables.lisp ;;;; Description: ...
null
https://raw.githubusercontent.com/vonli/Ext2-for-movitz/81b6f8e165de3e1ea9cc7d2035b9259af83a6d26/losp/muerte/variables.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Filename: variables.lisp Description: ------------------------------------------------------------------ ?
Copyright ( C ) 2003 - 2005 , Department of Computer Science , University of Tromso , Norway . Author : < > Created at : We d Nov 5 21:53:34 2003 $ I d : variables.lisp , v 1.10 2006/04/10 11:58:27 ffjeld Exp $ (require :muerte/basic-macros) (provide :muerte/variables) (in-package mu...
96048cd24d0c779bc0c7cfa5e6e7d39c52d7caddd1ef2db25b772ff7f9964539
strega-nil/stregaml
Array.ml
module Mutable = Base.Array module Impl : sig type +'a t val empty : 'a t val to_mutable : 'a t -> 'a Mutable.t val of_mutable : 'a Mutable.t -> 'a t end = struct type +'a t = Caml.Obj.t (* it doesn't matter which runtime type an empty array has *) let empty = Caml.Obj.repr ([||] : int array) let ...
null
https://raw.githubusercontent.com/strega-nil/stregaml/83b51826d5776926fb3f4b7ad03c7ffe837ecbf8/lib/containers/Array.ml
ocaml
it doesn't matter which runtime type an empty array has array specific functions since nobody can get mutable access to these `a` outside of this function, there's no problem with using this
module Mutable = Base.Array module Impl : sig type +'a t val empty : 'a t val to_mutable : 'a t -> 'a Mutable.t val of_mutable : 'a Mutable.t -> 'a t end = struct type +'a t = Caml.Obj.t let empty = Caml.Obj.repr ([||] : int array) let to_mutable (type a) (arr : a t) : a Mutable.t = Caml.Obj.obj arr...
afa33bdebd34c0befe641a4dbd1c8b0042ee756f3cf0d3319f222ce6ddb2c70b
andrewthad/natural-arithmetic
Plus.hs
# language DataKinds # # language TypeOperators # # language KindSignatures # # language ExplicitForAll # # language AllowAmbiguousTypes # module Arithmetic.Plus ( zeroL , zeroR , commutative , associative ) where import Arithmetic.Unsafe (type (:=:)(Eq)) import GHC.TypeNats (type (+)) | Any number plus ...
null
https://raw.githubusercontent.com/andrewthad/natural-arithmetic/484cfb7f7f1a0d976f6dbabfde7c4cd19f1a0679/src/Arithmetic/Plus.hs
haskell
| Zero plus any number is equal to the original number. | Addition is commutative. | Addition is associative.
# language DataKinds # # language TypeOperators # # language KindSignatures # # language ExplicitForAll # # language AllowAmbiguousTypes # module Arithmetic.Plus ( zeroL , zeroR , commutative , associative ) where import Arithmetic.Unsafe (type (:=:)(Eq)) import GHC.TypeNats (type (+)) | Any number plus ...
8a424d1fd5649548371c7b70dc9b54fb3df910c6ee7a63907a40b94d6d783f5e
jackfirth/lens
main.rkt
#lang reprovide "compose.rkt" "identity.rkt" "thrush.rkt"
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-common/lens/private/compound/main.rkt
racket
#lang reprovide "compose.rkt" "identity.rkt" "thrush.rkt"
60fbb0991542c054f0f411bd4d344068bf80d773d4b5a83dc00d8d7e88f292d6
robert-strandh/SICL
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:sicl-boot-client (:use #:common-lisp) (:import-from #:sicl-boot #:load-source-file #:load-source-file-using-client #:ensure-asdf-system #:ensure-asdf-system-using-client #:import-functio...
null
https://raw.githubusercontent.com/robert-strandh/SICL/95bec48848029500a7a57f520e8bd86d95192c04/Code/Boot/Client/packages.lisp
lisp
(cl:in-package #:common-lisp-user) (defpackage #:sicl-boot-client (:use #:common-lisp) (:import-from #:sicl-boot #:load-source-file #:load-source-file-using-client #:ensure-asdf-system #:ensure-asdf-system-using-client #:import-functio...
3ff3ecda3dbbc66de17ec8c9be74a6926a67c6472fbecc2c03f9554531dbcc19
galdor/tungsten
enumerations.lisp
(in-package :ffi) (defclass enum (foreign-type) ((constants :type list :initarg :constants :reader enum-constants)) (:default-initargs :base-type :int :encoder 'encode-enum-value :decoder 'decode-enum-value)) (defun encode-enum-value (enum constant-or-value) (declare (type (or symbol intege...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-ffi/src/ffi/enumerations.lisp
lisp
(in-package :ffi) (defclass enum (foreign-type) ((constants :type list :initarg :constants :reader enum-constants)) (:default-initargs :base-type :int :encoder 'encode-enum-value :decoder 'decode-enum-value)) (defun encode-enum-value (enum constant-or-value) (declare (type (or symbol intege...
5ec0911dc0908dfdef70cc87bfb9e094d314d5ec83665a348ae5ec6905759dd9
input-output-hk/ouroboros-network
Subscription.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/a3de4116840c7fa07bda02d3e6f678cd1f9c2be4/ouroboros-network-framework/test/Test/Ouroboros/Network/Subscription.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # TODO: time utils should come from elsewhere | Allow to run a singly req-resp protocol. activeTracer = _verboseTracer -- Dump log messages to stdout. ...
# LANGUAGE CPP # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # OPTIONS_GHC -Wno - orphans # module Test.Ouroboros.Network.Subscription (tests) where import Control.Concurrent hiding (threadDelay) import Control.Concur...
5f1eee685378075481384d355ac7d8712e285e342de6ab6cf5b32a5eb1c0ed09
rpeszek/typed-encoding
CHAR8.hs
# LANGUAGE DataKinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # -- | -- -- "r-CHAR8" should not be used directly, only as superset. -- This modul...
null
https://raw.githubusercontent.com/rpeszek/typed-encoding/441f9f3bbf849f485f82eae66402ee2fd7b47a34/src/Data/TypedEncoding/Instances/Restriction/CHAR8.hs
haskell
| "r-CHAR8" should not be used directly, only as superset. Encoding functions are here for test support only, no instances. $setup >>> :set -XDataKinds -XTypeApplications --------------- Test Encodings -- ---------------
# LANGUAGE DataKinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # This module includes tests that verify that all chars are @ < \'\256\'@ @since 0...
94ac1ca61bbe5e996b85b75e31e6a131351abe43e82f83b06993affe9934bcc3
duncanatt/detecter
token_app.erl
%%% ---------------------------------------------------------------------------- @author %%% %%% @doc Module description (becomes module heading). %%% %%% @end %%% Copyright ( c ) 2022 , < > %%% %%% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General...
null
https://raw.githubusercontent.com/duncanatt/detecter/95b6a758ce6c60f3b7377c07607f24d126cbdacf/experiments/coordination_2022/src/cowboy_apps/token/token_app.erl
erlang
---------------------------------------------------------------------------- @doc Module description (becomes module heading). @end This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT FITNES...
@author Copyright ( c ) 2022 , < > 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 WARRANTY ; without even the implied warranty of MERCHANTABILITY or You should have received a copy of the GNU...
765c4e853995a5f86008bdb59f97f0f093c06cbdd836966e060a0d73dd36c979
cwmaguire/zombunity-mud
db.clj
(ns zombunity.db (:refer-clojure :exclude [resultset-seq]) (:require [clojure.java.jdbc :as jdbc] [clojure.data.json :as json :refer [json-str]] [zombunity.data :as data])) (def db {:classname "org.hsqldb.jdbcDriver" ; must be in classpath :subprotocol "hsqldb" :subname...
null
https://raw.githubusercontent.com/cwmaguire/zombunity-mud/ec14406f4addac9b9a0742d3043a6e7bccef1fa6/zombunity_server/src/zombunity/db.clj
clojure
must be in classpath Any additional keys are passed to the driver as driver-specific properties. rs will be a sequence of maps, one for each record in the result set. "Remove queued server JSON messages and return them" "Put a JSON message in the client queue" "Put a JSON message in the client queue" "Run a select...
(ns zombunity.db (:refer-clojure :exclude [resultset-seq]) (:require [clojure.java.jdbc :as jdbc] [clojure.data.json :as json :refer [json-str]] [zombunity.data :as data])) :subprotocol "hsqldb" :subname "hsql" :user "sa" :password ""}) (defmethod zom...
e2b29e6b4593f728060499c10f6c5b690bd89cef052e0eeb8158dc360f203242
thi-ng/geom
textured_cube.cljs
(ns thi.ng.geom.examples.gl.textured-cube (:require-macros [thi.ng.math.macros :as mm]) (:require [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.color.core :as col] [thi.ng.typedarrays.core :as arrays] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.ge...
null
https://raw.githubusercontent.com/thi-ng/geom/85783a1f87670c5821473298fa0b491bd40c3028/examples/gl/textured_cube.cljs
clojure
(ns thi.ng.geom.examples.gl.textured-cube (:require-macros [thi.ng.math.macros :as mm]) (:require [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.color.core :as col] [thi.ng.typedarrays.core :as arrays] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.ge...
2cbdbcbc8426f1bbf606e3bc607e64e944c91213215be7692a538f401bd80542
VERIMAG-Polyhedra/VPL
DebugTypes.ml
type levelT = Title | Normal | Detail | MInput | MOutput | Sage let levels = [Title ; Normal ; Detail ; MInput ; MOutput ; Sage] type color = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White let default : unit -> unit = fun () -> let _ = Unix.system "setterm -term linux -default" in () let str_color ...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/misc/DebugTypes.ml
ocaml
type levelT = Title | Normal | Detail | MInput | MOutput | Sage let levels = [Title ; Normal ; Detail ; MInput ; MOutput ; Sage] type color = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White let default : unit -> unit = fun () -> let _ = Unix.system "setterm -term linux -default" in () let str_color ...
de2fb88c6a0269d6da5ef11f7e755cfd90ff8d3e9afdd417123fd561b3a1f7c4
weblocks-framework/weblocks
template-data-view.lisp
(in-package :cm) ; In data view, will ALWAYS render the field suffix of the view" (defwidget template-dataform (dataform) ()) ; NEVER renders suffix, omits the normal dataform chrome too -- essentially, just renders the HTML-TEMPLATE" (defwidget naked-template-form (dataform) ()) (defwidget lagru-details (tem...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/contrib/nunb/templates-crufty/template-data-view.lisp
lisp
In data view, will ALWAYS render the field suffix of the view" NEVER renders suffix, omits the normal dataform chrome too -- essentially, just renders the HTML-TEMPLATE" A dataform that lets us render a suffix function that can be a closure (see notes above) As above, but has a modify button -------- lagru-details ...
(in-package :cm) (defwidget template-dataform (dataform) ()) (defwidget naked-template-form (dataform) ()) (defwidget lagru-details (template-dataform) ()) (defwidget lagru-form (lagru-details) ()) (defwidget suffix-dataform (lagru-details) ((fields-suffix-fn :accessor get-fields-suffix-fn :initarg :...
fd9da9965b7c836d54745ce3f7361c609afbf82657a5bf1a6a75888b7f310c99
ptigwe/hs-flatris
Update.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE MultiWayIf #-} module Update where import Control.Arrow import Data.Aeson import Data.Function import qualified Data.Map.Lazy as M import Data.Monoid import Grid import Miso import qualified Miso.String as S imp...
null
https://raw.githubusercontent.com/ptigwe/hs-flatris/e428d3825a0cf60e4182f8e7c6de652fbc1f3360/src/Update.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # # LANGUAGE MultiWayIf # | Updates model, optionally introduces side effects
# LANGUAGE RecordWildCards # module Update where import Control.Arrow import Data.Aeson import Data.Function import qualified Data.Map.Lazy as M import Data.Monoid import Grid import Miso import qualified Miso.String as S import System.Random import Action import Model import Tetromino updateModel :: Action -> Mode...
4486c653202bfb72e2f1a57d6276be355b6543ce3ba01026cdba96aa6eda36a4
let-def/ttx
context.ml
type ('a, 'b) eq = Refl : ('a, 'a) eq type ('a, 'b) type_ordering = Lt | Eq : ('a, 'a) type_ordering | Gt module type TYPE = sig type 'a t end module type NAMESPACE = sig include TYPE val to_string : 'a t -> string val order : 'a t -> 'b t -> ('a, 'b) type_ordering end exception Error of string let () = Pr...
null
https://raw.githubusercontent.com/let-def/ttx/0a50ba7253056d1202f108b67faf4d9cc78e020d/attic/abstract-manual/context.ml
ocaml
Creating new bindings
type ('a, 'b) eq = Refl : ('a, 'a) eq type ('a, 'b) type_ordering = Lt | Eq : ('a, 'a) type_ordering | Gt module type TYPE = sig type 'a t end module type NAMESPACE = sig include TYPE val to_string : 'a t -> string val order : 'a t -> 'b t -> ('a, 'b) type_ordering end exception Error of string let () = Pr...
815f30a00ebcc61e1fdbe8007905f1f694f62854a62372cb5679dfe9bce1b0ec
Millak/guix-config
lemote.scm
(define-module (lemote)) (use-modules (guix packages) (gnu) (gnu system locale) (config filesystems) (config guix-daemon) (srfi srfi-1)) (use-service-modules linux networking ssh) (use-package-modules certs connman linux) (operating-system ...
null
https://raw.githubusercontent.com/Millak/guix-config/aa77dbbb215b6a9a394f09cce1ef166ce89abd5c/lemote.scm
scheme
This is where we specify system-wide packages. for HTTPS access (service agetty-service-type (agetty-configuration (extra-options '("-L")) ; no carrier detect (term "vt100") (tty "ttyS0"))) (service tor-service-type) (tor-hidden-service "ssh" (tor-hidden-service "guix-publish"...
(define-module (lemote)) (use-modules (guix packages) (gnu) (gnu system locale) (config filesystems) (config guix-daemon) (srfi srfi-1)) (use-service-modules linux networking ssh) (use-package-modules certs connman linux) (operating-system ...
6351c40a9376a7e10dc96ef536be05b2def0afdd3b044fc1e88f34449d3575c3
himura/twitter-conduit
doctests.hs
module Main where import Build_doctests (flags, module_sources, pkgs) import Data.Foldable (traverse_) import Test.DocTest (doctest) main :: IO () main = do traverse_ putStrLn args -- optionally print arguments doctest args where args = flags ++ pkgs ++ module_sources
null
https://raw.githubusercontent.com/himura/twitter-conduit/f80058ba58fc6d71437324247eaa34b9fdd6d4d2/tests/doctests.hs
haskell
optionally print arguments
module Main where import Build_doctests (flags, module_sources, pkgs) import Data.Foldable (traverse_) import Test.DocTest (doctest) main :: IO () main = do doctest args where args = flags ++ pkgs ++ module_sources
418866a7139b4c4ce4ac666ddcfde6f6b506de11be0a97c84c3d15a405d37505
haskell-suite/haskell-src-exts
NegPrimWordLiteral.hs
# LANGUAGE MagicHash # dummyWord = W# (-0x8000000000000000##)
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/NegPrimWordLiteral.hs
haskell
# LANGUAGE MagicHash # dummyWord = W# (-0x8000000000000000##)
c21c6f617af3b00b75985202c3e85225606ec68abccd88332c21db72de782f93
adventuring/tootsville.net
string-characteristics.lisp
;;;; -*- lisp -*- ;;; src / types / string - characteristics.lisp is part of ;;; Copyright © 2008 - 2017 Bruce - Robert Pocock ; © 2018 - 2021 The Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . ;;; This program is Free Software : you can redistribute it and/or...
null
https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/types/string-characteristics.lisp
lisp
-*- lisp -*- © 2018 - 2021 The either version 3 of 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 Public License for more det...
src / types / string - characteristics.lisp is part of Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . This program is Free Software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any ...
513ca2e41fa9c3e74b4271cbce4b2e4decd2f04b2050b4cfdb791c6fd51dc63c
TyOverby/mono
vdom_file_download.mli
(** A utility for causing the browser to download a file with the contents taken from a string. *) open! Core type t [@@deriving sexp_of] val create : filename:string -> mimetype:string -> contents:string -> t (** Immediately cause the browse to trigger a download for [t]. You can use this to build a more c...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-incr_dom/vdom_file_download/vdom_file_download.mli
ocaml
* A utility for causing the browser to download a file with the contents taken from a string. * Immediately cause the browse to trigger a download for [t]. You can use this to build a more complex UI for downloads than is offered by [Button.create] -- e.g. a button that calls an RPC and downloads a file ba...
open! Core type t [@@deriving sexp_of] val create : filename:string -> mimetype:string -> contents:string -> t val trigger : t -> unit module Button : sig open Js_of_ocaml open Virtual_dom.Vdom val create : ?enabled:bool -> ?on_click:(Dom_html.mouseEvent Js.t -> unit Ui_effect.t) -> ?extra_attr...
7b4883ad44db5cdbc3500d4811a8763a3c144730c651c30c4a260fc6fc767b4b
haskell/statistics
Types.hs
# LANGUAGE DeriveFunctor # # OPTIONS_GHC -fno - warn - orphans # module Tests.Matrix.Types ( Mat(..) , fromMat , toMat ) where import Control.Monad (join) import Control.Applicative ((<$>), (<*>)) import Statistics.Matrix (Matrix(..), fromList) import Test.QuickCheck import Tests.Helpers (shrink...
null
https://raw.githubusercontent.com/haskell/statistics/a2aa25181e50cd63db4a785c20c973a3c4dd5dac/tests/Tests/Matrix/Types.hs
haskell
# LANGUAGE DeriveFunctor # # OPTIONS_GHC -fno - warn - orphans # module Tests.Matrix.Types ( Mat(..) , fromMat , toMat ) where import Control.Monad (join) import Control.Applicative ((<$>), (<*>)) import Statistics.Matrix (Matrix(..), fromList) import Test.QuickCheck import Tests.Helpers (shrink...
abbb602c61d438db2ca6243cc895d677a1b17786ea58d41a8633395e61351146
argp/bap
merge.mli
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2012 , and (* ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocamlgraph/src/merge.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2012 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking * Provide...