_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
f7a3739bb46236d5d173f9f162f71bdb4d92edff3d7f81120dc2bea9e2a79b34
herd/herdtools7
args.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/0660e6f342d36bf130b213ab3f842118f73e37b1/internal/lib/args.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2013 - 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...
85e76f7f8f984a79caae31e2f49d5c14378e29c45b0be4ed3fff6eeb8d14bb36
avh4/elm-format
Common.hs
module Parse.Common ( sectionedGroup, pair , commented, preCommented, postCommented, withEol , checkMultiline ) where import AST.V0_16 import Parse.ParsecAdapter import Parse.Helpers import Parse.Whitespace import Parse.IParser import Parse.Comments -- -- Structure -- pair :: IParser a -> IParser s...
null
https://raw.githubusercontent.com/avh4/elm-format/af3acfc89b619b9dbcdbdb7185d3936971d76f87/elm-format-lib/src/Parse/Common.hs
haskell
Structure Other helpers
module Parse.Common ( sectionedGroup, pair , commented, preCommented, postCommented, withEol , checkMultiline ) where import AST.V0_16 import Parse.ParsecAdapter import Parse.Helpers import Parse.Whitespace import Parse.IParser import Parse.Comments pair :: IParser a -> IParser sep -> IParser b -> ...
4606fc3db1d00e31ca875b36790a4b7be4e0cf601833a36d2645c41fd7b37462
PEZ/rich4clojure
problem_131.clj
(ns rich4clojure.medium.problem-131 (:require [hyperfiddle.rcf :refer [tests]])) ;; = Sum Some Set Subsets = ;; By 4Clojure user: amcnamara ;; Difficulty: Medium ;; Tags: [math] ;; ;; Given a variable number of sets of integers, create a ;; function which returns true iff all of the sets have a ;; non-empty subset ...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/2ccfac041840e9b1550f0a69b9becbdb03f9525b/src/rich4clojure/medium/problem_131.clj
clojure
= Sum Some Set Subsets = By 4Clojure user: amcnamara Difficulty: Medium Tags: [math] Given a variable number of sets of integers, create a function which returns true iff all of the sets have a non-empty subset with an equivalent summation. Share your solution, and/or check how others did it:
(ns rich4clojure.medium.problem-131 (:require [hyperfiddle.rcf :refer [tests]])) (def __ :tests-will-fail) (comment ) (tests true := (__ #{-1 1 99} #{-2 2 888} #{-3 3 7777}) false := (__ #{1} #{2} #{3} #{4}) true := (__ #{1}) false :...
4804d0077cda4d631f054dd6d37b0926a3a17aba4a8a486526d8d85b9addb5f9
RyanGlScott/text-show
StaticPtrSpec.hs
# LANGUAGE CPP # | Module : Spec . GHC.StaticPtrSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ test for ' StaticPtr ' . Module: Spec.GHC.StaticPtrSpec Copyright: (C) 2014-201...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Spec/GHC/StaticPtrSpec.hs
haskell
# LANGUAGE CPP # | Module : Spec . GHC.StaticPtrSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ test for ' StaticPtr ' . Module: Spec.GHC.StaticPtrSpec Copyright: (C) 2014-201...
7d851be5a3085811b2db2c77809573e29425e88ca098657b751247f87419f660
Octachron/codept
riddle.ml
module A = struct module M1 = struct end end module B = struct module M2 = struct end end module C = struct module M3 = struct end end module D = struct module M4 = struct end end module E = struct module M5 = struct end end module F = struct module M6 = struct end end module G = struct module M7 = struct end end mod...
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/cases/riddle.ml
ocaml
module A = struct module M1 = struct end end module B = struct module M2 = struct end end module C = struct module M3 = struct end end module D = struct module M4 = struct end end module E = struct module M5 = struct end end module F = struct module M6 = struct end end module G = struct module M7 = struct end end mod...
aeb52f50754d83dc0447aca4f923d2b60c4e1792231965eb2521ac70af70afcb
hipsleek/hipsleek
musterr.ml
#include "xdebug.cppo" open VarGen 1 . this file provides interfaces and implementations for - must / may errors 2 . IMPORTANT ( AVOID REDUNDANT ): before implement new method , please go through interfaces and UNUSED module to check whether your need is there . 1. this file provides interfaces and imp...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/musterr.ml
ocaml
module Inf = Infer module PR = Cprinter type steps = string list (\*implementation of must/may is moved to musterr.ml*\) VALID MUST *\) type fail_context = { fc_prior_steps : steps; (\* prior steps in reverse order *\) fc_message : string; (\* error message *\) (\* fc_orig...
#include "xdebug.cppo" open VarGen 1 . this file provides interfaces and implementations for - must / may errors 2 . IMPORTANT ( AVOID REDUNDANT ): before implement new method , please go through interfaces and UNUSED module to check whether your need is there . 1. this file provides interfaces and imp...
4c634bab8d6a888c67a1629bb9d4694ad295826eebe3201decbb34662e3d0d0b
ashinn/chibi-scheme
quoted-printable.scm
;; quoted-printable.scm -- RFC2045 implementation Copyright ( c ) 2005 - 2014 . All rights reserved . ;; BSD-style license: ;;> RFC 2045 quoted printable encoding and decoding utilities. This > API is backwards compatible with the Gauche library ;;> rfc.quoted-printable. ;;> \schemeblock{ ;;> (define (mime-en...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/8b27ce97265e5028c61b2386a86a2c43c1cfba0d/lib/chibi/quoted-printable.scm
scheme
quoted-printable.scm -- RFC2045 implementation BSD-style license: > RFC 2045 quoted printable encoding and decoding utilities. This > rfc.quoted-printable. > \schemeblock{ > (define (mime-encode-header header value charset) > (let ((prefix (string-append header ": ")) > (str (ces-convert value "UTF8" char...
Copyright ( c ) 2005 - 2014 . All rights reserved . > API is backwards compatible with the Gauche library (define *default-max-col* 76) Allow for RFC1522 quoting for headers by always escaping ? and _ (define (qp-encode bv start-col max-col separator) (define (hex i) (+ i (if (<= i 9) 48 55))) (let ((en...
c01ae1bc64ef2b7e052d0cbf23fba7d77abec355a07142207c634ab434c096b2
mark-watson/haskell_tutorial_cookbook_examples
Conditionals.hs
module Main where head' (x:_) = x tail' (_:xs) = xs doubleList [] = [] doubleList (x:xs) = (* 2) x : doubleList xs bumpList n [] = [] bumpList n (x:xs) = n * x : bumpList n xs map' f [] = [] map' f (x:xs) = (f x) : map' f xs main = do print $ head' ["bird","dog","cat"] print $ tail' [0,1,2,3,4,5] print $ dou...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/Pure/Conditionals.hs
haskell
module Main where head' (x:_) = x tail' (_:xs) = xs doubleList [] = [] doubleList (x:xs) = (* 2) x : doubleList xs bumpList n [] = [] bumpList n (x:xs) = n * x : bumpList n xs map' f [] = [] map' f (x:xs) = (f x) : map' f xs main = do print $ head' ["bird","dog","cat"] print $ tail' [0,1,2,3,4,5] print $ dou...
8e047e96efdeb9a00e69e45eba8cf99b76cfba0d97d05c76e55d6ad40c0b33b1
abooij/haskell-xkbcommon
XkbCommon.hs
module Text.XkbCommon ( module Text.XkbCommon.Types , module Text.XkbCommon.Context , module Text.XkbCommon.Keymap , module Text.XkbCommon.KeyboardState , module Text.XkbCommon.Keysym ) where import Text.XkbCommon.Types import Text.XkbCommon.Context import Text.XkbCommon.Keymap import Text.XkbCommon.K...
null
https://raw.githubusercontent.com/abooij/haskell-xkbcommon/a337b4f699fef2621ae028eec9171fcd9ea848c5/Text/XkbCommon.hs
haskell
module Text.XkbCommon ( module Text.XkbCommon.Types , module Text.XkbCommon.Context , module Text.XkbCommon.Keymap , module Text.XkbCommon.KeyboardState , module Text.XkbCommon.Keysym ) where import Text.XkbCommon.Types import Text.XkbCommon.Context import Text.XkbCommon.Keymap import Text.XkbCommon.K...
63b1388fb13b78c4e5f49cc47386c55eed32e7388ce044de7f0a578925307199
basho/riak_search
riak_search_kv_extractor.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% %% ------------------------------------------------------------------- -module(riak_search_kv_extractor). -export([extract/3, clean_name/1]). -include("riak_searc...
null
https://raw.githubusercontent.com/basho/riak_search/79c034350f37706a1db42ffca8f6449d4cce99e1/src/riak_search_kv_extractor.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- Get the content type from the metadata Get the encoding from the content type Substitute : and . for _ TEST
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . -module(riak_search_kv_extractor). -export([extract/3, clean_name/1]). -include("riak_search.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. Extract search data from the riak_object . Switch between the built -...
f1c9be9bb8f48cdcbce21c7536026c45db915716094aad29a96b819a9ec99646
vimus/libmpd-haskell
CurrentPlaylistSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Network.MPD.Applicative.CurrentPlaylistSpec (main, spec) where import TestUtil import Unparse import Network.MPD.Applicative.CurrentPlaylist import Network.MPD.Commands.Query import Network.MPD.Commands.Types main :: IO () m...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/tests/Network/MPD/Applicative/CurrentPlaylistSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Network.MPD.Applicative.CurrentPlaylistSpec (main, spec) where import TestUtil import Unparse import Network.MPD.Applicative.CurrentPlaylist import Network.MPD.Commands.Query import Network.MPD.Commands.Types main :: IO () main = hspec spec spec :: Spec spec...
89206ff6dbdc4f0130e6b182b01f63ebc6708f41681a3b982e515112af34faf5
palletops/lein-uberimage
project.clj
(defproject com.palletops/uberimage "0.4.2-SNAPSHOT" :description "Leiningen plugin to create a docker image for a project uberjar" :url "-uberimage" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :min-lein-version "2.4.3" :dependencies [[com.palletops/clj-doc...
null
https://raw.githubusercontent.com/palletops/lein-uberimage/7a996749fc7b3d53ab625c3ce413f8c76ad08600/project.clj
clojure
(defproject com.palletops/uberimage "0.4.2-SNAPSHOT" :description "Leiningen plugin to create a docker image for a project uberjar" :url "-uberimage" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :min-lein-version "2.4.3" :dependencies [[com.palletops/clj-doc...
0379f4b580edb06cb218007f7f924038404a34f332f1bf44780a536f3522d57d
gwkkwg/cl-containers
eksl-priority-queue.lisp
(in-package #:containers) Heap based queue using EKSL priority - queue ;;?? Needs a better name #+EKSL-PRIORITY-QUEUE (progn (defclass* priority-queue-heap (abstract-queue concrete-container iteratable-container-mixin) ((contents :initform nil ...
null
https://raw.githubusercontent.com/gwkkwg/cl-containers/3d1df53c22403121bffb5d553cf7acb1503850e7/dev/eksl-priority-queue.lisp
lisp
?? Needs a better name Should not be called on an empty queue... results might be undefined.
(in-package #:containers) Heap based queue using EKSL priority - queue #+EKSL-PRIORITY-QUEUE (progn (defclass* priority-queue-heap (abstract-queue concrete-container iteratable-container-mixin) ((contents :initform nil :initarg :contents ...
d499ad6c7cebae402909161cdfd7e2c97b28c0556031c008b71f2520f6acca8b
kazu-yamamoto/domain-auth
Verify.hs
{-# LANGUAGE OverloadedStrings #-} module Network.DomainAuth.DKIM.Verify ( verifyDKIM, prepareDKIM ) where import Crypto.Hash import Crypto.PubKey.RSA import Crypto.PubKey.RSA.PKCS15 import Data.ByteArray import Data.ByteString (ByteString) import Data.ByteString.Builder (Builder) import qualified Data.ByteStri...
null
https://raw.githubusercontent.com/kazu-yamamoto/domain-auth/d13145709a558145ac38e28e0b339c48b950b4e0/Network/DomainAuth/DKIM/Verify.hs
haskell
# LANGUAGE OverloadedStrings # -------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- --------------------------------------------------------------
module Network.DomainAuth.DKIM.Verify ( verifyDKIM, prepareDKIM ) where import Crypto.Hash import Crypto.PubKey.RSA import Crypto.PubKey.RSA.PKCS15 import Data.ByteArray import Data.ByteString (ByteString) import Data.ByteString.Builder (Builder) import qualified Data.ByteString as BS import qualified Data.Byte...
85b6293f0fb2dff1464092184edb139d12f53b35b48ae5dc64deeee77a71f776
andreas/ppx_graphql
ppx_graphql.ml
open Migrate_parsetree open Ast_403 module StringMap = Map.Make(String) type ctx = { fragments : Graphql_parser.fragment StringMap.t; types : Introspection.typ list; } let loc = !Ast_helper.default_loc let lid s : Ast_helper.lid = { txt = Longident.Lident s; loc = !Ast_helper.default_loc } let str txt : Ast_...
null
https://raw.githubusercontent.com/andreas/ppx_graphql/2d185501ce812a241ce3a8bb42b3a531a3366eee/src/ppx_graphql.ml
ocaml
open Migrate_parsetree open Ast_403 module StringMap = Map.Make(String) type ctx = { fragments : Graphql_parser.fragment StringMap.t; types : Introspection.typ list; } let loc = !Ast_helper.default_loc let lid s : Ast_helper.lid = { txt = Longident.Lident s; loc = !Ast_helper.default_loc } let str txt : Ast_...
3f6a1b041d2e0e927bb9493ede1d70711371e5e3dd68c6918ec279be4b5289ca
vodori/missing
topology_test.clj
(ns missing.topology-test (:require [missing.topology :refer :all] [clojure.test :refer :all]) (:refer-clojure :exclude (empty complement))) (deftest normalization-test (let [g {:a [:b :c] :b [:d]}] (is (= {:a #{:c :b} :b #{:d} :c #{} :d #{}} (normal...
null
https://raw.githubusercontent.com/vodori/missing/aec1678a1fecf781f11174a4fbad0315ce37f981/test/missing/topology_test.clj
clojure
(ns missing.topology-test (:require [missing.topology :refer :all] [clojure.test :refer :all]) (:refer-clojure :exclude (empty complement))) (deftest normalization-test (let [g {:a [:b :c] :b [:d]}] (is (= {:a #{:c :b} :b #{:d} :c #{} :d #{}} (normal...
9fbe6a9e5750655160673227cdd751324067e4efbfb39d03ad1a51da764c1078
ucsd-progsys/liquidhaskell
Append.hs
{-@ LIQUID "--expect-any-error" @-} {-@ LIQUID "--reflection" @-} module Append where import Prelude hiding (map, concatMap) import Language.Haskell.Liquid.ProofCombinators {-@ reflect append @-} append :: L a -> L a -> L a append xs ys | llen xs == 0 = ys | otherwise = C (hd xs) (append (tl xs) ys) ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/benchmarks/popl18/nople/neg/Append.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--reflection" @ @ reflect append @ @ reflect map @ @ reflect concatMap @ @ prop_append_neutral :: xs:L a -> {v:Proof | append xs N /= xs } @ @ prop_assoc :: xs:L a -> ys:L a -> zs:L a -> {v:Proof | append (append xs ys) zs /= append xs (append ys zs) } @ @ p...
module Append where import Prelude hiding (map, concatMap) import Language.Haskell.Liquid.ProofCombinators append :: L a -> L a -> L a append xs ys | llen xs == 0 = ys | otherwise = C (hd xs) (append (tl xs) ys) map :: (a -> b) -> L a -> L b map f xs | llen xs == 0 = N | otherwise = C (f (hd xs...
48900cfdce62625d22e93ac3962e82b0ca74845e730ba2f453dd4ec303ca7ec9
s-expressionists/Cleavir
stealth-mixins.lisp
(cl:in-package :cleavir-stealth-mixins) The following hack is due to . It allows us to ;;; dynamically mix in classes into a class without the latter being ;;; aware of it. First of all we need to keep track of added mixins , we use a hash ;; table here. Better would be to stick this information to the vict...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/59ddca1b49cb4c13c570085ee8f1cb81fd367343/Stealth-mixins/stealth-mixins.lisp
lisp
dynamically mix in classes into a class without the latter being aware of it. table here. Better would be to stick this information to the victim class itself. The 'direct-superclasses' argument to ensure-class is a list of either classes or their names. Since we want to avoid duplicates, we need an appropriat...
(cl:in-package :cleavir-stealth-mixins) The following hack is due to . It allows us to First of all we need to keep track of added mixins , we use a hash (defvar *stealth-mixins* (make-hash-table)) (defmacro class-stealth-mixins (class) `(gethash ,class *stealth-mixins*)) (defun class-equalp (c1 c2) (...
2f28b008f3b2a13aa9b882a773f5e249bea32e2a856c5f898f372d7ee23137c6
lambdaisland/kaocha-cljs
print_handlers.clj
(ns kaocha.cljs.print-handlers (:require [lambdaisland.deep-diff2.printer-impl :as printer] [lambdaisland.deep-diff2.puget.printer :as puget])) (printer/register-print-handler! 'com.cognitect.transit.impl.TaggedValueImpl (fn [printer ^com.cognitect.transit.impl.TaggedValueImpl value] (puget/format-d...
null
https://raw.githubusercontent.com/lambdaisland/kaocha-cljs/3c9983e93186d0ebb1eade74e032e36fe4c85ff7/src/kaocha/cljs/print_handlers.clj
clojure
(ns kaocha.cljs.print-handlers (:require [lambdaisland.deep-diff2.printer-impl :as printer] [lambdaisland.deep-diff2.puget.printer :as puget])) (printer/register-print-handler! 'com.cognitect.transit.impl.TaggedValueImpl (fn [printer ^com.cognitect.transit.impl.TaggedValueImpl value] (puget/format-d...
a39af02e7263642fa1bb46d2619a45f639480c4531aaae623fdc50f07e2e6bda
avatar29A/hs-aitubots-api
FormCustomContainer.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} module FormCustomContainer where import Aitu.Bot import Aitu.Bot.Types hiding ( Image(..) , InputMediaType(..) ) import ...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/tutorials/simpleui/app/FormCustomContainer.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DuplicateRecordFields # module FormCustomContainer where import Aitu.Bot import Aitu.Bot.Types hiding ( Image(..) , InputMediaType(..) ) import Aitu.Bot.Forms import ...
79d4c960da0741a7b693064a4256050f475a7f9f46d1f1e5b5b55d1dafedd7e5
hanazuki/miniml
utils.ml
let (@@) f x = f x let (|>) x f = f x let ($) f g x = f (g x)
null
https://raw.githubusercontent.com/hanazuki/miniml/012f268b4d3bb91d234eaa941b0e7bf58a0dd7cc/src/utils.ml
ocaml
let (@@) f x = f x let (|>) x f = f x let ($) f g x = f (g x)
ecc69bf9cf6e71e2d7c8ec059051e65399a2da8e783a12189ebde43779e46284
RDTK/generator
package.lisp
;;;; package.lisp --- Package definition for the scripting module. ;;;; Copyright ( C ) 2012 , 2013 Jan Moringen ;;;; Author : < > (cl:defpackage #:jenkins.scripting (:use #:cl #:alexandria #:split-sequence #:let-plus #:iterate #:jenkins.api) (:export #:diff-configs) (:export #:...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/lib/jenkins.api/src/scripting/package.lisp
lisp
package.lisp --- Package definition for the scripting module.
Copyright ( C ) 2012 , 2013 Jan Moringen Author : < > (cl:defpackage #:jenkins.scripting (:use #:cl #:alexandria #:split-sequence #:let-plus #:iterate #:jenkins.api) (:export #:diff-configs) (:export #:assign-unique-ports) (:documentation "TODO"))
a9c4e4c59ed7b6b63126357b196983d0009f0b6f2d72440247cd97a0b2b676ad
ageneau/ecl-android
threads.lisp
(defun threads-info () (format t "~%") (dolist (tt (sb-thread:list-all-threads)) (format t "Thread ~S tid=~D~%" (sb-thread::thread-name tt) (sb-thread::thread-os-thread tt))) )
null
https://raw.githubusercontent.com/ageneau/ecl-android/324180b7701eaa24228d8602fafe7c040c976867/lisp-packages/cl%2Bj/threads.lisp
lisp
(defun threads-info () (format t "~%") (dolist (tt (sb-thread:list-all-threads)) (format t "Thread ~S tid=~D~%" (sb-thread::thread-name tt) (sb-thread::thread-os-thread tt))) )
399fa5d963f582dc45e21d8dc1338c14140342d88134011d4b4c3793995007fd
Verites/verigraph
HSpecRunner.hs
-- file test/Main.hs module Main where import qualified HSpecTests import Test.Hspec main :: IO () main = hspec (parallel HSpecTests.spec)
null
https://raw.githubusercontent.com/Verites/verigraph/754ec08bf4a55ea7402d8cd0705e58b1d2c9cd67/tests/HSpecRunner.hs
haskell
file test/Main.hs
module Main where import qualified HSpecTests import Test.Hspec main :: IO () main = hspec (parallel HSpecTests.spec)
2d3689346cc9d44d6283b4acb5114df64b9250262d337c05ff2e9fd48594c670
xh4/web-toolkit
package.lisp
(in-package :cl-user) (defpackage :live (:nicknames :wt.live) (:use :cl :alexandria) (:shadowing-import-from :reactive :variable) (:import-from :http :define-server :define-handler :request :*response* :re...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/live/package.lisp
lisp
(in-package :cl-user) (defpackage :live (:nicknames :wt.live) (:use :cl :alexandria) (:shadowing-import-from :reactive :variable) (:import-from :http :define-server :define-handler :request :*response* :re...
cf2c2121ec9484cc95dad10cf414d8340f63b558fedfd2717fd7537e4081c83c
lemmih/hsSDL2
lesson5.hs
# LANGUAGE RecordWildCards # module Main where import Control.Concurrent import Control.Monad import System.Exit import Data.Function import Graphics.UI.SDL as SDL import qualified Graphics.UI.SDL.Keycode as Key import Graphics.UI.SDL.Image as Image ----------------------- -- Window parameters -- screenSize :: Size...
null
https://raw.githubusercontent.com/lemmih/hsSDL2/7a785dc1b8df28143155c8a7c36e4ab69a10df81/Examples/twinklebear/lesson5.hs
haskell
--------------------- Window parameters -- ---------------- ----------- Helpers --
# LANGUAGE RecordWildCards # module Main where import Control.Concurrent import Control.Monad import System.Exit import Data.Function import Graphics.UI.SDL as SDL import qualified Graphics.UI.SDL.Keycode as Key import Graphics.UI.SDL.Image as Image screenSize :: Size screenSize = Size 640 480 screenPosition :: Po...
a99d98e03f2bbbfaa01ded29b7b5cdf0da8bd41abfe3f4e7d96b8d99ec16d528
dimitaruzunov/fp-2018
length.scm
(require rackunit rackunit/text-ui) (define (length l) (if (null? l) 0 (+ 1 (length (cdr l))))) (define length-tests (test-suite "Tests for length" (check = (length '()) 0) (check = (length '(2)) 1) (check = (length '(1 2)) 2) (check = (length '(3 4 1)) 3) (check = (length ...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/04/length.scm
scheme
(require rackunit rackunit/text-ui) (define (length l) (if (null? l) 0 (+ 1 (length (cdr l))))) (define length-tests (test-suite "Tests for length" (check = (length '()) 0) (check = (length '(2)) 1) (check = (length '(1 2)) 2) (check = (length '(3 4 1)) 3) (check = (length ...
724fd5d9af2638cb3c0b869fa70f8682fcf1677ec6929e60163c8e1f64ee8a84
janestreet/universe
variant_and_record_intf.ml
* Place holder for common Variants and Fields interface Place holder for common Variants and Fields interface *) module M (X : sig * This functor is essentially there because we use this same interface in different contexts , with different types for [ ' a t ] . 1 ) One use case for it...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/typerep/lib/variant_and_record_intf.ml
ocaml
0 4895187 no arg args * return the type_name of the arguments. might be used to perform some lookup based on it while building a computation for example * get the representation/computation of the arguments * An existential type used to gather all the tags constituing a variant type. the...
* Place holder for common Variants and Fields interface Place holder for common Variants and Fields interface *) module M (X : sig * This functor is essentially there because we use this same interface in different contexts , with different types for [ ' a t ] . 1 ) One use case for it...
cfdc523d5b34ca0b097527b04494c2be95af3df5c7c2058b929483ab6bf0bcf0
WormBase/wormbase_rest
do_term.clj
(ns rest-api.classes.do-term (:require [rest-api.classes.gene.widgets.external-links :as external-links] [rest-api.classes.do-term.widgets.overview :as overview] [rest-api.classes.do-term.widgets.ontology-browser :as ontology-browser] [rest-api.classes.graphview.widget :as graphview] [rest-api.rou...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/do_term.clj
clojure
(ns rest-api.classes.do-term (:require [rest-api.classes.gene.widgets.external-links :as external-links] [rest-api.classes.do-term.widgets.overview :as overview] [rest-api.classes.do-term.widgets.ontology-browser :as ontology-browser] [rest-api.classes.graphview.widget :as graphview] [rest-api.rou...
366f47cf2277d16ad89366094474a78d511fcd7d66c8934e85f36628868fb71a
cgoldammer/chess-database-backend
Application.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Application ( App , app , routes , auth , service , sess , resetUser ) where import AppTypes import Control.Lens (makeLenses, view) import Control.Monad (join, liftM3, when) import Control.Mo...
null
https://raw.githubusercontent.com/cgoldammer/chess-database-backend/dbb0f61817520302ea975a9ec4b444d92115f7cf/src/Application.hs
haskell
# LANGUAGE OverloadedStrings # disabled until I think through how to avoid spamming Registering creates a `snap_auth_user` in the database. However, we the tables Logic for resetting passwords. This works as follows: '/resetpassword?email...&token=..." to "/resetPasswordData?email...&token=...&password=..." Th...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Application ( App , app , routes , auth , service , sess , resetUser ) where import AppTypes import Control.Lens (makeLenses, view) import Control.Monad (join, liftM3, when) import Control.Monad.IO.Class (liftIO) import Control....
785b01c66890726a48efbedde769c24d3d1f5a9bf21b7c3562592a74257c7a19
fission-codes/fission
ExchangeKey.hs
module Fission.Web.Server.Handler.User.ExchangeKey (handler) where import RIO.NonEmpty import Servant.Server.Generic import Fission.Prelude import qualified Fission.Web.API.User.ExchangeKey.Types as ExchangeKey import Fission.Web.Server.Authorization.Types import qualified Fi...
null
https://raw.githubusercontent.com/fission-codes/fission/7e69c0da210a77412c96631f5ff7ef1b38240d37/fission-web-server/library/Fission/Web/Server/Handler/User/ExchangeKey.hs
haskell
module Fission.Web.Server.Handler.User.ExchangeKey (handler) where import RIO.NonEmpty import Servant.Server.Generic import Fission.Prelude import qualified Fission.Web.API.User.ExchangeKey.Types as ExchangeKey import Fission.Web.Server.Authorization.Types import qualified Fi...
6d701a195a7c48df8f0e7dcc8ca07d4f9af7a195ee9e87aa85ba317c7309a4ea
kovtun1/DependenciesGraph
swift.ml
type swift_token = | Type of string | Word of string | Protocol | Class | Extension | Enum | Struct | Colon | Comma | Dot | OpenCurlyBrace | CloseCurlyBrace let string_of_swift_token token = match token with | Type name -> "TYPE(" ^ name ^ ")" | Word name -> "WORD(" ^ name ^ ")" ...
null
https://raw.githubusercontent.com/kovtun1/DependenciesGraph/cec4d2b7a29746ad7b61d76b3662afd5c39f26ff/swift.ml
ocaml
type swift_token = | Type of string | Word of string | Protocol | Class | Extension | Enum | Struct | Colon | Comma | Dot | OpenCurlyBrace | CloseCurlyBrace let string_of_swift_token token = match token with | Type name -> "TYPE(" ^ name ^ ")" | Word name -> "WORD(" ^ name ^ ")" ...
bff506a772f3cc358d9ce190c885f9b18b1ee06c38e0845bdd8f450709a16618
erlyvideo/rack
rack_worker.erl
Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/erlyvideo/rack/96baf455aa0f433d6ead84d301d7142ec3dfd52d/src/rack_worker.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(rack_worker). -author('Max Lapshin <>'). -include("l...
2a640bbeeec2c7d4c22e3c98b8e9e600bc9283b5295ec5f4970043cc1b0b75dc
zack-bitcoin/amoveo-exchange
trade_limit.erl
-module(trade_limit). -behaviour(gen_server). -export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, doit/1]). -record(freq, {time, many}). init(ok) -> {ok, dict:new()}. start_link() -> gen_server:start_link({local, ?MODULE}, ?MODULE, ok, []). code_change(_OldVsn, State, _Ext...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo-exchange/df6b59c139b710faf79e851bdf7e861983511cbe/apps/amoveo_exchange/src/networking/trade_limit.erl
erlang
seconds
-module(trade_limit). -behaviour(gen_server). -export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, doit/1]). -record(freq, {time, many}). init(ok) -> {ok, dict:new()}. start_link() -> gen_server:start_link({local, ?MODULE}, ?MODULE, ok, []). code_change(_OldVsn, State, _Ext...
891f943d424b3337e1a08a68c22ae308b567b2fe11506865f06a1561984ed110
racket/racket7
c-encode.rkt
#lang racket/base (provide encode-to-c) ;; Take a stream that has a single S-expression and converts it to C ;; code for a string that contains the S-expression (define (encode-to-c in out) (fprintf out "#define EVAL_STARTUP EVAL_ONE_STR(startup_source)\n") (fprintf out "static const char *startup_source =\n") ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/extract/c-encode.rkt
racket
Take a stream that has a single S-expression and converts it to C code for a string that contains the S-expression Has a string - can't safely delete more spaces
#lang racket/base (provide encode-to-c) (define (encode-to-c in out) (fprintf out "#define EVAL_STARTUP EVAL_ONE_STR(startup_source)\n") (fprintf out "static const char *startup_source =\n") (for ([l (in-lines in)]) (let* ([l (regexp-replace* #rx"\\\\" l "\\\\\\\\")] [l (regexp-replace* #rx"\"" ...
b56a6f8c053662c0ec2e0a0073372352d0b29a8b5ef56515e9341a790480a408
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude -- Unbounded (top) base. main = cabalTest $ fails $ cabal "check" []
null
https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/NonConfCheck/PackageVersions/cabal.test.hs
haskell
Unbounded (top) base.
import Test.Cabal.Prelude main = cabalTest $ fails $ cabal "check" []
00d9276d80ee02a3c92386191baf8961fcaefa48d979bfdcdfdcb1a757d76dcb
mindreframer/clojure-stuff
sidebar.cljs
(ns omchaya.components.sidebar (:require [cljs.core.async :as async :refer [>! <! alts! chan sliding-buffer put! close!]] [clojure.string :as string] [goog.string :as gstring] [om.core :as om] [omchaya.utils :as utils] [sablono.core :as html :refer-macros [h...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/sgrove/omchaya/src/omchaya/components/sidebar.cljs
clojure
(ns omchaya.components.sidebar (:require [cljs.core.async :as async :refer [>! <! alts! chan sliding-buffer put! close!]] [clojure.string :as string] [goog.string :as gstring] [om.core :as om] [omchaya.utils :as utils] [sablono.core :as html :refer-macros [h...
f377126b546b8edec0221b89b2a1d5018c128b90f9583009d54e84d7bc4bd2ab
Frama-C/Frama-C-snapshot
file_manager.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/file_manager.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
6e37b8a76c4610921dd0a12d0ab1f81b09ed0a3f508f2a5a9a9ac192b2aaf987
ggreif/omega
finally-finally.hs
# LANGUAGE ConstraintKinds , DataKinds , PolyKinds , RankNTypes , ImpredicativeTypes , TypeFamilies , MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # , MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-} -- To have lenses etc. for finally-tagless form we need a...
null
https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/mosaic/finally-finally.hs
haskell
To have lenses etc. for finally-tagless form we need a way to create custom class dictionaries (and possibly abuse reflection to create them on the fly). But why not create a concept of final dictionaries, where we are not restricted to the concept of finally-tagless
# LANGUAGE ConstraintKinds , DataKinds , PolyKinds , RankNTypes , ImpredicativeTypes , TypeFamilies , MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # , MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-} to be implemented by type classes ? class Foo' a wher...
d255e0daf0b6a6321542ceecdfac757090a4a0da9e3b0e2b5411ff33f9684155
racket/redex
close.rkt
#lang racket ;; a function that can close over the free variables of an expression (provide ;; RACKET ;; [Any-> Boolean: valid expression] -> [ Lambda.e # : init [ i \x.x ] - > Lambda.e ] ;; ((close-over-fv-with lambda?) e) closes over all free variables in ;; a Lambda term (or sublanguage w/ no new bindin...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-doc/redex/scribblings/long-tut/code/close.rkt
racket
a function that can close over the free variables of an expression RACKET [Any-> Boolean: valid expression] -> ((close-over-fv-with lambda?) e) closes over all free variables in a Lambda term (or sublanguage w/ no new binding constructs) by binding them to (term (lambda (x) x)) ((close-over-fv-with lambda?) e #:...
#lang racket (provide [ Lambda.e # : init [ i \x.x ] - > Lambda.e ] close-over-fv-with fv) (require redex "common.rkt") (module+ test show two dozen terms ( term e ) #:attempts 12 #:prepare (close-over-fv-with lambda?)) ( term e ) #:attempts 12 ...
e74cbf0fe7f7cf8872a561fd90bf97d404263c82454153c18485c352fe1a4425
juspay/atlas
Types.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Tools/Metrics/AllocatorMetrics/Types.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
2edda224d7bf8915ab1d23e756973996b101bd4422193828187e59b3ac191e5a
BillHallahan/G2
Test27.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--prune-unsorted" @-} module Combined (M, k) where import Prelude hiding (map) data X a = X a data M a = M (X a) @ k : : M ( { v : Int | v = 1 } ) @ k :: M Int k = map cs 1 cs :: Int -> Int cs p = p map :: (a -> a) -> a -> M a map f x ...
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/test_files/Pos/Test27.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ LIQUID "--prune-unsorted" @
module Combined (M, k) where import Prelude hiding (map) data X a = X a data M a = M (X a) @ k : : M ( { v : Int | v = 1 } ) @ k :: M Int k = map cs 1 cs :: Int -> Int cs p = p map :: (a -> a) -> a -> M a map f x = M ((\v -> X (f v)) x)
017056b90b215c44a410e3ddc1b90c1009f828258215360f153e95424c3c0483
dimitri/pgloader
copy-rows-in-batch-through-s3.lisp
;;; ;;; The PostgreSQL COPY TO implementation, using S3 as an intermediate ;;; location for the data. ;;; ;;; This file is only used for Redshift support at the moment. ;;; (in-package :pgloader.pgcopy) (defun batch-rows-to-s3-then-copy (table columns copy nbcols queue) "Add rows that we pop from QUEUE into a batch,...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/pg-copy/copy-rows-in-batch-through-s3.lisp
lisp
The PostgreSQL COPY TO implementation, using S3 as an intermediate location for the data. This file is only used for Redshift support at the moment. the last batch might not be empty TODO: implement --aws--profile and use it here Now we COPY the data from S3 to Redshift: If PostgreSQL signals a data err...
(in-package :pgloader.pgcopy) (defun batch-rows-to-s3-then-copy (table columns copy nbcols queue) "Add rows that we pop from QUEUE into a batch, that we then COPY over to PostgreSQL as soon as the batch is full. This allows sophisticated error handling and recovery, where we can retry rows that are not rejecte...
09e8289d5341c7d987274695cd376a1c25dec459e4043b1f6a9e2373004b088e
xguerin/netml
NetML_Layer_III_IPv4.mli
module Address : sig type t = int * int * int * int [@@deriving yojson] end type t = { source : Address.t; destination : Address.t; length : int; protocol : NetML_Layer_IV.Protocol.t option; } [@@deriving yojson] val decode : Bitstring.t -> t option val expand : Bitstring.t -> (NetML_Layer_IV....
null
https://raw.githubusercontent.com/xguerin/netml/de9d277d2f1ac055aea391b89391df6830f80eff/src/NetML_Layer_III_IPv4.mli
ocaml
module Address : sig type t = int * int * int * int [@@deriving yojson] end type t = { source : Address.t; destination : Address.t; length : int; protocol : NetML_Layer_IV.Protocol.t option; } [@@deriving yojson] val decode : Bitstring.t -> t option val expand : Bitstring.t -> (NetML_Layer_IV....
3a06416afd138440e1288344554b7b74d79203d43c9cdbe4fdef7a94d2aadedd
gsakkas/rite
20060322-00:47:36-635d92e5e80fdb07be8405858041dcbd.seminal.ml
exception Unimplemented exception AlreadyDone exception InvalidAngle let pi = 4.0 *. atan 1.0 (*** part a ***) type move = Home | Forward of float | Turn of float | For of int * move list (*** part b ***) let makePoly sides len = let angle = pi-.((pi*.(float_of_int (sides-2)))/.(float_of_in...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060322-00%3A47%3A36-635d92e5e80fdb07be8405858041dcbd.seminal.ml
ocaml
** part a ** ** part b ** ** part c ** ** part d ** ########################### ** part e ** ** part f ** ** possibly helpful testing code **
exception Unimplemented exception AlreadyDone exception InvalidAngle let pi = 4.0 *. atan 1.0 type move = Home | Forward of float | Turn of float | For of int * move list let makePoly sides len = let angle = pi-.((pi*.(float_of_int (sides-2)))/.(float_of_int sides)) in let rec createMoveLi...
6b49eca52303c9a6ab4f7ef2e593f091a62f5c474dbdd5528fe8716b8a0c4886
mcorbin/tour-of-clojure
forms.clj
(ns tourofclojure.pages.forms (:require [hiccup.element :refer [link-to]] [clojure.java.io :as io] [tourofclojure.pages.util :refer [navigation-block]])) (def code (slurp (io/resource "public/pages/code/forms.clj"))) (defn desc [previous next lang] (condp = lang "fr" [:div ...
null
https://raw.githubusercontent.com/mcorbin/tour-of-clojure/57f97b68ca1a8c96904bfb960f515217eeda24a6/src/tourofclojure/pages/forms.clj
clojure
(ns tourofclojure.pages.forms (:require [hiccup.element :refer [link-to]] [clojure.java.io :as io] [tourofclojure.pages.util :refer [navigation-block]])) (def code (slurp (io/resource "public/pages/code/forms.clj"))) (defn desc [previous next lang] (condp = lang "fr" [:div ...
7869ad06f8e14cedccbb4939ace22ddcb7768b0cfed43beff5074378d3cc8451
slipstream/SlipStreamServer
utils.clj
(ns com.sixsq.slipstream.ssclj.resources.event.utils (:require [clj-time.core :as time] [com.sixsq.slipstream.ssclj.resources.common.schema :as c] [com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud] [com.sixsq.slipstream.ssclj.resources.common.utils :as u])) (def ...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/event/utils.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.event.utils (:require [clj-time.core :as time] [com.sixsq.slipstream.ssclj.resources.common.schema :as c] [com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud] [com.sixsq.slipstream.ssclj.resources.common.utils :as u])) (def ...
dd1e7b1e790481fd9f4b6d55180b142a17be49c07889d772a453dd0a7901b06c
jobjo/popper
tag.ml
type t = | Size | Sign | Function | Char | Int | Float | Bool | Value | Operator | List | Choice | Name of string | Sub_list let is_operator t = t = Operator || t = Size let is_value t = not @@ is_operator t let to_string = function | Sign -> "sign" | Function -> "function" | Char -> "...
null
https://raw.githubusercontent.com/jobjo/popper/33da372946d1d842f75994e086fa81c8cf62986e/src/lib/tag.ml
ocaml
type t = | Size | Sign | Function | Char | Int | Float | Bool | Value | Operator | List | Choice | Name of string | Sub_list let is_operator t = t = Operator || t = Size let is_value t = not @@ is_operator t let to_string = function | Sign -> "sign" | Function -> "function" | Char -> "...
7e37cacb9cdba361f11955fd8154e05552d2189744e6e0a7d2b03c0433a2ff60
paulbutcher/electron-app
arithmetic.cljs
(ns {{name}}.renderer.arithmetic) (defn multiply [x y] (* x y))
null
https://raw.githubusercontent.com/paulbutcher/electron-app/2b67a893b7dba60bf91d504a2daa009149c6fc9b/resources/clj/new/electron_app/src/renderer/arithmetic.cljs
clojure
(ns {{name}}.renderer.arithmetic) (defn multiply [x y] (* x y))
0b351b339086238ac6aac0879fe91fa75cbec43f67c33dea4c3241afa5abf0c4
ghc/ghc
TmpFs.hs
# LANGUAGE CPP # -- | Temporary file-system management module GHC.Utils.TmpFs ( TmpFs , initTmpFs , forkTmpFsFrom , mergeTmpFsInto , PathsToClean(..) , emptyPathsToClean , TempFileLifetime(..) , TempDir (..) , cleanTempDirs , cleanTempFiles , cleanCurrentModuleTempFiles ...
null
https://raw.githubusercontent.com/ghc/ghc/9ea719f2f1929bf2b789e4001f6c542a04185d61/compiler/GHC/Utils/TmpFs.hs
haskell
| Temporary file-system management | Temporary file-system an actual temporary directory for this process. It's a Map probably to support changing the system temporary directory over time. Shared with forked TmpFs. ^ The next available suffix to uniquely name a temp file, updated atomically. Shared with for...
# LANGUAGE CPP # module GHC.Utils.TmpFs ( TmpFs , initTmpFs , forkTmpFsFrom , mergeTmpFsInto , PathsToClean(..) , emptyPathsToClean , TempFileLifetime(..) , TempDir (..) , cleanTempDirs , cleanTempFiles , cleanCurrentModuleTempFiles , addFilesToClean , changeTempFile...
3057d157612dad0914c418472ca89c9140c4ce68e0107c851e8a20a36ccceef4
quil-lang/quilc
ucr-recognize.lisp
;;;; ucr-recognize.lisp ;;;; Author : (in-package #:cl-quil) ;; NOTE: the loops in this function do exactly twice as much work as is needed, ;; but rewriting them to do minimal work makes the loop structure nastier. (define-compiler recognize-ucr ((instr :where (anonymous-gate-app...
null
https://raw.githubusercontent.com/quil-lang/quilc/3f3260aaa65cdde25a4f9c0027959e37ceef9d64/src/compilers/ucr-recognize.lisp
lisp
ucr-recognize.lisp NOTE: the loops in this function do exactly twice as much work as is needed, but rewriting them to do minimal work makes the loop structure nastier. are we a diagonal matrix? we need to do is to see if the matrix has the required extra symmetry: there has to be a fixed target bit d about which...
Author : (in-package #:cl-quil) (define-compiler recognize-ucr ((instr :where (anonymous-gate-application-p instr))) "Checks whether an anonymous gate is a UCRY or UCRZ instruction, in which case it relabels it as such." (let* ((matrix (handler-case (gate-matrix instr) ...
8ae0e4bd2dcad67004873ad3a439425afde7d3f3778f5d603f02c2277b98c62b
mfp/obigstore
obs_structured.ml
* Copyright ( C ) 2011 < > * * 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 option ) any later version , * wi...
null
https://raw.githubusercontent.com/mfp/obigstore/1b078eeb21e11c8de986717150c7108a94778095/src/core/obs_structured.ml
ocaml
* Copyright ( C ) 2011 < > * * 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 option ) any later version , * wi...
d91b6a830fa22e077b31303723a15b2b206a120f9d5e58383245ee10e4b45762
8c6794b6/haskell-sc-scratch
IntroHOT.hs
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Lecture : < -final/course/IntroHOT.hs > Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : non-portabl...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Oleg/TTF/Course/IntroHOT.hs
haskell
Partial pattern match in A clause. Permitting invalid syntax. Open term. We can get stucked when we evaluate an open term.
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Lecture : < -final/course/IntroHOT.hs > Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : non-portabl...
da74555c91d054c860c289248f2450a90a9824a0db6d3f171e4e55648296734e
chetmurthy/ensemble
stacke.mli
(**************************************************************) (* STACKE.MLI *) Author : , 4/96 (**************************************************************) val config_full : Glue.glue -> (* glue *) Alarm.t -> (Addr.id -> int) -> Layer.state -> (* application *) View.full -> (* view state ...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/infr/stacke.mli
ocaml
************************************************************ STACKE.MLI ************************************************************ glue application view state events out of top events into top ************************************************************ glue application view state ******************...
Author : , 4/96 val config_full : Alarm.t -> (Addr.id -> int) -> val config : Alarm.t -> (Addr.id -> int) -> unit
a56a79d8cb63331f1e3b52827e3a04425651af171412b9f71f4821d744fe3c0f
paurkedal/viz
lStream.ml
Copyright ( C ) 2010 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Compiler < / > . * * The Viz Compiler is free software : you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation , either version...
null
https://raw.githubusercontent.com/paurkedal/viz/ab1f1071fafdc51eae69185ec55d7a6e7bb94ea9/camlviz/lStream.ml
ocaml
Copyright ( C ) 2010 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Compiler < / > . * * The Viz Compiler 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...
f8cd7d26e608268d01a2e5bbba7340184e223dbb2828ec0546545391a8a5216f
alan-turing-institute/advent-of-code-2021
day07.rkt
#lang racket/base (require math/statistics) (require racket/string) (require racket/function) (module+ test (require rackunit) (define *input* (map string->number (string-split "16,1,2,0,4,2,7,1,2,14" ","))) (check-equal? 37 (minimum-fuel/1 *input*)) (check-equal? 168 (minimum-fuel/2 *input*)) ) (mo...
null
https://raw.githubusercontent.com/alan-turing-institute/advent-of-code-2021/07c7fc2ba3a0b408d5b977ed3d3af47e455af98b/day-07/racket_triangle-man/day07.rkt
racket
----------------------------------------------------------------------
#lang racket/base (require math/statistics) (require racket/string) (require racket/function) (module+ test (require rackunit) (define *input* (map string->number (string-split "16,1,2,0,4,2,7,1,2,14" ","))) (check-equal? 37 (minimum-fuel/1 *input*)) (check-equal? 168 (minimum-fuel/2 *input*)) ) (mo...
eda4379efd54bc5cf78c61d338813149db88555cd1a55e3b6bf7a6169dc7ddec
janestreet/async_parallel
token.ml
open Core (** Token is a mechanism to detect when an object is not in the process where it was created. Every process has a token, which occupies some area of physical memory. Every object we wish to track has a pointer to it's processes token. Checking whether the object is being used in another process t...
null
https://raw.githubusercontent.com/janestreet/async_parallel/b2ef6ad95279260e2b9889e539bec87c40a13f34/src/token.ml
ocaml
* Token is a mechanism to detect when an object is not in the process where it was created. Every process has a token, which occupies some area of physical memory. Every object we wish to track has a pointer to it's processes token. Checking whether the object is being used in another process than the one t...
open Core type t = {v: unit} let mine = {v = ()} let valid tok = phys_equal tok mine
df93c4155999828687f6842ea307c98958a071f8770802120a238655ce7f7292
pikatchu/LinearML
nast.ml
Copyright ( c ) 2011 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the above copyright notice , this list of conditions and the foll...
null
https://raw.githubusercontent.com/pikatchu/LinearML/76da04134b9eb3a9ca4252e9cb41d412b50a072a/compiler/nast.ml
ocaml
Copyright ( c ) 2011 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the above copyright notice , this list of conditions and the foll...
442d1e8ed2f10603150487edbe2572f558fd328d849d8385b4dacc7dc4aa60f4
mzp/coq-ruby
libnames.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/library/libnames.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i s Global reference is a kernel s...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : libnames.mli 1157...
16c566983fdb62289560972c63f960e38682e40fe05346a345fd03fae7ca6082
c4-project/c4f
statement_class.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir/test/statement_class.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
b495e950ede0a769c100be4ab6f9f5ab5476cff98cc2b3a595d05dc4b69d6e51
seancorfield/honeysql
gen_doc_tests.clj
(ns honey.gen-doc-tests (:require [babashka.fs :as fs] [lread.test-doc-blocks :as tdb])) (defn -main [& _args] (let [target "target/test-doc-blocks" success-marker (fs/file target "SUCCESS") docs ["README.md" "doc/clause-reference.md" "doc/differences-from-1-...
null
https://raw.githubusercontent.com/seancorfield/honeysql/3def127276cce6d206cc6c4d36d0e026323d9bed/build/honey/gen_doc_tests.clj
clojure
"doc/operator-reference.md"
(ns honey.gen-doc-tests (:require [babashka.fs :as fs] [lread.test-doc-blocks :as tdb])) (defn -main [& _args] (let [target "target/test-doc-blocks" success-marker (fs/file target "SUCCESS") docs ["README.md" "doc/clause-reference.md" "doc/differences-from-1-...
18a2580a662c2a17b94ed0fda97538d0d52d64ed40466a307699a0a3b21eccbb
jwiegley/notes
Day.hs
# LANGUAGE DeriveFunctor # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE MultiParamTypeClasses # module Day where import Control.Monad.Free import Control.Comonad.Cofree data AdderF k = Add Int (Bool -> k) | Clear k | Total (Int -> k) deriving Functor type Adder a = Free AdderF a data CoA...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Day.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes #
# LANGUAGE DeriveFunctor # # LANGUAGE MultiParamTypeClasses # module Day where import Control.Monad.Free import Control.Comonad.Cofree data AdderF k = Add Int (Bool -> k) | Clear k | Total (Int -> k) deriving Functor type Adder a = Free AdderF a data CoAdderF k = CoAdderF { addH :: Int -> (Bool, k)...
849ee9eb64e359398b04d1ad77d2e5b234a73b73a16bcc2ffa8dda66ecd8ebda
codinuum/cca
sourcecode.ml
Copyright 2012 - 2022 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/3d97b64a5c23ff97c08455ac604ccb9fed471d91/src/ast/analyzing/common/sourcecode.ml
ocaml
sourcecode.ml handling logical ordinal of a child method _more_anonymized_label = Obj.repr (L.anonymize ~more:true lab) _label = ndat#_label && self#orig_lab_opt = ndat#orig_lab_opt self#orig_to_elem_data_for_eq = x#orig_to_elem_data_for_eq for searchast of class Sourcecode.node_data Printf.printf "! [before] i...
Copyright 2012 - 2022 Codinuum Software Lab < > 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 wri...
1a89270aae163ab437e8a391eccce622e6bbe0d5b5aebeda8ea942a51f6b8479
honix/Lire
text.lisp
;; ;; Lire - text drawing ;; (in-package :lire) (defstruct text-texture id width heigth) (defparameter *text-hash* (make-hash-table :test #'equal)) (defun clean-text-hash () (labels ((delete-texture (key value) (declare (ignore key)) (gl:delete-textures (list (text-texture-id value))))...
null
https://raw.githubusercontent.com/honix/Lire/36c18b8944919ef428ed856935746955a4cc38cc/text.lisp
lisp
Lire - text drawing
(in-package :lire) (defstruct text-texture id width heigth) (defparameter *text-hash* (make-hash-table :test #'equal)) (defun clean-text-hash () (labels ((delete-texture (key value) (declare (ignore key)) (gl:delete-textures (list (text-texture-id value))))) (maphash #'delete-textu...
3d363be1737a94cddf0ae3d8b12c7052074bf38a16556cc3291cfc0e0e6fb657
jkvor/emysql
emysql_eqc.erl
%% erlc -o ebin t/*.erl -W0 %% erl -pa ebin -sasl sasl_error_logger false -name emysql_eqc@`hostname` eqc : : prop_emysql_eqc ( ) ) . %% eqc_gen:sample(eqc_statem:commands(rpcore_user_eqc)). -module(emysql_eqc). -behaviour(eqc_statem). -export([command/1, initial_state/0, next_state/3, precondition/2, postcondition/...
null
https://raw.githubusercontent.com/jkvor/emysql/6f72bc729200024f5940a2c11f15afd2af6f3d11/t/emysql_eqc.erl
erlang
erlc -o ebin t/*.erl -W0 erl -pa ebin -sasl sasl_error_logger false -name emysql_eqc@`hostname` eqc_gen:sample(eqc_statem:commands(rpcore_user_eqc)). table already exists unknown table choose(65,90),
eqc : : prop_emysql_eqc ( ) ) . -module(emysql_eqc). -behaviour(eqc_statem). -export([command/1, initial_state/0, next_state/3, precondition/2, postcondition/3]). -compile(export_all). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -include_lib("emysql/include/emysql.hrl"). -recor...
6bc61280f4a19ca42d1ac02aeb9c719927aebadc96c8fbb4cd5bffd803049033
spurious/sagittarius-scheme-mirror
%3a132.scm
Test program for SRFI 132 ( Sort Libraries ) . Copyright ( 2016 ) . ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, including without limitatio...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/srfi/%253a132.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or Software is furnished to do so, subject to the following conditions...
Test program for SRFI 132 ( Sort Libraries ) . Copyright ( 2016 ) . files ( the " Software " ) , to deal in the Software without sell copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT ...
2b688fda1cbbc2b968a9e56d81b97aecac6eee4d04994661a32b2e9a97a1ebd7
tdammers/sprinkles
Bake.hs
# LANGUAGE NoImplicitPrelude # {-#LANGUAGE OverloadedStrings #-} # LANGUAGE OverloadedLists # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Web.Sp...
null
https://raw.githubusercontent.com/tdammers/sprinkles/a9161e4506427a3cf5f686654edc7ed9aa3ea82b/src/Web/Sprinkles/Bake.hs
haskell
#LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedLists # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Web.Sprinkles.Bake where import Web.Spr...
53a37a1fc2ba65b64a0985b3bf26aa1cc5e08f5c294eb4071259fd16ab2d003e
mokus0/junkbox
MergeSort.hs
# LANGUAGE MagicHash , UnboxedTuples # MagicHash, UnboxedTuples #-} module Functions.MergeSort where import Data.Array.Simple import Data.Bits import Control.Monad import Control.Monad.ST a ! i = marray_read a i copy_array a = array_new (array_size a) (array_index a) mergeSort a = runST $ d...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Functions/MergeSort.hs
haskell
# LANGUAGE MagicHash , UnboxedTuples # MagicHash, UnboxedTuples #-} module Functions.MergeSort where import Data.Array.Simple import Data.Bits import Control.Monad import Control.Monad.ST a ! i = marray_read a i copy_array a = array_new (array_size a) (array_index a) mergeSort a = runST $ d...
fff271a2d5b0310428b456ef239c278e781a3350c45334aed4655825fdbeec29
ocaml-multicore/tezos
base.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 - 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/lib/base.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 - 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN ...
91f7a3dd95912ae9b24de10e7c33d9cab18104b732213a13e8b2b0c0be13d515
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
Main.hs
----------------------------------------------------------------------------- -- | -- Module : Main Copyright : 2016 - 17 Pacific Northwest National Laboratory -- License : ECL-2.0 (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability : experimental -- Portability : portabl...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/MFAPipe/app/Main.hs
haskell
--------------------------------------------------------------------------- | Module : Main License : ECL-2.0 (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable ---------------------------------------------------------------------------
Copyright : 2016 - 17 Pacific Northwest National Laboratory Entry point for the \"mfaPipe\ " command line application . import qualified Data.Default import Data.LinearProgram.GLPK.Solver (GLPOpts(..)) import qualified Data.LinearProgram.GLPK.Solver import qualified Data.Version import MFA...
0353c1fb9687d966f7f0532db7ee9ede77bf2659de560a4812f5759183fb03ed
EligiusSantori/L2Apf
validate_auth.scm
(module system racket/base (provide game-client-packet/validate-auth) (require srfi/1 "../../packet.scm") (define (game-client-packet/validate-auth struct) (let ((s (open-output-bytes)) (lk (or (cdr (assoc 'login-key struct)) (make-bytes 8))) (gk (cdr (assoc 'game-key struct)))) (begin (write-byte #...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/validate_auth.scm
scheme
(module system racket/base (provide game-client-packet/validate-auth) (require srfi/1 "../../packet.scm") (define (game-client-packet/validate-auth struct) (let ((s (open-output-bytes)) (lk (or (cdr (assoc 'login-key struct)) (make-bytes 8))) (gk (cdr (assoc 'game-key struct)))) (begin (write-byte #...
1eba12175271c77e1ea2d1828b78ce698646ef7cd60740d72b821c3f9472270a
kind2-mc/kind2
lustreTypeChecker.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2020 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/d34694b4461323322fdcc291aa3c3d9c453fc098/src/lustre/lustreTypeChecker.mli
ocaml
* [type_error] returns an [Error] of [tc_result] * Typechecks the toplevel globals i.e. constant decls and type decls. It returns a [Ok (tc_context)] if it succeeds or and [Error of String] if the typechecker fails * Typechecks and infers type for the nodes and contracts. It returns a [Ok (tc_context)] if it...
This file is part of the Kind 2 model checker . Copyright ( c ) 2020 by the Board of Trustees of the University of Iowa 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 a...
05d04b4b790acbad3842850f0f9fd4c9825187cdf7c8e5b05fce02e124bcbfcc
input-output-hk/ouroboros-network
Integrity.hs
# LANGUAGE NamedFieldPuns # module Ouroboros.Consensus.Byron.Ledger.Integrity ( verifyBlockIntegrity , verifyHeaderIntegrity , verifyHeaderSignature ) where import Data.Either (isRight) import qualified Cardano.Chain.Block as CC import qualified Cardano.Crypto.DSIGN.Class as CC.Crypto import ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus-byron/src/Ouroboros/Consensus/Byron/Ledger/Integrity.hs
haskell
| Verify whether a header matches its signature. Note that we cannot check this for an EBB, as an EBB contains no signature. This function will always return 'True' for an EBB. EBB, no signature to check | Verify whether a header is not corrupted. The difference with 'verifyHeaderSignature' is that this functio...
# LANGUAGE NamedFieldPuns # module Ouroboros.Consensus.Byron.Ledger.Integrity ( verifyBlockIntegrity , verifyHeaderIntegrity , verifyHeaderSignature ) where import Data.Either (isRight) import qualified Cardano.Chain.Block as CC import qualified Cardano.Crypto.DSIGN.Class as CC.Crypto import ...
2b02a4a16739702f44e27970ffd1447452f42140f64f28694ec4d09750890154
alexandergunnarson/quantum
core.cljc
(ns quantum.audio.core) 1 . / - " Download tarball " 2 . / - Download all versions . Put in " dist " folder within jvst_examples 3 . cd to the /dist/ folder and type : " mvn assembly : assembly " ; ... but doesn't work... try it on Windows maybe? Download VST SDK from 's website ; #input ; Put downloaded fol...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/audio/core.cljc
clojure
... but doesn't work... try it on Windows maybe? #input Put downloaded folder in jvsthost/ as vst3.0/
(ns quantum.audio.core) 1 . / - " Download tarball " 2 . / - Download all versions . Put in " dist " folder within jvst_examples 3 . cd to the /dist/ folder and type : " mvn assembly : assembly " Download VST SDK from 's website
f17c9fd4363705b6dcde39002add11798ea1b56464695342b3f175a2c5541d4d
achirkin/qua-kit
LuciConsole.hs
----------------------------------------------------------------------------- -- | -- Module : Main Copyright : License : MIT -- Maintainer : -- Stability : experimental -- An executable for sending and receiving simple messages . -- ------------------------------------------------...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/libs/hs/luci-connect/examples/LuciConsole.hs
haskell
--------------------------------------------------------------------------- | Module : Main Stability : experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings #
Copyright : License : MIT Maintainer : An executable for sending and receiving simple messages . module Main (main) where import Data.Aeson as JSON import qualified Data.Text as Text import Data.ByteString (ByteString) import qualified Data.ByteString as BS import qualified Data.ByteString...
a8029ff3d0f6eed513b612f874635c92c93a0c1f54a917c1bea66829d2916b6d
khinsen/leibniz
test-examples.rkt
#lang racket (provide sorts a-signature) (require "./sorts.rkt" "./operators.rkt" "./builtins.rkt" "./terms.rkt" threading) (define sorts (~> (merge-sort-graphs rational-sorts truth-sorts) (add-sort 'A) (add-sort 'B) (add-subsort-relation 'B 'A) (add-sort 'X) (...
null
https://raw.githubusercontent.com/khinsen/leibniz/881955b4c642114fbdc2f36ecc99582ae2371238/leibniz/test-examples.rkt
racket
#lang racket (provide sorts a-signature) (require "./sorts.rkt" "./operators.rkt" "./builtins.rkt" "./terms.rkt" threading) (define sorts (~> (merge-sort-graphs rational-sorts truth-sorts) (add-sort 'A) (add-sort 'B) (add-subsort-relation 'B 'A) (add-sort 'X) (...
266574ee17efa43f91965c833379737180f0a2294b9ef0658160fe9caf070a34
manuel-serrano/bigloo
substitute.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Ast / substitute.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : F...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Ast/substitute.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The substitution tools module */ *===========================...
* ... /prgm / project / bigloo / / comptime / Ast / substitute.scm * / * Author : * / * Creation : Fri Jan 6 11:09:14 1995 * / * Last change : Thu Jul 8 11:25:32 2021 ( serrano ) * / (module ast_...
389784a358a1cc1e2c8ad0abca16c0071f7102e3fa3336ae6a16613de806ec00
davebryson/beepbeep
skel_sup.erl
-module(skel_sup). -behaviour(supervisor). %% External exports -export([start_link/0, upgrade/0]). %% supervisor callbacks -export([init/1]). ( ) - > ServerRet %% @doc API for starting the supervisor. start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). @spec upgrade ( ) - > ok %% @doc A...
null
https://raw.githubusercontent.com/davebryson/beepbeep/62db46d268c6cb6ad86345562b3c77f8ff070b27/priv/skel/src/skel_sup.erl
erlang
External exports supervisor callbacks @doc API for starting the supervisor. @doc Add processes if necessary. @doc supervisor callback. will cause something to break.
-module(skel_sup). -behaviour(supervisor). -export([start_link/0, upgrade/0]). -export([init/1]). ( ) - > ServerRet start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). @spec upgrade ( ) - > ok upgrade() -> {ok, {_, Specs}} = init([]), Old = sets:from_list( [Name || ...
2c4c977bebde74ea2125234ae01079003ea71133758944281bddb0d89a4c751f
7bridges-eu/clj-odbp
command.clj
Copyright 2017 7bridges s.r.l . ;; 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 u...
null
https://raw.githubusercontent.com/7bridges-eu/clj-odbp/5a92515c2e4c6198bd1093ace83da96e30b90829/src/clj_odbp/operations/command.clj
clojure
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 permiss...
Copyright 2017 7bridges s.r.l . distributed under the License is distributed on an " AS IS " BASIS , (ns clj-odbp.operations.command (:require [clj-odbp [constants :as constants] [utils :refer [encode decode]]] [clj-odbp.operations.specs.command :as specs] [clj-o...
e1fe1f206dfc992b3ae009ad35d26e05b3235e2be780d37dd0a8e275e1cb32e5
razum2um/clj-debugger
config.clj
(ns debugger.config (:require [debugger.time :as t])) (declare ^:dynamic *locals*) (def ^:dynamic *break-outside-repl* true) (def ^:dynamic *code-context-lines* 5) (def ^:dynamic *locals-print-length* 10) (def ^:dynamic *skip-repl-if-last-quit-ago* 2) (def ^:dynamic *last-quit-at* (atom (t/minus (t/now) (t/seconds *...
null
https://raw.githubusercontent.com/razum2um/clj-debugger/22f8775193b13e799c3879f6d8443e65600ad503/src/debugger/config.clj
clojure
(ns debugger.config (:require [debugger.time :as t])) (declare ^:dynamic *locals*) (def ^:dynamic *break-outside-repl* true) (def ^:dynamic *code-context-lines* 5) (def ^:dynamic *locals-print-length* 10) (def ^:dynamic *skip-repl-if-last-quit-ago* 2) (def ^:dynamic *last-quit-at* (atom (t/minus (t/now) (t/seconds *...
a99d81df894a5cd116fec8d61a1c2d8822acfc2d7e3b9cf894f68dbac4582007
OscarSouth/theHarmonicAlgorithm
Lib.hs
module Lib ( ------------ -- |MusicData MusicData, PitchClass (P), NoteName, Chord (Chord), Cadence, i, pitchClass, mostConsonant, possibleTriads'', toTriad, flatTriad, sharpTriad, flatChord, sharpChord, flat, sharp, showTriad, dissonanceLevel, toCadence, pc, pcSet, simpleInversions, intervalVector, fromCadence, fromCa...
null
https://raw.githubusercontent.com/OscarSouth/theHarmonicAlgorithm/615b87c7ac98e06f59af225bb892c6caf97a4a29/src/Lib.hs
haskell
---------- |MusicData -------- experimental stuff Movement, Functionality, --------- |Analysis temp --------- |Markov ---------- |Overtone ---------- |Utility uniqueAnalysis, |GraphDB testFunc, testData contains markov chain numerical processing machinery ad hoc analysis functionality for composing main...
module Lib ( MusicData, PitchClass (P), NoteName, Chord (Chord), Cadence, i, pitchClass, mostConsonant, possibleTriads'', toTriad, flatTriad, sharpTriad, flatChord, sharpChord, flat, sharp, showTriad, dissonanceLevel, toCadence, pc, pcSet, simpleInversions, intervalVector, fromCadence, fromCadence', movementFromCadence...
44d0625d07ef253cdf56ac29d7677dedd8255b7b871a77b50168a7a19a18d165
PLTools/OCanren
test010.ml
(* Some tests about constraints *) open GT open OCanren open OCanren.Std open Tester let (!) = inji let (!!) = inji let g123 x = conde [x === !1; x === !2; x === !3] let g12 x = (g123 x) &&& (x =/= !3) let gxy x y = (g123 x) &&& (g123 y) let gxy' x y = (gxy x y) &&& (x =/= y) let gnot5 x = x =/= !5 let show_in...
null
https://raw.githubusercontent.com/PLTools/OCanren/1ead64bde16b0eb339a6bf790ea871e19bbaccd0/regression/test010.ml
ocaml
Some tests about constraints
open GT open OCanren open OCanren.Std open Tester let (!) = inji let (!!) = inji let g123 x = conde [x === !1; x === !2; x === !3] let g12 x = (g123 x) &&& (x =/= !3) let gxy x y = (g123 x) &&& (g123 y) let gxy' x y = (gxy x y) &&& (x =/= y) let gnot5 x = x =/= !5 let show_int = show(int) let run_int eta = ru...
00e12406934a5302d14e2d03cc23c92c4d9848046352bb01ed106dd15e73f059
juxt/jinx
clj_transform_test.cljc
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.clj-transform-test (:require [juxt.jinx.alpha.clj-transform :refer [clj->jsch]] [clojure.test :refer [deftest is]] #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing run-tests]]))) (deftest cl...
null
https://raw.githubusercontent.com/juxt/jinx/48c889486e5606e39144043946063803ad6effa8/test/juxt/jinx/clj_transform_test.cljc
clojure
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.clj-transform-test (:require [juxt.jinx.alpha.clj-transform :refer [clj->jsch]] [clojure.test :refer [deftest is]] #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing run-tests]]))) (deftest cl...
c141740d0848341218cb7fd358e9eff4ae71904eb6d50900d2e89a3509ad128e
Haskell-Things/HSlice
Line.hs
{- ORMOLU_DISABLE -} - Copyright 2020 - - This program is free software : you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation , either version 3 of the License , or - ( at your option ) any later version ....
null
https://raw.githubusercontent.com/Haskell-Things/HSlice/dd6a26725d3b4b51f0f968425d63f2bde7bc03c6/Graphics/Slicer/Math/Skeleton/Line.hs
haskell
ORMOLU_DISABLE inherit instances when deriving. | Functions for for applying inset line segments to a series of faces, and for adding infill to a face. ---------------------------------------------------------------- ---------------- Line Segment Placement ------------------------ ----------------------------------...
- Copyright 2020 - - This program is free software : you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation , either version 3 of the License , or - ( at your option ) any later version . - - This progr...
4cd005d34d9ea946907c630ae9ebe1a1c63259ec7072626163621e16e2b3a47f
tfausak/monadoc-5
MonadocSpec.hs
module MonadocSpec where import qualified Monadoc import Monadoc.Prelude import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.ConfigResult as ConfigResult import qualified Monadoc.Type.Context as Context import Test.Hspec spec :: Spec spec = describe "Monadoc" <| do describe "argumentsToCon...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/MonadocSpec.hs
haskell
module MonadocSpec where import qualified Monadoc import Monadoc.Prelude import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.ConfigResult as ConfigResult import qualified Monadoc.Type.Context as Context import Test.Hspec spec :: Spec spec = describe "Monadoc" <| do describe "argumentsToCon...
4c3b31066470c038d2ea336881808061eddf8fa7a751b4ead81ac6f704deca80
Helium4Haskell/helium
Irrefutable.hs
module Irrefutable where main = (f True (3,4), f False undefined) f :: Bool -> (Int, Int) -> Int f lookInside ~(True, y) = if lookInside then 1 else 0
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/simple/typeerrors/Examples/Irrefutable.hs
haskell
module Irrefutable where main = (f True (3,4), f False undefined) f :: Bool -> (Int, Int) -> Int f lookInside ~(True, y) = if lookInside then 1 else 0
f0b45bc05ea98beec160408153fc46b1e0e798ad02a5398eded82b3a1849beca
karamellpelle/grid
ShadeWall.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/LevelPuzzleData/Plain/ShadeWall.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzle.LevelPuzzleData.Plain.Shade...
3874fa7a8f928e4df758c589974dbd97e6339b3dbf9c8c71a725b32a7a5030ec
haskell/statistics
Resampling.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeFamilies #-} -- | -- Module : Statistics.Resamp...
null
https://raw.githubusercontent.com/haskell/statistics/d018625f33e8b01911674bffdfcf541415cc3455/Statistics/Resampling.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE TypeFamilies # | Module : Statistics.Resampling License : BSD3 Maintainer : Stability : experimental Portability : portable R...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # Copyright : ( c ) 2009 , 2010 module Statistics.Resampling Resample(..) , Bootstrap(..) , Estimator(..) , estimate , resampleST , resample , resampleVector , jackknife , jackknifeMean , jackknifeVariance ...
4b52aa67cf62a9365bd0ab02e05e5e44612f182ee9fea6109e2ad24370d4658d
rtoy/cmucl
nlx.lisp
;;; -*- Package: PPC -*- ;;; ;;; ********************************************************************** This code was written as part of the Spice Lisp project at Carnegie - Mellon University , and has been placed in the public domain . If you want to use this code or any part of Spice Lisp , please contact (...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/ppc/nlx.lisp
lisp
-*- Package: PPC -*- ********************************************************************** ********************************************************************** This file contains the definitions of VOPs used for non-local exit (throw, lexical exit, etc.) non-local entry. Save and restore dynamic e...
This code was written as part of the Spice Lisp project at Carnegie - Mellon University , and has been placed in the public domain . If you want to use this code or any part of Spice Lisp , please contact ( FAHLMAN@CMUC ) . $ Header : src / compiler / ppc / nlx.lisp $ Written by (in-package "PPC") MA...
098bb5638a311cf332ad38143bfdfcd1070f8301dc2504d845a07166cf6aade5
ryanpbrewster/haskell
valid_parentheses.hs
-- valid_parentheses.hs - Given a string comprising just of the characters ( , ) , { , } , [ , ] determine if it - is well - formed or not . - Input sample : - - Your program should accept as its first argument a path to a filename . Each - line in this file contains a string comprising of the charact...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/CodeEval/valid_parentheses.hs
haskell
valid_parentheses.hs - I use a simple recursive descent parser for the language - S -> VS | "" - V -> (S) | [S] | {S} - - That is, the language of all properly formed parenthesis-like strings
- Given a string comprising just of the characters ( , ) , { , } , [ , ] determine if it - is well - formed or not . - Input sample : - - Your program should accept as its first argument a path to a filename . Each - line in this file contains a string comprising of the characters mentioned - above...
f830afaa2bb4c7c1684a2439299efe80366816d91092734695ba603d9676cab4
mfoemmel/erlang-otp
gs1.1.erl
-module(gs1). -vsn(1). -behaviour(gen_server). -export([get_data/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {data}). get_data() -> gen_server:call(gs1, get_data). init([Data]) -> {ok, #state{data = Data}}. handle_call(get_data, _From,...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/sasl/doc/src/rel/gs1.1.erl
erlang
-module(gs1). -vsn(1). -behaviour(gen_server). -export([get_data/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {data}). get_data() -> gen_server:call(gs1, get_data). init([Data]) -> {ok, #state{data = Data}}. handle_call(get_data, _From,...
f3720154dac62278ebbd1c7a8d4bf728fd8edda53c4e475e0193b3b84aeb731e
repl-electric/cassiopeia
alpha.clj
(ns cassiopeia.alpha " .'. | |`````````, | | .'. .''```. | |''''''''' |_________| .''```. .' `. | | | | .' `. .' `. |_______ | | | .' `. * Surface temperature: 4530 K * Mass: 8.95E30 k...
null
https://raw.githubusercontent.com/repl-electric/cassiopeia/a42c01752fc8dd04ea5db95c8037f393c29cdb75/src/cassiopeia/destination/alpha.clj
clojure
[cassiopeia.warm-up] [launchpad.sequencer :as lp-sequencer] [launchpad.plugin.beat :as lp-beat] Rythm Jaming "resources/textures/space.png"
(ns cassiopeia.alpha " .'. | |`````````, | | .'. .''```. | |''''''''' |_________| .''```. .' `. | | | | .' `. .' `. |_______ | | | .' `. * Surface temperature: 4530 K * Mass: 8.95E30 k...
89d82d9fca12d831246add73a68dbf79452e3951f20017bcb185416ad204e103
Apress/beg-haskell
FnsParams.hs
# LANGUAGE LambdaCase # module Chapter3.FnsParams where map' :: (a -> b) -> [a] -> [b] map' _ [] = [] map' f (x:xs) = (f x) : (map f xs) apply3f2 :: (Integer -> Integer) -> Integer -> Integer apply3f2 f x = 3 * f (x + 2) equalTuples :: [(Integer,Integer)] -> [Bool] equalTuples t = map (\(x,y) -> x == y) t sayH...
null
https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter3/src/Chapter3/FnsParams.hs
haskell
uncurry :: (a -> b -> c) -> (a,b) -> c uncurry f = \(x,y) -> f x y curry :: ((a,b) -> c) -> a -> b -> c curry f = \x y -> f (x,y)
# LANGUAGE LambdaCase # module Chapter3.FnsParams where map' :: (a -> b) -> [a] -> [b] map' _ [] = [] map' f (x:xs) = (f x) : (map f xs) apply3f2 :: (Integer -> Integer) -> Integer -> Integer apply3f2 f x = 3 * f (x + 2) equalTuples :: [(Integer,Integer)] -> [Bool] equalTuples t = map (\(x,y) -> x == y) t sayH...
5f44aaa889a861c546d029cd5efb1e514d8b3697a2b819f799658d04b21e9014
maacl/websocket-test
crypto.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) which ;; can be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by the ;; ter...
null
https://raw.githubusercontent.com/maacl/websocket-test/d79dfdf82762d566cd89b535c3dbede2788bb034/src/compojure/crypto.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns compojure.crypto "Functions for cryptographically signing, verifying and encrypting data." (:use compojure.encodings clojure.contrib.def clojure.contrib.java-utils) (:impo...
3bec48ada637baf3b58f1531b21fa5e69b2300514017903c364b9918cc057a05
Lovesan/clave
io-flags.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- Copyright ( C ) 2017 , < lovesan.ru at gmail.com > ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, inclu...
null
https://raw.githubusercontent.com/Lovesan/clave/3b08ed4c4cb3fa885739355821f73bbfd75a2a7d/src/io-flags.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do...
Copyright ( C ) 2017 , < lovesan.ru at gmail.com > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI...
a606e7d7373807ef03ed17bceb2647ce3222fedba0e71cc7f6896afd849a5eec
polymeris/cljs-aws
s3_example.cljs
(ns cljs-aws.s3-example (:require [cljs-aws.s3 :as s3] [cljs.core.async :refer [go <!]] [cljs-aws.examples-util :as util :refer [throw-or-print]])) (enable-console-print!) (defn -main "Example cljs script using cljs-aws. Fetches a list of buckets from S3, then the objects contained in t...
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/node-examples/src/cljs_aws/s3_example.cljs
clojure
(ns cljs-aws.s3-example (:require [cljs-aws.s3 :as s3] [cljs.core.async :refer [go <!]] [cljs-aws.examples-util :as util :refer [throw-or-print]])) (enable-console-print!) (defn -main "Example cljs script using cljs-aws. Fetches a list of buckets from S3, then the objects contained in t...
24d57f84da89472b9cf69e6b0b4e55265cf5e3ac833847c2f51460ed50a9ee5e
polymeris/cljs-aws
s3_test.cljs
(ns cljs-aws.services.s3-test (:require [clojure.test :refer [deftest is async]] [camel-snake-kebab.core :refer [->camelCaseString]] [cljs.core.async :as a] [cljs-aws.s3 :as s3]) (:require-macros [cljs-aws.test-macros :refer [with-example-mocks]])) (deftest examples--s3--ok (a...
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/test/cljs_aws/services/s3_test.cljs
clojure
(ns cljs-aws.services.s3-test (:require [clojure.test :refer [deftest is async]] [camel-snake-kebab.core :refer [->camelCaseString]] [cljs.core.async :as a] [cljs-aws.s3 :as s3]) (:require-macros [cljs-aws.test-macros :refer [with-example-mocks]])) (deftest examples--s3--ok (a...
1bd9c9a79cba351ef35e0cc3e42b3d2581a2b48dbf74dbc4ba285e42f665224e
gfngfn/otfed
encodeError.ml
open Basic type unsupported_report = | LocalSubrOperation [@@deriving show { with_path = false }] type t = | NotEncodableAsUint8 of int | NotEncodableAsInt8 of int | NotEncodableAsUint16 of int | NotEncodableAsInt16 of int | NotEncodableAsUint24 of int | NotEncodableAs...
null
https://raw.githubusercontent.com/gfngfn/otfed/3c6d8ea0b05fc18a48cb423451da7858bf73d1d0/src/encodeError.ml
ocaml
open Basic type unsupported_report = | LocalSubrOperation [@@deriving show { with_path = false }] type t = | NotEncodableAsUint8 of int | NotEncodableAsInt8 of int | NotEncodableAsUint16 of int | NotEncodableAsInt16 of int | NotEncodableAsUint24 of int | NotEncodableAs...
1d0d9818c232bbd8baf7f276ebccb35ec1665a576a8a547d0d25b6994b8fe484
spechub/Hets
PPrel.hs
module PPrel where -- Standard types, classes, instances and related functions -- Numeric classes class (Num a, Ord a) => RealK a where toRational' :: a -> Rational class (RealK a, Enum a) => IntegralK a where quot', rem' :: a -> a -> a div', mod' :: a -> a -> a quotRem', divMod' :: a -> a -> (a, ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Haskell/test/HOLCF/PPrel.hs
haskell
Standard types, classes, instances and related functions Numeric classes Minimal complete definition: quotRem, toInteger Minimal complete definition: fromRational and (recip or (/)) Numeric functions Trivial type Function type identity function constant function function composition (.) ...
module PPrel where class (Num a, Ord a) => RealK a where toRational' :: a -> Rational class (RealK a, Enum a) => IntegralK a where quot', rem' :: a -> a -> a div', mod' :: a -> a -> a quotRem', divMod' :: a -> a -> (a, a) toInteger' :: a -> Integer n `quot'` d = fst (quotRem' n d) n `...
d4be28cb94930d74cf81ce8dda0b20890ffb06d52a6c99a6b3e191706609f0dd
fluree/db
async.cljc
(ns fluree.db.util.async (:require [fluree.db.util.core :as util] [fluree.db.util.log :as log] [fluree.db.util.core #?(:clj :refer :cljs :refer-macros) [try* catch*]] [clojure.core.async :refer [go <!] :as async] [clojure.core.async.impl.protocols :as async-protocols]) #?(:cljs (:require-macros ...
null
https://raw.githubusercontent.com/fluree/db/9e9718b11e954c47621ea2c4651105f6d0765535/src/fluree/db/util/async.cljc
clojure
some macros for working with core async
(ns fluree.db.util.async (:require [fluree.db.util.core :as util] [fluree.db.util.log :as log] [fluree.db.util.core #?(:clj :refer :cljs :refer-macros) [try* catch*]] [clojure.core.async :refer [go <!] :as async] [clojure.core.async.impl.protocols :as async-protocols]) #?(:cljs (:require-macros ...