_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
d4bac9c015b16cb56d766a319bc52ce2c19c2d5b53f87e02b45c40d643109fc9
gafiatulin/codewars
RegExpParser.hs
-- Regular expression parser -- / module RegExpParser (RegExp(..), parseRegExp) where import Control.Applicative (pure, empty, (<|>), (<*>), (<$>) , Applicative, Alternative) import Control.Monad (ap, (>=>), guard) import Control.Arrow ((&&&)) data RegExp = Normal Char | Any | ZeroOrMore RegExp | Or RegExp RegExp | ...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/2%20kyu/RegExpParser.hs
haskell
Regular expression parser /
module RegExpParser (RegExp(..), parseRegExp) where import Control.Applicative (pure, empty, (<|>), (<*>), (<$>) , Applicative, Alternative) import Control.Monad (ap, (>=>), guard) import Control.Arrow ((&&&)) data RegExp = Normal Char | Any | ZeroOrMore RegExp | Or RegExp RegExp | Str [RegExp] deriving (Show, Eq) ...
ace5b1999a2c05332abb54f431cdd8522edbce94131c6d608d856bc5f939fefa
avsm/ocaml-ssh
mpl_stdlib.mli
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/ocaml-ssh/26577d1501e7a43e4b520239b08da114c542eda4/lib/mpl_stdlib.mli
ocaml
default to big endian (network endian)
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
70f36f6d2ca037653a039857ac7143d321014cf7d01282aae4bce3d48f4760bd
evrim/core-server
errno.lisp
(in-package :core-ffi) ;;;----------------------------------------------------------------------------- ;;; ERROR HANDLING ROUTINES FOR KERNEL CALLS ;;;----------------------------------------------------------------------------- (eval-when (:compile-toplevel :load-toplevel) (defvar +error-symbols+ (make-hash-table ...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/io/errno.lisp
lisp
----------------------------------------------------------------------------- ERROR HANDLING ROUTINES FOR KERNEL CALLS ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- UNIX ERROR CODES --------------------------...
(in-package :core-ffi) (eval-when (:compile-toplevel :load-toplevel) (defvar +error-symbols+ (make-hash-table :test #'eq))) (eval-when (:compile-toplevel :load-toplevel) (defmacro deferrno (symbol errno docstring) `(progn (defvar ,symbol ,errno ,docstring) (setf (gethash ,errno +error-symbols+) ...
ced5b1297bfab33a8ee684aea3b1a7b6da1ea8a478ab2271f6dbb5d6849d0e28
NorfairKing/tickler
AdminRSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Tickler.Web.Server.Handler.AdminRSpec where import qualified Data.Text as T import Data.Time import Test.Syd.Yesod import TestImport import Tickler.Web.Server.Foundation import Tickler.Web.Server.TestUtils spec :: Spec spec = ticklerWebServerSpec $ do describe "AdminR" $ d...
null
https://raw.githubusercontent.com/NorfairKing/tickler/96ac4fdf6044f3dea81552a84c894ea3b1603b84/tickler-web-server-gen/test/Tickler/Web/Server/Handler/AdminRSpec.hs
haskell
# LANGUAGE OverloadedStrings # An account beforehand Can delete it No more account afterwards An account beforehand Can delete it
module Tickler.Web.Server.Handler.AdminRSpec where import qualified Data.Text as T import Data.Time import Test.Syd.Yesod import TestImport import Tickler.Web.Server.Foundation import Tickler.Web.Server.TestUtils spec :: Spec spec = ticklerWebServerSpec $ do describe "AdminR" $ do it "GETs a 404 when not logge...
37321018cec7aa8be8163ff73a8e2e8a9d7abfd8917ced6c088b07b3df096727
chrissound/GitChapter
Test.hs
{-# OPTIONS -Wno-unused-imports #-} {-# OPTIONS -Wno-type-defaults #-} {-# Language OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE Strict #-} {-# LANGUAGE StrictData #-} module Test where import Render import Test.HUnit import Test.QuickCheck import Data.Maybe import qualified Text.Parsec as TPar import q...
null
https://raw.githubusercontent.com/chrissound/GitChapter/4bfd9bd47b622c1dac08ab8e5ab4427432c48d26/src/Test.hs
haskell
# OPTIONS -Wno-unused-imports # # OPTIONS -Wno-type-defaults # # Language OverloadedStrings # # LANGUAGE Strict # # LANGUAGE StrictData # testEscape :: Test testEscape = do case (TPar.parse parseSection "???" input) of Left e -> error $ show e
# LANGUAGE QuasiQuotes # module Test where import Render import Test.HUnit import Test.QuickCheck import Data.Maybe import qualified Text.Parsec as TPar import qualified Text.Parsec.String import Data.List import System.IO.Unsafe import Text.Pretty.Simple (pPrint) import Data.String.Conversions import Data.Text (Text)...
4320556ac47bc72a360fef8e04012acbbdf71250a292d854240d0f0e9437b751
input-output-hk/cardano-sl
StakeAndHolder.hs
module Test.Pos.Chain.Lrc.StakeAndHolder ( StakeAndHolder (..) ) where import Universum import Data.List (scanl1) import qualified Data.Set as S (deleteFindMin, fromList) import Test.QuickCheck (Arbitrary (..), choose, suchThat) import Pos.Core (StakesList, addre...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/chain/test/Test/Pos/Chain/Lrc/StakeAndHolder.hs
haskell
doesn't have any stake. public keys who will be our other stakeholders. To guarantee a non-empty converted to a set and then to a map.
module Test.Pos.Chain.Lrc.StakeAndHolder ( StakeAndHolder (..) ) where import Universum import Data.List (scanl1) import qualified Data.Set as S (deleteFindMin, fromList) import Test.QuickCheck (Arbitrary (..), choose, suchThat) import Pos.Core (StakesList, addre...
2fdd3e65c1412ba3a48e10427bf1a875154569a55a26c27fcf55ba59c075c3c6
cj1128/sicp-review
fast-prime.scm
In expmod , the reduction steps in the cases where the exponent e is greater than 1 ; are based on the fact that, for any integers x, y, and m, ; we can find the remainder of x times y modulo m by computing separately ; the remainders of x modulo m and y modulo m, multiplying these, ; and then taking the remainder of...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-1/1.2/fast-prime.scm
scheme
are based on the fact that, for any integers x, y, and m, we can find the remainder of x times y modulo m by computing separately the remainders of x modulo m and y modulo m, multiplying these, and then taking the remainder of the result modulo m.
In expmod , the reduction steps in the cases where the exponent e is greater than 1 (define (fast-prime? n times) (define (expmod base exp m) (cond ((= exp 0) 1) ((even? exp) (remainder (square (expmod base (/ exp 2) m)) m)) (else (remainder (* base ...
91e3dd1b9bc890882537e2b4092135c882064d8d1e0b863a7c310059b1292670
cracauer/sbcl-ita
unicode-properties.impure.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the public domain and is provided with ;;;;...
null
https://raw.githubusercontent.com/cracauer/sbcl-ita/f85a8cf0d1fb6e8c7b258e898b7af3233713e0b9/tests/unicode-properties.impure.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Taken straight out of the common lisp cookbook ) See `normalize-character-name` in ucd.lisp...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (use-package :sb-unicode) (defun split-string (string delimiter) (loop for begin = 0 then (1+ end) for end = (position delimiter string) then (position delim...
b9c4b44864991aa111a97a2de1ae45b749c1ccd84eed271cdc5ac79faa6382f1
hsyl20/haskus-system
PreHeader.hs
# LANGUAGE LambdaCase # -- | ELF preheader: doesn't depend on the arch module Haskus.Format.Elf.PreHeader ( PreHeader (..) , WordSize (..) , Endianness (..) , OSABI (..) , getPreHeader , putPreHeader -- * Internal , getGetters , getPutters , elfCurrentVersion ) where import Haskus.For...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/Format/Elf/PreHeader.hs
haskell
| ELF preheader: doesn't depend on the arch * Internal | Pre-header ^ Size of a word ^ Endianness ^ Version | Getter for the pre-header check magic number (0x7F + "ELF") | Putter for a pre-header put magic number (0x7F + "ELF") put padding bytes | ABI ^ UNIX System V ABI ^ NetBSD ^ Linux ^ FreeBSD ^ Op...
# LANGUAGE LambdaCase # module Haskus.Format.Elf.PreHeader ( PreHeader (..) , WordSize (..) , Endianness (..) , OSABI (..) , getPreHeader , putPreHeader , getGetters , getPutters , elfCurrentVersion ) where import Haskus.Format.Binary.Word import Haskus.Format.Binary.Get import Haskus.Fo...
fb88959fc95a87d558333f747d49394b6c1ef24c83d5bd9a90a661f7eaddc021
haskell/hackage-security
Mirrors.hs
# LANGUAGE UndecidableInstances # module Hackage.Security.TUF.Mirrors ( * TUF types Mirrors(..) , Mirror(..) , MirrorContent(..) -- ** Utility , MirrorDescription , describeMirror ) where import MyPrelude import Control.Monad.Except import Network.URI import Hackage.Security.JSON import Hackage.Se...
null
https://raw.githubusercontent.com/haskell/hackage-security/745b294e8cda2b46a21a6d1766a87f699a0277a8/hackage-security/src/Hackage/Security/TUF/Mirrors.hs
haskell
** Utility ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------------------------------------------------------------------------} | Definition of a mirror | Full versus partial mirrors specifying (th...
# LANGUAGE UndecidableInstances # module Hackage.Security.TUF.Mirrors ( * TUF types Mirrors(..) , Mirror(..) , MirrorContent(..) , MirrorDescription , describeMirror ) where import MyPrelude import Control.Monad.Except import Network.URI import Hackage.Security.JSON import Hackage.Security.TUF.Header ...
a4ffbae23fa3bdb4e47709c64a9f15b81f1ee216ed0cd955dad6e27892477d2e
tali713/mit-scheme
scheme.scm
(define (make-bind-script symbol output-file) (let ((read-head (access rcs/read-head (->environment '(RCS))))) (with-output-to-file output-file (lambda () (for-each (lambda (pathname) (let ((head (read-head pathname))) (write-string (string-append "rcs -n" symbol ":" head "...
null
https://raw.githubusercontent.com/tali713/mit-scheme/6c703a838081fe2418bc0dbfe003bdb429d8c479/src/rcs/scheme.scm
scheme
"documentation" "etc"
(define (make-bind-script symbol output-file) (let ((read-head (access rcs/read-head (->environment '(RCS))))) (with-output-to-file output-file (lambda () (for-each (lambda (pathname) (let ((head (read-head pathname))) (write-string (string-append "rcs -n" symbol ":" head "...
8f7cc43e21a9f708d0bc94179a605c1d2e423ec7cca5923d5fea4a6db709b362
y2q-actionman/with-c-syntax
util.lisp
(in-package #:with-c-syntax.libc-implementation) Utilities . (define-modify-macro logiorf (&rest args) logior) (define-modify-macro logandc2f (i) logandc2)
null
https://raw.githubusercontent.com/y2q-actionman/with-c-syntax/85ffd4f180024a3d921a02e9d6f7c112382f160b/libc/util.lisp
lisp
(in-package #:with-c-syntax.libc-implementation) Utilities . (define-modify-macro logiorf (&rest args) logior) (define-modify-macro logandc2f (i) logandc2)
a53668542f02f16e41e0249c4d366d68485c72ddf78a83bf7e701742766cb375
babashka/babashka
csv.clj
(ns babashka.impl.csv {:no-doc true} (:require [clojure.data.csv :as csv] [sci.core :as sci])) (def cns (sci/create-ns 'clojure.data.csv nil)) (def csv-namespace {'read-csv (sci/copy-var csv/read-csv cns) 'write-csv (sci/copy-var csv/write-csv cns)})
null
https://raw.githubusercontent.com/babashka/babashka/3f72507f77aaf6c603a24a0f221588dcc2a73934/feature-csv/babashka/impl/csv.clj
clojure
(ns babashka.impl.csv {:no-doc true} (:require [clojure.data.csv :as csv] [sci.core :as sci])) (def cns (sci/create-ns 'clojure.data.csv nil)) (def csv-namespace {'read-csv (sci/copy-var csv/read-csv cns) 'write-csv (sci/copy-var csv/write-csv cns)})
eb60b4726b3df6c102c71d40ee3b91fd6a412191dd4fa1eb997ba3a7dead8f4e
grin-compiler/ghc-whole-program-compiler-project
PrimOpCCSSpec.hs
# LANGUAGE LambdaCase , QuasiQuotes , OverloadedStrings # module PrimOpCCSSpec where import qualified Data.Text as Text import qualified Data.Map as Map import qualified Data.Set as Set import Data.List (sort) import Data.IORef import Test.Hspec import Test.QuickCheck import System.IO import Text.Show.Pretty (pPrint, ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/6663f0ee905e19ac126db0045025e49b6d387cca/lambda/test/PrimOpCCSSpec.hs
haskell
-------------------------- --------------------------
# LANGUAGE LambdaCase , QuasiQuotes , OverloadedStrings # module PrimOpCCSSpec where import qualified Data.Text as Text import qualified Data.Map as Map import qualified Data.Set as Set import Data.List (sort) import Data.IORef import Test.Hspec import Test.QuickCheck import System.IO import Text.Show.Pretty (pPrint, ...
c3fdf44e556a315f0765f489cb06fc604e673f1db01366230fc326aa4934da1c
luminus-framework/examples
core_test.cljs
(ns multi-client-ws-aleph.core-test (:require [cljs.test :refer-macros [is are deftest testing use-fixtures]] [pjstadig.humane-test-output] [reagent.core :as reagent :refer [atom]] [multi-client-ws-aleph.core :as rc])) (deftest test-home (is (= true true)))
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-aleph/test/cljs/multi_client_ws_aleph/core_test.cljs
clojure
(ns multi-client-ws-aleph.core-test (:require [cljs.test :refer-macros [is are deftest testing use-fixtures]] [pjstadig.humane-test-output] [reagent.core :as reagent :refer [atom]] [multi-client-ws-aleph.core :as rc])) (deftest test-home (is (= true true)))
86821597462f7a6ae4c021a9620d7eb42240dfc84ec42ddc1bf44a9afcf4ef0a
drcode/webfui
core.cljs
(ns webfui.plugin.core) (def active-plugins (atom [])) (defprotocol Plugin (declare-events [this body dom-watchers parsed-html]) (fix-dom [this])) (defn register-plugin [plugin] (swap! active-plugins conj plugin))
null
https://raw.githubusercontent.com/drcode/webfui/e8ba6e9224542755e5780488cb43f0c5510827f9/src/webfui/plugin/core.cljs
clojure
(ns webfui.plugin.core) (def active-plugins (atom [])) (defprotocol Plugin (declare-events [this body dom-watchers parsed-html]) (fix-dom [this])) (defn register-plugin [plugin] (swap! active-plugins conj plugin))
e0d6287e6be03c66d05d7e5a6ecf3686384750ea21565617b7799d38b8bb409d
sionescu/iolib
queue.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- Data structures for managing scheduled timers. ;;; Copyright ( C ) 2003 < > ;;; ;;; 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 ...
null
https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/src/multiplex/queue.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- --- Data structures for managing scheduled timers. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge,publish, the following con...
Copyright ( C ) 2003 < > " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to included in all copies or substantial portions of the Software . T...
39e696deb017a756110a850af895c4f31b8ee383806aded9d5303715aa53fd5b
dakrone/clojure-opennlp
train.clj
(ns opennlp.test.tools.train "Tests training models for the OpenNLP tools" (:use [clojure.test]) (:require [opennlp.nlp :as nlp] [opennlp.treebank :as tb] [opennlp.tools.train :as train]) (:import [java.io File FileOutputStream])) (deftest sentence-training-test (let [sent-model (tra...
null
https://raw.githubusercontent.com/dakrone/clojure-opennlp/17627c13fe261e62e6c7ff0521fba2b6d92ec091/test/opennlp/test/tools/train.clj
clojure
(ns opennlp.test.tools.train "Tests training models for the OpenNLP tools" (:use [clojure.test]) (:require [opennlp.nlp :as nlp] [opennlp.treebank :as tb] [opennlp.tools.train :as train]) (:import [java.io File FileOutputStream])) (deftest sentence-training-test (let [sent-model (tra...
047d2d50ef488311dc4e319cf1c02a70b029cdfe191c76b00879d52eb3be8b5a
neovimhaskell/nvim-hs
Classes.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} | Module : Neovim . Classes Description : Type classes used for conversion of msgpack and types Copyright : ( c ) License : A...
null
https://raw.githubusercontent.com/neovimhaskell/nvim-hs/9d0a040c24f060da57e47e1b720b99ad32e6dfc7/src/Neovim/Classes.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # | Convenient operator to create a list of 'Object' from normal values. @ values +: of :+ different :+ types :+ can +: be +: combined +: this +: way +: [] @ | See 'docToObject'. | A generic vim dictionary is a simply a map from strings to objects. This type...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # | Module : Neovim . Classes Description : Type classes used for conversion of msgpack and types Copyright : ( c ) License : Apache-2.0 Maintainer : Stability : experimental ...
abcc686da20f1efe1ef94bccd0b81a557b8ef051af0903231f573bf8420f4b3f
runtimeverification/haskell-backend
HasDomainValues.hs
| Module : . Attribute . HasDomainValues Description : Attribute saying whether a sort has domain values . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Attribute.HasDomainValues Description : Attribute saying whether a sort...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Attribute/Sort/HasDomainValues.hs
haskell
| Module : . Attribute . HasDomainValues Description : Attribute saying whether a sort has domain values . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Attribute.HasDomainValues Description : Attribute saying whether a sort...
ebf4843563ed668b4c01d365e0209f0e6cc4f4a1f2bb90edcd688716f0368594
abyala/advent-2022-clojure
day02_test.clj
(ns advent-2022-clojure.day02-test (:require [clojure.test :refer :all] [advent-2022-clojure.day02 :refer :all])) (def test-data "A Y\nB X\nC Z") (def puzzle-data (slurp "resources/day02-puzzle.txt")) (deftest part1-test (is (= 15 (part1 test-data))) (is (= 12276 (part1 puzzle-data)))) (deftest par...
null
https://raw.githubusercontent.com/abyala/advent-2022-clojure/17dc0d4abff0cfa871add6a1cc3044a79723380c/test/advent_2022_clojure/day02_test.clj
clojure
(ns advent-2022-clojure.day02-test (:require [clojure.test :refer :all] [advent-2022-clojure.day02 :refer :all])) (def test-data "A Y\nB X\nC Z") (def puzzle-data (slurp "resources/day02-puzzle.txt")) (deftest part1-test (is (= 15 (part1 test-data))) (is (= 12276 (part1 puzzle-data)))) (deftest par...
1e2cb53296e425fb4b6f32a329be15aee359b832a50bc242ff849535f606665a
naoiwata/sicp
ex4.03.scm
;; ;; @author naoiwata SICP Chapter4 Exercise 4.03 . ;; ; ------------------------------------------------------------------------ ; solution ; ------------------------------------------------------------------------ (add-load-path "./" :relative) (load "pages/4.1.1.scm") (load "pages/4.1.2.scm") (define eval-ta...
null
https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter4/ex4.03.scm
scheme
@author naoiwata ------------------------------------------------------------------------ solution ------------------------------------------------------------------------
SICP Chapter4 Exercise 4.03 . (add-load-path "./" :relative) (load "pages/4.1.1.scm") (load "pages/4.1.2.scm") (define eval-table (make-hash-table)) (define (put op type item) (hash-table-put! eval-table type item)) (define (get op type) (hash-table-get eval-table type)) (define (eval exp env) (cond ...
981018227799ae122ba80c48dbf2866677d420faf4f27f8e2896951d3b074e77
ivanjovanovic/sicp
e-3.52.scm
(load "../helpers.scm") (load "../common.scm") (load "3.5.scm") Exercise 3.52 . Consider the sequence of expressions (define sum 0) (define (accum x) (set! sum (+ x sum)) sum) (define seq (stream-map accum (stream-enumerate-interval 1 20))) (define y (stream-filter even? seq)) (define z (stream-filter (lambd...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/3.5/e-3.52.scm
scheme
(display-stream z) What is the value of sum after each of the above expressions is evaluated? What is the printed response to evaluating the stream-ref and display-stream expressions? Would these responses differ if we had implemented (delay <exp>) simply as (lambda () <exp>) without using the optimization provide...
(load "../helpers.scm") (load "../common.scm") (load "3.5.scm") Exercise 3.52 . Consider the sequence of expressions (define sum 0) (define (accum x) (set! sum (+ x sum)) sum) (define seq (stream-map accum (stream-enumerate-interval 1 20))) (define y (stream-filter even? seq)) (define z (stream-filter (lambd...
8a9fe74488d671ef201c7c5afbee04d31d71fc6164e4b6cfe45b751a32ea878f
solita/mnt-teet
backup_ion_test.clj
(ns ^:db teet.backup.backup-ion-test (:require [teet.backup.backup-ion :as backup-ion] [teet.test.utils :as tu :refer [tx]] [clojure.test :refer [use-fixtures deftest is testing]] [clojure.java.io :as io] [datomic.client.api :as d] [clojure.walk :as walk] ...
null
https://raw.githubusercontent.com/solita/mnt-teet/b1e3911139ed4bc72a12cf297c1910da94534b75/app/backend/test/teet/backup/backup_ion_test.clj
clojure
Define different tests as functions that do initial setup before the backup then return a function to verify the results after the backup Insert file and user seen (tuple attr) make sure next transaction is some time later Update mark seen to current time Return function to verify the data Create a task and comm...
(ns ^:db teet.backup.backup-ion-test (:require [teet.backup.backup-ion :as backup-ion] [teet.test.utils :as tu :refer [tx]] [clojure.test :refer [use-fixtures deftest is testing]] [clojure.java.io :as io] [datomic.client.api :as d] [clojure.walk :as walk] ...
c68480acb85e5dfb7e9672876638a82212c7910e883be9e3222d32b8ff4f3f59
sharplispers/linedit
matcher.lisp
Copyright ( c ) 2003 , 2004 Nikodemus Siivola , ;;;; ;;;; Permission is hereby granted, free of charge, to any person obtaining ;;;; a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including ;;;; without limitation the rights to use, c...
null
https://raw.githubusercontent.com/sharplispers/linedit/0561c97dfca2f5854fcc66558a567a9875ddcb8f/matcher.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be included EXPRESS OR ...
Copyright ( c ) 2003 , 2004 Nikodemus Siivola , " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the S...
3c9da3ea9379e4782b72b174c9d542fa7e816da402fc4fd17a09a9929aaf65ef
gordonpace/contractLarva
Instrumentation.hs
Copyright 2017 and -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/gordonpace/contractLarva/5a2febd1c9ba4763b30def3a96bb07f2fef8a9dc/src/Solidity/Instrumentation.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2017 and Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Solidity.Instrumentation ( Instrumentation, oldStyleConstructorUsed, newStyleConstructorUsed, useNewStyleConstructor, constructorIsDefine...
21ac82becd92e0f68d7ba5ef18ccf2c599bbbb43db0560c39f0ef81f4a343fb4
joehillen/craft
Daemontools.hs
module Craft.Daemontools where import Control.Lens import Data.ByteString (ByteString) import Craft import qualified Craft.Upstart as Upstart data Service = Service { _name :: String , _home :: AbsDirPath , _env :: [(String, String)] , _runFile :: Byte...
null
https://raw.githubusercontent.com/joehillen/craft/de31caa7f86cceaab23dbef0f05208bb853cf73b/src/Craft/Daemontools.hs
haskell
module Craft.Daemontools where import Control.Lens import Data.ByteString (ByteString) import Craft import qualified Craft.Upstart as Upstart data Service = Service { _name :: String , _home :: AbsDirPath , _env :: [(String, String)] , _runFile :: Byte...
bbbce8623a54ba22f9edca310e64fdc598050d29ec732223e3e761f30a996c1d
hgoes/vvt
ExprSimplify.hs
# LANGUAGE GADTs , ViewPatterns # module Realization.Lisp.Simplify.ExprSimplify where import Realization.Lisp import Realization.Lisp.Value import Realization.Lisp.Array import Language.SMTLib2 import qualified Language.SMTLib2.Internals.Expression as E import Language.SMTLib2.Internals.Type import qualified Language....
null
https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/Realization/Lisp/Simplify/ExprSimplify.hs
haskell
# LANGUAGE GADTs , ViewPatterns # module Realization.Lisp.Simplify.ExprSimplify where import Realization.Lisp import Realization.Lisp.Value import Realization.Lisp.Array import Language.SMTLib2 import qualified Language.SMTLib2.Internals.Expression as E import Language.SMTLib2.Internals.Type import qualified Language....
b3e3414d8405437944f56bf0ba5f968305a9d33d6f445956b1185a38ce116fc6
may-liu/qtalk
ejabberd_xml2pb_presence.erl
-module(ejabberd_xml2pb_presence). -include("message_pb.hrl"). -include("jlib.hrl"). -include("logger.hrl"). -export([encode_presence_invite_muc/3,encode_presence_muc_notice_add_user/3]). -export([encode_presence_muc_destory/3,encode_del_muc_register/3,encode_x_user_packet/3]). -export([encode_update_muc_vcard/3,enco...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/ejabberd_xml2pb_presence.erl
erlang
-module(ejabberd_xml2pb_presence). -include("message_pb.hrl"). -include("jlib.hrl"). -include("logger.hrl"). -export([encode_presence_invite_muc/3,encode_presence_muc_notice_add_user/3]). -export([encode_presence_muc_destory/3,encode_del_muc_register/3,encode_x_user_packet/3]). -export([encode_update_muc_vcard/3,enco...
a3ae058e415f9878b3784d16a795f9d4b80aefb740733f5a149bb149e08f5aaf
haskell-github/github
PublicSSHKeysSpec.hs
{-# LANGUAGE OverloadedStrings #-} module GitHub.PublicSSHKeysSpec where import GitHub (Auth (..), FetchCount (..), PublicSSHKey (..),github) import GitHub.Endpoints.Users.PublicSSHKeys (publicSSHKeyR, publicSSHKeysR, publicSSHKeysForR) import Data.Either.Compat (isRight) import Data.String (from...
null
https://raw.githubusercontent.com/haskell-github/github/81d9b658c33a706f18418211a78d2690752518a4/spec/GitHub/PublicSSHKeysSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module GitHub.PublicSSHKeysSpec where import GitHub (Auth (..), FetchCount (..), PublicSSHKey (..),github) import GitHub.Endpoints.Users.PublicSSHKeys (publicSSHKeyR, publicSSHKeysR, publicSSHKeysForR) import Data.Either.Compat (isRight) import Data.String (fromString) import System.Environment (...
ab6135bf88a2364c90992e2d4da980d9c67314c252d72a4213d1ff49444b7bfe
burkaydurdu/muggle
events.cljs
(ns muggle.home.events (:require [re-frame.core :refer [reg-event-db]])) (reg-event-db :sorting-change (fn [db [_ new-sorting-value]] (assoc db :sorting-value new-sorting-value)))
null
https://raw.githubusercontent.com/burkaydurdu/muggle/8c457397305be6ea2848a2537669a700d0147997/src/muggle/home/events.cljs
clojure
(ns muggle.home.events (:require [re-frame.core :refer [reg-event-db]])) (reg-event-db :sorting-change (fn [db [_ new-sorting-value]] (assoc db :sorting-value new-sorting-value)))
f922b07883b84c9c26389a93ad2b8f6e8ff8ab802223721c322a25f255570bea
xtendo-org/saha
Saha.hs
module Saha (main) where import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as B import System.Console.CmdArgs.Explicit import Saha.Compile import Saha.Server.Run data Command = CmdCompile | CmdRun OpenAt Bool -- debug mode? ByteString -- absolute host for redirecting | CmdH...
null
https://raw.githubusercontent.com/xtendo-org/saha/e2774cdbc7e5147e7178342317083ea2ee8e7a75/library/Saha.hs
haskell
debug mode? absolute host for redirecting
module Saha (main) where import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as B import System.Console.CmdArgs.Explicit import Saha.Compile import Saha.Server.Run data Command = CmdCompile | CmdRun OpenAt | CmdHelp arguments :: Mode Command arguments = modes "saha" CmdHelp "Saha we...
3a3293677785bb5858879cbe4608280213ec06f7949aa6dd98735aa0b4cfe174
coq/coq
common.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/0973e012d615c0722d483cd5d814bde90c76d7d3/tools/coqdep/lib/common.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
cf7d03ff6366c4dc0a768167d376a3a6f3e35636679ef9e9d21cfcb52d7bfe8c
zenspider/schemers
exercise.3.40.scm
#lang racket/base (require "../lib/testes.scm") (require "../lib/myutils.scm") Exercise 3.40 ;; Give all possible values of `x' that can result ;; from executing ;; ( define x 10 ) ;; ;; (parallel-execute (lambda () (set! x (* x x))) ;; (lambda () (set! x (* x x x)))) ;; relabel...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_3/exercise.3.40.scm
scheme
Give all possible values of `x' that can result from executing (parallel-execute (lambda () (set! x (* x x))) (lambda () (set! x (* x x x)))) relabel as: (parallel-execute (lambda () (set! W1 (* R11 R12))) (lambda () (set! W2 (* R21 R22 R23)))) calculat...
#lang racket/base (require "../lib/testes.scm") (require "../lib/myutils.scm") Exercise 3.40 ( define x 10 ) x = 10 a = % w(W1 R11 R12 W2 R21 R22 R23 ) " R23 " = > lambda { r23 = x } , " R11,R12,R21,R22,R23,W1,W2 " = > 1000 , " R11,R12,R21,R22,R23,W2,W1 " = > 100 , " R11,R12,R21,R22,W1,R2...
d89332be33303b3903c1361281fd8423516e3cc3eb1b01a5d24f7f76d939d6b5
samoht/camloo
prim_opc.scm
;; Le module (module __caml_prim_opc (library camloo-runtime) (import __caml_misc __caml_prim __caml_globals __caml_opcodes) (export (opcode_for_primitive_27@prim_opc x1) (opcode_for_float_primitive_146@prim_opc x1))) L'initialisation du module (init_camloo!) ;; Les variables global...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/prim_opc.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_prim_opc (library camloo-runtime) (import __caml_misc __caml_prim __caml_globals __caml_opcodes) (export (opcode_for_primitive_27@prim_opc x1) (opcode_for_float_primitive_146@prim_opc x1))) L'initialisation du module (init_camloo!) (define (opcode_for_primitive_27@pri...
9a7885cd44670494ba82f2614ed108dc023cdc3c5335f1370319174da40a65f1
zellige/hs-geojson
GeoFeature.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # ------------------------------------------------------------------- -- | -- Module : Data.Geospatial.Internal.GeoFeature Copyright : ( C ) 2014 - 2021 H...
null
https://raw.githubusercontent.com/zellige/hs-geojson/fb66e4f1b016d8e73408d9faa0945f61253131fa/src/Data/Geospatial/Internal/GeoFeature.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # ----------------------------------------------------------------- | Module : Data.Geospatial.Internal.GeoFeature License : BSD-style (see the file LICENSE.md) See Section 2.2 /Feature Objects/ of the GeoJSON spec. Parameterised on the property ...
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # Copyright : ( C ) 2014 - 2021 HS - GeoJSON Project Maintainer : module Data.Geospatial.Internal.GeoFeature GeoFeature (..), bbox, geometry, properties, featureId, reWrapGeometry, ) where im...
abfa193a00283f23ab240e9c5c41aa24e6c56ddfb2725f393775d65d35fb9669
sordina/churros
Bounded.hs
# LANGUAGE TypeFamilies # # LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # | Unagi - Chan Bounded Transport Instance . -- This makes use of a KnownNat parameter to specify the size of the buffer . -- module Control.Churro.Transport.Unagi.Bounded where ...
null
https://raw.githubusercontent.com/sordina/churros/240416d736f19d4740570d7c3cf91e51038a0649/src/Control/Churro/Transport/Unagi/Bounded.hs
haskell
$setup Test Setup >>> :set -XDataKinds | A version of processes that mandates the use of a single item buffer for the internal processes. This is useful in order to prevent allocating to processes that are not yet idle. | A version of thief that mandates the use of a single item buffer for the int...
# LANGUAGE TypeFamilies # # LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # | Unagi - Chan Bounded Transport Instance . This makes use of a KnownNat parameter to specify the size of the buffer . module Control.Churro.Transport.Unagi.Bounded where import...
7f31bfca3e563964faf8b89108ce75aca487f122b56b75c5cba2f43f4aa19b63
msp-strath/TypOS
Display.hs
{-# LANGUAGE ConstraintKinds #-} module Term.Display where import Display import Term import Thin import Unelaboration instance (Show m, UnelabMeta m) => Display (Tm m) where type DisplayEnv (Tm m) = Naming display = viaPretty instance Display Meta where type DisplayEnv Meta = () display= viaPretty instanc...
null
https://raw.githubusercontent.com/msp-strath/TypOS/7f553b8acd1bdc01662eb9503c8b297f1ddc4ec3/Src/Term/Display.hs
haskell
# LANGUAGE ConstraintKinds #
module Term.Display where import Display import Term import Thin import Unelaboration instance (Show m, UnelabMeta m) => Display (Tm m) where type DisplayEnv (Tm m) = Naming display = viaPretty instance Display Meta where type DisplayEnv Meta = () display= viaPretty instance (Show m, UnelabMeta m) => Displ...
20561879fb1c7d7e2b2c87f3f299e040cda5ae1fc9dfdd4933411f4f31692b76
kandersen/dpc
Pure.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # module DPC.Interpretations.Pure whe...
null
https://raw.githubusercontent.com/kandersen/dpc/c2d40a4bbbc1a3bd3f1a0b1b827786e76c5b1bb0/src/DPC/Interpretations/Pure.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # Pure implementation. This can be used for pure execution of programs, e.g. to allow stepping through computations. The `Par` constructor embeds a 'schedule' into the list of subcomputations as can be seen in the small-step operational s...
# LANGUAGE ExistentialQuantification # # LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # module DPC.Interpretations.Pure where import Data.List (sortBy, find) import qualified Data.Map as Map imp...
35608d86695c52fde4d7b54a8cfaf8d7396ded585fb9753f5a08d6a1c0766ff0
esl/escalus
escalus_story.erl
%%============================================================================== Copyright 2010 Erlang Solutions 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 %% ...
null
https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/src/escalus_story.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(escalus_story). -export([story/3, story_with_client_list/3, make_everyone_friends/1, make_everyone_fr...
21c9637f9ea5d4c1cd5201037f04d1a109b1b22f7b231b3f1a9520de87510d03
ChrisPenner/proton
Telescope.hs
module Proton.Telescope where import Proton.Types import Data.Profunctor.Expansive -- Foldy optic for expanding structure. cat :: Expansive p => Optic p [a] b a b cat = expand
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Proton/Telescope.hs
haskell
Foldy optic for expanding structure.
module Proton.Telescope where import Proton.Types import Data.Profunctor.Expansive cat :: Expansive p => Optic p [a] b a b cat = expand
35b4b4aa3da62ed1d605f60c2119e8acf40ab719606598a926585778464a0824
daypack-dev/daypack-lib
duration.ml
open Int64_utils type raw = { days : float; hours : float; minutes : float; seconds : int; } type t = { days : int; hours : int; minutes : int; seconds : int; } let zero : t = { days = 0; hours = 0; minutes = 0; seconds = 0 } let of_seconds (x : int64) : (t, unit) result = if x < 0L then Error () ...
null
https://raw.githubusercontent.com/daypack-dev/daypack-lib/63fa5d85007eca73aa6c51874a839636dd0403d3/src/duration.ml
ocaml
open Int64_utils type raw = { days : float; hours : float; minutes : float; seconds : int; } type t = { days : int; hours : int; minutes : int; seconds : int; } let zero : t = { days = 0; hours = 0; minutes = 0; seconds = 0 } let of_seconds (x : int64) : (t, unit) result = if x < 0L then Error () ...
37cc838f748857c8a3030560e215af6628cd4eba2336c2516155de3c54336f5e
adam-james-v/svg-clj
viewers.cljs
(ns svg-clj.viewers (:require [nextjournal.clerk.sci-viewer :as sv] [sci.core :as sci] [reagent.core :as r] [svg-clj.utils :as utils] [svg-clj.elements :as el] [svg-clj.transforms :as tf] [svg-clj.composites :as comp :refer [svg]] [sv...
null
https://raw.githubusercontent.com/adam-james-v/svg-clj/d6c49a254480ce5f4c9ccc382ca71ac53979edb0/src/svg_clj/viewers.cljs
clojure
Here is the existing context: #L1013-L1023 example usage var name var value minimum input slider input maximum input var value input var name var value moveable-pt input var name var value moveable-pt input
(ns svg-clj.viewers (:require [nextjournal.clerk.sci-viewer :as sv] [sci.core :as sci] [reagent.core :as r] [svg-clj.utils :as utils] [svg-clj.elements :as el] [svg-clj.transforms :as tf] [svg-clj.composites :as comp :refer [svg]] [sv...
21548393dd116a33863b89392d6cbac8036804dc4e8c37034459443ac0ea060c
haskell-repa/repa
Stream.hs
module Data.Array.Repa.Stream ( -- * Linear Stream Stream (..) , DistStream (..) , Distro (..) , Step (..) , Size (..) -- * Constructors , stream, streamD , stream' , streamOfChain , st...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-stream/Data/Array/Repa/Stream.hs
haskell
* Linear Stream * Constructors * Evaluation * Reduction * Maps * Scans * Packing * Flattening * Combine | Convert an unboxed vector to a stream. # INLINE [1] streamUnboxed # | Convert an unboxed vector to a distributed stream. | Evaluate a stream, returning the elements in an unboxed vector. | Evalaute a d...
module Data.Array.Repa.Stream Stream (..) , DistStream (..) , Distro (..) , Step (..) , Size (..) , stream, streamD , stream' , streamOfChain , streamOfChainD , evalM, evalMD , f...
08627c50cc5bdccf931852baa17799f1fbc9358f0b4b9d3b2fc4dbf5eee91376
aryx/fork-efuns
accents_mode.ml
s : minor_modes / accents_mode.ml (*s: copyright header2 *) (***********************************************************************) (* *) xlib for (* *)...
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/minor_modes/TODO_more/accents_mode.ml
ocaml
s: copyright header2 ********************************************************************* ...
s : minor_modes / accents_mode.ml xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Simple open Efuns open...
94e80acbc894b54a711fa918f5d9b3a323a3523e2b7f42d26a9b9cb3a0fcee94
daypack-dev/daypack-lib
daypack_lib.ml
module Task_seg_place_gens = Task_seg_place_gens module Task = Task module Time_slot = Time_slot module Time_slots = Time_slots module Sched = Sched module Sched_ver_history = Sched_ver_history module Sched_req_data_unit_skeleton = Sched_req_data_unit_skeleton module Sched_req = Sched_req module Sched_search = Sched_se...
null
https://raw.githubusercontent.com/daypack-dev/daypack-lib/63fa5d85007eca73aa6c51874a839636dd0403d3/src/daypack_lib.ml
ocaml
module Task_seg_place_gens = Task_seg_place_gens module Task = Task module Time_slot = Time_slot module Time_slots = Time_slots module Sched = Sched module Sched_ver_history = Sched_ver_history module Sched_req_data_unit_skeleton = Sched_req_data_unit_skeleton module Sched_req = Sched_req module Sched_search = Sched_se...
190195b1e83b6995fc5aa99f5f1f7e398c728ce7c78752a6576a626409732ac8
mark-watson/haskell_tutorial_cookbook_examples
RandomizedList.hs
module RandomizedList (randomizedList) where import System.Random import Data.Array.IO import Control.Monad -- NOTE: the following is copied from : randomizedList :: [a] -> IO [a] randomizedList xs = do ar <- newArray n xs forM [1..n] $ \i -> do j <- randomRIO (i,n) vi <- r...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/Blackjack/RandomizedList.hs
haskell
NOTE: the following is copied from :
module RandomizedList (randomizedList) where import System.Random import Data.Array.IO import Control.Monad randomizedList :: [a] -> IO [a] randomizedList xs = do ar <- newArray n xs forM [1..n] $ \i -> do j <- randomRIO (i,n) vi <- readArray ar i vj <- readArra...
778a11c8493c29d7f5d632a7ec570de3250b7bf2cc0d7432a1810b4c41263f53
robert-strandh/Cluster
cmp.lisp
(in-package #:cluster) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Mnemonics CMP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Compare an 8 - bit immediate value ( source ) with the contents of the AL GPR ( destination ) (define-instruction "CMP" :modes (32...
null
https://raw.githubusercontent.com/robert-strandh/Cluster/9010412a2d2109d3eb6e607bd62cc0c482adac81/x86-instruction-database/cmp.lisp
lisp
Mnemonics CMP RAX GPR (destination) Compare the contents of a GPR or memory location (destination) with the contents of a GPR (source). Compare the contents of a GPR (destination) with the contents of a GPR or memory location (source).
(in-package #:cluster) Compare an 8 - bit immediate value ( source ) with the contents of the AL GPR ( destination ) (define-instruction "CMP" :modes (32 64) :operands ((gpr-a 8) (imm 8)) :opcodes (#x3C) :encoding (- imm)) Compare a 16 - bit immediate value ( source ) with the contents of the AX GPR...
a4e70f7dbcde79b9809ce8763c084957f736e3587716bf97bbf3796fb41fc8e4
slyrus/cl-bio
affymetrix-cdf.lisp
Affymetrix CDF File Parser ;;; Copyright ( c ) 2006 ( ) ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyrigh...
null
https://raw.githubusercontent.com/slyrus/cl-bio/e6de2bc7f4accaa11466902407e43fae3184973f/io/affymetrix-cdf.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistri...
Affymetrix CDF File Parser Copyright ( c ) 2006 ( ) DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :bio) (defun read-cdf-line (stream) (let ((line-type (read-until-char stream #\=)) (line (progn (...
7fe65079c01ee545d18bfd7b370bcc0002e43f8be1cf22f205a35ea86b40f218
essdotteedot/distributed
test_distributed.ml
(*BISECT-IGNORE-BEGIN*) module type Test_IO_sig = sig include Distributed.Nonblock_io val run_fn : 'a t -> 'a val get_established_connection_count : unit -> int val reset_established_connection_count : unit -> unit val get_atexit_fns : unit -> (unit -> unit t) list val clear_atexit_fnns : unit -> unit e...
null
https://raw.githubusercontent.com/essdotteedot/distributed/bce5906d87b28afa3d7fca4b069753667045b749/tests/test_distributed.ml
ocaml
BISECT-IGNORE-BEGIN there is a lot of code duplication because ocaml currently does not support higher kinded polymorphism return, bind test spawn, spawn monitor tests for local and remote configurations monitor tests for local and remote configurations unmonitor processes that were monitored using 'monitor' t...
module type Test_IO_sig = sig include Distributed.Nonblock_io val run_fn : 'a t -> 'a val get_established_connection_count : unit -> int val reset_established_connection_count : unit -> unit val get_atexit_fns : unit -> (unit -> unit t) list val clear_atexit_fnns : unit -> unit end module type Tests = ...
c317182d21ee58b4357ed967e01e424a668ed4fe9d3597112dc6d0f57ad9a688
ikko-lang/ikko
AST.hs
# LANGUAGE DeriveFunctor , , DeriveTraversable # AST is one giant module due to circular dependencies -- and to avoid dangling instances module AST where import Data.Char ( isLower ) import Data.List ( intercalate ) import Data.Set (Set) import qualified Data.Set as Set import Util.PrettyPrint ( Prett...
null
https://raw.githubusercontent.com/ikko-lang/ikko/2341813021af14f03bb9f2427e645d53badf79ac/src/AST.hs
haskell
and to avoid dangling instances ------------------------- -- Utility functions ---- ------------------------- ------------------------- -- AST structures ---- ------------------------- A simple type, like 'Int' A definition of a type superclasses, methods A single method in a class definition A predicate assertin...
# LANGUAGE DeriveFunctor , , DeriveTraversable # AST is one giant module due to circular dependencies module AST where import Data.Char ( isLower ) import Data.List ( intercalate ) import Data.Set (Set) import qualified Data.Set as Set import Util.PrettyPrint ( PrettyPrint , PrettyPrinter , Render...
5eaeb10a0886d4f351c70e83d4c973ed369cdbe675d6fc43918585483e155435
HealthSamurai/stresty
ops.cljc
(ns chrono.ops (:require [chrono.util :as u])) (defn gen-norm [unit next-unit proportion min-value next-min-value] (fn [t] (if-let [unit-value (get t unit)] (let [norm-unit-value (- unit-value min-value) borrow? (neg? norm-unit-value) unit-new-value (+ min-val...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/130cedde6bf53e07fe25a6b0b13b8bf70846f15a/src-c/chrono/ops.cljc
clojure
(ns chrono.ops (:require [chrono.util :as u])) (defn gen-norm [unit next-unit proportion min-value next-min-value] (fn [t] (if-let [unit-value (get t unit)] (let [norm-unit-value (- unit-value min-value) borrow? (neg? norm-unit-value) unit-new-value (+ min-val...
d7521573f91047392b111f1d2dd25c469f298db336be7eadc4cfdddfec21c4aa
unnohideyuki/bunny
sample111.hs
s = foldr (++) "" ["a", "", "c", "d", "", "f"] main = putStrLn s
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample111.hs
haskell
s = foldr (++) "" ["a", "", "c", "d", "", "f"] main = putStrLn s
4abe78c73020e4b18345e201ec5b63350ac07a91c18b30327d8af6b14b1e08bb
crategus/cl-cffi-gtk
gtk.font-selection-dialog.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.font-selection-dialog.lisp ;;; ;;; The documentation has been copied from the GTK 3 Reference Manual ;;; Version 3.6.4. See <>. The API documentation of the ;;; Lisp Binding is available at <-cffi-gtk/>. ;;; Copyright ( C ) 2009 ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.font-selection-dialog.lisp
lisp
---------------------------------------------------------------------------- gtk.font-selection-dialog.lisp The documentation has been copied from the GTK 3 Reference Manual Version 3.6.4. See <>. The API documentation of the Lisp Binding is available at <-cffi-gtk/>. This program is free software: you can red...
Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser Gen...
bfaf7196479f56c5be97bba189a46ccf3af83c475c63cda1f2622395e2499341
S8A/htdp-exercises
ex084.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex084) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex084.rkt
racket
about the language level of this file in a form that our tools can easily process. An Editor is a structure: interpretation (make-editor s t) describes an editor whose visible text is (string-append s t) with the cursor displayed between s and t Editor -> Image shows the graphical interface of the current state...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex084) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ...
8f005541fa57299aef04c3c1c681cf8acbba2efd6b60364207853614efb26895
DeathKing/Hit-DataStructure-On-Scheme
course.scm
(define (make-course name) (list name 0 '())) (define (course-name course) (list-ref course 0)) (define (course-indegree course) (list-ref course 1)) (define (course-depends course) (list-ref course 2)) (define (course-set-indegree! course value) (set-car! (cdr course) value)) (define (course-inc-indegre...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/application3/course.scm
scheme
Test Code
(define (make-course name) (list name 0 '())) (define (course-name course) (list-ref course 0)) (define (course-indegree course) (list-ref course 1)) (define (course-depends course) (list-ref course 2)) (define (course-set-indegree! course value) (set-car! (cdr course) value)) (define (course-inc-indegre...
e3f555df7be7313579edc6f72cff4734bc65e86dd805bf47ef5603566f3f0ba6
sky-big/RabbitMQ
gb_trees.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2011 . 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/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/erlang_otp_data_struct/gb_trees.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 2001 - 2011 . 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 " Copyright ( C ) 1999 - 2001 , A...
de96d4aef42cb46a90f6a7f1fb4014c976a74a4b9949aa0a9195dfacaaf1bfad
ocaml/oasis
camlidl.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/plugins/extra/camlidl.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
4e787cd1e1f1ad33874d05cd298dacc010dac7b9ea8ade996e8bacccc72d1148
gregtatcam/imaplet-lwt
header.ml
open Core_replace module Assoc_maker = Field_name.Assoc_concrete (String);; module Assoc = Assoc_maker.Make include Assoc;; let to_string_monoid t = let field_to_string_monoid (name, body) = String_monoid.concat_string [name; ":"; body; "\n"] in String_monoid.concat (map_to_list t ~f:field_to_string_mon...
null
https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/parsemail/header.ml
ocaml
* Generates accessors for a typed header field, regardless of name Ensures that the headers are properly folded and unfolded. * Generates accesors for a field with a single name
open Core_replace module Assoc_maker = Field_name.Assoc_concrete (String);; module Assoc = Assoc_maker.Make include Assoc;; let to_string_monoid t = let field_to_string_monoid (name, body) = String_monoid.concat_string [name; ":"; body; "\n"] in String_monoid.concat (map_to_list t ~f:field_to_string_mon...
f4563b2eb2d33158ab5901b7730ea61ee6d48a70c206644c98c873b62b899aa8
sellout/external-program
tests.lisp
(defpackage external-program-tests (:use #:cl #:external-program #:fiveam) (:shadow #:run)) (in-package #:external-program-tests) (def-suite tests) (in-suite tests) ;;; FIXME: should probably signal a condition if program isn't found ... but ca n't guarantee that 71 is n't returned by the program ;;; itself ....
null
https://raw.githubusercontent.com/sellout/external-program/5888b8f1fd3953feeeacecbba4384ddda584a749/tests/tests.lisp
lisp
FIXME: should probably signal a condition if program isn't found itself ...
(defpackage external-program-tests (:use #:cl #:external-program #:fiveam) (:shadow #:run)) (in-package #:external-program-tests) (def-suite tests) (in-suite tests) ... but ca n't guarantee that 71 is n't returned by the program (test should-have-access-to-shell-builtins (multiple-value-bind (status code) ...
5705003ab7b7c9f78ff2cb464a62ddf1ed5422edb4edce73fde5ce4fc9d60ff8
well-typed/large-records
R030.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif {-# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #-} {-# OPTIONS_GHC -fplugin-opt=Data.Record.Anon.Plugin:noapply #-} module Experiment.Con...
null
https://raw.githubusercontent.com/well-typed/large-records/78d0966e4871847e2c17a0aa821bacf38bdf96bc/large-records-benchmarks/bench/large-anon/Experiment/ConstructNoApply/Sized/R030.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings # # OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin # # OPTIONS_GHC -fplugin-opt=Data.Record.Anon.Plugin:noapply # 00 .. 09
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.ConstructNoApply.Sized.R030 where import Data.Record.Anon.Simple (Record) import Bench.Types import Common.RowOfSize.Row030 record :: Word -> Record ExampleRow record x = ANON { t00 = MkT x , t01 = MkT x , t02 = MkT x , t03 =...
5a47c39c470da9e1e3552131e6ee864e70ecef079f239303c746e3ac8a14abab
broadinstitute/firecloud-ui
gcs_file_preview.cljs
(ns broadfcuitest.common.gcs-file-preview (:require [cljs.test :refer [deftest is testing]] [broadfcui.common.gcs-file-preview :as preview] [broadfcui.utils :as utils] )) (defn test-previewable ([filename] (testing (str filename " files are previewable") (is (preview/previewable? (str "subdi...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/test/broadfcuitest/common/gcs_file_preview.cljs
clojure
if the content type is defined as previewable, it's previewable regardless of file extension. if the content type is not previewable, we fall back to inspecting the file extension. (cljs.test/run-tests)
(ns broadfcuitest.common.gcs-file-preview (:require [cljs.test :refer [deftest is testing]] [broadfcui.common.gcs-file-preview :as preview] [broadfcui.utils :as utils] )) (defn test-previewable ([filename] (testing (str filename " files are previewable") (is (preview/previewable? (str "subdi...
aa03f04edd5f7e3eb3392e25f50e4165f1e31fff400d4c1bb31f5e6b2ccd6c9f
cyga/real-world-haskell
ElfMagic.hs
-- file: ch08/ElfMagic.hs import qualified Data.ByteString.Lazy as L hasElfMagic :: L.ByteString -> Bool hasElfMagic content = L.take 4 content == elfMagic where elfMagic = L.pack [0x7f, 0x45, 0x4c, 0x46] -- file: ch08/ElfMagic.hs isElfFile :: FilePath -> IO Bool isElfFile path = do content <- L.readFile path ...
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch08/ElfMagic.hs
haskell
file: ch08/ElfMagic.hs file: ch08/ElfMagic.hs
import qualified Data.ByteString.Lazy as L hasElfMagic :: L.ByteString -> Bool hasElfMagic content = L.take 4 content == elfMagic where elfMagic = L.pack [0x7f, 0x45, 0x4c, 0x46] isElfFile :: FilePath -> IO Bool isElfFile path = do content <- L.readFile path return (hasElfMagic content)
9cfd9fa55338a9502f0acea736fedbe3dc62660be414ac9ffd6a06082e6fb6bb
ygrek/mldonkey
gui_uploads_base.ml
class upstats_box () = let vbox = GPack.vbox ~spacing:3 ~homogeneous:false () in let evbox1 = GBin.event_box ~packing:(vbox#pack ~expand:false ~fill:false) () in let _anonymous_container_1 = GPack.hbox ~border_width:2 ~spacing:5 ~homogeneous:false ~packing:(evbox1#add) () in let label_shared_files = G...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/newgui/gui_uploads_base.ml
ocaml
class upstats_box () = let vbox = GPack.vbox ~spacing:3 ~homogeneous:false () in let evbox1 = GBin.event_box ~packing:(vbox#pack ~expand:false ~fill:false) () in let _anonymous_container_1 = GPack.hbox ~border_width:2 ~spacing:5 ~homogeneous:false ~packing:(evbox1#add) () in let label_shared_files = G...
3ba36adb6cb93e7e24b282ee4267bcad5ada821bb5f7c797861607edddd58900
ghcjs/ghcjs
Compactor.hs
# LANGUAGE ScopedTypeVariables , TupleSections , OverloadedStrings # ScopedTypeVariables, TupleSections, OverloadedStrings #-} {- The compactor does link-time optimization. It is much simpler than the Optimizer, no fancy data...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/src/Gen2/Compactor.hs
haskell
The compactor does link-time optimization. It is much simpler than the Optimizer, no fancy dataflow analysis here. Optimizations: - rewrite all variables starting with h$$ to shorter names, these are internal names - write all function metadata compactly import qualified Debug.Trace create a sing...
# LANGUAGE ScopedTypeVariables , TupleSections , OverloadedStrings # ScopedTypeVariables, TupleSections, OverloadedStrings #-} module Gen2.Compactor where import DynFlags import Util import Panic ...
bda745bb1fd01429c53d2921cfdaced06f38a2cf90dfd5f349ccaee4409bee40
ocaml/dune
user_error.ml
exception E of User_message.t let prefix = Pp.seq (Pp.tag User_message.Style.Error (Pp.verbatim "Error")) (Pp.char ':') let make ?loc ?hints ?annots paragraphs = User_message.make ?loc ?hints ?annots paragraphs ~prefix let raise ?loc ?hints ?annots paragraphs = raise (E (make ?loc ?hints ?annots paragraphs)) ...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/user_error.ml
ocaml
exception E of User_message.t let prefix = Pp.seq (Pp.tag User_message.Style.Error (Pp.verbatim "Error")) (Pp.char ':') let make ?loc ?hints ?annots paragraphs = User_message.make ?loc ?hints ?annots paragraphs ~prefix let raise ?loc ?hints ?annots paragraphs = raise (E (make ?loc ?hints ?annots paragraphs)) ...
5c867bd1cc0db1b58d740431eb382fc5586972ba7ed53aace6520f3a8678b475
feliciofilipe/university
FTree.hs
{-# OPTIONS_GHC -XNPlusKPatterns #-} ( c ) MP - I ( 1998/9 - 2006/7 ) and CP ( 2005/6 - 2016/7 ) module FTree where import Cp ( 1 ) Datatype definition ----------------------------------------------------- data FTree a c = Unit c | Comp a (FTree a c, FTree a c) deriving Show inFTree = either Unit (uncurry Com...
null
https://raw.githubusercontent.com/feliciofilipe/university/f2b5a00921c97d48033edbe21488ac829927caae/2nd/CP/src/FTree.hs
haskell
# OPTIONS_GHC -XNPlusKPatterns # --------------------------------------------------- ----------------------------------------------------- ------------------------------------------------------------------- -------------------------------------------------------------- }
( c ) MP - I ( 1998/9 - 2006/7 ) and CP ( 2005/6 - 2016/7 ) module FTree where import Cp data FTree a c = Unit c | Comp a (FTree a c, FTree a c) deriving Show inFTree = either Unit (uncurry Comp) outFTree (Unit c) = Left c outFTree (Comp a (t1,t2)) = Right(a,(t1,t2)) cataFTree a = a . (recFTree (cata...
3f6d81bfa0be93a1baf221715a187084718b4662d1b99eda8b872ff6d698cc18
baskeboler/cljs-karaoke-client
user.cljs
(ns cljs-karaoke.subs.user (:require [re-frame.core :as rf] [cljs-karaoke.events.common :as common-events] [day8.re-frame.tracing :refer-macros [fn-traced]])) (rf/reg-sub ::user (fn-traced [db _] (:user db))) (rf/reg-sub ::user-ready? :<- [::user] (fn-traced [user _] (some? user...
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/subs/user.cljs
clojure
(ns cljs-karaoke.subs.user (:require [re-frame.core :as rf] [cljs-karaoke.events.common :as common-events] [day8.re-frame.tracing :refer-macros [fn-traced]])) (rf/reg-sub ::user (fn-traced [db _] (:user db))) (rf/reg-sub ::user-ready? :<- [::user] (fn-traced [user _] (some? user...
0b8479ef7363e5d4eed0258570a23e1541b1d1b99368f3d65732b18e61ddde0c
SamB/coq
command_windows.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/ide/command_windows.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** true is not ok with disable_activat...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ class command_wind...
615740efa99f3eb5fa1c869b1d65e7735db28a95ef3011059f2c5d5e25b43f6f
owainlewis/slack
Types.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - unused - binds -fno - warn - unused - imports # module Network.Slack.Types ( module Network.Slack.Types.User , module Network.Slack.Types.Event ) where import Network.Slack.Types.Event import N...
null
https://raw.githubusercontent.com/owainlewis/slack/0ae9d918c66b48f8c38b72c806af7f743f292db0/src/Network/Slack/Types.hs
haskell
# LANGUAGE OverloadedStrings #
# OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - unused - binds -fno - warn - unused - imports # module Network.Slack.Types ( module Network.Slack.Types.User , module Network.Slack.Types.Event ) where import Network.Slack.Types.Event import Network.Slack.Types.User
949dcb57650ba96313a8d5a19024e1db70f44520c7d828cef5b991a74eb1391a
arianvp/crdt
IncrementOnlyCounter.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # module CRDT.IncrementOnlyCounter where import Algebra.Lattice import qualified Data.Map as Map import Data.Map ((!)) import qualified Data.Set as Set import qualified Data.Foldable as Foldable import Control.Monad.Writer.Class | an Increment - only co...
null
https://raw.githubusercontent.com/arianvp/crdt/3cad584da0a89623d061bc9cf9f7bf8e23b6c1c5/src/CRDT/IncrementOnlyCounter.hs
haskell
| Gets the counter value. | Increments the counter | Returns a delta that if joined with a counter, increments it. It can also be joined with | Increment counter defined in terms of incrementDelta. Same as `increment`
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # module CRDT.IncrementOnlyCounter where import Algebra.Lattice import qualified Data.Map as Map import Data.Map ((!)) import qualified Data.Set as Set import qualified Data.Foldable as Foldable import Control.Monad.Writer.Class | an Increment - only co...
cffdbc091de9e937ecbcfd6eeb17f28491505098e06b1a5d259bb63391033ced
frankiesardo/linked
data_readers.clj
{linked/map linked.map/->linked-map linked/set linked.set/->linked-set}
null
https://raw.githubusercontent.com/frankiesardo/linked/d000c4e526a4b275f787196100cac36d37c991ba/src/data_readers.clj
clojure
{linked/map linked.map/->linked-map linked/set linked.set/->linked-set}
ce96c114bd31a82f1008776197f1f6700621e102b18687beb93525d5c9f6b0a7
basho/yokozuna
yz_solr_sup.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_solr_sup.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY very ...
076c1dfa28fd8dfc2f81c9bea3a14e3071b06aad2e9d0c159198f1074c9a5904
adrieng/melitte
ExtPrint.ml
type 'a printer = 'a -> PPrint.document let ribbon = 1.0 let width = 80 let int i = PPrint.string @@ string_of_int i let to_out ?(out = stdout) d = PPrint.ToChannel.pretty ribbon width out d let to_string d = let b = Buffer.create 100 in PPrint.ToBuffer.pretty ribbon width b d; Buffer.contents b let pp fm...
null
https://raw.githubusercontent.com/adrieng/melitte/1c86a9e668451124f2e80646e555acb2a7c2c0ff/src/ExtPrint.ml
ocaml
type 'a printer = 'a -> PPrint.document let ribbon = 1.0 let width = 80 let int i = PPrint.string @@ string_of_int i let to_out ?(out = stdout) d = PPrint.ToChannel.pretty ribbon width out d let to_string d = let b = Buffer.create 100 in PPrint.ToBuffer.pretty ribbon width b d; Buffer.contents b let pp fm...
9bb3a0e09ab3aacbe57169142467514d9e83c168670a379d351c8a3e1f0ae708
ermine-language/ermine
Name.hs
-------------------------------------------------------------------- -- | Copyright : ( c ) and 2014 License : BSD2 Maintainer : < > -- Stability : experimental -- Portability: non-portable -- ---------------------------------------------------------------------- module Ermine.Syntax.Name ( Has...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/src/Ermine/Syntax/Name.hs
haskell
------------------------------------------------------------------ | Stability : experimental Portability: non-portable --------------------------------------------------------------------
Copyright : ( c ) and 2014 License : BSD2 Maintainer : < > module Ermine.Syntax.Name ( HasName(..) ) where import Control.Lens import Data.Text class HasName t where name :: Lens' t Text
e19270bf83208052033d3898a9983033f522fecf6d44e2ec615087c23978cc9e
sbcl/sbcl
vector-2.pure.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the public domain and is provided with ;;;;...
null
https://raw.githubusercontent.com/sbcl/sbcl/ab82559ed51674d8b0cd956662f3b7c81f5edac9/tests/vector-2.pure.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. some extra sanity checks in features because it reused 'rcx' as the count after rcx was al...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . test case from Utz - Uwe Haus (defstruct some-struct (a 0 :type integer)) (defun foo (m) (declare (type (vector some-struct) m)) m) (defun bar (m) (declare (t...
a33a8f27341a6befb3903fdc3d9c53e766476c8265fd854e8b6301a98ce839ee
rizo/snowflake-os
bytesections.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/bytecomp/bytesections.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2000 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ let section_table = ref ([] ...
c686c498c14b877b15d918963c655954a3c82d76714b0f678fe5067a6038e697
heraldry/heraldicon
vairy.cljs
(ns heraldicon.heraldry.field.type.vairy (:require [heraldicon.context :as c] [heraldicon.heraldry.field.interface :as field.interface] [heraldicon.heraldry.tincture :as tincture] [heraldicon.interface :as interface] [heraldicon.math.vector :as v] [heraldicon.options :as options] [heraldicon.rend...
null
https://raw.githubusercontent.com/heraldry/heraldicon/71126cfd7ba342dea0d1bb849be92cbe5290a6fd/src/heraldicon/heraldry/field/type/vairy.cljs
clojure
TODO: needs translation
(ns heraldicon.heraldry.field.type.vairy (:require [heraldicon.context :as c] [heraldicon.heraldry.field.interface :as field.interface] [heraldicon.heraldry.tincture :as tincture] [heraldicon.interface :as interface] [heraldicon.math.vector :as v] [heraldicon.options :as options] [heraldicon.rend...
715d1ac09821646591d1b327fe60b8bdad04206b87665744900ac8c6c03a327c
expipiplus1/vulkan
FundamentalTypes.hs
{-# language CPP #-} -- No documentation found for Chapter "FundamentalTypes" module OpenXR.Core10.FundamentalTypes ( boolToBool32 , bool32ToBool , Offset2Df(..) , Extent2Df(..) ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/openxr/src/OpenXR/Core10/FundamentalTypes.hs
haskell
# language CPP # No documentation found for Chapter "FundamentalTypes" == Member Descriptions = Description This structure is used for component values that may be fractional (floating-point). If used to represent physical distances, values /must/ be in meters. = See Also | @x@ the floating-point offset in...
module OpenXR.Core10.FundamentalTypes ( boolToBool32 , bool32ToBool , Offset2Df(..) , Extent2Df(..) , Rect2Df(..) , Offset2D...
8a0f0f971912ac6b3760ea1ba904add10cb67ead97afeaceea627d8c352098d3
CrossRef/cayenne
type.clj
(ns cayenne.data.type (:require [cayenne.api.v1.response :as r] [cayenne.api.v1.query :as query] [cayenne.api.v1.filter :as filter] [cayenne.api.v1.facet :as facet] [cayenne.data.work :as work] [cayenne.formats.citeproc :as citeproc] [cayenne.ids...
null
https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/data/type.clj
clojure
(ns cayenne.data.type (:require [cayenne.api.v1.response :as r] [cayenne.api.v1.query :as query] [cayenne.api.v1.filter :as filter] [cayenne.api.v1.facet :as facet] [cayenne.data.work :as work] [cayenne.formats.citeproc :as citeproc] [cayenne.ids...
6112b8858527e872ea36e456f1351af9e77d621d9106caa847b8fa0bd65b63ba
mzp/coq-ruby
coqtop.ml
(************************************************************************) 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/toplevel/coqtop.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s options for the virtual machine ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : coqtop.ml 11830 2...
08cb994c4bc74cf51b6bd0bf004ed08ec840526aa0c52904402c1b03c3a410bc
clojang/jiface
dev.clj
(ns jiface.dev "A development namespace that imports other useful namespaces for easy prototyping, &c. The intended use is for this to be the initial namespace when running `lein repl` from the Clojang project directory." (:require [clojure.core.match :refer [match]] [clojure.tools.namespace.repl :as re...
null
https://raw.githubusercontent.com/clojang/jiface/dcc9e9463eec143b99ce5cf104b5201f7847a1dd/dev-resources/src/jiface/dev.clj
clojure
(ns jiface.dev "A development namespace that imports other useful namespaces for easy prototyping, &c. The intended use is for this to be the initial namespace when running `lein repl` from the Clojang project directory." (:require [clojure.core.match :refer [match]] [clojure.tools.namespace.repl :as re...
11bc7c9842884c4bb3aa4fbf11a9bd78a83bd5be8754a3ed7734e1137ef03e3b
hgoes/vvt
Benchmarks.hs
import HSBencher to :: Int to = 500 main = do benchmarks <- readFile "benchmarks" defaultMainWithBechmarks [Benchmark { target = "../ic3.cabal" , cmdargs = ["-t",show (to+5)++"s"] , configs = Or [Set (Variant (name++","++senc++sopt)) (RuntimeParam $ name++".bc -E "++enc+...
null
https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/test/Benchmarks.hs
haskell
import HSBencher to :: Int to = 500 main = do benchmarks <- readFile "benchmarks" defaultMainWithBechmarks [Benchmark { target = "../ic3.cabal" , cmdargs = ["-t",show (to+5)++"s"] , configs = Or [Set (Variant (name++","++senc++sopt)) (RuntimeParam $ name++".bc -E "++enc+...
3546bf8f1e2232c7c777bc26d07298b05bbeef948101f8074cf4bbf4cfb82b81
sanette/oplot
gslex.ml
Oplot example : plot the Airy function , from the GSL library #use "topfind" #thread #require "oplot" #require "gsl" open Oplot.Plt let airyai x = Gsl.Sf.airy_Ai x Gsl.Fun.SIMPLE let p = plot airyai (-15.) 5. let a = axis 0. 0.;; display [ Color red; p; Color black; a ]
null
https://raw.githubusercontent.com/sanette/oplot/0c6ba94ceb9b84ff4c0894c511c017113d1c2c8f/top/gslex.ml
ocaml
Oplot example : plot the Airy function , from the GSL library #use "topfind" #thread #require "oplot" #require "gsl" open Oplot.Plt let airyai x = Gsl.Sf.airy_Ai x Gsl.Fun.SIMPLE let p = plot airyai (-15.) 5. let a = axis 0. 0.;; display [ Color red; p; Color black; a ]
76bda87e759171f126352485a52bf01a735f90539d305d9abd4cea2842f7b70d
tsloughter/kuberl
kuberl_v2beta1_object_metric_source.erl
-module(kuberl_v2beta1_object_metric_source). -export([encode/1]). -export_type([kuberl_v2beta1_object_metric_source/0]). -type kuberl_v2beta1_object_metric_source() :: #{ 'averageValue' => binary(), 'metricName' := binary(), 'selector' => kuberl_v1_label_selector:kuberl_v1_label_selector(), ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v2beta1_object_metric_source.erl
erlang
-module(kuberl_v2beta1_object_metric_source). -export([encode/1]). -export_type([kuberl_v2beta1_object_metric_source/0]). -type kuberl_v2beta1_object_metric_source() :: #{ 'averageValue' => binary(), 'metricName' := binary(), 'selector' => kuberl_v1_label_selector:kuberl_v1_label_selector(), ...
8eb2ed69f8645e7cfa6c524fdaf7b10fd181c7b21fa3ffb3ecbbe1fb24f8bc73
aharisu/Gauche-CV
core_type.scm
;;; ;;; core_type.scm ;;; MIT License Copyright 2011 - 2012 aharisu ;;; All rights reserved. ;;; ;;; 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 withou...
null
https://raw.githubusercontent.com/aharisu/Gauche-CV/5e4c51501431c72270765121ea4d92693f11d60b/src/core_type.scm
scheme
core_type.scm All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following co...
MIT License Copyright 2011 - 2012 aharisu in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , ...
d7f2aa9d6d034e7b37856a815fbae0046ddff26709a225294ccfaa2dcf7d71f6
thesis/shale
docker-config.clj
{:node-list ["-1:4444/wd/hub" "-2:4444/wd/hub"] :node-max-sessions 6 :port 5000 :webdriver-timeout 3000 :start-webdriver-timeout 5000 :redis {:host "redis" :port 6379 :db 0}}
null
https://raw.githubusercontent.com/thesis/shale/84180532e46ee5d9ee0218138da04ea035bcf7d2/docker-config.clj
clojure
{:node-list ["-1:4444/wd/hub" "-2:4444/wd/hub"] :node-max-sessions 6 :port 5000 :webdriver-timeout 3000 :start-webdriver-timeout 5000 :redis {:host "redis" :port 6379 :db 0}}
67efab8f1604e454ca71154a89e68c7ec0d395e7da61019bdb24a1068e3e0f01
expede/rescue
Class.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # module Control.Monad.Trans.Error.Class (MonadTransError (..)) where import Control.Monad.Raise.Class import Control.Monad.Trans.Class import Data.Kind import Data.World...
null
https://raw.githubusercontent.com/expede/rescue/5f460a4cd9a01ac84e669a50711375c8f8dcba75/library/Control/Monad/Trans/Error/Class.hs
haskell
# LANGUAGE DataKinds #
# LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # module Control.Monad.Trans.Error.Class (MonadTransError (..)) where import Control.Monad.Raise.Class import Control.Monad.Trans.Class import Data.Kind import Data.WorldPeace class MonadTrans (t sourceErrs) ...
116d6890d0ab121e28e72069471846978a8406d1bc07e9a6d972e80703309994
clojure-interop/aws-api
AbstractAWSServiceDiscovery.clj
(ns com.amazonaws.services.servicediscovery.AbstractAWSServiceDiscovery "Abstract implementation of AWSServiceDiscovery. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) ...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.servicediscovery/src/com/amazonaws/services/servicediscovery/AbstractAWSServiceDiscovery.clj
clojure
(ns com.amazonaws.services.servicediscovery.AbstractAWSServiceDiscovery "Abstract implementation of AWSServiceDiscovery. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) ...
f224770ec95042da191b3d94276af45328d20542e27d1cfcb99fa29da97f1240
ananthakumaran/eopl
feature.clj
(ns eopl.core.feature (:use clojure.test)) (defmacro defeature [name & body] `(defn ~(symbol (str name "-feature")) [] (eval '(deftest ~(symbol (str name "-test")) ~@body)))) (defeature constant (is (= (result "4") 4))) (defeature diff (is (= (result "-(4, -(5, 4))") 3))) (defeature list ...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/core/feature.clj
clojure
{ x = -(x,1) }; { {f = proc(x y) *(x,y); (p a); (p a); arrayref(a,1) end")
(ns eopl.core.feature (:use clojure.test)) (defmacro defeature [name & body] `(defn ~(symbol (str name "-feature")) [] (eval '(deftest ~(symbol (str name "-test")) ~@body)))) (defeature constant (is (= (result "4") 4))) (defeature diff (is (= (result "-(4, -(5, 4))") 3))) (defeature list ...
7db0277abe5f9da808d5b0fd3006e7b2a74625604c422eb9c54728dae7d89515
xsc/claro
mutation.cljc
(ns claro.runtime.mutation (:require [claro.runtime.state :as state])) (defn- assert-single-mutation! [mutations] (when (next mutations) (throw (IllegalStateException. (format "only one mutation can be resolved per engine run, given %d: %s" (count mutations) (pr-st...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/runtime/mutation.cljc
clojure
(ns claro.runtime.mutation (:require [claro.runtime.state :as state])) (defn- assert-single-mutation! [mutations] (when (next mutations) (throw (IllegalStateException. (format "only one mutation can be resolved per engine run, given %d: %s" (count mutations) (pr-st...
63c5b2822feab10423e6cb9c2dc452d0c605ecc3e6e70739e513f6b62361ff66
StarGazerM/ppa-in-code
flow.rkt
;; data flow graph 2020 Syracuse #lang racket (require "tiny-lang.rkt") (provide (all-defined-out)) ;; pure racket version ;; init function return the inital label of a statement ;; get all start point of a flow edge init : Stmt → Lab (define (init-flow stmt) (match stmt [`(,label = ,(? variable? x) ,...
null
https://raw.githubusercontent.com/StarGazerM/ppa-in-code/0c04c50e64118a9468f24427bca11280775c9d74/dataflow/flow.rkt
racket
data flow graph pure racket version init function return the inital label of a statement get all start point of a flow edge procedure the end of a flow procedure flow and reverse flow procedure (=> lc ln) is flow of calling p at lc and with ln being the entry point for procedure body reverse flow this is ea...
2020 Syracuse #lang racket (require "tiny-lang.rkt") (provide (all-defined-out)) init : Stmt → Lab (define (init-flow stmt) (match stmt [`(,label = ,(? variable? x) ,(? aexpr? a)) label] [`(,label SKIP) label] [`(,(? stmt? stmts) ...) (init-flow (car stmts))] [`(if (,label ,(? bexpr? b)) ,...
8d53c7b911856b4593b5af8c26d846b426e0147a57e1b1b2e61e65767eff6e88
jjsimpso/molasses
request.rkt
#lang racket (require "gopher.rkt") (provide url->request request->url dir-entity->request gopher-url-request? gopher-url-request->url (struct-out request)) (struct request (protocol ; symbol host ; string port ; port-number? path/sele...
null
https://raw.githubusercontent.com/jjsimpso/molasses/810243740cbbd3c780e8c489ffbf63c56005bbf6/src/request.rkt
racket
symbol string port-number? string character (regexp-match #px"^(\\w+://)?([a-zA-Z0-9\\.]+)(:\\d+)?(/.*)?" "gopher:70/a/b/c.txt") follow the convention of displaying the type in the URL. if selector is null add a '/' after the type prefix with 'URL:' or use 'GET /' as the selector. Helper functions default to ...
#lang racket (require "gopher.rkt") (provide url->request request->url dir-entity->request gopher-url-request? gopher-url-request->url (struct-out request)) (struct request #:prefab) (define (dir-entity->request dir-entity) (request 'gopher (gopher-dir-ent...
aab5cb4000cc1f419a46188bd8983a0a4c8207c526834c1a46a5ae3a5a02761a
FranklinChen/hugs98-plus-Sep2006
SimpleTest.hs
module Main where import List (isPrefixOf) import Text.XML.HaXml.XmlContent import Text.XML.HaXml.Types import Text.PrettyPrint.HughesPJ (render) import Text.XML.HaXml.Pretty (document) -- Test stuff value1 :: ([(Bool,Int)],(String,Maybe Char)) value1 = ([(True,42),(False,0)],("Hello World",Just 'x')) data MyTyp...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/HaXml/examples/SimpleTest.hs
haskell
Test stuff main = do (putStrLn . render . document . toXml) value2
module Main where import List (isPrefixOf) import Text.XML.HaXml.XmlContent import Text.XML.HaXml.Types import Text.PrettyPrint.HughesPJ (render) import Text.XML.HaXml.Pretty (document) value1 :: ([(Bool,Int)],(String,Maybe Char)) value1 = ([(True,42),(False,0)],("Hello World",Just 'x')) data MyType a = ConsA In...
9cd6d6683630ce97922a06e51a25e29d1b0c4065600e386e49c63dac4fcf24a6
locusmath/locus
presheaf.clj
(ns locus.set.copresheaf.topoi.representable.presheaf (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copreshe...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/set/copresheaf/topoi/representable/presheaf.clj
clojure
A presheaf Hom(-,b) Get the sets and objects of representable presheaves The index categories of representable presheaves
(ns locus.set.copresheaf.topoi.representable.presheaf (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copreshe...
cd91730897ad6fa87c3a81e3d646caef732473c9bdf8613c5c131b1ad001e15b
s-expressionists/Cleavir
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-compilation-policy (:use #:common-lisp) (:nicknames #:cleavir-policy) (:export #:policy-value) (:export #:policy-qualities #:define-cleavir-policy-quality) (:export #:optimize-value #:normalize-optimize) (:export #:compute-policy #:compute-policy-qua...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/e0293780d356a9d563af9abf9317019f608b4e1d/Compilation-policy/packages.lisp
lisp
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-compilation-policy (:use #:common-lisp) (:nicknames #:cleavir-policy) (:export #:policy-value) (:export #:policy-qualities #:define-cleavir-policy-quality) (:export #:optimize-value #:normalize-optimize) (:export #:compute-policy #:compute-policy-qua...
b10a04e9edd1d81dab85bac5d30daf8325af6024199a99f0f89d5f5e6431d0e8
probprog/deodorant
default_params.clj
(ns deodorant.default-params "Helper functions for Deodorant." (:require [clojure.core.matrix :as mat] [deodorant.hyper-priors :as hyper] [deodorant.broadcast-functions :as bf])) (defn default-double-matern-hyperprior "Sets up a default hyperprior based on the composition of a matern-3...
null
https://raw.githubusercontent.com/probprog/deodorant/b230646e0dd845576e63a935d653b0d8017770b4/src/deodorant/default_params.clj
clojure
(ns deodorant.default-params "Helper functions for Deodorant." (:require [clojure.core.matrix :as mat] [deodorant.hyper-priors :as hyper] [deodorant.broadcast-functions :as bf])) (defn default-double-matern-hyperprior "Sets up a default hyperprior based on the composition of a matern-3...
23d24d14a0a2bb708eafded8bdc149d0a6f9010d761bd3282797152981afe66d
lisp-maintainers/clerk
clerk.lisp
(in-package #:cl-user) (defpackage #:clerk (:use #:cl) (:export #:*jobs* #:empty-jobs-queue #:job #:job-fn #:start #:stop #:calendar #:job-function)) (in-package #:clerk) (defparameter *jobs* nil "All scheduled jobs") (defparameter *mai...
null
https://raw.githubusercontent.com/lisp-maintainers/clerk/0e45fdd01f213e94927fa0e5a1385cc3b305af04/src/clerk.lisp
lisp
In and after are synonyms If neither in or after is set, we use every for the initial delay Deprecated. Use job-function. jobs in the queue.
(in-package #:cl-user) (defpackage #:clerk (:use #:cl) (:export #:*jobs* #:empty-jobs-queue #:job #:job-fn #:start #:stop #:calendar #:job-function)) (in-package #:clerk) (defparameter *jobs* nil "All scheduled jobs") (defparameter *mai...
bc8dfddf49312c194b39ab0c6331ccbff8948b6e71853753ec4f6b41847f1404
rizo/snowflake-os
config.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/utils/config.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ let version = Sys.ocaml_vers...
81fd1c82b4c2b29e03f4b8cd0ea43b8b5dd3d1a8abb3c27270c0fb90bb865e28
softwarelanguageslab/maf
R5RS_scp1_counter-1.scm
; Changes: * removed : 0 * added : 0 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (count1 (lambda (x) (if (= 0 x) (display ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_counter-1.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 0 * swaps : 1 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (count1 (lambda (x) (if (= 0 x) (display x) (begin (display x) ...