_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
231930f5602e20bdaebeb35279ea517f2e633d8f4f488dde0ea3829e160de7a1
josefs/Gradualizer
issue131.erl
-module(issue131). -export([f/0]). -spec f() -> #{ a := b } | undefined. f() -> #{ a => b }.
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/should_pass/issue131.erl
erlang
-module(issue131). -export([f/0]). -spec f() -> #{ a := b } | undefined. f() -> #{ a => b }.
0a080f405bd535d918224c6e33b27b0d7837f8e46fbefac36dbfae6a4655ac1f
albertov/hs-abci
Gogo.hs
This file was auto - generated from gogo / protobuf / gogoproto / by the proto - lens - protoc program . # LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHa...
null
https://raw.githubusercontent.com/albertov/hs-abci/c86ee133d5d11f30aca2a2903121c01001b48458/src/Proto/Vendored/Gogo/Protobuf/Gogoproto/Gogo.hs
haskell
This file was auto - generated from gogo / protobuf / gogoproto / by the proto - lens - protoc program . # LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHa...
3b1630688400eaac39f8410541a132f5b061cceb6d8b300885e9c6a42b4b068e
Frama-C/Frama-C-snapshot
pp_bin_hex.ml
let pp_dec fmt z = Integer.pretty ~hexa:false fmt z let pp_hex fmt z = Integer.pp_hex ~nbits:16 ~sep:"_" fmt z let pp_bin fmt z = Integer.pp_bin ~nbits:8 ~sep:"_" fmt z let hrule () = Format.printf "--------------------------------------------------@." let testcase z = begin hrule () ; Format.printf "Dec...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/misc/pp_bin_hex.ml
ocaml
let pp_dec fmt z = Integer.pretty ~hexa:false fmt z let pp_hex fmt z = Integer.pp_hex ~nbits:16 ~sep:"_" fmt z let pp_bin fmt z = Integer.pp_bin ~nbits:8 ~sep:"_" fmt z let hrule () = Format.printf "--------------------------------------------------@." let testcase z = begin hrule () ; Format.printf "Dec...
506ff3bc769cd9f568021b73870cc2200cabfa586ee80fc440a706703a471173
input-output-hk/rscoin-core
ActionLog.hs
| Functions tightly related to ActionLog module RSCoin.Core.ActionLog ( actionLogNext , checkActionLog , isCloseEpochEntry , isCommitEntry , isQueryEntry ) where import RSCoin.Core.Crypto (hash, unsafeHash) import RSCoin.Core.Types (ActionLog, ActionLog...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-core/5b3fde8de1bdce71ee6ea0e8f1582ea28f451171/src/RSCoin/Core/ActionLog.hs
haskell
| Check action log integrity using optional preceding element in log. and optional previous element.
| Functions tightly related to ActionLog module RSCoin.Core.ActionLog ( actionLogNext , checkActionLog , isCloseEpochEntry , isCommitEntry , isQueryEntry ) where import RSCoin.Core.Crypto (hash, unsafeHash) import RSCoin.Core.Types (ActionLog, ActionLog...
295eb3ccc83c9002fe334ad24c01afadfd1b88d08772a5a05308d0b90f512888
prg-titech/baccaml
inprod-loop.ml
;; let rec inprod v1 v2 acc i = if i < 0 then acc else inprod v1 v2 (acc +. (v1.(i) *. v2.(i))) (i - 1) in let v1 = Array.make 3 1.23 in let v2 = Array.make 3 4.56 in print_int (truncate (1000000. *. inprod v1 v2 0. 2))
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/etc/example/inprod-loop.ml
ocaml
;; let rec inprod v1 v2 acc i = if i < 0 then acc else inprod v1 v2 (acc +. (v1.(i) *. v2.(i))) (i - 1) in let v1 = Array.make 3 1.23 in let v2 = Array.make 3 4.56 in print_int (truncate (1000000. *. inprod v1 v2 0. 2))
f146893668a104b31748f448b0da91b778ac3b72dc559f85d4069de1b774a75a
matterhorn-chat/matterhorn
ViewMessage.hs
module Matterhorn.Windows.ViewMessage ( viewMessageWindowTemplate , viewMessageKeybindings , viewMessageKeyHandlers , viewMessageReactionsKeybindings , viewMessageReactionsKeyHandlers ) where import Prelude () import Matterhorn.Prelude import Brick import Brick.Widg...
null
https://raw.githubusercontent.com/matterhorn-chat/matterhorn/19a73ce833a8a8de3616cf884c03e9f08a4db0a7/src/Matterhorn/Windows/ViewMessage.hs
haskell
| The template for "View Message" windows triggered by message selection mode. When we show the tabs, we need to reset the viewport scroll position for viewports in that tab. This is because an older View Message window used the same handle for the viewport and we don't want that old state affecting this window. ...
module Matterhorn.Windows.ViewMessage ( viewMessageWindowTemplate , viewMessageKeybindings , viewMessageKeyHandlers , viewMessageReactionsKeybindings , viewMessageReactionsKeyHandlers ) where import Prelude () import Matterhorn.Prelude import Brick import Brick.Widg...
3f1b0bed67c9d209a4c278eb72b0c1ada79b2bd733c681a114cc1a8bd9c1c659
sph-mn/sph-lib
process.scm
(define-module (sph process)) (use-modules (ice-9 popen) (ice-9 threads) (rnrs io ports) (sph) (sph filesystem) (sph io) (sph other) (srfi srfi-31)) (export call-with-working-directory execute execute-and-check-result execute->file execute->port execute->string execute-and execute-with-pipe exit-value-zero?...
null
https://raw.githubusercontent.com/sph-mn/sph-lib/c7daf74f42d6bd1304f49c2fef89dcd6dd94fdc9/modules/sph/process.scm
scheme
(define-module (sph process)) (use-modules (ice-9 popen) (ice-9 threads) (rnrs io ports) (sph) (sph filesystem) (sph io) (sph other) (srfi srfi-31)) (export call-with-working-directory execute execute-and-check-result execute->file execute->port execute->string execute-and execute-with-pipe exit-value-zero?...
690ce006e1fb535bcbd50dd6e9584f649586723e6e56571cfe0121c99ab6a0ba
league/yesod-crud
Persist.hs
{-# LANGUAGE ScopedTypeVariables, Rank2Types #-} | Module : Yesod . Contrib . League . Crud . Persist Description : Representing CRUD entities using Persistent Copyright : © 2015 Christopher League Maintainer : This module provides default database operations using ' Database . Persist ' . Start out by se...
null
https://raw.githubusercontent.com/league/yesod-crud/6cf3a1871dd6471e9423348c38aff6920d5b4bce/Yesod/Contrib/League/Crud/Persist.hs
haskell
# LANGUAGE ScopedTypeVariables, Rank2Types # |Helper function to convert a Persist 'Entity' into a plain pair. |Run a 'selectList' on the CRUD type, using the given filters and options. Return the entities as a plain pair of 'ObjId' and 'Obj'. |Retrieve a record of database operations that use 'Database.Persist'. B...
| Module : Yesod . Contrib . League . Crud . Persist Description : Representing CRUD entities using Persistent Copyright : © 2015 Christopher League Maintainer : This module provides default database operations using ' Database . Persist ' . Start out by setting = return crudPersistDefaults@ and then you...
90541a16771de5221eb0380f3e735178027083960d34bc95f6c86e9dc72cd070
privet-kitty/cl-competitive
set-equal.lisp
(defpackage :cp/test/set-equal (:use :cl :fiveam :cp/set-equal) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/set-equal) (in-suite base-suite) (test set-equal (let ((*test-dribble* nil)) (dotimes (len 10) (dotimes (_ 100) (let ((list1 (loop repeat (+ len (random 3)) collect (r...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/1d6c7b0153dcc846276ec718ef8d8e9b992c4866/module/test/set-equal.lisp
lisp
(defpackage :cp/test/set-equal (:use :cl :fiveam :cp/set-equal) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/set-equal) (in-suite base-suite) (test set-equal (let ((*test-dribble* nil)) (dotimes (len 10) (dotimes (_ 100) (let ((list1 (loop repeat (+ len (random 3)) collect (r...
4b093ab5849b4f728f6c878e668a48782e30f9d0120b48ecbdeecb8c47759c36
ml4tp/tcoq
redops.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/pretyping/redops.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Genredexpr FIXME let...
ff4c79f5d9c6a9d7eb157d4ef5530fb57cd53a40987b637cd1a4bbaa262b80e2
open-company/open-company-auth
app.clj
(ns oc.auth.app "Namespace for the web application which serves the REST API." (:gen-class) (:require [oc.lib.sentry.core :as sentry] [taoensso.timbre :as timbre] [clojure.string :as clj-str] [clojure.java.io :as j-io] [ring.logger.timbre :refer (wrap-with-logger)] ...
null
https://raw.githubusercontent.com/open-company/open-company-auth/79275bd3b877e70048a80960d7fa2d14be0abfe9/src/oc/auth/app.clj
clojure
----- Request Routing ----- Up-time monitor ----- System Startup ----- Ring app definition Stuff logged at error level goes to Sentry Start the system
(ns oc.auth.app "Namespace for the web application which serves the REST API." (:gen-class) (:require [oc.lib.sentry.core :as sentry] [taoensso.timbre :as timbre] [clojure.string :as clj-str] [clojure.java.io :as j-io] [ring.logger.timbre :refer (wrap-with-logger)] ...
1df3aeb68e93aff3b3bafc195b3cdcfc97ac8f2422d1118ed0e40618a3526c62
chenyukang/eopl
tests.scm
;;;;;;;;;;;;;;;; tests ;;;;;;;;;;;;;;;; (define test-list '( ;; simple arithmetic (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) ;; nested arithmetic (nested-arith-left "-(-(44,33),22)" -11) (nested-arith-right "-(55, -...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter3/let-lang/tests.scm
scheme
tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure the other arm doesn't get evaluated. simple let check nested let and shado...
(define test-list '( (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) (nested-arith-left "-(-(44,33),22)" -11) (nested-arith-right "-(55, -(22,11))" 44) (test-var-1 "x" 10) (test-var-2 "-(x,1)" 9) (test-var-3 "-(1,x...
f612a9b8124150c2a9ebf266cb744d0b78710119304c2fdc5f536d6d791fc327
puppetlabs/puppetdb
producers_test.clj
(ns puppetlabs.puppetdb.http.producers-test (:require [puppetlabs.puppetdb.cheshire :as json] [puppetlabs.puppetdb.scf.storage :as storage] [puppetlabs.puppetdb.query-eng :as eng] [clojure.test :refer :all] [puppetlabs.puppetdb.testutils.db :refer [without-db-var]] ...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/http/producers_test.clj
clojure
Basic reports subquery examples In syntax: select_reports In syntax: from Implicit subquery syntax Not-wrapped subquery syntax In syntax: select_reports In syntax: from
(ns puppetlabs.puppetdb.http.producers-test (:require [puppetlabs.puppetdb.cheshire :as json] [puppetlabs.puppetdb.scf.storage :as storage] [puppetlabs.puppetdb.query-eng :as eng] [clojure.test :refer :all] [puppetlabs.puppetdb.testutils.db :refer [without-db-var]] ...
394f45fb247b15bf96e9ce4af9126bd74debc3eb9db40129711d04ddce8964b8
flosell/lambdacd
build_metadata_test.clj
(ns lambdacd.execution.internal.build-metadata-test (:require [clojure.test :refer :all] [lambdacd.execution.internal.build-metadata :refer :all] [lambdacd.testsupport.data :refer [some-ctx some-ctx-with]] [shrubbery.core :refer [mock received?]] [lambdacd.state.protoco...
null
https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/test/clj/lambdacd/execution/internal/build_metadata_test.clj
clojure
(ns lambdacd.execution.internal.build-metadata-test (:require [clojure.test :refer :all] [lambdacd.execution.internal.build-metadata :refer :all] [lambdacd.testsupport.data :refer [some-ctx some-ctx-with]] [shrubbery.core :refer [mock received?]] [lambdacd.state.protoco...
fb833fc3db90e9f973691a341acb8f435ae0a55b8ba0fa5f3140f1c96a1fc252
haskell-repa/repa
Map.hs
module Data.Repa.Flow.Generic.Map ( map_i, map_o , smap_i, smap_o , szipWith_ii, szipWith_io, szipWith_oi) where import Data.Repa.Flow.Generic.Base import Control.Monad import Prelude as P #include "repa-flow.h" -- | Apply a function to every...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-flow/Data/Repa/Flow/Generic/Map.hs
haskell
| Apply a function to every element pulled from some sources, producing some new sources. | Like `map_i`, but the worker function is also given the stream index. # INLINE eject_a # # INLINE [1] pullsB_map # # INLINE_FLOW smap_i # | Apply a function to every element pulled from some sources, producing some n...
module Data.Repa.Flow.Generic.Map ( map_i, map_o , smap_i, smap_o , szipWith_ii, szipWith_io, szipWith_oi) where import Data.Repa.Flow.Generic.Base import Control.Monad import Prelude as P #include "repa-flow.h" map_i :: Monad m => ...
2fde6eddb54437cf3b86eb7586702b184fc40969641bad98fab9ca92a09616b2
ozusrl/SubtypedQuotedML
trieSetMap.mli
(*********************************************************************************************************************) (* *) ...
null
https://raw.githubusercontent.com/ozusrl/SubtypedQuotedML/7b09eb5518dea21fda3dc9db3b966a17225d91ff/src/wallace/trieSetMap.mli
ocaml
******************************************************************************************************************* ...
, projet Cristal , INRIA Rocquencourt Copyright 2000 Institut National de Recherche en Informatique et Automatique . Distributed only by per...
1c4f0175e65c45c9b85c2272f7d38bd946db6ebf1198afd5b0540b4614d15244
Cantido/clj-bittorrent
numbers.clj
(ns clj-bittorrent.math.numbers (:require [schema.core :as schema]) (:import (org.joda.time ReadableInstant))) (defn nonneg? [x] (not (neg? x))) (defn multiple-of? [x y] (zero? (rem x y))) (def NonNegativeInt "A number zero or greater." (schema/constrained schema/Int nonneg?)) ;; I am aware that indexes...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/src/clj_bittorrent/math/numbers.clj
clojure
I am aware that indexes, lengths, and counts are all the same thing, but I like making a descriptive schema like this, even if it leads to a little repetition.
(ns clj-bittorrent.math.numbers (:require [schema.core :as schema]) (:import (org.joda.time ReadableInstant))) (defn nonneg? [x] (not (neg? x))) (defn multiple-of? [x y] (zero? (rem x y))) (def NonNegativeInt "A number zero or greater." (schema/constrained schema/Int nonneg?)) (def Index "A non-negat...
062ec840b11cc69784229ec64b2b00434354b5992c2e09ee0f6ecff3a30d0a53
masaeedu/halfsp
Lib.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Lib (serverMain) where import Control.Applicative import Control...
null
https://raw.githubusercontent.com/masaeedu/halfsp/3d6e22d77d4fed8fd334b9bcf3ece333291e808f/lib/Lib.hs
haskell
# LANGUAGE OverloadedStrings # HieDb utils {{{ hacky garbage that needs to be replaced Less dumb alternative compose TODO: Get rid of this hack, defer to populated modules table }}} TODO: Render these properly The actual code
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Lib (serverMain) where import Control.Applicative import Control.Arrow ((&&&)) import Control.Monad...
8ceb11a145e7443abd85fb439ee1dd9e1976247469e725168ce61ec710be2386
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude -- Test “repl --build-depends” main = do testWithByteString "normal" [] -- See testWithByteString "allow-newer" ["--allow-newer"] -- See testWithByteString "allow-older" ["--allow-older"] where testWithByteString label extraArgs = cabalTest' label $ do cabal' "clean" [] ...
null
https://raw.githubusercontent.com/haskell/cabal/e9b4744a846fcd808a325e288e5486e269f6a52e/cabal-testsuite/PackageTests/ReplBuildDepends/cabal.test.hs
haskell
Test “repl --build-depends” See See Ensure we can load ‘bytestring’
import Test.Cabal.Prelude main = do testWithByteString "normal" [] testWithByteString "allow-newer" ["--allow-newer"] testWithByteString "allow-older" ["--allow-older"] where testWithByteString label extraArgs = cabalTest' label $ do cabal' "clean" [] res <- cabalWithStdin "repl" ("-v...
193c697524f97e83a689cced44b14fcc1133667d955b2be9fa1105329813b8a0
metosin/reitit
build.clj
(require 'cljs.closure) (cljs.closure/build ; Includes :source-paths and :test-paths already "test" {:main "reitit.runner" :output-to "target/generated/js/out/tests.js" :source-map true :output-dir "target/generated/js/out" :optimizations :none :target :nodejs}) (shutdown-agents)
null
https://raw.githubusercontent.com/metosin/reitit/1ab075bd353966636f154ac36ae9b7990efeb008/scripts/build.clj
clojure
Includes :source-paths and :test-paths already
(require 'cljs.closure) (cljs.closure/build "test" {:main "reitit.runner" :output-to "target/generated/js/out/tests.js" :source-map true :output-dir "target/generated/js/out" :optimizations :none :target :nodejs}) (shutdown-agents)
54d8b7cdfb3e2f2011d2d36530ecf592ba1972727bb3861c7d9a9efc689603a7
jeko2000/tiny-routes
builder.lisp
;;;; builder.lisp (in-package :cl-user) (uiop:define-package :tiny-routes.middleware.builder (:use :cl) (:export #:wrap-request-predicate #:wrap-request-mapper #:wrap-response-mapper #:wrap-response-mapper*)) (in-package :tiny-routes.middleware.builder) (defun wrap-request-predica...
null
https://raw.githubusercontent.com/jeko2000/tiny-routes/aea7f27ba1ec801cf34f20073101fcc72866fd58/src/middleware/builder.lisp
lisp
builder.lisp Clack allows async response in the form of a lambda
(in-package :cl-user) (uiop:define-package :tiny-routes.middleware.builder (:use :cl) (:export #:wrap-request-predicate #:wrap-request-mapper #:wrap-response-mapper #:wrap-response-mapper*)) (in-package :tiny-routes.middleware.builder) (defun wrap-request-predicate (handler reques...
abce47c692ef28b26c3f5b968f2f65f6dd154785d73a53fbd04423b2f29d6169
fission-codes/fission
UTF8.hs
-- | UTF8 text helpers module Network.IPFS.Internal.UTF8 ( Textable (..) , stripN , textToLazyBS , textShow ) where import RIO import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.Text as Text class Textable a where encode :: a -> Either UnicodeException Text instance Te...
null
https://raw.githubusercontent.com/fission-codes/fission/fb76d255f06ea73187c9b787bd207c3778e1b559/ipfs/library/Network/IPFS/Internal/UTF8.hs
haskell
| UTF8 text helpers
module Network.IPFS.Internal.UTF8 ( Textable (..) , stripN , textToLazyBS , textShow ) where import RIO import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.Text as Text class Textable a where encode :: a -> Either UnicodeException Text instance Textable ByteString where...
03810ef7149d66a8d93b5c3dced22dd362d73ff02f194caafb9e7456e4dc3101
protojure/protoc-plugin
core.clj
Copyright © 2019 State Street Bank and Trust Company . All rights reserved ;; SPDX - License - Identifier : Apache-2.0 (ns protojure.plugin.core (:require [protojure.plugin.parse.core :refer [validity-checks generate-impl]] [clojure.math.combinatorics :refer [cartesian-product]] [protoj...
null
https://raw.githubusercontent.com/protojure/protoc-plugin/d14311c67cb21656a3ae8b8cbe3d742b8ad7e1af/src/protojure/plugin/core.clj
clojure
------------------------------------------------------------------- Entry point This will cycle through the coll of templates in order to create The generation of the grpc mappings, and thus the grpc file in addition to the protobuf file, is controlled by the presence of the strings grpc-server,grpc-client in ...
Copyright © 2019 State Street Bank and Trust Company . All rights reserved SPDX - License - Identifier : Apache-2.0 (ns protojure.plugin.core (:require [protojure.plugin.parse.core :refer [validity-checks generate-impl]] [clojure.math.combinatorics :refer [cartesian-product]] [protojure...
175fc1cc0e8dc034285d7c6405928dfba04d08eb09a601ae1bc15f7f57eb7080
andrejbauer/plzoo
type_check.ml
(** Type checking. *) open Syntax let typing_error ~loc = Zoo.error ~kind:"Type error" ~loc * [ check ] verifies that expression [ e ] has type [ ty ] in context [ ctx ] . If it does , it returns unit , otherwise it raises the [ Type_error ] exception . context [ctx]. If it does, it returns unit, ...
null
https://raw.githubusercontent.com/andrejbauer/plzoo/ae6041c65baf1eebf65a60617819efeb8dcd3420/src/miniml_error/type_check.ml
ocaml
* Type checking. this should not happen as the user has no way of referring to Abort
open Syntax let typing_error ~loc = Zoo.error ~kind:"Type error" ~loc * [ check ] verifies that expression [ e ] has type [ ty ] in context [ ctx ] . If it does , it returns unit , otherwise it raises the [ Type_error ] exception . context [ctx]. If it does, it returns unit, otherwise it raises th...
12f4446f6fc02abb697351e6acf04ed1d0e8cddd81a99e48caa0ecf6a625e983
ocaml/oasis
BaseGenerate.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/base/BaseGenerate.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...
30d40527b8cfa204ba471f7d1597adbc6912cbd2f3550ac2271ce8ce8bca81f0
turbopape/scheje
interpreter.cljc
(ns scheje.interpreter (:require #?(:clj [clojure.core.match :refer [match]] :cljs [cljs.core.match :refer-macros [match]]) [scheje.tools :as tools] [scheje.unifier :as unifier] [scheje.expander :as expander] [scheje.library :refer [root-env]])) (def t...
null
https://raw.githubusercontent.com/turbopape/scheje/8a7940d3582be5f5d771fd150997934cc7a304c0/src/scheje/interpreter.cljc
clojure
The Core Functions maybe a macro symbol that we want captured, a function name?
(ns scheje.interpreter (:require #?(:clj [clojure.core.match :refer [match]] :cljs [cljs.core.match :refer-macros [match]]) [scheje.tools :as tools] [scheje.unifier :as unifier] [scheje.expander :as expander] [scheje.library :refer [root-env]])) (def t...
d5c2669b91c15b359bdb2529401bea56472f4891fd64ef253419b7ceb4f85e4f
stuartsierra/flow
flow.clj
Copyright ( c ) 2012 Stuart Sierra . All rights reserved . This program ;; and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this ;; distribution, and is available at -v10.html (ns com.stuartsierra.flow (:refer-clojure :exclude (compile)) (...
null
https://raw.githubusercontent.com/stuartsierra/flow/d832c2ff2af4a05ae96447e48cbc1f98376721e8/src/com/stuartsierra/flow.clj
clojure
and the accompanying materials are made available under the terms distribution, and is available at structure of a flow returns value for :output if not if not present
Copyright ( c ) 2012 Stuart Sierra . All rights reserved . This program of the Eclipse Public License v1.0 which accompanies this -v10.html (ns com.stuartsierra.flow (:refer-clojure :exclude (compile)) (:require [clojure.set :as set] [clojure.tools.namespace.dependency :as dep] [cloju...
b3725ba00d2548966a1098910708234fa1e789458ecf425606258f07f50fe2c3
tolysz/ghcjs-stack
Register.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Register Copyright : 2003 - 2004 -- License : BSD3 -- -- Maintainer : -- Portability : portable -- -- This module deals with registering and unregistering packages. There are a -- c...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/Cabal/Distribution/Simple/Register.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.Register License : BSD3 Maintainer : Portability : portable This module deals with registering and unregistering packages. There are a couple ways it can do this, one is to do it directly. ...
Copyright : 2003 - 2004 module Distribution.Simple.Register ( register, unregister, initPackageDB, doesPackageDBExist, createPackageDB, deletePackageDB, invokeHcPkg, registerPackage, generateRegistrationInfo, inplaceInstalledPackageInfo, absoluteInstalledPackageIn...
7ec1741596b4812ab1b83908e3a0663bad27c4f331f6753429b186ab9297cc33
toothbrush/dotfs
ExpressionParsers.hs
# LANGUAGE NoImplicitPrelude , GADTs , ExistentialQuantification # module System.DotFS.Core.ExpressionParsers where import Prelude hiding (lex,lookup) import Control.Applicative ((<$>)) import System.DotFS.Core.Datatypes import System.DotFS.Core.Lexers import Data.Functor.Identity import Text.Parsec import Text.Parsec...
null
https://raw.githubusercontent.com/toothbrush/dotfs/36c7e62bda235728ffbb501fe1d2c34210a870a8/System/DotFS/Core/ExpressionParsers.hs
haskell
# LANGUAGE NoImplicitPrelude , GADTs , ExistentialQuantification # module System.DotFS.Core.ExpressionParsers where import Prelude hiding (lex,lookup) import Control.Applicative ((<$>)) import System.DotFS.Core.Datatypes import System.DotFS.Core.Lexers import Data.Functor.Identity import Text.Parsec import Text.Parsec...
85f22351326da5119572f31832b4c0bbd12d02cd4a1171a6937060a5d72c1390
nuvla/ui
events.cljs
(ns sixsq.nuvla.ui.main.events (:require [ajax.core :as ajax] [clojure.set :as set] [clojure.string :as str] [day8.re-frame.http-fx] [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as api-fx] [sixsq.n...
null
https://raw.githubusercontent.com/nuvla/ui/bee37c5bcc37910e32954ee99d7bbaf9294e81e0/code/src/cljs/sixsq/nuvla/ui/main/events.cljs
clojure
inference to not break with advanced optimizations
(ns sixsq.nuvla.ui.main.events (:require [ajax.core :as ajax] [clojure.set :as set] [clojure.string :as str] [day8.re-frame.http-fx] [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as api-fx] [sixsq.n...
9ceace258b1fa3d9b30d125f54440207c351be0a2b794ba47a50a914f2bfdb64
Hans-Halverson/myte
aarch64_calling_convention.ml
open Asm_calling_convention open Asm_register (* AArch64 Procedure Call Standard *) let aapcs64 = object inherit calling_convention val general_params = [| `R0; `R1; `R2; `R3; `R4; `R5; `R6; `R7 |] val float_params = [| `V0; `V1; `V2; `V3; `V4; `V5; `V6; `V7 |] val callee_saved_registers = R...
null
https://raw.githubusercontent.com/Hans-Halverson/myte/f54c2c9696b60b211a8337a0bb51714fec2bf99a/src/asm/aarch64/aarch64_calling_convention.ml
ocaml
AArch64 Procedure Call Standard
open Asm_calling_convention open Asm_register let aapcs64 = object inherit calling_convention val general_params = [| `R0; `R1; `R2; `R3; `R4; `R5; `R6; `R7 |] val float_params = [| `V0; `V1; `V2; `V3; `V4; `V5; `V6; `V7 |] val callee_saved_registers = RegSet.of_list [ `R19...
a955a631558129b815d6b466b71281f3a61c222a0f2539a76eb1b919ed2b237c
mkloczko/derive-storable
GStorableSpec.hs
# LANGUAGE ScopedTypeVariables # {-#LANGUAGe DataKinds #-} # LANGUAGE DeriveGeneric # {-#LANGUAGE DeriveAnyClass #-} {-#LANGUAGE FlexibleContexts #-} module Foreign.Storable.Generic.Internal.GStorableSpec where -- Test tools import Test.Hspec import Test.QuickCheck import GenericType -- Tes...
null
https://raw.githubusercontent.com/mkloczko/derive-storable/e215ce0165e0de735189e9d55058df9f62bd8b2a/test/Spec/Foreign/Storable/Generic/Internal/GStorableSpec.hs
haskell
#LANGUAGe DataKinds # #LANGUAGE DeriveAnyClass # #LANGUAGE FlexibleContexts # Test tools Tested modules Additional data First poke Save random stuff to memory Take a peek
# LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveGeneric # module Foreign.Storable.Generic.Internal.GStorableSpec where import Test.Hspec import Test.QuickCheck import GenericType import Foreign.Storable.Generic.Internal overlapping import Foreign.Storable.Generic.Instances import Data.Int import Data....
4bed537784f017eedcb80b1050e08dbf85eb9a856dd440ac54a4a2eb4b431823
futurice/haskell-mega-repo
Config.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Futurice.App.MegaRepoTool.Config where import Control.Lens import Control.Monad.Catch (handleIOError) import Control.Monad.Trans.State (StateT, execStateT) import Futurice.Pre...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/c6bbcc6cc9dd3776059c87f3f4c8f6d75ccdcbd0/mega-repo-tool/src/Futurice/App/MegaRepoTool/Config.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Futurice.App.MegaRepoTool.Config where import Control.Lens import Control.Monad.Catch (handleIOError) import Control.Monad.Trans.State (StateT, execStateT) import Futurice.Prelude import Prelude () import qual...
01a48f9d7565dc8e89687cc623f296484618f58233496a6153793d2964b25e92
Elzair/nazghul
traps_4.scm
;; ---------------------------------------------------------------------------- ;; Level 4 of the Thief's Ladder ;; ---------------------------------------------------------------------------- (mk-dungeon-room 'p_traps_4 "Labyrinth of Burning Glass" (list "xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx " ...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/traps_4.scm
scheme
---------------------------------------------------------------------------- Level 4 of the Thief's Ladder ----------------------------------------------------------------------------
(mk-dungeon-room 'p_traps_4 "Labyrinth of Burning Glass" (list "xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx " "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ~, ,, ,, ,, ,, ,, xx " "xx ,, ,B ~, ,B ~, ,B ~, ,B ~, ,B ~, ,C ,, ,A ~, ,B ,, xx " "xx ,, ~, ,, ,, ,, ,, ,, ,, ,, ,, ,, ~, ,, ,, ,, ~, ,, xx " "xx ,...
2e1bc27b17e78439282a97adfcba13ad4e7c7c26f91903fe002b2aa93a418e88
bartima3us/gen_bittorrent
gen_bittorrent_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 , %%% @doc %%% Behaviour test. %%% @end Created : 30 . Jul 2019 21.56 %%%------------------------------------------------------------------- -module(gen_bittorrent_SUITE). -author("bartimaeus"). -include_lib("eunit/inclu...
null
https://raw.githubusercontent.com/bartima3us/gen_bittorrent/e06c99a042c9312f37b75162171606cd8f24c576/test/gen_bittorrent_SUITE.erl
erlang
------------------------------------------------------------------- @doc Behaviour test. @end ------------------------------------------------------------------- API CT tests. =================================================================== API for CT. ==========================================================...
@author ( C ) 2019 , Created : 30 . Jul 2019 21.56 -module(gen_bittorrent_SUITE). -author("bartimaeus"). -include_lib("eunit/include/eunit.hrl"). -define(MECK_TIMEOUT, 5000). -define(IP, {127,0,0,1}). -define(PORT, 8092). -define(FILENAME, "file_to_download.example"). -define(STD_PIECE_SIZE, 65536). -define(...
7cff3c4e013e07fec2d8c95317599f59448f50225696dba79962b79e0e07e899
dhess/sicp-solutions
ex2.51.scm
Requires the PLT DrScheme graphical environment . Set the language ;;; to "Module". #lang scheme (require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1))) (define (my-below painter1 painter2) (let ((split-point (make-vect 0.0 0.5))) (let ((paint-bottom ((transform-painter (make-vect 0.0 0.0) ...
null
https://raw.githubusercontent.com/dhess/sicp-solutions/2cf78db98917e9cb1252efda76fddc8e45fe4140/chap2/ex2.51.scm
scheme
to "Module".
Requires the PLT DrScheme graphical environment . Set the language #lang scheme (require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1))) (define (my-below painter1 painter2) (let ((split-point (make-vect 0.0 0.5))) (let ((paint-bottom ((transform-painter (make-vect 0.0 0.0) ...
03244b71dd7b12280eae6284dd65316315efdc7a81491fe29764cf029294bb10
lexi-lambda/case-kw-lambda
contract.rkt
#lang racket/base ;; This module implements `case-kw->`, which is like `case->` but for ;; `case-kw-lambda` procedures. Currently, the implementation is not ;; particularly efficient, but it gets the job done (and it’s cheap ;; on code size). A cleverer implementation could build a specialized ;; projection using `cas...
null
https://raw.githubusercontent.com/lexi-lambda/case-kw-lambda/985c184062c614548892d6a24b644f6e75725eff/case-kw-lambda-lib/case-kw-lambda/private/contract.rkt
racket
This module implements `case-kw->`, which is like `case->` but for `case-kw-lambda` procedures. Currently, the implementation is not particularly efficient, but it gets the job done (and it’s cheap on code size). A cleverer implementation could build a specialized projection using `case-kw-lambda` itself, but it’s...
#lang racket/base (require (for-syntax racket/base racket/list racket/set) racket/contract (only-in racket/contract/private/guts nth-argument-of nth-case-of) racket/format racket/list racket/matc...
6eda79517fd134919d80e57220395950e4f44a9c9b328d66ada1b6dd0e3690dd
goldfirere/thesis
Stream.hs
module Tests.Stream ( tests ) where import Boilerplater import Utilities import qualified Data.Vector.Fusion.Stream as S import Test.QuickCheck import Test.Framework import Test.Framework.Providers.QuickCheck2 import Text.Show.Functions () import Data.List (foldl', foldl1', unfoldr, find, findIndex) impo...
null
https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/cab/vector-0.10.12.3/tests/Tests/Stream.hs
haskell
Prelude
module Tests.Stream ( tests ) where import Boilerplater import Utilities import qualified Data.Vector.Fusion.Stream as S import Test.QuickCheck import Test.Framework import Test.Framework.Providers.QuickCheck2 import Text.Show.Functions () import Data.List (foldl', foldl1', unfoldr, find, findIndex) impo...
b2ace5f95cc8dbf6d4a4a66388ffac1ae6ca5c38b1d9227c12babe163132fdd5
Smart-Sql/smart-sql
my_rpc.clj
(ns org.gridgain.plus.rpc.my-rpc (:require [org.gridgain.plus.ddl.my-create-table :as my-create-table] [org.gridgain.plus.ddl.my-alter-table :as my-alter-table] [org.gridgain.plus.ddl.my-create-index :as my-create-index] [org.gridgain.plus.ddl.my-drop-index :as my-drop-index] ...
null
https://raw.githubusercontent.com/Smart-Sql/smart-sql/dc76e0a38fd2b7e119d91a36175b5d0e9d2291ce/src/main/clojure/org/gridgain/plus/rpc/my_rpc.clj
clojure
生成 class 的类名 create dataset drop dataset create table alter table drop table create index drop index no sql (if (map? smart-sql-obj) (if (map? smart-sql-obj) (if-let [group_id (my-user-group/get_user_group (Ignition/ignite) userToken) lst (my-smart-sql/re-super-smart-segment (my-smart-sql/get-my-smart-segm...
(ns org.gridgain.plus.rpc.my-rpc (:require [org.gridgain.plus.ddl.my-create-table :as my-create-table] [org.gridgain.plus.ddl.my-alter-table :as my-alter-table] [org.gridgain.plus.ddl.my-create-index :as my-create-index] [org.gridgain.plus.ddl.my-drop-index :as my-drop-index] ...
9c5ef2323da6a635593aba5034c180e9ee1cfb5c4cb95a31d025eef3086cb4d2
district0x/cljs-web3-next
build.clj
(ns build (:require [clojure.tools.build.api :as b] [deps-deploy.deps-deploy :as dd])) (def lib 'io.github.district0x/cljs-web3-next) ; ends up as <group-id>/<artifact-id> in pom.xml (def version "0.2.0-SNAPSHOT") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def ja...
null
https://raw.githubusercontent.com/district0x/cljs-web3-next/a4ea3fe3249881646e49e64b1ffdc7ea1c036a20/build.clj
clojure
ends up as <group-id>/<artifact-id> in pom.xml
(ns build (:require [clojure.tools.build.api :as b] [deps-deploy.deps-deploy :as dd])) (def version "0.2.0-SNAPSHOT") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) (defn clean [_] (b/delete {:path "targ...
45a229788ab97c96848b6460f9ba6a8d600a8a3cc64aac6afd6b97b8b1155a22
gonzojive/sbcl
documentation.lisp
implementation of CL : DOCUMENTATION This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is in the public domain and is provided with absolutely no ;;;; warranty. See the COPYING and CREDITS files for more information. (in-package "SB-PCL") (defun fun-doc...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/src/pcl/documentation.lisp
lisp
more information. This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. functions, macros, and special forms method combinations methods packages (PACKAGE-DOC-STRING) floating around out in this mostly-unrelated by analogy wit...
implementation of CL : DOCUMENTATION This software is part of the SBCL system . See the README file for (in-package "SB-PCL") (defun fun-doc (x) (if (typep x 'generic-function) (slot-value x '%documentation) (%fun-doc x))) (defun (setf fun-doc) (new-value x) (if (typep x 'generic-function) ...
8da0a8f6ad736c18ccfe40f43e594e04816182830990c263c88646e8e9d59cdc
nedap/formatting-stack
eastwood.clj
(ns formatting-stack.linters.eastwood (:require [clojure.java.io :as io] [clojure.string :as str] [eastwood.lint] [formatting-stack.linters.eastwood.impl :as impl] [formatting-stack.protocols.linter :as linter] [formatting-stack.util :refer [ns-name-from-filename silence]] [medley.core :refer [as...
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/src/formatting_stack/linters/eastwood.clj
clojure
(ns formatting-stack.linters.eastwood (:require [clojure.java.io :as io] [clojure.string :as str] [eastwood.lint] [formatting-stack.linters.eastwood.impl :as impl] [formatting-stack.protocols.linter :as linter] [formatting-stack.util :refer [ns-name-from-filename silence]] [medley.core :refer [as...
70b77bd29e2752dc7bcce106603d045654f2f267504eed6dfd78b9eecfe11bf6
haroldcarr/learn-haskell-coq-ml-etc
Lib.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Lib where -design-pattern/ import Control.Concurrent.STM import Control.Monad.Reader import qualified Control.Monad.State.Strict as State import Test.Hspec data Env = Env { envLog :: !(String -> IO ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/monads/2017-06-snoyman-readert-design-pattern/src/Lib.hs
haskell
here is no way to do IO here
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Lib where -design-pattern/ import Control.Concurrent.STM import Control.Monad.Reader import qualified Control.Monad.State.Strict as State import Test.Hspec data Env = Env { envLog :: !(String -> IO ...
b8c266f1c56f88b9a653da4b7b4251376d577a66f763b7652f16c74d955ea9b6
jbarrow/LambdaNet
Layer.hs
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module AI.Layer ( LayerDefinition(..) , Layer(..) , Connectivity , RandomTransform , Randomization , showableToLayer , createLayer , scaleLayer , randomizeFully , randomizeLocally , connectFully , connectLocally , randomList , boxMuller , normals , unifor...
null
https://raw.githubusercontent.com/jbarrow/LambdaNet/fbdb2b9e75aaa88ea43d2f9e7b9f94ebc849301e/AI/Layer.hs
haskell
library user to define the different layers of the network. | The Layer type, which stores the weight matrix, the bias matrix, and a neuron type. | Connectivity is the type alias for a function that defines the connective and takes in the number of output and input neurons | Randomiation is the type alias f...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module AI.Layer ( LayerDefinition(..) , Layer(..) , Connectivity , RandomTransform , Randomization , showableToLayer , createLayer , scaleLayer , randomizeFully , randomizeLocally , connectFully , connectLocally , randomList , boxMuller , normals , unifor...
1011c016c13ad1f695872e37663b2cb64d478344abb7491d18a6d4f94c60e809
tschady/advent-of-code
d16.clj
(ns aoc.2017.d16 (:require [aoc.coll-util :refer [first-duplicate x-nth]] [aoc.file-util :as f] [aoc.string-util :as s])) (def input (first (f/read-csv "2017/d16.txt"))) (defn move [dancers cmd] (case (first cmd) \s (s/rotate-right dancers (first (s/ints cmd))) \x (apply s/swap-pos dancers (s/int...
null
https://raw.githubusercontent.com/tschady/advent-of-code/7c8556fa5e00a109b0a2c44e4232b09864dd5c57/src/aoc/2017/d16.clj
clojure
(ns aoc.2017.d16 (:require [aoc.coll-util :refer [first-duplicate x-nth]] [aoc.file-util :as f] [aoc.string-util :as s])) (def input (first (f/read-csv "2017/d16.txt"))) (defn move [dancers cmd] (case (first cmd) \s (s/rotate-right dancers (first (s/ints cmd))) \x (apply s/swap-pos dancers (s/int...
4a74aba3d218510695bbd3764937b99d481b9e7278c44f07a481252d8754a40c
Vaguery/klapaucius
storable.clj
(ns push.instructions.aspects.storable (:use [push.instructions.core :only (build-instruction)] [push.instructions.dsl])) (defn save-instruction "returns a new x-save instruction for a PushType" [pushtype] (let [typename (:name pushtype) instruction-name (str (name typename) "-save...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/src/push/instructions/aspects/storable.clj
clojure
(ns push.instructions.aspects.storable (:use [push.instructions.core :only (build-instruction)] [push.instructions.dsl])) (defn save-instruction "returns a new x-save instruction for a PushType" [pushtype] (let [typename (:name pushtype) instruction-name (str (name typename) "-save...
c3b1a28370e93ab4a9654f3a720862488bbefa97b772f906b554884f7deaf776
ethercrow/lightstep-haskell
Main.hs
{-# LANGUAGE OverloadedStrings #-} import Control.Concurrent import Data.CaseInsensitive (original) import LightStep.HighLevel.IO import LightStep.Propagation (b3Propagator, inject) import Network.HTTP.Req clientMain :: IO () clientMain = do withSpan "req-example" $ do setTag "span.kind" "client" setTag "co...
null
https://raw.githubusercontent.com/ethercrow/lightstep-haskell/f447fd37a6c53dcd38c32c53f71a71386f3e425a/examples/req/Main.hs
haskell
# LANGUAGE OverloadedStrings #
import Control.Concurrent import Data.CaseInsensitive (original) import LightStep.HighLevel.IO import LightStep.Propagation (b3Propagator, inject) import Network.HTTP.Req clientMain :: IO () clientMain = do withSpan "req-example" $ do setTag "span.kind" "client" setTag "component" "http" Just ctx <- cur...
612e296012b1acb02c304d90a139b4079f2402d30685e15dd583dd0ba6f5e5a3
nuvla/api-server
common_test.clj
(ns sixsq.nuvla.db.utils.common-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.db.utils.common :as t])) (deftest check-split-id (are [expected id] (= expected (t/split-id id)) nil nil ["cloud-entry-point" "cloud-entry-point"] "cloud-entry-point" ...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/db/utils/common_test.clj
clojure
(ns sixsq.nuvla.db.utils.common-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.db.utils.common :as t])) (deftest check-split-id (are [expected id] (= expected (t/split-id id)) nil nil ["cloud-entry-point" "cloud-entry-point"] "cloud-entry-point" ...
766bbed0c08658de7247088fed2d947395ac57154cb11f0e91c82a65ab6f2f7d
reanimate/reanimate
morph.hs
module Main where main :: IO () main = return ()
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/videos/morph/morph.hs
haskell
module Main where main :: IO () main = return ()
5ff126549b96272d4d6669105ece42a9a40706bb7d7b3fe4deff743e95f3eb0a
d-cent/objective8
bearer_tokens.clj
(ns objective8.back-end.domain.bearer-tokens (:require [objective8.back-end.storage.storage :as storage])) (defn get-token [name] (-> (storage/pg-retrieve {:entity :bearer-token :bearer-name name}) :result first)) (defn update-token! [token-details] (storage/pg-update-bearer-token! (assoc token-deta...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/back_end/domain/bearer_tokens.clj
clojure
(ns objective8.back-end.domain.bearer-tokens (:require [objective8.back-end.storage.storage :as storage])) (defn get-token [name] (-> (storage/pg-retrieve {:entity :bearer-token :bearer-name name}) :result first)) (defn update-token! [token-details] (storage/pg-update-bearer-token! (assoc token-deta...
2928dd3936267f44e0936a32d7c19fa20b5760072190413a13492589907a6076
helins/canvas.cljs
dev.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns helins.canvas.dev "For daydreaming in the repl." (:require [helins.canvas :as canvas])) ;;;;;;;;;; (def img (js/Image.)) ...
null
https://raw.githubusercontent.com/helins/canvas.cljs/85e6a7cf4a9dbec27b6644a556110c4be93d9fc6/src/dev/helins/canvas/dev.cljs
clojure
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns helins.canvas.dev "For daydreaming in the repl." (:require [helins.canvas :as canvas])) (def img (js/Image.)) (set! (....
b97b43b3deea5471487bcc8cefc70d94f724cecb568858177285bfb6dd938167
huangjs/cl
setup-mcl.lisp
setup file for cl - bench running in MCL ; ; ; ; contributed by ; ; ; ; ; ; You may need to increase the heap size allocated for MCL . 96 MB is ; ; reported to be sufficient . ( load " development : source;cl - bench;defpackage " ) ( in - package : cl - bench ) ( defun bench - gc ( ) ( ccl : gc...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/sysdep/setup-mcl.lisp
lisp
; ; ; contributed by ; ; ; ; ; ; You may need to increase the heap size allocated for MCL . 96 MB is ; ; reported to be sufficient . ( load " development : source;cl - bench;defpackage " ) ( in - package : cl - bench ) ( defun bench - gc ( ) ( ccl : gc ) ) ( defmacro with - spawned - thread ( &...
f71b7eaa1039e579d3046e6b5ab27cefa9c824a5dccf2f51532bf33e9fb92a58
jyh/metaprl
fol_struct.ml
(* * Structural rules. *) extends Base_theory open Basic_tactics (* * Hypothesis. *) prim hypothesis 'H : sequent { <H>; x: 'T; <J['x]> >- 'T } = 'x (* * Thinning. *) prim thin_many 'H 'J : ('t : sequent { <H>; <K> >- 'C }) --> sequent { <H>; <J>; < K<|H|> > >- 'C<|H;K|> } = 't interactive thin 'H :...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fol/fol_struct.ml
ocaml
* Structural rules. * Hypothesis. * Thinning. * Cut rule. * Tactics. * Add to trivialT tactic. * -*- * Local Variables: * Caml-master: "pousse" * End: * -*-
extends Base_theory open Basic_tactics prim hypothesis 'H : sequent { <H>; x: 'T; <J['x]> >- 'T } = 'x prim thin_many 'H 'J : ('t : sequent { <H>; <K> >- 'C }) --> sequent { <H>; <J>; < K<|H|> > >- 'C<|H;K|> } = 't interactive thin 'H : sequent { <H>; <J> >- 'C } --> sequent { <H>; 'A; <J> >- 'C } ...
bb4dfc59bcbf2169a5668741a6320c6ecbb46ba8697a37068635409f87089235
pedestal/pedestal
service.clj
(ns jetty-web-sockets.service (:require [io.pedestal.http :as http] [io.pedestal.log :as log] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [ring.util.response :as ring-resp] [clojure.core.async :as async] [io....
null
https://raw.githubusercontent.com/pedestal/pedestal/34fed22935716e00b002d3c6173a5c630723f161/samples/jetty-web-sockets/src/jetty_web_sockets/service.clj
clojure
Defines "/" and "/about" routes with their associated :get handlers. The interceptors defined after the verb map (e.g., {:get home-page} apply to / and its children (/about). This is just for demo purposes And now let's close it down... And now clean up Also for demo purposes... The Pedestal Websocket API perfo...
(ns jetty-web-sockets.service (:require [io.pedestal.http :as http] [io.pedestal.log :as log] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [ring.util.response :as ring-resp] [clojure.core.async :as async] [io....
730b2838dd6d18222540a5c9e7e91ff3b623bfd13047f00084b5b1f1286dc3ed
huangz1990/SICP-answers
37-cv.scm
;;; 37-cv.scm (define (cv value) (let ((connector (make-connector))) (constant value connector) connector))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp3/code/37-cv.scm
scheme
37-cv.scm
(define (cv value) (let ((connector (make-connector))) (constant value connector) connector))
768ee1262d5aa7be48ab930cabb742259c6260b86f36f4c3d97ef560c3aada12
gebi/jungerl
ex11_proto.erl
-module(ex11_proto). -author(''). %%%--------------------------------------------------------------------- Created : 14 Feb 1999 by %%% Function: The X11 protocol requests and events. %%% ==================================================================== The contents of this file are subject to the Erlang Public...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/ex11/src/ex11_proto.erl
erlang
--------------------------------------------------------------------- Function: The X11 protocol requests and events. ==================================================================== except in compliance with the License. You may obtain a copy of the License at basis, WITHOUT WARRANTY OF ANY KIND, either exp...
-module(ex11_proto). -author(''). Created : 14 Feb 1999 by The contents of this file are subject to the Erlang Public License License , Version 1.0 , ( the " License " ) ; you may not use this file Software distributed under the License is distributed on an " AS IS " The Original Code is x11 - 0 - 1 The In...
fc83a07005256a5eb8e0417c9125ff75f64f861ea272f0fecba2d0724f5b1154
jackfirth/rebellion
association-list.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [association-list (->* () #:rest key-value-list/c association-list?)] [association-list? predicate/c] [association-list-ref (-> association-list? any/c immutable-vector?)] [association-list-size (-> association-list? natural?)] [associ...
null
https://raw.githubusercontent.com/jackfirth/rebellion/2254546d674a074d5f03d1ac975acc6de58c017c/collection/association-list.rkt
racket
@------------------------------------------------------------------------------ @------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [association-list (->* () #:rest key-value-list/c association-list?)] [association-list? predicate/c] [association-list-ref (-> association-list? any/c immutable-vector?)] [association-list-size (-> association-list? natural?)] [associ...
12320a7bf2a3ae01cb21b57e2a7439c1cdd2c9083180991896875e29055f966b
ocaml/dune
ctypes_field.ml
open Import open Dune_lang.Decoder let name = "ctypes" let syntax = Dune_lang.Syntax.create ~name ~desc:"the ctypes extension" [ ((0, 1), `Since (3, 0)) ; ((0, 2), `Since (3, 4)) ; ((0, 3), `Since (3, 7)) ] module Build_flags_resolver = struct module Vendored = struct type t = { c_flags...
null
https://raw.githubusercontent.com/ocaml/dune/584d94cd7a8df7154b234f9eceedcdab59484939/src/dune_rules/ctypes/ctypes_field.ml
ocaml
open Import open Dune_lang.Decoder let name = "ctypes" let syntax = Dune_lang.Syntax.create ~name ~desc:"the ctypes extension" [ ((0, 1), `Since (3, 0)) ; ((0, 2), `Since (3, 4)) ; ((0, 3), `Since (3, 7)) ] module Build_flags_resolver = struct module Vendored = struct type t = { c_flags...
35c61de7a85b8bfd6179cf34ccdb6a66aa20d9fd7af23f38b60a9394c7ffcac6
ennocramer/floskell
ConfigFile.hs
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE CPP # module Floskell.ConfigFile ( AppConfig(..) , defaultAppConfig , findAppConfig , findAppConfigIn , readAppConfig , showStyle , showLanguage , showExtension , s...
null
https://raw.githubusercontent.com/ennocramer/floskell/cb81b1e4df0a82e6fab41ec689bd8707c8e5db5b/src/Floskell/ConfigFile.hs
haskell
# LANGUAGE OverloadedStrings # | Default program configuration. | Show name of a style. | Show a fixity declaration. | Lookup a style by name. | Lookup a language by name. | Lookup an extension by name. | Parse a fixity declaration. | Try to find a configuration file based on current working directory, or in o...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # # LANGUAGE CPP # module Floskell.ConfigFile ( AppConfig(..) , defaultAppConfig , findAppConfig , findAppConfigIn , readAppConfig , showStyle , showLanguage , showExtension , showFixity , lookupStyle , l...
a817006ea261b08f7c313bf30704b72680f804df774f61f904d3e8d7c13c01d2
ucsd-progsys/liquidhaskell
GhcSort1.hs
{-# OPTIONS_GHC -Wno-partial-type-signatures #-} {-# Language ScopedTypeVariables #-} {-# Language PartialTypeSignatures #-} -- TODO: Fix resolve so we can remove this/add termination metrics {-@ LIQUID "--no-termination" @-} module GhcSort1 () where import Language.Haskell.Liquid.Prelude @ type OList a = [ a]<{...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f8c203f8f1d4c328b24f5be456e4b9ea514bc77e/tests/pos/GhcSort1.hs
haskell
# OPTIONS_GHC -Wno-partial-type-signatures # # Language ScopedTypeVariables # # Language PartialTypeSignatures # TODO: Fix resolve so we can remove this/add termination metrics @ LIQUID "--no-termination" @ this case cannot occur, though
module GhcSort1 () where import Language.Haskell.Liquid.Prelude @ type OList a = [ a]<{\fld v - > ( v > = fld ) } > @ @ assert : : ( a ) = > [ a ] - > OList a @ sort1 :: (Ord a) => [a] -> [a] sort1 xs = mergeAll (sequences xs 0) where sequences :: [_] -> Int -> [[_]] sequences (a:b:xs) (_::Int) ...
9a230fe87d7f3499f59163436832e0fd3ecc66897c6c21202c4230763e58aa74
brendanhay/amazonka
PutTraceSegments.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/PutTraceSegments.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated < X-Ray SDK> generates in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments. Segments must include the following fields. For the full segment document schema, see in t...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
bb77094125b1e9a189b39ff03324e34e10d36127d4e86ff196e869725bf4cdff
RedPRL/algaett
Tactic.ml
include Rule
null
https://raw.githubusercontent.com/RedPRL/algaett/5685e49608aaf230f5691f3e339cd2bd3acb6ec9/src/refiner/Tactic.ml
ocaml
include Rule
36f8f8c2e482acd9e91bf5475cc0e1aed30a804e6894980d7e4f51860c7fa050
DKurilo/hackerrank
solution.hs
# LANGUAGE OverloadedStrings , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import qualified Data.List as DL import Debug.Trace import System.IO type Point = (Double, Double) type Vector = (Double, Double) data Answer = YES | NO deri...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/lambda-march-concave-polygon/solution.hs
haskell
# LANGUAGE OverloadedStrings , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import qualified Data.List as DL import Debug.Trace import System.IO type Point = (Double, Double) type Vector = (Double, Double) data Answer = YES | NO deri...
1acaf1fba767829df765ac130d851eeb992a7b7406e94e580ef8b2e909135ed2
erszcz/learning
test1_app.erl
%%%------------------------------------------------------------------- %% @doc test1 public API %% @end %%%------------------------------------------------------------------- -module(test1_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> test1_sup:start_link(). stop(_...
null
https://raw.githubusercontent.com/erszcz/learning/482c46d20a907cc541c6cd4a7648721d6d5fdbf1/rebar3-umbrella-test/apps/test1/src/test1_app.erl
erlang
------------------------------------------------------------------- @doc test1 public API @end ------------------------------------------------------------------- internal functions
-module(test1_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> test1_sup:start_link(). stop(_State) -> ok.
e46cd2c9460a12e62f1ec27e005122c079ffb824c7a00f11775fe1f049027c64
ryanpbrewster/haskell
P069.hs
module Problems.P069 ( solve , solveProblem ) where import Util.Prime (primes) solve :: String solve = show $ solveProblem 1e6 solveProblem :: Integer -> Integer solveProblem bound = last $ takeWhile (< bound) $ scanl lcm 1 primes
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P069.hs
haskell
module Problems.P069 ( solve , solveProblem ) where import Util.Prime (primes) solve :: String solve = show $ solveProblem 1e6 solveProblem :: Integer -> Integer solveProblem bound = last $ takeWhile (< bound) $ scanl lcm 1 primes
e79f76b675ce7dff152c7187012b2b1010395cc6826848a5885d6665b87ddfa7
manuel-serrano/bigloo
import1.scm
(module import1 (export (import-test1)) (export x (y::obj) (inline z::int))) (define x 1) (define (y) 1) (define-inline (z) 1) (define (import-test1) 'import-test1)
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/import1.scm
scheme
(module import1 (export (import-test1)) (export x (y::obj) (inline z::int))) (define x 1) (define (y) 1) (define-inline (z) 1) (define (import-test1) 'import-test1)
82ace85b418107bfe773c4b23bf5883451c456dd7f9824fc5995b8208cb82087
mbj/stratosphere
ArtifactConfigProperty.hs
module Stratosphere.Synthetics.Canary.ArtifactConfigProperty ( module Exports, ArtifactConfigProperty(..), mkArtifactConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.Synthetics....
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/synthetics/gen/Stratosphere/Synthetics/Canary/ArtifactConfigProperty.hs
haskell
# SOURCE #
module Stratosphere.Synthetics.Canary.ArtifactConfigProperty ( module Exports, ArtifactConfigProperty(..), mkArtifactConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data Ar...
c846ef4129e24c248c519c0e5c751e2eec49dd38471dacf4a3195c491db07030
Liqwid-Labs/plutus-extra
Extra.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # OPTIONS_GHC -Wno - orphans # module Suites.PlutusTx.Data.Extra (tests) where import Data.Kind (Type) import Prelude -------------------------------------------------------------------------------- import Test.Tasty import Test...
null
https://raw.githubusercontent.com/Liqwid-Labs/plutus-extra/7b47d92afbd8f0b2fcc21640b4c731ba93256fb6/plutus-extra/test/Suites/PlutusTx/Data/Extra.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Don't ask me.
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # OPTIONS_GHC -Wno - orphans # module Suites.PlutusTx.Data.Extra (tests) where import Data.Kind (Type) import Prelude import Test.Tasty import Test.Tasty.QuickCheck (testProperties) import Test.QuickCheck (allProperties) impo...
4d7fa18f8f112656d758c78028b19ed9c516ae723a4686711ff8b5c612e064a8
expipiplus1/vulkan
VK_EXT_shader_image_atomic_int64.hs
{-# language CPP #-} -- | = Name -- -- VK_EXT_shader_image_atomic_int64 - device extension -- -- == VK_EXT_shader_image_atomic_int64 -- -- [__Name String__] -- @VK_EXT_shader_image_atomic_int64@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 235 -- -- [__Revision__]...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_EXT_shader_image_atomic_int64.hs
haskell
# language CPP # | = Name VK_EXT_shader_image_atomic_int64 - device extension == VK_EXT_shader_image_atomic_int64 [__Name String__] @VK_EXT_shader_image_atomic_int64@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] ...
235 1 - Requires support for Vulkan 1.0 - 2020 - 07 - 14 - , AMD - , Epic Games - , AMD - , Nvidia - , Intel This extension extends existing 64 - bit integer atomic support to enable When working with large 2- or 3 - dimens...
37209c01908def4d58aaecd1e5fdef977056b6550aecdf169f6a43d3eeb3a88f
hadolint/hadolint
Pragma.hs
module Hadolint.Pragma ( ignored, globalIgnored, parseIgnorePragma, parseShell ) where import Data.Functor.Identity (Identity) import Data.Text (Text) import Data.Void (Void) import Hadolint.Rule (RuleCode (RuleCode)) import Language.Docker.Syntax import qualified Control.Foldl as Foldl import qualif...
null
https://raw.githubusercontent.com/hadolint/hadolint/135c9815932b30d57984ad485c493a443a315f25/src/Hadolint/Pragma.hs
haskell
module Hadolint.Pragma ( ignored, globalIgnored, parseIgnorePragma, parseShell ) where import Data.Functor.Identity (Identity) import Data.Text (Text) import Data.Void (Void) import Hadolint.Rule (RuleCode (RuleCode)) import Language.Docker.Syntax import qualified Control.Foldl as Foldl import qualif...
07d8950ed92978c1922931c73a02563135acfc6773eac90a61b990f64689a5ab
irastypain/sicp-on-language-racket
exercise_1_44.rkt
#lang racket (require "../lib/const.rkt" "../lib/repeated.rkt") ; Процедура сглаживания (define (smooth func) (lambda (x) (/ (+ (func (- x dx)) (func x) (func (+ x dx))) 3))) Процедура ` n`-кратного сглаживания (define (smooth-n func n) ((repe...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/src/chapter01/exercise_1_44.rkt
racket
Процедура сглаживания
#lang racket (require "../lib/const.rkt" "../lib/repeated.rkt") (define (smooth func) (lambda (x) (/ (+ (func (- x dx)) (func x) (func (+ x dx))) 3))) Процедура ` n`-кратного сглаживания (define (smooth-n func n) ((repeated (lambda (g) (smooth...
79efeb2612efe6d55fc21cf2c85eebf23d6729c1b54bb12c01987e7ef6323021
lvh/caesium
randombytes.clj
(ns caesium.randombytes "Utilities for producing cryptographically random bytes, suitable for use as a key or other input entropy." (:require [caesium.binding :as b] [caesium.byte-bufs :as bb])) (defn random-to-buf! "**DANGER** This function is low-level, you only want to use it if you are managi...
null
https://raw.githubusercontent.com/lvh/caesium/cb90a4325fa48a2e4fb6cad810f340125a53fc57/src/caesium/randombytes.clj
clojure
(ns caesium.randombytes "Utilities for producing cryptographically random bytes, suitable for use as a key or other input entropy." (:require [caesium.binding :as b] [caesium.byte-bufs :as bb])) (defn random-to-buf! "**DANGER** This function is low-level, you only want to use it if you are managi...
ef55a5314787a67e6ac7b48beae5fc6487436ea5c22445c1833c620bf957b97d
Jarzka/stylefy
main.clj
(ns stylefy.examples.ssr.main (:require [hiccup.core :refer :all] [stylefy.core :as stylefy :refer [use-style]])) (defn sub-component [message] [:span (use-style {:color :red}) message]) (defn constant-styles [] (stylefy/keyframes "simple-animation" [:from ...
null
https://raw.githubusercontent.com/Jarzka/stylefy/c4c3a9b1d230605e2d08a769d83d632e696d84a0/examples/ssr/src/clj/stylefy/examples/ssr/main.clj
clojure
(ns stylefy.examples.ssr.main (:require [hiccup.core :refer :all] [stylefy.core :as stylefy :refer [use-style]])) (defn sub-component [message] [:span (use-style {:color :red}) message]) (defn constant-styles [] (stylefy/keyframes "simple-animation" [:from ...
9288696ee097a14b6dc388e76ec971de9c39014980e1470a54e1c852f786a364
skanev/playground
08-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../08.scm") (define eopl-2.08-tests (test-suite "Tests for EOPL exercise 2.08" (check-true (empty-env? (empty-env))) (check-false (empty-env? (extend-env 'a 1 (empty-env)))) )) (exit (run-tests eopl-2.08-tests)...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/02/tests/08-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../08.scm") (define eopl-2.08-tests (test-suite "Tests for EOPL exercise 2.08" (check-true (empty-env? (empty-env))) (check-false (empty-env? (extend-env 'a 1 (empty-env)))) )) (exit (run-tests eopl-2.08-tests)...
dde610acb076c34476ae8a58d41e7e9446199226ddcbc41ac72835662bb2facb
janestreet/parsexp
test_sexp_prefix_quickcheck.ml
open! Core open! Import let round_trip_prefix prefix ~len ~parser_input ~verbose = let prefix_signifier = Sexp_prefix.get_a_signifier prefix ~parser_input in let suffix = String.drop_prefix parser_input len in if verbose then print_s [%message (prefix : Sexp_prefix.t) (prefix_signifier : string) (suf...
null
https://raw.githubusercontent.com/janestreet/parsexp/9fd77f715dfb26f740ba06948dd8b2a48c1f874e/prefix/test/test_sexp_prefix_quickcheck.ml
ocaml
Check that a value is unchanged after we round-trip some prefix of its string representation through [Prefix].
open! Core open! Import let round_trip_prefix prefix ~len ~parser_input ~verbose = let prefix_signifier = Sexp_prefix.get_a_signifier prefix ~parser_input in let suffix = String.drop_prefix parser_input len in if verbose then print_s [%message (prefix : Sexp_prefix.t) (prefix_signifier : string) (suf...
606ff940cdc59e303e4476f75f5c247a86a3717b969170b7c4e40b941905e5e2
tmattio/js-bindings
ril.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib (* unknown identifiers: - NodeJS.ReadableStream - NodeJS.WritableStream - RAL - RAL.ReadableStream - RAL.WritableStream *) [@@@js.stop] module type Missing = sig module NodeJS : sig modul...
null
https://raw.githubusercontent.com/tmattio/js-bindings/fe1d40a5b8cae157af85fa84ca482fb6b0ddf1e0/lib/vscode-jsonrpc/_gen/ril.mli
ocaml
unknown identifiers: - NodeJS.ReadableStream - NodeJS.WritableStream - RAL - RAL.ReadableStream - RAL.WritableStream
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib [@@@js.stop] module type Missing = sig module NodeJS : sig module ReadableStream : sig type t_0 val t_0_to_js: t_0 -> Ojs.t val t_0_of_js: Ojs.t -> t_0 end module WritableStre...
de6e6b711ab0ab4525ae7f2d2e5a1780b4252a362aa3c29de92b9eee4fdd2bfa
cljdoc/cljdoc
repositories_test.clj
(ns cljdoc.util.repositories-test (:require [cljdoc.util.repositories :as repositories] [clojure.test :as t])) (t/deftest find-artifact-repository-test (let [central "/" clojars "/"] (t/is (= (repositories/find-artifact-repository "org.clojure/clojure" "1.9.0") central)) (t...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/1a1c12d88d289b65ca196d49b7c41279c7fa3a51/test/cljdoc/util/repositories_test.clj
clojure
(ns cljdoc.util.repositories-test (:require [cljdoc.util.repositories :as repositories] [clojure.test :as t])) (t/deftest find-artifact-repository-test (let [central "/" clojars "/"] (t/is (= (repositories/find-artifact-repository "org.clojure/clojure" "1.9.0") central)) (t...
02ffd81fc57ecf645cad65a1a88c025634b73381c5fc5b710f20851bf9e177ef
WormBase/wormbase_rest
genetics.clj
(ns rest-api.classes.variation.widgets.genetics (:require [datomic.api :as d] [pseudoace.utils :as pace-utils] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-functions] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn gene-class [variat...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/variation/widgets/genetics.clj
clojure
(ns rest-api.classes.variation.widgets.genetics (:require [datomic.api :as d] [pseudoace.utils :as pace-utils] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-functions] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn gene-class [variat...
527fc4aa6f865b6a47d5ffeab194ddc95c542141370ab97b10ebb6097968a42c
facebookarchive/duckling_old
time.clj
( ; Context map Tuesday Feb 12 , 2013 at 4:30am is the " now " for the tests {:reference-time (time/t -2 2013 2 12 4 30 0) :min (time/t -2 1900) :max (time/t -2 2100)} "방금" "지금" (datetime 2013 2 12 4 30 00) "오늘" (datetime 2013 2 12) "어제" (datetime 2013 2 11) "내일" (datetime 2013 2 13) ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/ko/corpus/time.clj
clojure
Context map Cycles nth of Hours Mixing date and time ;; Involving periods Seasons holidays () "석가탄신일" ;skip this as it uses lunar calander (datetime 2013 5 5) "추석" ;skip this as it uses lunar calander (datetime 2013 8 15) Part of day (morning, afternoon...) Intervals involving cycles Explicit intervals "다...
( Tuesday Feb 12 , 2013 at 4:30am is the " now " for the tests {:reference-time (time/t -2 2013 2 12 4 30 0) :min (time/t -2 1900) :max (time/t -2 2100)} "방금" "지금" (datetime 2013 2 12 4 30 00) "오늘" (datetime 2013 2 12) "어제" (datetime 2013 2 11) "내일" (datetime 2013 2 13) "월요일" "이번주 월...
5835d2f1611cc93cb48dcdbf04a48a42619f880d985e81e4bcd3c791cf3da0c4
chrisdone/prana
Maybe.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Maybe Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stab...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-boot/packages/base-4.11.1.0/Data/Maybe.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Maybe License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable The Maybe type, and associated operations. --------------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 module Data.Maybe ( Maybe(Nothing,Just) , maybe , isJust , isNothing , fromJust , fromMaybe , listToMaybe , maybeToList , catMaybes , mapMaybe ) where import GHC.Bas...
6e2c09a938fe409fa91c8fec79060f600c13474f319f5d1840a3be9ce89f5b51
argp/bap
batHashcons.ml
* Hashcons -- a hashconsing library * Copyright ( C ) 2011 Batteries Included Development Team * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batHashcons.ml
ocaml
sum of the bucket sizes max ratio totsize/table length prevent resizing of newt
* Hashcons -- a hashconsing library * Copyright ( C ) 2011 Batteries Included Development Team * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version ...
0f03c988553b8df52b65f027917bf1c03f9f50acd4424537b5276ea707dd6a49
adventuring/tootsville.net
zeromq.lisp
;;;; -*- lisp -*- ;;; src / db / couch.lisp is part of ;;; Copyright © 2008 - 2017 Bruce - Robert Pocock ; © 2018 - 2021 The Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . ;;; This program is Free Software : you can redistribute it and/or modify it under the...
null
https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/db/zeromq.lisp
lisp
-*- lisp -*- © 2018 - 2021 The either version 3 of This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more det...
src / db / couch.lisp is part of Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . This program is Free Software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any later version . You ...
f81337250cc6c9fd0f44193bc5a653d61f44373091486ad7d59787ed42ac52e9
k0ral/hbro
Keys.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # {-# LANGUAGE TypeFamilies #-} -- | Key bindings model. -- Designed to be impor...
null
https://raw.githubusercontent.com/k0ral/hbro/8926b53960eb7136c4dec94eb31f2426fa34c726/library/Hbro/Keys.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # | Key bindings model. Designed to be imported as @qualified@. * Modifiers * Mode * KeyMap implementation * Interface {{{ Imports }}} {{{ Modifiers , string "S-" >> return _Shift }}} {{{ Key mode (à la vi) }}} {...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # module Hbro.Keys ( Modifier(..) , _Alt , _Control , _Shift , modifier , Mode(..) , KeyStroke , keyStrokes , KeyMap ...
898d3b7bfba3f392817a1db650ca8cef5afa2efdf87ec527628f0c61834935c4
RichiH/git-annex
Pairing.hs
git - annex assistant repo pairing , core data types - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # module Assistant.Pairing where import Annex.Common import U...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Pairing.hs
haskell
"I'll pair with anybody who shares the secret that can be used - to verify this request." "I've verified your request, and you can verify this to see - that I know the secret. I set up your ssh key already. - Here's mine for you to set up." uname -n output, not a full domain name A pairing that is in progre...
git - annex assistant repo pairing , core data types - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # module Assistant.Pairing where import Annex.Common import U...
4de0f7c5bcdb893f11e289be446cfecf61c04ee847b6db67fc8d2cb842ee4656
mbutterick/aoc-racket
star2.rkt
#lang reader "main.rkt" ★★ ; to be fair, this question had nothing to do with Racket set h 911
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d23/star2.rkt
racket
to be fair, this question had nothing to do with Racket
set h 911
98a4574b2518e8557209e9e07c4418a33794a0246c910728824d0e0e95d9a2a4
AdRoll/rebar3_format
whitespaces.erl
-module ( whitespaces ). -export ([ func/1 ] ). func (_E) -> io:format("Hi there, 2*4 is: ~s~n", [2*4] ).
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/src/whitespaces.erl
erlang
-module ( whitespaces ). -export ([ func/1 ] ). func (_E) -> io:format("Hi there, 2*4 is: ~s~n", [2*4] ).
ac87b412262821bf3cb6f7fd1203d792c4783a518495188b9b54007457bd28ea
ocaml-multicore/lockfree
atomic.ml
include Dscheck.TracedAtomic
null
https://raw.githubusercontent.com/ocaml-multicore/lockfree/6e686d5dfa9fe8278e9380a6e0e68b2e9d20288b/test/atomic/atomic.ml
ocaml
include Dscheck.TracedAtomic
ec56e6cfff0da9b9f73e3bcaab06be09494613a33b0e4c2c95edc2076e5ae7b5
ucsd-progsys/dsolve
sort.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/sort.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 GNU Library General Public License , with $ I d : sort.ml , v 1.10 2005/10/25 1...
92ebd7bfa839d7e07fff033cb9ff76e3679fb876119025268913cc9ea232d4f0
takikawa/racket-ppa
sequence.rkt
#lang racket/base (require "../common/struct-star.rkt" "config.rkt" "special.rkt" "readtable.rkt" "whitespace.rkt" "delimiter.rkt" "consume.rkt" "closer.rkt" "error.rkt" "indentation.rkt" "parameter.rkt" "wrap.rkt" ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/src/expander/read/sequence.rkt
racket
Beware that the `read-one` function is called with a configuration keeping comments, so that special comment be be handled in the sequence Found a `.`: maybe improper or maybe infix don't allow another `.` if we've seen an infix Check for infix or list termination: Improper list Infix mode Something else after ...
#lang racket/base (require "../common/struct-star.rkt" "config.rkt" "special.rkt" "readtable.rkt" "whitespace.rkt" "delimiter.rkt" "consume.rkt" "closer.rkt" "error.rkt" "indentation.rkt" "parameter.rkt" "wrap.rkt" ...
39a87c6a721f210243d5303d2874b6b9be8c2e0dbedcc85049b9612422568e9a
haroldcarr/learn-haskell-coq-ml-etc
Syntax.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Z_FullPoly.Syntax where import qualified Prelude import Protolude type Var = Text data Err = NoRuleApplies | VarLookupFailure Int Int | UnboundVar Var | NoTypeRecorded Var | WrongKindOfBinding Var |...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/f2ce69e9f80a32dc12de2b0d6bfbbcdc32534792/foundations/book/2002-TAPL-2005-ATAPL/tapl/src/Z_FullPoly/Syntax.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- Context management -------------------------------------------------------------------- Shifting let tyT_opt' = case tyT_opt of Nothing -> Nothing ...
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Z_FullPoly.Syntax where import qualified Prelude import Protolude type Var = Text data Err = NoRuleApplies | VarLookupFailure Int Int | UnboundVar Var | NoTypeRecorded Var | WrongKindOfBinding Var |...
2326e365ff0ecc47a57104b9540b5835bcd22825758a79108cd371ca457c8437
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.mediatailor.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.mediatailor/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.mediatailor.core])
250c9c8f258632f65620418a695f0a9f9fac4569e66a55e2c0f04fc9f50c12a1
GlideAngle/flare-timing
Span.hs
# OPTIONS_GHC -fno - warn - partial - type - signatures # module Cylinder.Ellipsoid.Vincenty.Span ( ZonePointFilter , spanD, csD, spD , spanR, csR, spR , zpFilter ) where import Prelude hiding (span) import Data.Ratio((%)) import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantit...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite/cylinder/Cylinder/Ellipsoid/Vincenty/Span.hs
haskell
# OPTIONS_GHC -fno - warn - partial - type - signatures # module Cylinder.Ellipsoid.Vincenty.Span ( ZonePointFilter , spanD, csD, spD , spanR, csR, spR , zpFilter ) where import Prelude hiding (span) import Data.Ratio((%)) import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantit...
5db202d711edb13f945db35b02768cc345beb4b2bdbc9ff71990dc568c87aa88
zadarnowski/postgresql-wire-protocol
Session.hs
-- | Module: Database.PostgreSQL.Protocol.Session -- Description: Low-level implementation of a PostgreSQL client session Copyright : © 2015 - 2019 < > License : BSD3 Maintainer : -- Stability: experimental -- Portability: portable -- -- This module defines a primitive low-level utilities u...
null
https://raw.githubusercontent.com/zadarnowski/postgresql-wire-protocol/00c1414ffd37b4157a335d8736a771175638dd92/src/Database/PostgreSQL/Protocol/Session.hs
haskell
| Module: Database.PostgreSQL.Protocol.Session Description: Low-level implementation of a PostgreSQL client session Stability: experimental Portability: portable This module defines a primitive low-level utilities used to establish PostgreSQL frontend (i.e., client) connections. It handles initial session ...
Copyright : © 2015 - 2019 < > License : BSD3 Maintainer : module Database.PostgreSQL.Protocol.Session ( Session, beginSession, beginSessionWithMD5Password, beginSessionWithPassword, beginSessionWith, sessionBackendPID, sessionBackendKey, sessionMajorProtocolVersion, sessionMi...
33a55697cc7238f62b78bb6b7752812b8a86ad873b7c9f4fd10dc1c9ab116ef9
ghc/testsuite
TH_spliceE5.hs
module Main where import TH_spliceE5_Lib v1 = "foo" main = putStrLn $(expandVars ["v1","v2"]) -- The splice expands to refer to both v1 and v2, -- and the test checks that we don't dependency-analyse -- the program so that one or the other isn't in scope -- to the type checker v2 = "bar"
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/th/TH_spliceE5.hs
haskell
The splice expands to refer to both v1 and v2, and the test checks that we don't dependency-analyse the program so that one or the other isn't in scope to the type checker
module Main where import TH_spliceE5_Lib v1 = "foo" main = putStrLn $(expandVars ["v1","v2"]) v2 = "bar"
b506d38043f3ed5592576fb6046e79ceed8d912b982586276e126d5c77218fa8
thoughtbot/carnival
Tasks.hs
module Tasks ( parseTask ) where import Handler.DeleteStaleComments import Import hiding ((<>)) import Options.Applicative type Task = Handler () parseTask :: IO Task parseTask = execParser $ info (helper <*> taskParser) fullDesc taskParser :: Parser Task taskParser = subparser $ command "delete-stale-c...
null
https://raw.githubusercontent.com/thoughtbot/carnival/1cd4bd02ea6884b86020029257ab69ec3892a168/Tasks.hs
haskell
module Tasks ( parseTask ) where import Handler.DeleteStaleComments import Import hiding ((<>)) import Options.Applicative type Task = Handler () parseTask :: IO Task parseTask = execParser $ info (helper <*> taskParser) fullDesc taskParser :: Parser Task taskParser = subparser $ command "delete-stale-c...
d14b429dab7171f16423eade120f9cd223414eb3693031fc50673afe3efc101f
sbcl/sbcl
hash-custom-test.pure.lisp
(with-test (:name (:hash-table :custom-hash-function :closure)) (flet ((equal-p (left right) (equal left right)) (hash (item) (sxhash item))) (let ((table (make-hash-table :test #'equal-p :hash-function #'hash))) (loop for i from 0 to 100 ...
null
https://raw.githubusercontent.com/sbcl/sbcl/61b1a8b5cb19961fde46cee8af16086d9271187e/tests/hash-custom-test.pure.lisp
lisp
(with-test (:name (:hash-table :custom-hash-function :closure)) (flet ((equal-p (left right) (equal left right)) (hash (item) (sxhash item))) (let ((table (make-hash-table :test #'equal-p :hash-function #'hash))) (loop for i from 0 to 100 ...
c9f66165f49114d7e0b621184157c7ed51dd351c34470ac500b1bad242743dba
expipiplus1/vulkan
XR_MNDX_egl_enable.hs
{-# language CPP #-} -- | = Name -- -- XR_MNDX_egl_enable - instance extension -- -- = Specification -- -- See -- <#XR_MNDX_egl_enable XR_MNDX_egl_enable> -- in the main specification for complete information. -- -- = Registered Extension Number -- 49 -- -- = Revision -- 1 -- -- = Extension and Version Dependencie...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/openxr/src/OpenXR/Extensions/XR_MNDX_egl_enable.hs
haskell
# language CPP # | = Name XR_MNDX_egl_enable - instance extension = Specification See <#XR_MNDX_egl_enable XR_MNDX_egl_enable> in the main specification for complete information. = Registered Extension Number = Revision = Extension and Version Dependencies = See Also 'GraphicsBindingEGLMNDX' = ...
49 1 - Requires OpenXR 1.0 < #XR_MNDX_egl_enable OpenXR Specification > module OpenXR.Extensions.XR_MNDX_egl_enable ( GraphicsBindingEGLMNDX(..) , MNDX_egl_enable_SPEC_VERSION , pattern MNDX_egl_enable_SPEC_VERSION ...
332e2ae976ab06eb6e7e4df873229af727b765f314dc9e68e8345e4a78aaaebe
sweirich/tal
Main.hs
module Main where import Util ( pp, runM, Display, M ) import qualified Data.Map as Map import qualified F import qualified K import qualified C import qualified A import qualified TAL import qualified Translate import Control.Monad.Except ( MonadError(throwError), unless ) import System.Exit (exitFailure) -- Run a ...
null
https://raw.githubusercontent.com/sweirich/tal/26cb787b7c66c98dcfc292913fe5c5be295a918d/src/Main.hs
haskell
Run a few test cases that produce int values ----------------------------- Helper functions for testing -----------------------------
module Main where import Util ( pp, runM, Display, M ) import qualified Data.Map as Map import qualified F import qualified K import qualified C import qualified A import qualified TAL import qualified Translate import Control.Monad.Except ( MonadError(throwError), unless ) import System.Exit (exitFailure) main :: I...
9a3f023cf0283bbd56c6976e3ad4c590779c33202e1ece2bb96ae4d6caa19037
johnwhitington/ocamli
exercise01.ml
type 'a tree = Lf | Br of 'a * 'a tree * 'a tree let rec member_tree x tr = match tr with Lf -> false | Br (y, l, r) -> x = y || member_tree x l || member_tree x r
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%2011/exercise01.ml
ocaml
type 'a tree = Lf | Br of 'a * 'a tree * 'a tree let rec member_tree x tr = match tr with Lf -> false | Br (y, l, r) -> x = y || member_tree x l || member_tree x r
afe54929e1dabcc9e34aac4e5dc8ac358658dee2fe60264ddc157f77582b59b7
tweag/ormolu
multiple-blank-line-comment-out.hs
module A where a = b [ f {-, -} ]
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/other/multiple-blank-line-comment-out.hs
haskell
,
module A where a = b [ f ]