_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
47f831df4d4fd746eb9b14971c4f53d3ef757e6ce415607f014b6cdbe629c600
ocharles/blog
2013-12-13-async.hs
import Control.Concurrent.Async import Control.Concurrent type Child = String naughtyChildrenAround :: String -> Int -> IO [Child] naughtyChildrenAround _ _ = do threadDelay 1000000 return [ "Ben", "Renzo" ] waitExample :: IO () waitExample = do putStrLn "Requesting a list of naughty children" search <- asyn...
null
https://raw.githubusercontent.com/ocharles/blog/fa8e911d3c03b134eee891d187a1bb574f23a530/code/2013-12-13-async.hs
haskell
import Control.Concurrent.Async import Control.Concurrent type Child = String naughtyChildrenAround :: String -> Int -> IO [Child] naughtyChildrenAround _ _ = do threadDelay 1000000 return [ "Ben", "Renzo" ] waitExample :: IO () waitExample = do putStrLn "Requesting a list of naughty children" search <- asyn...
eebcc1c43ad66806c81842cebc34b3f4deb1b2f5b389758e00ef7e668e5558ab
babashka/babashka
test_runner.clj
(ns portal.test-runner (:require [clojure.test :refer [run-tests]] [portal.jvm-test] [portal.runtime.cson-test] [portal.runtime.fs-test])) (defn -main [] (let [{:keys [fail error]} (run-tests 'portal.jvm-test 'portal.runtime.cson-test ...
null
https://raw.githubusercontent.com/babashka/babashka/665ae4dd97535bf72a5ce34a19d624e74e5c4fe8/test-resources/lib_tests/portal/test_runner.clj
clojure
(ns portal.test-runner (:require [clojure.test :refer [run-tests]] [portal.jvm-test] [portal.runtime.cson-test] [portal.runtime.fs-test])) (defn -main [] (let [{:keys [fail error]} (run-tests 'portal.jvm-test 'portal.runtime.cson-test ...
e7ae2181dfd164fcbebdc5b7935eaed943fa480d8e4228712f50f40858b42ee4
jackfirth/rebellion
hash.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [immutable-hash? predicate/c] [mutable-hash? predicate/c] [empty-hash empty-immutable-hash?] [empty-immutable-hash? predicate/c] [nonempty-immutable-hash? predicate/c] [in-hash-entries (-> immutable-hash? (sequence/c entry?))] [in-...
null
https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/collection/hash.rkt
racket
@------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [immutable-hash? predicate/c] [mutable-hash? predicate/c] [empty-hash empty-immutable-hash?] [empty-immutable-hash? predicate/c] [nonempty-immutable-hash? predicate/c] [in-hash-entries (-> immutable-hash? (sequence/c entry?))] [in-...
f65b13b3208c4dddc00367933f67a30122b7887e9796cd7f3ebc70ecdb92dba8
rd--/hsc3
metro.help.hs
-- metro X.metro ar 60 1 -- metro let b = xLine kr 60 120 5 DoNothing m = X.metro kr b 1 o = sinOsc ar 440 0 * 0.1 in decay m 0.2 * o -- metro let b = range 30 240 (lfNoise2Id 'α' kr 0.2) n = dseqId 'β' dinf (mce [1,0.25,0.5,0.25]) in decay (X.metro kr b n) 0.2 * sinOsc ar 440 0 * 0.1
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/metro.help.hs
haskell
metro metro metro
X.metro ar 60 1 let b = xLine kr 60 120 5 DoNothing m = X.metro kr b 1 o = sinOsc ar 440 0 * 0.1 in decay m 0.2 * o let b = range 30 240 (lfNoise2Id 'α' kr 0.2) n = dseqId 'β' dinf (mce [1,0.25,0.5,0.25]) in decay (X.metro kr b n) 0.2 * sinOsc ar 440 0 * 0.1
ca379a38c1a86934464772fb95ffba45c0dbe3ab375af3a57f8b94a78fbde62e
shortishly/tansu
tansu_api_keys_resource.erl
Copyright ( c ) 2016 < > %% 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/shortishly/tansu/154811fff81855419de9af380c81c7ae14e435d0/src/tansu_api_keys_resource.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissi...
Copyright ( c ) 2016 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(tansu_api_keys_resource). -export([allowed_methods/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -expor...
21dba586d9b5ad3036bbb117a6537d3ca947dcfa05ec43c314cbf38525530ee9
ml4tp/tcoq
explainErr.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/toplevel/explainErr.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Registration of generic errors ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open CErrors open Ind...
1a11c5a4e5c53370fa61a71fecc64ba8929d1fd4c139fe6d8cd8d2e66a56af31
msp-strath/Mary
Version.hs
# LANGUAGE TemplateHaskell # module Mary.Version where import Control.Monad (guard) import Data.Version (showVersion) import Development.GitRev import qualified Paths_mary as Mary version :: String version = showVersion Mary.version ++ maybe "" ('-':) commit commit :: Maybe String commit = do let hash = $(gitHas...
null
https://raw.githubusercontent.com/msp-strath/Mary/d805849e6da4133093564077d2344815155d7e5e/src/Mary/Version.hs
haskell
# LANGUAGE TemplateHaskell # module Mary.Version where import Control.Monad (guard) import Data.Version (showVersion) import Development.GitRev import qualified Paths_mary as Mary version :: String version = showVersion Mary.version ++ maybe "" ('-':) commit commit :: Maybe String commit = do let hash = $(gitHas...
9a12b57bd28c0407990aee1470d71965c7d8d7ce1f6370c8fcb42df376981165
janestreet/merlin-jst
printtyp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/9c3b60c98d80b56af18ea95c27a0902f0244659a/upstream/ocaml_414/typing/printtyp.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Ctype open Format open Longident open Path open Asttypes open Types open Btype open Outcometree module...
374a1ae40d408add7d55cca12ad0a728b6b204bcef6fc5e368636968509342a4
tmattio/spin
user_config.mli
type t = { author_name : string option ; email : string option ; github_username : string option ; create_switch : bool option } val of_dec : Dec_user_config.t -> t val read : ?path:string -> unit -> (t option, Spin_error.t) Result.t val save : ?path:string -> t -> (unit, Spin_error.t) Result.t val prompt...
null
https://raw.githubusercontent.com/tmattio/spin/e9955109659d5246a492b6b1312a4c3eb001e86b/lib/spin/user_config.mli
ocaml
type t = { author_name : string option ; email : string option ; github_username : string option ; create_switch : bool option } val of_dec : Dec_user_config.t -> t val read : ?path:string -> unit -> (t option, Spin_error.t) Result.t val save : ?path:string -> t -> (unit, Spin_error.t) Result.t val prompt...
5a57a8b23856fb48a8758b9db113da059befd04d4d330c104432acaa2f4d987c
adrieng/melitte
Error.ml
type error = | Internal of string | Syntax of Position.t * string | Unbound_identifier of Position.t * Name.t | Could_not_synthesize of Position.t | Incompatible_types of { loc : Position.t; expected : PPrint.document; actual : PPrint.document; } | Unexpected_ty...
null
https://raw.githubusercontent.com/adrieng/melitte/d354e4c142216cd6dc45902932b5258deb2b2a11/src/Error.ml
ocaml
type error = | Internal of string | Syntax of Position.t * string | Unbound_identifier of Position.t * Name.t | Could_not_synthesize of Position.t | Incompatible_types of { loc : Position.t; expected : PPrint.document; actual : PPrint.document; } | Unexpected_ty...
0ec80272bb4e0e8c24cd9cb032e225940c4daba89a521bd4d0d7745c42ff6c38
sebastiaanvisser/fclabels
Partial.hs
| lenses where the getters and updates can potentially silently fail . Partial lenses are useful for creating accessor labels for multi constructor data types where projection and modification of fields will not always succeed . fail. Partial lenses are useful for creating accessor labels for multi constructor...
null
https://raw.githubusercontent.com/sebastiaanvisser/fclabels/5592f40af5a3a8af4afa45abf1035ce6495d7442/src/Data/Label/Partial.hs
haskell
* Seemingly total modifications. * Potentially removing modification. # INLINE lens # # INLINE get # # INLINE modify # # INLINE set # # INLINE embed # # INLINE set' # # INLINE modify' # | Partial lens type for situations in which the accessor functions can fail. -------------------------------------...
| lenses where the getters and updates can potentially silently fail . Partial lenses are useful for creating accessor labels for multi constructor data types where projection and modification of fields will not always succeed . fail. Partial lenses are useful for creating accessor labels for multi constructor...
f13509b4f63033c11c2b03ab35906f881ee912069867708205cf00041a5e9900
alonsodomin/groot
TaskDef.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Groot.CLI.List.TaskDef ( ListTaskDefsOpts , listTaskDefsOpts , printTaskDefsSummary , TaskDefFilterPart(..) ) where import Cont...
null
https://raw.githubusercontent.com/alonsodomin/groot/040215db2797bef27b1c336ea826a58ddd45f8de/src/Groot/CLI/List/TaskDef.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Groot.CLI.List.TaskDef ( ListTaskDefsOpts , listTaskDefsOpts , printTaskDefsSummary , TaskDefFilterPart(..) ) where import Control.Lens import Control.Monad.IO.Class import Data.Conduit...
ee3b6a1333a4424ea9b5b0677898297cf4dca205c44c080f91a41f2d8e18c675
rd--/hsc3
Binary.hs
-- | Binary encoders and decoders. module Sound.Sc3.Server.Graphdef.Binary where import System.FilePath {- filepath -} import qualified Data.Binary.Get as Get {- binary -} import qualified Data.Binary.IEEE754 as IEEE754 {- data-binary-ieee754 -} import qualified Data.ByteString.Lazy as L {- bytestring -} import qual...
null
https://raw.githubusercontent.com/rd--/hsc3/7dc748106639999947548d0b3205a468cfc55fed/Sound/Sc3/Server/Graphdef/Binary.hs
haskell
| Binary encoders and decoders. filepath binary data-binary-ieee754 bytestring hosc hosc hosc hsc3 | Get_Functions for binary .scsyndef files. * Read * Stat | 'read_graphdef_file' and run 'graphdef_stat'. | 'Encode_Functions' for 'L.ByteString' | Encode 'Graphdef'. * IO
module Sound.Sc3.Server.Graphdef.Binary where * Binary Get ( version 0|1 or 2 ) | Get a ' Name ' ( string ) . get_pstr :: Get.Get Name get_pstr = do n <- fmap fromIntegral Get.getWord8 fmap Byte.decode_ascii (Get.getLazyByteString n) binary_get_f :: Get_Functions Get.Get binary_get_f = (get_pstr ,fm...
26dfa905e625485f37a882e706cf9875ba441cf3a55990af6a3f3ee8fbf37719
icicle-lang/icicle-ambiata
Checker.hs
| a Query , returning the annotated query and return type # LANGUAGE PatternGuards # # LANGUAGE NoImplicitPrelude # module Icicle.Source.Checker.Checker ( checkQT , checkQ ) where import Icicle.Source.Checker.Base import Icicle.Source.Checker.Error import I...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-source/src/Icicle/Source/Checker/Checker.hs
haskell
| Check a top-level Query, returning the query with type annotations and casts inserted.
| a Query , returning the annotated query and return type # LANGUAGE PatternGuards # # LANGUAGE NoImplicitPrelude # module Icicle.Source.Checker.Checker ( checkQT , checkQ ) where import Icicle.Source.Checker.Base import Icicle.Source.Checker.Error import I...
022618c85b29d89786fdfb28327a285e7c8d5927fb81bae5ab00322f4818985b
pirapira/coq2rust
evd.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/pretyping/evd.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Generic filters * In both cases w...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
0f46f9a84a0ac4b0e7c9b1bbe84727cac8f87498bf86fbc6f968ac327ed6b145
anmonteiro/ocaml-h2
config.ml
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/3a8f8986ce4dafb5644a51610f93d77752e5657e/lib/config.ml
ocaml
Buffer size for request bodies Buffer size for response bodies TODO(anmonteiro): validate the default somewhere.
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
8c04db624899d44b60dfe8065a692b3541490df4f4613b2d2b80ec766576c263
conormcd/clj-honeycomb
core_test.clj
(ns clj-honeycomb.core-test (:require [clojure.data.json :as json] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :refer (check with-instrument-disabled)] [clojure.test :refer (are deftest is testing)] [stub-http.core :...
null
https://raw.githubusercontent.com/conormcd/clj-honeycomb/f309bf3b85af2239f4172189fcd934076306240b/test/clj_honeycomb/core_test.clj
clojure
By hardcoding these transport options here, this test will also detect changes in the underlying libhoney-java library. Make sure they have the same keys Check each key in turn so that the errors are more readable This has no assertions. It's here purely so that we can generate some known serialisation issues. W...
(ns clj-honeycomb.core-test (:require [clojure.data.json :as json] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :refer (check with-instrument-disabled)] [clojure.test :refer (are deftest is testing)] [stub-http.core :...
ed1e830cc14e81e2af99f919fe55cd254361a72abf50ea0542b956d8a1e167a2
tweag/ormolu
dollar-chains-4-out.hs
ex2 = f1 $ arg1 $ arg2 $ f2 arg3
null
https://raw.githubusercontent.com/tweag/ormolu/1f63136d047205f95b7d3c0f6aa34c34bb29ac7f/data/examples/declaration/value/function/infix/dollar-chains-4-out.hs
haskell
ex2 = f1 $ arg1 $ arg2 $ f2 arg3
6febbc754be3c71b2cfdfdaf36f25ccecd951b2e994e829f9263e0c5c73cbe8d
rabbitmq/rabbitmq-shovel
amqp10_shovel_SUITE.erl
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 /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(amqp10_shovel_SUITE). -compile(export_al...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-shovel/f9f4e95343a81aea093687b0fd610711bd3f70ac/test/amqp10_shovel_SUITE.erl
erlang
=================================================================== Common Test callbacks =================================================================== =================================================================== Test cases =================================================================== fake some ...
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 /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(amqp10_shovel_SUITE). -compile(export_all). -...
f7b2f030af6cae45a5ba217e3cf32d365bd1875ca3c6700067549eb994036020
jarvinet/scheme
ackermann.scm
; Ackermann's function (define (A x y) (if (= y 0) 0 (if (= x 0) (* 2 y) (if (= y 1) 2 (A (- x 1) (A x (- y 1)))))))
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/test/ackermann.scm
scheme
Ackermann's function
(define (A x y) (if (= y 0) 0 (if (= x 0) (* 2 y) (if (= y 1) 2 (A (- x 1) (A x (- y 1)))))))
f03190fdd009f291a98dc72f97d30983d4bb1b0f12a49146f41a7636e0cc4775
repl-acement/repl-acement
team_names.cljc
(ns replacement.specs.team-names) (def nums (range 1367 9637)) (def en+es [:alligator-caimán :almonds-almendras :apple-manzana :art-arte :aunt-tía :autumn-otoño :baby-bebé :bad-malo :banana-plátano :bank-banco :beach-playa :beans-frijoles :bear-oso :bed-cama :bedroom-dormit...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/0a043e1ca790b04cad2af2f5151c613742dd55c7/repl-specs/replacement/specs/team_names.cljc
clojure
(ns replacement.specs.team-names) (def nums (range 1367 9637)) (def en+es [:alligator-caimán :almonds-almendras :apple-manzana :art-arte :aunt-tía :autumn-otoño :baby-bebé :bad-malo :banana-plátano :bank-banco :beach-playa :beans-frijoles :bear-oso :bed-cama :bedroom-dormit...
cecf8974ba918a04de57413f0001e2693759c29bc9e6f748d1b1f13438df7901
subtitle-master/subtitlemaster
test_helper.cljs
(ns sm.test-helper (:require-macros [cljs.core.async.macros :refer [go]]) (:require [sm.protocols :as sm] [cljs.core.async :as async])) (def subdb-sandbox "/") (def subdb-test-hash "edc1981d6459c6111fe36205b4aff6c2") (defn fake-provider [res] (reify INamed (-name [_] "fake") sm/SearchPr...
null
https://raw.githubusercontent.com/subtitle-master/subtitlemaster/d88c2fb007c6c3d4030fefbd4b7e3eafb0e797a9/test/cljs/sm/test_helper.cljs
clojure
(ns sm.test-helper (:require-macros [cljs.core.async.macros :refer [go]]) (:require [sm.protocols :as sm] [cljs.core.async :as async])) (def subdb-sandbox "/") (def subdb-test-hash "edc1981d6459c6111fe36205b4aff6c2") (defn fake-provider [res] (reify INamed (-name [_] "fake") sm/SearchPr...
eee896ff9194631d3f9da102e0750f03868a2f1e8ddd7db43e9aa2f861a641eb
clojure-interop/aws-api
IdempotentUtils.clj
(ns com.amazonaws.util.IdempotentUtils "Utility class to manage idempotency token" (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util IdempotentUtils])) (defn ->idempotent-utils "Constructor." (^IdempotentUtils [] (new IdempotentUtils ))) (defn *resolve-string "Deprecated. B...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.util/src/com/amazonaws/util/IdempotentUtils.clj
clojure
(ns com.amazonaws.util.IdempotentUtils "Utility class to manage idempotency token" (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util IdempotentUtils])) (defn ->idempotent-utils "Constructor." (^IdempotentUtils [] (new IdempotentUtils ))) (defn *resolve-string "Deprecated. B...
c9a135b6bc01406350876ffd50909b6fb0af7c4696c0deb9a7a55e21c3c8ee85
vsedach/Vacietis
program-tests.lisp
(in-package #:vacietis.test.program) (eos:in-suite vacietis.test::program-tests) (program-test main-return :return-code 7) (program-test main-return-include :return-code 8) (program-test main-return-include1 :return-code 9) (program-test include-libc :return-code 64) (program-test define-function1 :return-code 2)...
null
https://raw.githubusercontent.com/vsedach/Vacietis/50c1b82a9f906c270cd8cbc7a1fe7f7281ebad2f/test/program-tests.lisp
lisp
(in-package #:vacietis.test.program) (eos:in-suite vacietis.test::program-tests) (program-test main-return :return-code 7) (program-test main-return-include :return-code 8) (program-test main-return-include1 :return-code 9) (program-test include-libc :return-code 64) (program-test define-function1 :return-code 2)...
e635d5602d8fb873f1640b81cdfc24cc7265c1915de3dfbdc59875b80ec4eab5
mivoq/hunpos
file_node.ml
class type file_type = object method get_short : string method set_short : string -> unit method get_long : string method set_long : string -> unit end;; class type file_node = object method set_loc : int -> unit method get_loc : int method set_loc_comments : int -> unit metho...
null
https://raw.githubusercontent.com/mivoq/hunpos/0f0f775039fa749e67711c07ac681a16c0979349/ocaml-cmake/examples/code-analysis/file_node.ml
ocaml
class type file_type = object method get_short : string method set_short : string -> unit method get_long : string method set_long : string -> unit end;; class type file_node = object method set_loc : int -> unit method get_loc : int method set_loc_comments : int -> unit metho...
1262d467d1373ede0911acf083c1f7c8f9ad1688a038808f82b01e4b53489371
racket/racket7
mkincludes.rkt
;; This is used to create the include directory. Should be called with three command - line arguments : 1 . The include directory that should be created , 2 . The location of the src / racket directory , 3 . The location of mzconfig . written in # % kernel because it 's loaded with -c ( ie , no compiled fil...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/racket/mkincludes.rkt
racket
This is used to create the include directory.
Should be called with three command - line arguments : 1 . The include directory that should be created , 2 . The location of the src / racket directory , 3 . The location of mzconfig . written in # % kernel because it 's loaded with -c ( ie , no compiled files ) (module mkincludes '#%kernel (#%require '...
8c492ca6f4f5dab8c0d8c6d59bbbe0b3aa31a2bebdd8d30b0be191c66193ee94
ddmcdonald/sparser
initialization.lisp
;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 2013 -- all rights reserved ;;; ;;; File: "initialization" ;;; Module: "objects/doc/" version : October 2013 ;; Initiated 10/3/13 to consolitate calls to initialize document ;; elements into a single place. OBSOLETE -- goe...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/1c3a1c13bc5b6cc4a435c2681ae322b6a620de13/Sparser/code/s/objects/doc/initialization.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "initialization" Module: "objects/doc/" Initiated 10/3/13 to consolitate calls to initialize document elements into a single place.
copyright ( c ) 2013 -- all rights reserved version : October 2013 OBSOLETE -- goes with Grok - era document model (in-package :sparser) (defun initialize-document-element-resources () (declare (special *recognize-sections-within-articles* *note-text-relations*)) (when *recogn...
b24fe721bd44621eed12dfb477c94f0a7fd30fa0d9ee17aa6e11961c807737ff
pfdietz/cover
cover-package.lisp
(defpackage #:cover (:use #:cl) (:shadow #:defun #:defmacro #:defmethod #:defgeneric #:in-package) (:export #:annotate report reset forget forget-all *line-limit* cover-compile-hook))
null
https://raw.githubusercontent.com/pfdietz/cover/b2beedbfe4f7806ce901863f14d1ea80df74f011/cover-package.lisp
lisp
(defpackage #:cover (:use #:cl) (:shadow #:defun #:defmacro #:defmethod #:defgeneric #:in-package) (:export #:annotate report reset forget forget-all *line-limit* cover-compile-hook))
c415613360a43ba36397ae499edb22df66c8428b52f8614a13e95036c9a81e20
fission-codes/fission
Types.hs
-- | Configuration for Send In Blue API Requests module Fission.Web.Server.Environment.SendInBlue.Types (Environment (..)) where import Fission.Prelude import qualified Fission.Web.API.Host.Types as Web import qualified Fission.Web.Server.Email.SendInBlue.Types as SIB data Environment = Env...
null
https://raw.githubusercontent.com/fission-codes/fission/2c333b43b854ad7132d5645d200b8d8847a1ea46/fission-web-server/library/Fission/Web/Server/Environment/SendInBlue/Types.hs
haskell
| Configuration for Send In Blue API Requests ^ API Key for SendInBlue ^ Base url for API ^ Verification email template ID ^ Recovery email template ID ^ Recovery app url to link in recovery emails
module Fission.Web.Server.Environment.SendInBlue.Types (Environment (..)) where import Fission.Prelude import qualified Fission.Web.API.Host.Types as Web import qualified Fission.Web.Server.Email.SendInBlue.Types as SIB data Environment = Environment } deriving (Show, Eq) instance FromJS...
46ae25522d73c13120e54f4e5c8005f1220714f20f1841ab590035e59e27b7ab
janestreet/ppx_expect
trailing.ml
open! Core (* Example with trailing output after last [%expect] node *) let%expect_test _ = print_string "hello"; [%expect {| hello |}]; print_string "goodbye\n" ;; let%expect_test _ = print_string "foo"; [%expect {| foo |}]; print_string "bar" ;; let%expect_test _ = print_string "hello world"; [%ex...
null
https://raw.githubusercontent.com/janestreet/ppx_expect/01f39037d82080508e511aee1db2c894ff990e9e/negative-tests/trailing.ml
ocaml
Example with trailing output after last [%expect] node
open! Core let%expect_test _ = print_string "hello"; [%expect {| hello |}]; print_string "goodbye\n" ;; let%expect_test _ = print_string "foo"; [%expect {| foo |}]; print_string "bar" ;; let%expect_test _ = print_string "hello world"; [%expect {| hello world |}] ;;
d3c18d7ae9f122543052784aa1e7d56eaeb7a2aeb8efe0647b4cce754cbb0c04
CodyReichert/qi
accumulation.lisp
;;;; -*- lisp -*- (in-package :it.bese.arnesi.test) (eval-when (:compile-toplevel :load-toplevel :execute) (def-suite :it.bese.arnesi.accumulation :in :it.bese.arnesi)) (in-suite :it.bese.arnesi.accumulation) (test make-reducer (let ((r (make-reducer #'+ 0))) (funcall r 0) (funcall r 1 2) (funcall ...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/arnesi-master/t/accumulation.lisp
lisp
-*- lisp -*-
(in-package :it.bese.arnesi.test) (eval-when (:compile-toplevel :load-toplevel :execute) (def-suite :it.bese.arnesi.accumulation :in :it.bese.arnesi)) (in-suite :it.bese.arnesi.accumulation) (test make-reducer (let ((r (make-reducer #'+ 0))) (funcall r 0) (funcall r 1 2) (funcall r 1 2 3) (is (...
a6502b9a57455a269bc5857fc92880280a7182dc3d8be2fa8588fe8dbe5fc37e
MyDataFlow/ttalk-server
proper_unused_imports_remover.erl
Copyright 2015 - 2015 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/src/proper_unused_imports_remover.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr 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 General Public License fo...
Copyright 2015 - 2015 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Pub...
3031f8fcc358d8fb0caa33e384d6d7cf9aa656923c14fd2e898562356642ca70
ekmett/comonad
Composition.hs
{-# LANGUAGE Safe #-} module Data.Functor.Composition ( Composition(..) ) where import Data.Functor.Compose | We often need to distinguish between various forms of Functor - like composition in Haskell in order to please the type system . -- This lets us work with these representations uniformly. class Composition...
null
https://raw.githubusercontent.com/ekmett/comonad/a56373d8981cee27cb3f07ca144565f4164047e1/src/Data/Functor/Composition.hs
haskell
# LANGUAGE Safe # This lets us work with these representations uniformly.
module Data.Functor.Composition ( Composition(..) ) where import Data.Functor.Compose | We often need to distinguish between various forms of Functor - like composition in Haskell in order to please the type system . class Composition o where decompose :: o f g x -> f (g x) compose :: f (g x) -> o f g x insta...
02dcfea5de785ac59cb0bf636dcd0baeab3f7f14d78a5876186fffeaf62fa7cc
dmitryvk/sbcl-win32-threads
gray-streams-class.lisp
class definitions for the SBCL Gray streams implementation , based on the CMU CL Gray streams implementation , based on the stream - definition - by - user proposal by This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is in the public domain and is...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/pcl/gray-streams-class.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. Bootstrap the FUNDAMENTAL-STREAM class. Define the stream classes. as example code. example character input and output streams (defclass character-output-...
class definitions for the SBCL Gray streams implementation , based on the CMU CL Gray streams implementation , based on the stream - definition - by - user proposal by This software is part of the SBCL system . See the README file for (in-package "SB-GRAY") (let ((sb-pcl::*pcl-class-boot* 'fundamental-s...
98b0490ebaea0128779ce90e180ec50a4061cc8170939e8c1aadb143988e5765
spechub/Hets
Diagnosis.hs
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # | Module : Persistence.Diagnosis.hs Copyright : ( c ) Uni Magdeburg 2017 License : GPLv2 or higher , see LICENSE.txt Maintainer : < > Stability : provi...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Persistence/Diagnosis.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # | Module : Persistence.Diagnosis.hs Copyright : ( c ) Uni Magdeburg 2017 License : GPLv2 or higher , see LICENSE.txt Maintainer : < > Stability : provi...
7d699a98e235b5ab55dac7d1ef0aa62ab07e4979a4c198a12f980a767520cce8
jimweirich/sicp-study
ex2_07.scm
SICP 2.7 Exercise 2.7 . 's program is incomplete because she has not ;; specified the implementation of the interval abstraction. Here is a ;; definition of the interval constructor. ;; (define (make-interval a b) (cons a b)) ;; Define selectors upper-bound and lower-bound to complete the ;; implementation. ...
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter2/ex2_07.scm
scheme
specified the implementation of the interval abstraction. Here is a definition of the interval constructor. (define (make-interval a b) (cons a b)) Define selectors upper-bound and lower-bound to complete the implementation. ANSWER ------------------------------------------------------------
SICP 2.7 Exercise 2.7 . 's program is incomplete because she has not (define (make-interval lower-bound upper-bound) (cons lower-bound upper-bound)) (define (lower-bound interval) (car interval)) (define (upper-bound interval) (cdr interval))
c40316a18a83665232bce30ca8b9dcc41003d60abc7cdf5a8d0475a6d2a6d0b2
tanakh/ICFP2011
UnstableSayaka.hs
{-# OPTIONS -Wall #-} import Data.IORef import Data.Vector ((!)) import qualified Data.Vector as V import LTG hiding(($<), ($>)) import System.Environment import System.IO import System.IO.Unsafe import System.Exit import System.Random randRatio :: IORef Double randRatio = unsafePerformIO (newIORef 0) slotRange :: I...
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/nushio/UnstableSayaka.hs
haskell
# OPTIONS -Wall # v[1] <- (Attack from) v[0] <- to v[1] <- apply v[1] v[0] v[0] <- value v[1] <- apply v[1] v[0] inject zombie that attack v[0] <- K dmg Inject! the function you wish to execute!
import Data.IORef import Data.Vector ((!)) import qualified Data.Vector as V import LTG hiding(($<), ($>)) import System.Environment import System.IO import System.IO.Unsafe import System.Exit import System.Random randRatio :: IORef Double randRatio = unsafePerformIO (newIORef 0) slotRange :: IORef Int slotRange = u...
d1f7ccd1899964d4c9748081290789fbbbc2976de03925dfba85c64d4bb44380
klutometis/clrs
9.2-3.scm
(require-extension syntax-case check) (require '../9.2/section) (import section-9.2) ;;; Iteration (of sorts); with tail-call optimization, is ;;; iterative/recursive really a useful distinction? (let ((vector (vector 3 2 9 0 7 5 4 8 6 1))) (randomized-select-iter vector 0 (- (vector-length vector) 1) 5))
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/9.2/9.2-3.scm
scheme
Iteration (of sorts); with tail-call optimization, is iterative/recursive really a useful distinction?
(require-extension syntax-case check) (require '../9.2/section) (import section-9.2) (let ((vector (vector 3 2 9 0 7 5 4 8 6 1))) (randomized-select-iter vector 0 (- (vector-length vector) 1) 5))
11f05ae4f174b022c95076e9c111012dfcde4624acf100840bef57cab68ff57e
haskell-compat/base-compat
Repl.hs
{-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # -- | Reexports "Data.Bitraversable.Compat" -- from a globally unique namespace. module Data.Bitraversable.Compat.Repl ( module Data.Bitraversable.Compat ) where import "this" Data.Bitraversable.Compat
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Data/Bitraversable/Compat/Repl.hs
haskell
# LANGUAGE PackageImports # | Reexports "Data.Bitraversable.Compat" from a globally unique namespace.
# OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # module Data.Bitraversable.Compat.Repl ( module Data.Bitraversable.Compat ) where import "this" Data.Bitraversable.Compat
2aac9df8ee24840635751b9e82d01c8d6f6b7c1371536e8413c5c017322e16f8
soarlab/FPTaylor
taylor_form.mli
(* ========================================================================== *) : A Tool for Rigorous Estimation of Round - off Errors (* *) Author : , University of Utah (* ...
null
https://raw.githubusercontent.com/soarlab/FPTaylor/efbbc83970fe3c9f4cb33fafbbe1050dd18749cd/taylor_form.mli
ocaml
========================================================================== ========================================================================== -----------...
: A Tool for Rigorous Estimation of Round - off Errors Author : , University of Utah This file is distributed under the terms of the MIT license type error_info = { index : int; The upper bound of the error is 2^exp exp : int; } type taylo...
86f08984ac015de291cdd668f02891de59df71838ae1b53f7a44ddc57858b48b
emqx/emqx
emqx_misc_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2018 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/test/emqx_misc_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2018 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_misc_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eun...
a7fa112b5e9e2d8392e43e667ab23d1dac0b485e5decd874022917bc7758ab96
inhabitedtype/ocaml-aws
restoreDBClusterFromSnapshot.ml
open Types open Aws type input = RestoreDBClusterFromSnapshotMessage.t type output = RestoreDBClusterFromSnapshotResult.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_op...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/restoreDBClusterFromSnapshot.ml
ocaml
open Types open Aws type input = RestoreDBClusterFromSnapshotMessage.t type output = RestoreDBClusterFromSnapshotResult.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_op...
81cd4f2da72b912201c75e273a597e03608a4a36da86244aee66ab430c3da503
typedclojure/typedclojure
gen_doc.clj
(ns gen-doc (:require [codox.main :as codox])) (defn -main [& args] (codox/generate-docs {:language :clojure :source-uri "/{git-commit}/typed/cljs.checker/{filepath}#L{line}" :output-path "target/codox"}) (shutdown-agents) (System/exit 0))
null
https://raw.githubusercontent.com/typedclojure/typedclojure/45556897356f3c9cbc7b1b6b4df263086a9d5803/typed/cljs.checker/script/gen_doc.clj
clojure
(ns gen-doc (:require [codox.main :as codox])) (defn -main [& args] (codox/generate-docs {:language :clojure :source-uri "/{git-commit}/typed/cljs.checker/{filepath}#L{line}" :output-path "target/codox"}) (shutdown-agents) (System/exit 0))
e95a32b320c99c38d9b743ec6e3cbfa8ff611dc862b59b682a004203bfa0f1a4
dongcarl/guix
mingw.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 Jan Nieuwenhuizen < > Copyright © 2018 < > Copyright © 2019 < > Copyright © 2021 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU Gen...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/mingw.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 Jan Nieuwenhuizen < > Copyright © 2018 < > Copyright © 2019 < > Copyright © 2021 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (g...
c3b0be383b3ec1b5c89a46136d8d99300989be04229d3676a1899245c59bd3ae
brendanhay/terrafomo
HCL.hs
| HCL ( HashiCorp Configuration Language ) is a structured configuration language that is both human and machine friendly for use with command - line tools , but specifically targeted towards DevOps tools , servers , etc . This module defines direct - encoding and overloading of values to HCL encoding . ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/terrafomo/src/Terrafomo/HCL.hs
haskell
Quoted text | An encoder should produce a series of configuration pairs suitable
| HCL ( HashiCorp Configuration Language ) is a structured configuration language that is both human and machine friendly for use with command - line tools , but specifically targeted towards DevOps tools , servers , etc . This module defines direct - encoding and overloading of values to HCL encoding . ...
e070ad7e3320c1f7830918fb614c6b923ab4d2779147977ed0977d0d6a96cb8a
poroh/ersip
ersip_uas_test.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% UAS tests %% -module(ersip_uas_test). -include_lib("eunit/include/eunit.hrl"). %%%=================================================================== %%% Cases %%%============...
null
https://raw.githubusercontent.com/poroh/ersip/60afa92a53898f6692f3a30d04b5b88a580c8153/test/ersip_uas_test.erl
erlang
All rights reserved. =================================================================== Cases =================================================================== Not Allowed) response. The Allow header field MUST list the =================================================================== Helpers =============...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . UAS tests -module(ersip_uas_test). -include_lib("eunit/include/eunit.hrl"). uas_basic_test() -> REGISTERSipMsg = register_request(), ProcessResult = ersip_uas:process_request(REGISTERSipMsg, allow...
d302c6afd9caa26504c574cd81c8ba2036af8f36fff33a38891e1ba5858d8c71
haskell/hackage-server
Cron.hs
# LANGUAGE NamedFieldPuns # module Distribution.Server.Framework.Cron ( Cron, CronJob(..), JobFrequency(..), newCron, addCronJob, ) where import Control.Concurrent import Control.Exception import Control.Monad import qualified Data.Map as Map import Data.Map (Map) import Data.List import Data.Time im...
null
https://raw.githubusercontent.com/haskell/hackage-server/6c8689a779b688b3e6b927614c90318936d5bb3f/src/Distribution/Server/Framework/Cron.hs
haskell
add more as needed ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Annoyingly, threadDelay takes an Int number of microseconds, so we c...
# LANGUAGE NamedFieldPuns # module Distribution.Server.Framework.Cron ( Cron, CronJob(..), JobFrequency(..), newCron, addCronJob, ) where import Control.Concurrent import Control.Exception import Control.Monad import qualified Data.Map as Map import Data.Map (Map) import Data.List import Data.Time im...
6998db4f792117c5d92ff4d52476a0b8aaff19bb0aac61737b11b546215c1edb
haskell-opengl/OpenGLRaw
DrawInstanced.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.DrawInstanced Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/DrawInstanced.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.DrawInstanced License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Functions
Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.DrawInstanced ( glGetEXTDrawInstanced, gl_EXT_draw_instanced, glDrawArraysInstancedEXT, glDrawElementsInstancedEXT ) where import Graphics.GL.ExtensionPredicates import Graphics.GL.Functions
a3f7e1e0a9b8421822c29a8a0c779b796f85e0a6d9217f4bd4ce29954faae1d1
jkvor/epm
bitbucket_api.erl
%% OMFG, this API sucks. %% %% explain to me how this is even remotely useful: %% jacobvorreuter$ curl "" %% { " count " : 12 , %% "query": "rebar", %% "repositories": [ %% { %% "website": "", %% "slug": "rebar", %% "name": "rebar", " follower...
null
https://raw.githubusercontent.com/jkvor/epm/36e9f9701f3f5dcf1a0dd4c6f95cd620b224a871/src/bitbucket_api.erl
erlang
OMFG, this API sucks. explain to me how this is even remotely useful: jacobvorreuter$ curl "" { "query": "rebar", "repositories": [ { "website": "", "slug": "rebar", "name": "rebar", "description": "" }, { "...
" count " : 12 , " followers_count " : 0 , " followers_count " : 0 , -module(bitbucket_api). -behaviour(api_behavior). -export([package_deps/3, search/1, info/2, tags/2, branches/2, download_package/2, default_vsn/0]). -include_lib("xmerl/include/xmerl.hrl"). -include("epm.hrl"). pa...
3a52e55d3acce206f8ae74210c18ed40cf70b57e16015270644b15c6430854fb
spell-music/amsterdam
Plastic2.hs
| additional parameters : irise , This design uses a LINSEG envelope which is different from the previous one . The envelope produces a large and fast increase of the amplitudes in the rise . Both for instruments 02_13_1 and 02_13_1B the rise time itself is 50 msec . It is somewhat larger than in most actua...
null
https://raw.githubusercontent.com/spell-music/amsterdam/ab491022c7826c74eab557ecd11794268f5a5ae0/02-additive-synth-same-units/Plastic2.hs
haskell
| additional parameters : irise , This design uses a LINSEG envelope which is different from the previous one . The envelope produces a large and fast increase of the amplitudes in the rise . Both for instruments 02_13_1 and 02_13_1B the rise time itself is 50 msec . It is somewhat larger than in most actua...
e09fc8dc42a657bd906a20036793abc94e2d5b957cf416c33c2f2d1c8fb098c8
valderman/haste-compiler
JSString.hs
# OPTIONS_GHC -fno - warn - unused - binds # # LANGUAGE OverloadedStrings , ForeignFunctionInterface , CPP , MagicHash , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} -- | JSString standard functions, to make them a more viable alternative to -- the horribly inefficient stand...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/haste-lib/src/Haste/JSString.hs
haskell
| JSString standard functions, to make them a more viable alternative to the horribly inefficient standard Strings. implementing slicing, etc. in constant time. All functions are supported on both client and server, with the exception of 'match', 'matches', 'regex' and 'replace', which are wrappers on to...
# OPTIONS_GHC -fno - warn - unused - binds # # LANGUAGE OverloadedStrings , ForeignFunctionInterface , CPP , MagicHash , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} Many functions have linear time complexity due to JavaScript engines not JavaScript 's native regular e...
63622c20dcdb62b5e4e26e5d6f89650c7cb0d547d9cfe930332c634b6493aa9c
darkleaf/publicator
post_mapper.clj
(ns publicator.persistence.storage.post-mapper (:require [hugsql.core :as hugsql] [publicator.domain.aggregates.post :as post] [publicator.persistence.storage :as persistence.storage]) (:import [publicator.domain.aggregates.post Post])) (hugsql/def-db-fns "publicator/persistence/storage/post_mapper.sql...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/persistence/src/publicator/persistence/storage/post_mapper.clj
clojure
(ns publicator.persistence.storage.post-mapper (:require [hugsql.core :as hugsql] [publicator.domain.aggregates.post :as post] [publicator.persistence.storage :as persistence.storage]) (:import [publicator.domain.aggregates.post Post])) (hugsql/def-db-fns "publicator/persistence/storage/post_mapper.sql...
dc6c96f50e251ba8fb3a5a5720d7c20428876b146af87bd66beb056117b068e5
avsm/mirage-duniverse
xenstore.ml
* Copyright ( c ) 2013,2014 Citrix Systems Inc * * 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 " A...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/vchan/lib/xenstore.ml
ocaml
If there are no more connections to remote_domid, remove the whole directory
* Copyright ( c ) 2013,2014 Citrix Systems Inc * * 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 " A...
2aea2a2766aa8d08295963071f533b7bfbe2f6f19db557d70cde0a5a01ca3fd7
inhabitedtype/ocaml-aws
modifyInstanceMetadataOptions.mli
open Types type input = ModifyInstanceMetadataOptionsRequest.t type output = ModifyInstanceMetadataOptionsResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/modifyInstanceMetadataOptions.mli
ocaml
open Types type input = ModifyInstanceMetadataOptionsRequest.t type output = ModifyInstanceMetadataOptionsResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
566de0b393ec07ae7afac116e8fdcce4122732280745fe99055096b7bfd85dd7
s-expressionists/Cleavir
simple-unwind.lisp
(in-package #:cleavir-bir-transformations) ;;; In some cases, the dynamic environment of a nonlocal unwind ;;; can be understood statically. For example, in ;;; (block nil (mapcar (lambda (x) (return x)) list)), ;;; the lambda will be called in the same dynamic environment as ;;; the mapcar is called in, assuming a re...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/cbb5f9f672b2ead2157678c7a0430d6f57743be1/BIR-transformations/simple-unwind.lisp
lisp
In some cases, the dynamic environment of a nonlocal unwind can be understood statically. For example, in (block nil (mapcar (lambda (x) (return x)) list)), the lambda will be called in the same dynamic environment as the mapcar is called in, assuming a reasonable implementation of mapcar, and so the return/unwin...
(in-package #:cleavir-bir-transformations) This insertion can and probably should be done back in AST - to - BIR , require some changes in the BIR representation of nonlocal exits . (defvar *seen*) (defgeneric simple-dynenv-p (dynenv dest system) (:method ((dynenv bir:dynamic-environment) (dest bir:...
03c02c6b3de73afef3bf80663e48c7fa85b3f2cef35379b8b743d33ce79bf31e
babashka/babashka
data.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/src/babashka/impl/clojure/data.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns ^{:author "Stuart Halloway", :doc "Non-core data functions."} babashka.impl.clojure.data (:require [clojure.set :as set])) (set! *warn-on-reflection* true) (declare diff) (defn- atom-diff "Internal helper for diff." [a b] (if (= a b) [nil nil a] [a ...
d0d284690c4c9c1da7fdd222fbd91659a9a89a7317224018f25e081dae021091
robeverest/cufft
Setup.hs
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # The MIN_VERSION_Cabal macro was introduced with Cabal-1.24 ( ? ? ) #ifndef MIN_VERSION_Cabal #define MIN_VERSION_Cabal(major1,major2,minor) 0 #endif import Distribution.PackageDescriptio...
null
https://raw.githubusercontent.com/robeverest/cufft/4ca4d3b834369ce2f1ae5c37f4ab93d41f901512/Setup.hs
haskell
# LANGUAGE QuasiQuotes # Configuration ------------- #static-library but client packages (e.g. accelerate-fft) will fail with an error such as: > dyld: lazy symbol binding failed: Symbol not found: ___cudaRegisterLinkedBinary_72_tmpxft_000005ef_00000000_15_fft_dimension_class_multi_compute_60_cpp1_ii_466e4...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # The MIN_VERSION_Cabal macro was introduced with Cabal-1.24 ( ? ? ) #ifndef MIN_VERSION_Cabal #define MIN_VERSION_Cabal(major1,major2,minor) 0 #endif import Distribution.PackageDescription import Distribution.Simple import...
c23118b700905cece07a98ed62588d0d72a927d9e01fc746107b344ef69d6e45
corecursive/sicp-study-group
table.scm
A global two - dimensional association table provided by MIT / GNU Scheme (define (put key1 key2 value) (2d-put! key1 key2 value)) (define (get key1 key2) (2d-get key1 key2))
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/82b92a9759ed6c72d15cf955c806ce2a94336f83/wulab/lecture-4b/generic-operation/table.scm
scheme
A global two - dimensional association table provided by MIT / GNU Scheme (define (put key1 key2 value) (2d-put! key1 key2 value)) (define (get key1 key2) (2d-get key1 key2))
f69a3ee7b216cc7d820467b76dfbeb52b2d04bb3e051427d759629b5a781a081
erlang/percept
percept_image.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2016 . All Rights Reserved . %% 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 appli...
null
https://raw.githubusercontent.com/erlang/percept/44ee3ca98bcd37dfab691072e953131107ebec55/src/percept_image.erl
erlang
%CopyrightBegin% 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 ...
Copyright Ericsson AB 2007 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(percept_image). -export([ proc_lifetime/5, percentage/3, graph/3, graph/4, activities/3, activi...
fd4a796fd06c065fd399e80810c198448c7a6750c2593362da6d40f47586e13d
webyrd/mediKanren
neo-server.rkt
#lang racket/base (provide serve DEFAULT_PORT) (require "../../logging2.rkt" "../neo-low-level/query-low-level-multi-db.rkt" "../neo-open-api/neo-api-query.rkt" "../neo-reasoning/neo-biolink-reasoning.rkt" "../neo-utils/neo-helpers-multi-db.rkt" racket/file racket/match racket/set racket/port racket...
null
https://raw.githubusercontent.com/webyrd/mediKanren/00613221a5c6b043e0cb71298cf6708c51e75f4d/medikanren2/neo/neo-server/neo-server.rkt
racket
Number of seconds before a connection times out, collecting all tutorial). Per-servelet memory limit (due to garbage collection overhead, ** `tcp-listen` settings ** From the Racket documentation for `tcp-listen` in -lang.org/reference/tcp.html: "The max-allow-wait argument determines the maximum number of cl...
#lang racket/base (provide serve DEFAULT_PORT) (require "../../logging2.rkt" "../neo-low-level/query-low-level-multi-db.rkt" "../neo-open-api/neo-api-query.rkt" "../neo-reasoning/neo-biolink-reasoning.rkt" "../neo-utils/neo-helpers-multi-db.rkt" racket/file racket/match racket/set racket/port racket...
9f31ca28a43c4f5e3be2f35e60fee0139b0bc11eaf060c5dd6868734e04b1e8d
liquidz/antq
third_party_test.clj
(ns antq.dep.github-action.third-party-test (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action.third-party :as sut] [antq.record :as r] [clojure.test :as t])) (defn- git-tag-dependency [m] (r/map->Dependency (assoc m :type :github-tag))) (defn- java-dependency [m] ...
null
https://raw.githubusercontent.com/liquidz/antq/71563266d314cffb69862684de5af75182ee1daf/test/antq/dep/github_action/third_party_test.clj
clojure
(ns antq.dep.github-action.third-party-test (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action.third-party :as sut] [antq.record :as r] [clojure.test :as t])) (defn- git-tag-dependency [m] (r/map->Dependency (assoc m :type :github-tag))) (defn- java-dependency [m] ...
befc0539b982e1257358b7a91fa49d80510813c18a9c015a044c10b6adb64180
incanter/incanter
main.clj
(ns incanter.main (:require org.dipert.swingrepl.main) (:use [incanter core charts io datasets]) (:gen-class)) (defn -main [& args] (org.dipert.swingrepl.main/make-repl-jframe {:on-close javax.swing.JFrame/EXIT_ON_CLOSE}))
null
https://raw.githubusercontent.com/incanter/incanter/e0a03aac237fcc60587278a36bd2e76266fc6356/src/incanter/main.clj
clojure
(ns incanter.main (:require org.dipert.swingrepl.main) (:use [incanter core charts io datasets]) (:gen-class)) (defn -main [& args] (org.dipert.swingrepl.main/make-repl-jframe {:on-close javax.swing.JFrame/EXIT_ON_CLOSE}))
8a323c48a370027ed0300aacf797e570980237a39a1c1714b173274035b1f3b7
informatimago/lisp
norvig-graph.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** FILE : norvig-graph.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: clisp USER - INTERFACE : clisp ;;;;DESCRIPTION ;;;; This file extracts the requires sexps from the sour...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/cl-loaders/norvig-graph.lisp
lisp
**************************************************************************** LANGUAGE: Common-Lisp SYSTEM: clisp DESCRIPTION LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that ...
-*- coding : utf-8 -*- FILE : norvig-graph.lisp USER - INTERFACE : clisp This file extracts the requires sexps from the sources and builds a dependency graph to be displayed by ) . < PJB > MODIFICATIONS 2003 - 05 - 16 < PJB > Created . AGPL3 Copyright 2003...
6fd2b199fa1d9fd2a4fbd7544314c80acacf58ccec9bbf9113275ddd63904a67
DSiSc/why3
hashcons.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/util/hashcons.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception * Hash tables for hash consing Hash consing tables are using weak pointers , so that values that ar...
e6fcad61e812ee8d7d33322a18cdf0e6adfc5af8adfbb990cacdba43a3859d0a
tommaisey/aeon
command.scm
;; scsynth commands (define b-alloc (lambda (b nf nc) (message "/b_alloc" (list b nf nc)))) (define b-alloc-read (lambda (b fn f0 n) (message "/b_allocRead" (list b fn f0 n)))) (define b-alloc-read-channel (lambda (nid p f n cs) (message "/b_allocReadChannel" (append (list nid p f n) cs)))) (define b-close (lambda (i)...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/src/command.scm
scheme
scsynth commands
(define b-alloc (lambda (b nf nc) (message "/b_alloc" (list b nf nc)))) (define b-alloc-read (lambda (b fn f0 n) (message "/b_allocRead" (list b fn f0 n)))) (define b-alloc-read-channel (lambda (nid p f n cs) (message "/b_allocReadChannel" (append (list nid p f n) cs)))) (define b-close (lambda (i) (message "/b_close"...
f63f3486b2e17beebc217acb9ed52fc8a6c6d9208376a8174d325ee7cf1e6ffb
google/codeworld
GameServer.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # Copyright 2020 The CodeWorld Authors . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; ...
null
https://raw.githubusercontent.com/google/codeworld/77b0863075be12e3bc5f182a53fcc38b038c3e16/codeworld-game-server/src/CodeWorld/GameServer.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # Server state | counts only broadcasted game message Server state manipulation fill holes Statistics Handling logic | Initializes the mutable state of the game server | A snap handler
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # Copyright 2020 The CodeWorld Authors . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License...
94d53b72bf4601d45a22fd5fd24c836a4bd38c0c699d18498905dd11c6127e85
johnwickerson/memalloy
graphviz.ml
MIT License Copyright ( c ) 2017 by and . 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 , copy , modi...
null
https://raw.githubusercontent.com/johnwickerson/memalloy/aa15776873fe3440cb7f5dae8e174466689d4fba/src/graphviz.ml
ocaml
* Graphviz node * Graphviz edge * Graphviz graph * Pretty-print a graph
MIT License Copyright ( c ) 2017 by and . 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 , copy , modi...
3291dd3d246b0acb419b3ba5d7a422889f82d3c59e57f0bb2547ea0e76abdc93
google/proto-lens
no_package_test.hs
# LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} module Main where import Data.ProtoLens import Lens.Family2 ((&), (.~), (^.)) import Test.Tasty.HUnit (testCase, (@=?)) import Data.ProtoLens.TestUtil (TestTree, testMain) import Proto.NoPackage import Proto.NoPackage_Fields main :: IO () main = testMai...
null
https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-tests/tests/no_package_test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE OverloadedLists # module Main where import Data.ProtoLens import Lens.Family2 ((&), (.~), (^.)) import Test.Tasty.HUnit (testCase, (@=?)) import Data.ProtoLens.TestUtil (TestTree, testMain) import Proto.NoPackage import Proto.NoPackage_Fields main :: IO () main = testMain [testNames] testNames :: TestTre...
1a1ad3c5373bc603c73b4002da1ab91f445b0b4fc9522ef09278f439f9cd466a
db48x/xe2
narration.lisp
;;; narration.lisp --- log and narrate gameplay Copyright ( C ) 2009 Author : < > ;; Keywords: ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , ...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/narration.lisp
lisp
narration.lisp --- log and narrate gameplay Keywords: This program is free software; you can redistribute it and/or modify (at your option) any later version. 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...
Copyright ( C ) 2009 Author : < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :xe2) Verbosity determines when a message is...
725dff93bce61541f5b6f90d3df605a20509bf73265a4c95044a1aa974a51b08
nuty/rapider
info.rkt
#lang info (define collection 'multi) (define deps '("base" "sxml" "gregor" "html-parsing")) (define pkg-desc "implementation (no documentation) part of \"rapider\"") (define pkg-authors '(rosso))
null
https://raw.githubusercontent.com/nuty/rapider/f167aa91522788e70affd49e8f350cd055dba3c4/rapider-lib/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base" "sxml" "gregor" "html-parsing")) (define pkg-desc "implementation (no documentation) part of \"rapider\"") (define pkg-authors '(rosso))
ec87b5d7bc6f6fe2c65178c37223a9f95b283ec6f0a056a691a11bcd9dc8fb64
ds26gte/tex2page
kawa-tex2page.rkt
last change : 2016 - 12 - 14 ;don't know how to make shell-magic line for , so we 'll assume user will do explicit ;load (scmxlate-ignore ;get-arg1 ;main ) ;(scmxlate-uncall main) (define *scheme-version* "Kawa 1.6.99") (define *operating-system* 'unix) (define getenv (lambda (ev) #f)) (scmxlate-unca...
null
https://raw.githubusercontent.com/ds26gte/tex2page/fb664716e062fe56e2963367d14e4732bdc93813/dialects/kawa-tex2page.rkt
racket
don't know how to make shell-magic line for load get-arg1 main (scmxlate-uncall main) Returns true if f is true of some elt in s appends s1 and s2 destructively (s1 may be modified)
last change : 2016 - 12 - 14 , so we 'll assume user will do explicit (scmxlate-ignore ) (define *scheme-version* "Kawa 1.6.99") (define *operating-system* 'unix) (define getenv (lambda (ev) #f)) (scmxlate-uncall require ) (define eof (call-with-input-string "" read)) (define file-or-directory-mod...
142667e6a3169adef38d715d8d062314530bb749137b5a8d02316d39a02c0266
antoniogarrote/egearmand-server
client_proxy.erl
-module(client_proxy) . %% @doc %% A proxy redirecting messages to a client connection. It %% also listen for additional messages from the client. -author("Antonio Garrote Hernandez") . -behaviour(gen_server) . -include_lib("states.hrl"). -export([start_link/2, send/2, client_process_connection/2, close/1, gearman...
null
https://raw.githubusercontent.com/antoniogarrote/egearmand-server/45296fb40e3ddb77f71225121188545a371d2237/src/client_proxy.erl
erlang
@doc A proxy redirecting messages to a client connection. It also listen for additional messages from the client. Public API @doc Starts a new client for socket Socket and global identifier Identifier. @doc Sends data to the client socket with proxy identified globally by Identifier. @doc Sends data to the cl...
-module(client_proxy) . -author("Antonio Garrote Hernandez") . -behaviour(gen_server) . -include_lib("states.hrl"). -export([start_link/2, send/2, client_process_connection/2, close/1, gearman_message/3]) . -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, forward_exception/2]). start_...
eb8c78094db30acd4d22709bdb7e9f418ab86b6f349b134188111741ea8217e2
fluree/db
permissions.cljc
(ns fluree.db.permissions (:require [fluree.db.dbproto :as dbproto] [fluree.db.dbfunctions.core :as dbfunctions] [#?(:cljs cljs.cache :clj clojure.core.cache) :as cache] [fluree.db.util.async :refer [<? go-try]] [clojure.core.async :refer [go <!] :as async] ...
null
https://raw.githubusercontent.com/fluree/db/27999d15dcd90053119b06c6eb19c24fff137a56/src/fluree/db/permissions.cljc
clojure
permissions are placed on a collection or predicate cache for function generation root! - with root, no other rules matter global default, if predicate does exist, we ignore predicate predicate(s), all collections but predicate specified A collection predicate, a collection default for this collection will no lo...
(ns fluree.db.permissions (:require [fluree.db.dbproto :as dbproto] [fluree.db.dbfunctions.core :as dbfunctions] [#?(:cljs cljs.cache :clj clojure.core.cache) :as cache] [fluree.db.util.async :refer [<? go-try]] [clojure.core.async :refer [go <!] :as async] ...
658d9fda174ba1293125fa0f09fad29faf195a4590f97795f382218be638868c
danlentz/printv
lock.lisp
-*- mode : common - lisp ; common - lisp - style : modern ; coding : utf-8 ; -*- ;;;;; In order to eliminate any dependecies for the PRINTV system , and because ;;; only such a limited functionality is required (make-recursive-lock ;;; and with-recursive-lock-held) portable implementations have been ;;; inc...
null
https://raw.githubusercontent.com/danlentz/printv/646d31978dbbb460fffb160fd65bb2be9a5a434e/lock.lisp
lisp
common - lisp - style : modern ; coding : utf-8 ; -*- only such a limited functionality is required (make-recursive-lock and with-recursive-lock-held) portable implementations have been incorporated from bordeaux-threads, in accordance with the following licensing terms: Permission is hereby granted, fre...
In order to eliminate any dependecies for the PRINTV system , and because files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARR...
244979b0f81f54e546e84ae5ee59d1ce5584f2975642cde04cd076d582b4cf0e
statusfailed/cartographer-string-diagrammatic-reasoning
Match.hs
module Data.Hypergraph.Test.Match where import Test.Tasty import Test.Tasty.QuickCheck as QC import Data.Hypergraph import Data.Hypergraph.Test.Arbitrary import Data.List (sort) import Data.Bimap (Bimap) import qualified Data.Bimap as Bimap import qualified Data.Map.Strict as Map import Debug.Trace ---------------...
null
https://raw.githubusercontent.com/statusfailed/cartographer-string-diagrammatic-reasoning/7559db3f6de17dfa2dc13a6bf29f95c9cebcf7c4/cartographer-core/tests/Data/Hypergraph/Test/Match.hs
haskell
----------------------------- Tests , QC.testProperty "prop_matchAfter" prop_matchAfter ----------------------------- Size in nodes + edges of a Matching Size in nodes + edges of an OpenHypergraph ----------------------------- Properties | A pattern always matches in itself at least once. It can be more - for exa...
module Data.Hypergraph.Test.Match where import Test.Tasty import Test.Tasty.QuickCheck as QC import Data.Hypergraph import Data.Hypergraph.Test.Arbitrary import Data.List (sort) import Data.Bimap (Bimap) import qualified Data.Bimap as Bimap import qualified Data.Map.Strict as Map import Debug.Trace tests = testGr...
be6e466a8980d441dca248f0f4126505dfa306c7c75ed4343c38128c61cd5d44
chaoxu/fancy-walks
80.hs
import Data.Char isqrt :: Integer -> Integer isqrt n = fst . head $ dropWhile (\(a,b) -> a + 1 /= b && a /= b) $ iterate (\(_,x) -> (x, (x + div n x) `div` 2)) (-1, 1) sqrt100 n = if digits `mod` 10^110 == 0 then 0 else sum $ map digitToInt $ take 100 $ show digits where digits = isqrt (n * 10^220) maybe [ ...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/80.hs
haskell
import Data.Char isqrt :: Integer -> Integer isqrt n = fst . head $ dropWhile (\(a,b) -> a + 1 /= b && a /= b) $ iterate (\(_,x) -> (x, (x + div n x) `div` 2)) (-1, 1) sqrt100 n = if digits `mod` 10^110 == 0 then 0 else sum $ map digitToInt $ take 100 $ show digits where digits = isqrt (n * 10^220) maybe [ ...
cf1557c60c2170b2bf3ae2a1a4e82bcb722c4570c5c4d399e1a67e0826273944
ichko/fmi-fp-2020-21
class.hs
a = 3 b = 10 * a едноредов коментар {-- многоредов коментар --} sum' a b = a + b s = 10 `sum'` 3 -- функционален факториел factorial 0 = 1 factorial n = n * factorial (n - 1) greet :: [Char] -> String greet name = "Hello " ++ name -- не толкова функционално написан факториел factorial' n = if n == 0 ...
null
https://raw.githubusercontent.com/ichko/fmi-fp-2020-21/83dea8db7666e7a8a372d82301d71c79d5b798ff/week-01/class.hs
haskell
- многоредов коментар - функционален факториел не толкова функционално написан факториел
a = 3 b = 10 * a едноредов коментар sum' a b = a + b s = 10 `sum'` 3 factorial 0 = 1 factorial n = n * factorial (n - 1) greet :: [Char] -> String greet name = "Hello " ++ name factorial' n = if n == 0 then 1 else n * factorial' (n - 1) Как да комплираме файл
06704fad895c51140225aaa0518167273bbad7486c49ecb71da866497bffe6fb
ff-notes/ron
Time.hs
{-# OPTIONS -Wno-orphans #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} -- | 'Day' instances module RON.Data.Time (Day) where import RON.Prelude import Data.Time (Day, fromGregorian, toGregorian) import RON.Data (Replicated (..), ReplicatedAsPayload (..), ...
null
https://raw.githubusercontent.com/ff-notes/ron/0df2b7985996ecc498808ea7247d0d8de471da4f/ron-rdt/lib/RON/Data/Time.hs
haskell
# OPTIONS -Wno-orphans # # LANGUAGE OverloadedStrings # | 'Day' instances
# LANGUAGE LambdaCase # module RON.Data.Time (Day) where import RON.Prelude import Data.Time (Day, fromGregorian, toGregorian) import RON.Data (Replicated (..), ReplicatedAsPayload (..), payloadEncoding) import RON.Types (Atom (..)) instance Repli...
57bc81f10eac191c6a0a49133d883bed53fef5ab3a496a4afa78ac30abd9da8b
guix-science/guix-science
bioconductor.scm
;;; Copyright © 2022 < > ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at ;;; your option) any later version. ;;; ;;; This program is distrib...
null
https://raw.githubusercontent.com/guix-science/guix-science/c37502566c2f1b85f1dc67a985a8536cff6f4dfe/guix-science/packages/bioconductor.scm
scheme
This program is free software; you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. 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 PARTI...
Copyright © 2022 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define-module (guix-science packages bioconductor) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix do...
db44e2b6322da57ab80fb7c5e30ed4c0198fe70dd88122e013cf01ba20c7a374
ghollisjr/cl-ana
hdf-typespec.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Li...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-typespec/hdf-typespec.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana 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 General Public License...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
c4eba2ca7a96d9c5e0e22f3df82f5ea3400ce36c3436bcbf99f56c276ca20bdd
shamazmazum/neural-classifier
package.lisp
(defpackage neural-classifier (:use #:cl #:alexandria) (:export #:neural-network #:neural-network-layout #:neural-network-input-trans #:neural-network-output-trans #:neural-network-input-trans% #:neural-network-label-trans ;; Activation functions ...
null
https://raw.githubusercontent.com/shamazmazum/neural-classifier/bbc833b93817dde9072110d358c58ae1058c102b/src/package.lisp
lisp
Activation functions
(defpackage neural-classifier (:use #:cl #:alexandria) (:export #:neural-network #:neural-network-layout #:neural-network-input-trans #:neural-network-output-trans #:neural-network-input-trans% #:neural-network-label-trans #:activation #:...
3eebbc28ffc0672ef24ab414cf620a32bc011af9266f5f2119eb37f2046a04e0
genenetwork/guix-bioinformatics
helm.scm
(define-module (gn packages helm) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression)) (define-public helm (package (name "helm") ...
null
https://raw.githubusercontent.com/genenetwork/guix-bioinformatics/9e1e668e4f9f9e2b595620fda831da0525db4095/gn/packages/helm.scm
scheme
(define-module (gn packages helm) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression)) (define-public helm (package (name "helm") ...
8895f8c43bdee374ddc255ee1dbaac653ca5b2ec53d4057834c7e71a09d27db7
pfdietz/ansi-test
pprint-newline.lsp
;-*- Mode: Lisp -*- Author : Created : We d Jul 7 07:48:01 2004 Contains : Tests of PPRINT - NEWLINE (in-package :cl-test) (defmacro def-pprint-newline-test (name form expected-value &rest key-args) `(def-pprint-test ,name (with-output-to-string (*standard-output*) (pprint-lo...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/printer/pprint-newline.lsp
lisp
-*- Mode: Lisp -*- T designates the stream *terminal-io* No stream is standard output :linear :miser :fill :mandatory Error cases
Author : Created : We d Jul 7 07:48:01 2004 Contains : Tests of PPRINT - NEWLINE (in-package :cl-test) (defmacro def-pprint-newline-test (name form expected-value &rest key-args) `(def-pprint-test ,name (with-output-to-string (*standard-output*) (pprint-logical-block (*standard-o...
2136f92557fea0986405e26612d646b04633a27daccde8cb39f998e227a92558
the-real-blackh/sodium-2d-game-engine
crate-webgl.hs
import CrateCrush import FRP.Sodium.GameEngine2D.Platform (engine) import FRP.Sodium.GameEngine2D.WebGL main = do let args = WebGLArgs "resources" game <- crateCrush args engine args game
null
https://raw.githubusercontent.com/the-real-blackh/sodium-2d-game-engine/fb765eb50d39f0297274c2d24cd71dcec2dc2c2a/examples/crate-crush/crate-webgl.hs
haskell
import CrateCrush import FRP.Sodium.GameEngine2D.Platform (engine) import FRP.Sodium.GameEngine2D.WebGL main = do let args = WebGLArgs "resources" game <- crateCrush args engine args game
650bb8b22e87ca3d0583fce32840bd62a610bf888b361b46a6b86a0fca66b607
input-output-hk/cardano-ledger
CBOR.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Test.Cardano.Chain.Common.CBOR ( tests, ) where import Cardano.Chain.Common ( AddrAttributes (..), AddrSpendingData (..), AddrType (..), Attributes (.....
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/byron/ledger/impl/test/Test/Cardano/Chain/Common/CBOR.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Address -------------------------------------------...
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Test.Cardano.Chain.Common.CBOR ( tests, ) where import Cardano.Chain.Common ( AddrAttributes (..), AddrSpendingData (..), AddrType (..), Attributes (..), BlockCount (..), ChainDiffic...
c3fe1c794f061bdd11f4ebf3ce76b190386ddeab3d9c4d97c95c6b55a00500a5
emqx/emqx
emqx_metrics_worker.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/13f1ab6344422619d985b257fd161f18995c71c0/apps/emqx/src/emqx_metrics_worker.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_metrics_worker). -behaviour(gen_server). -include_lib("stdlib/include/ms_transfor...
d4a9a194fdb5041609b9a994e3cc6619e216e336e44c6d7565258d76634c54a2
ndmitchell/catch
Convert.hs
module Star.Convert(starToRegExp) where import RegExp.Type import Star.Type starToRegExp :: (Show a, Eq a) => Star a -> RegExp a starToRegExp x = case x of StarCon xs -> regConcat (map starToRegExp xs) StarUni xs -> regUnion (map starToRegExp xs) StarLit x -> regLit x Omega ->...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Star/Convert.hs
haskell
module Star.Convert(starToRegExp) where import RegExp.Type import Star.Type starToRegExp :: (Show a, Eq a) => Star a -> RegExp a starToRegExp x = case x of StarCon xs -> regConcat (map starToRegExp xs) StarUni xs -> regUnion (map starToRegExp xs) StarLit x -> regLit x Omega ->...
ba892182fd0784527aab4faf67fd01a5b33ef9c8c250a8b22bcdab52e6db84c4
GaloisInc/tower
Simple.hs
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} # OPTIONS_GHC -fno - warn - orphans # module Main where import Ivory.Tower import...
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower-aadl/test-echronos/Simple.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Main where import Ivory.Tower import Ivory.Language import Tower.AADL import Ivory.Tower.Config simpleTow...
c8972db9f6d64fcdc493ece6648f98aee82d8b894f44166380c215d7eded1369
reflectionalist/S9fES
string-case.scm
Scheme 9 from Empty Space , Function Library By , 2009,2010 ; Placed in the Public Domain ; ; (string-upcase string) ==> string ; (string-downcase string) ==> string ; ; (load-from-library "string-case.scm") ; ; Return a fresh string containing the characters of STRING, but ; with the case of alphabetic ch...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/string-case.scm
scheme
Placed in the Public Domain (string-upcase string) ==> string (string-downcase string) ==> string (load-from-library "string-case.scm") Return a fresh string containing the characters of STRING, but with the case of alphabetic characters converted. STRING-UPCASE converts characters to upper case, STRING...
Scheme 9 from Empty Space , Function Library By , 2009,2010 Example : ( string - upcase " Hello , World ! " ) = = > " HELLO , WORLD ! " ( string - downcase " Hello , World ! " ) = = > " hello , world ! " (load-from-library "string-map.scm") (define (string-downcase s) (string-map ...
513d9a162cdc13eedb487fee11fce0e8641a6449bc17c3f32755bed13feb9f32
dradtke/Lisp-Text-Editor
packages.lisp
(in-package #:common-lisp-user) (defpackage #:metabang.bind (:use #:common-lisp) (:nicknames #:bind #:metabang-bind) (:intern #:bind-generate-bindings #:bind-filter-declarations #:bind-macro-helper #:bind-fix-nils) (:export #:bind #:fluid-bind #:binding-forms ...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/metabang-bind-20120208-git/dev/packages.lisp
lisp
for documentation
(in-package #:common-lisp-user) (defpackage #:metabang.bind (:use #:common-lisp) (:nicknames #:bind #:metabang-bind) (:intern #:bind-generate-bindings #:bind-filter-declarations #:bind-macro-helper #:bind-fix-nils) (:export #:bind #:fluid-bind #:binding-forms ...
6df6aa5ca78200c1e3927b6f38890d013a88a1ac076d406e8b919cff2de4ab47
clf/lollimon
main.ml
* * * * Title : main.ml Description : Main file for LolliMon . Contains top - level interactive loop . This is written in OCaml using the revised syntax . Author : * * * * Title: main.ml Description: Main file for LolliMon. Contains top-level interactive loop. This is written in OCaml using the revi...
null
https://raw.githubusercontent.com/clf/lollimon/bc4290f5bb221c514b2a66ec427e85eec498c7be/src/main.ml
ocaml
** flag to turn off type checking ** ** list of predicates whose clause order should be remembered ** ************************************** Load up all "module" code *************************************** ************************************** Main loop *************************************** if evars = [] the...
* * * * Title : main.ml Description : Main file for LolliMon . Contains top - level interactive loop . This is written in OCaml using the revised syntax . Author : * * * * Title: main.ml Description: Main file for LolliMon. Contains top-level interactive loop. This is written in OCaml using the revi...
8bc5b62b469ac74aae55d35ed2bd61394868ce19a69964427c36462682cdc37a
tanders/cluster-engine
__package-for-emacs.lisp
(defpackage cluster-engine (:use :common-lisp :sb-ext)) (in-package :cluster-engine) ;;; :pw ;;;;; (load "/Users/julienvincenot/Dropbox/cluster-to-Max-new/cluster-engine_PURELISP_sources new-version test/01.domain.lisp") (load "/Users/julienvincenot/Dropbox/cluster-to-Max-new/cluster-engine_PURELISP_sources new-ver...
null
https://raw.githubusercontent.com/tanders/cluster-engine/064ad4fd107f8d9a3dfcaf260524c2ab034c6d3f/old/__package-for-emacs.lisp
lisp
:pw ;;;;; gen-domains
(defpackage cluster-engine (:use :common-lisp :sb-ext)) (in-package :cluster-engine) (load "/Users/julienvincenot/Dropbox/cluster-to-Max-new/cluster-engine_PURELISP_sources new-version test/01.domain.lisp") (load "/Users/julienvincenot/Dropbox/cluster-to-Max-new/cluster-engine_PURELISP_sources new-version test/02.eng...
cdd2cd150f71b7128471d1d86ba3ff086336ffc759a1d29fb4a3a69e958f8874
clojure-interop/java-jdk
MetalBorders$MenuItemBorder.clj
(ns javax.swing.plaf.metal.MetalBorders$MenuItemBorder (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalBorders$MenuItemBorder])) (defn ->menu-item-border "Constructor." (^MetalBorders$MenuItemBorder [] (new MetalBorders$MenuItemBorder ))) (defn paint-border "Descri...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/metal/MetalBorders%24MenuItemBorder.clj
clojure
(ns javax.swing.plaf.metal.MetalBorders$MenuItemBorder (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalBorders$MenuItemBorder])) (defn ->menu-item-border "Constructor." (^MetalBorders$MenuItemBorder [] (new MetalBorders$MenuItemBorder ))) (defn paint-border "Descri...
fbdd40b67171c36869a18c9c2a64d7b99f9ed5e4de7cd5e5c381dd4b1b85d723
patricoferris/ni-forests
app.ml
open Brr open Brr_lwd let use_state a = let a = Lwd.var a in (a, fun f -> Lwd.set a (f (Lwd.peek a))) let stats, set_stats = use_state None let color_map = function | "Oak" -> "#d55e00" | "Lime" -> "#cc79a7" | "Maple" -> "#0072b2" | "Ash" -> "#f0e442" | "Pine" -> "#009e73" | _ -> "grey" let v () = ...
null
https://raw.githubusercontent.com/patricoferris/ni-forests/d7636928d9ece204357e27f0e8910c7993d20c41/src/trees/js/app.ml
ocaml
open Brr open Brr_lwd let use_state a = let a = Lwd.var a in (a, fun f -> Lwd.set a (f (Lwd.peek a))) let stats, set_stats = use_state None let color_map = function | "Oak" -> "#d55e00" | "Lime" -> "#cc79a7" | "Maple" -> "#0072b2" | "Ash" -> "#f0e442" | "Pine" -> "#009e73" | _ -> "grey" let v () = ...
4d7c771efb0f7d384239ec3c6a318eee586500affb805a24afe285d9d747eae8
dbmcclain/vmath
aquaterm-macros.lisp
(in-package "AQUATERM") (defmacro by-proxy (&body body) `(aqt::proxy-request #'(lambda () ,@body))) (defmacro def-proxy-fli-function ((name &rest args) user-args &rest other-args) (let ((cname (um:intern-symbol (format nil "_~A" name))) ...
null
https://raw.githubusercontent.com/dbmcclain/vmath/ea2590e5cf8f70cf4551e9b7e509e751dd32029f/aquaterm-macros.lisp
lisp
(in-package "AQUATERM") (defmacro by-proxy (&body body) `(aqt::proxy-request #'(lambda () ,@body))) (defmacro def-proxy-fli-function ((name &rest args) user-args &rest other-args) (let ((cname (um:intern-symbol (format nil "_~A" name))) ...
c681198e149f4c2258bb0e047a5a6ab3fbcb0524dd78c37c394d6a4152456fad
mfp/extprot
conv.mli
(** Convenience functions to serialize and deserialize values to/from strings * and extlib IO channels. *) * [ Wrong_protocol_version ( max_known , found ) ] exception Wrong_protocol_version of int * int type ('a, 'hint, 'path) string_reader = ?hint:'hint -> ?level:int -> ?path:'path -> Reader.String_reader.t -> ...
null
https://raw.githubusercontent.com/mfp/extprot/c69eb66398e35b964c4232a7c3c85151fb5eddbe/runtime/conv.mli
ocaml
* Convenience functions to serialize and deserialize values to/from strings * and extlib IO channels. * Like {!read_versioned}, operating on an [IO.input] channel. * Analog to {!write_versioned}, returning a string. * Analog to {!read_versioned}, reading from a string. * Analog to {!deserialize_versioned}, where ...
* [ Wrong_protocol_version ( max_known , found ) ] exception Wrong_protocol_version of int * int type ('a, 'hint, 'path) string_reader = ?hint:'hint -> ?level:int -> ?path:'path -> Reader.String_reader.t -> 'a type ('a, 'hint, 'path) io_reader = ?hint:'hint -> ?level:int -> ?path:'path -> Reader.IO_reader.t -> '...
23578f19e3e3eb32c9b1b1396567969bf886c95dc12360e1a77e76b24aac2163
huangjs/cl
report.lisp
;;; report.lisp ;; Author : < > Time - stamp : < 2004 - 02 - 29 emarsden > ;; ;; When loaded into CMUCL , this should generate a report comparing the performance of the different CL implementations which have been ;; tested. Reads the /var/tmp/CL-benchmark* files to obtain data from ;; previous runs. ;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/report.lisp
lisp
report.lisp tested. Reads the /var/tmp/CL-benchmark* files to obtain data from previous runs.
Author : < > Time - stamp : < 2004 - 02 - 29 emarsden > When loaded into CMUCL , this should generate a report comparing the performance of the different CL implementations which have been FIXME could create graphical version using ploticus (in-package :cl-user) (defconstant +implementation+ (concat...
d52b41d313f14ed4ad1faa3acd344c7bb96f515fddceebe55e79395444705489
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2015 , 2020 ; ; 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 ; ; Contributors: ; (ns seesaw14.core (:gen-class)) ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/seesaw14/src/seesaw14/core.clj
clojure
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 Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns seesaw14.core (:gen-class)) (use 'seesaw.core) (use 'seesaw.color) (def formular (horizontal-panel :border 10 :items [(button :text ":background :red" :background :red) (button :text ":background :yellow" ...
f7b1e0ae912533f246e2cfa8673145dd94577084d3487e9196506d9d532a4163
leo-project/leo_gateway
leo_nlm_proto4_xdr.erl
%% %% src/leo_nlm_proto4_xdr was generated by erpcgen (do not edit) %% -module(leo_nlm_proto4_xdr). -export([enc_netobj/1, dec_netobj/2]). -export([enc_uint64/1, dec_uint64/2]). -export([enc_int64/1, dec_int64/2]). -export([enc_uint33/1, dec_uint33/2]). -export([enc_int32/1, dec_int32/2]). -export([enc_nlm4_stats/1, de...
null
https://raw.githubusercontent.com/leo-project/leo_gateway/7bac8912b762688f0ef237b31fee17e30e3888a3/src/leo_nlm_proto4_xdr.erl
erlang
src/leo_nlm_proto4_xdr was generated by erpcgen (do not edit)
-module(leo_nlm_proto4_xdr). -export([enc_netobj/1, dec_netobj/2]). -export([enc_uint64/1, dec_uint64/2]). -export([enc_int64/1, dec_int64/2]). -export([enc_uint33/1, dec_uint33/2]). -export([enc_int32/1, dec_int32/2]). -export([enc_nlm4_stats/1, dec_nlm4_stats/2, dec_nlm4_stats_i2a/1]). -export([enc_nlm4_holder/1, dec...
2b88243a86696d04d333866e8c13076b759403c314a72a1576dcfea3234cff9e
GillianPlatform/Gillian
UP.ml
open Containers open Names module L = Logging (** The [outs] type represents a list of learned outs, together with (optionally) the way of constructing them *) type outs = (Expr.t * Expr.t) list [@@deriving yojson] let outs_pp = Fmt.(list ~sep:semi (parens (pair ~sep:comma Expr.pp Expr.pp))) (** The [up_step] ty...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/064097945f7d70264be49bb0d54369646269de96/GillianCore/engine/Abstraction/UP.ml
ocaml
* The [outs] type represents a list of learned outs, together with (optionally) the way of constructing them * The [up_step] type represents a unification plan step, consisting of an assertion together with the possible learned outs * The [pt] type represents a pre-unification plan, consisting of a li...
open Containers open Names module L = Logging type outs = (Expr.t * Expr.t) list [@@deriving yojson] let outs_pp = Fmt.(list ~sep:semi (parens (pair ~sep:comma Expr.pp Expr.pp))) type step = Asrt.t * outs [@@deriving yojson] let step_pp = Fmt.Dump.pair Asrt.pp outs_pp type pt = step list let pt_pp = Fmt.(brackets...