_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
271f5ec1329a4f932581b195a13b20daca0397ac0af3509551d53d1c4c186ce8
mzp/coq-ruby
checker.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/checker/checker.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** By the option -include -I or -R of ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : coqtop.ml 10153 2...
5d4c4883f44637bef0379c5886e763fc23dbdfc0e265071b69b7a5c058c70331
sneeuwballen/zipperposition
SLiteral.mli
This file is free software , part of Logtk . See file " license " for more details . * { 1 Simple Literal } (** Simple literals, used typically in {!CNF} before being converted to whatever representation the prover prefers. *) type form = TypedSTerm.t type term = TypedSTerm.t exception NotALit of form type +...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/core/SLiteral.mli
ocaml
* Simple literals, used typically in {!CNF} before being converted to whatever representation the prover prefers. * @raise NotALit if the form is not a literal * negation of literal
This file is free software , part of Logtk . See file " license " for more details . * { 1 Simple Literal } type form = TypedSTerm.t type term = TypedSTerm.t exception NotALit of form type +'t t = | True | False | Atom of 't * bool | Eq of 't * 't | Neq of 't * 't type 'a lit = 'a t val to_form : te...
1f10736097aa862f6d14bc8addd2ae115238d0d7331def03a264f0660f64d377
mhuebert/chia
view.cljs
(ns chia.view (:refer-clojure :exclude [partial]) (:require ["react-dom" :as react-dom] ["react" :as react] chia.view.legacy [chia.view.hooks :as hooks] [chia.view.props :as props] [chia.view.impl :as impl] [chia.view.render-loop :as render-lo...
null
https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/view/src/chia/view.cljs
clojure
React Context API Props & Conversions Core API Lifecycle Render loop use-layout-effect is necessary to ensure that we don't miss changes React Refresh
(ns chia.view (:refer-clojure :exclude [partial]) (:require ["react-dom" :as react-dom] ["react" :as react] chia.view.legacy [chia.view.hooks :as hooks] [chia.view.props :as props] [chia.view.impl :as impl] [chia.view.render-loop :as render-lo...
4226baa6eabd48b6a7eff7d53f5d86e9405a4a9f43cf749a11a8003939086880
inconvergent/weir
custom-alt.lisp
#!/usr/local/bin/sbcl --script ; set your path to sbcl above. i would use env, but it does not appear to work ; with the --script argument. alternately, delete the shebang and the load ; below. and run from repl. let me know if you have a better suggestion for ; making this easily runnable from terminal (load "load"...
null
https://raw.githubusercontent.com/inconvergent/weir/3c364e3a0e15526f0d6985f08a57b312b5c35f7d/examples/custom-alt.lisp
lisp
set your path to sbcl above. i would use env, but it does not appear to work with the --script argument. alternately, delete the shebang and the load below. and run from repl. let me know if you have a better suggestion for making this easily runnable from terminal custom alteration add new vert inside rad of c ...
#!/usr/local/bin/sbcl --script (load "load") (defun vert-if-no-collision? (c rad xy) (lambda (wer) (when (<= (length (weir:verts-in-rad wer xy rad)) 1) (weir::-valid-vert ((weir::weir-num-verts wer) c :err nil) (weir:add-vert! wer xy))))) (defun random-walk (wer psvg rad) (loop with c...
0af61e2ade8a350373ce21d50f7b89fffa953d095e1b8c19bd451feb45c5424f
cfpb/qu
where.clj
(ns qu.query.where "This namespace parses WHERE clauses into an AST and turns that AST into a Monger query." (:require [clojure.string :as str] [clojure.walk :refer [postwalk]] [protoflex.parse :as p] [taoensso.timbre :as log] [qu.query.parser :refer [where-expr]]) ...
null
https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/src/qu/query/where.clj
clojure
TODO explain this nonsense
(ns qu.query.where "This namespace parses WHERE clauses into an AST and turns that AST into a Monger query." (:require [clojure.string :as str] [clojure.walk :refer [postwalk]] [protoflex.parse :as p] [taoensso.timbre :as log] [qu.query.parser :refer [where-expr]]) ...
cefd612fe0ae18f73291f6c054dd4c099230bdea47991f6a729e02c1ee3fea24
cldwalker/logseq-query
datascript_test.cljc
(ns cldwalker.logseq-query.datascript-test (:require [clojure.test :refer [is deftest testing]] [cldwalker.logseq-query.cli :as cli] [cldwalker.logseq-query.datascript :as ld] [cldwalker.logseq-query.util :as util] [clojure.edn :as edn])) (defn- q-error [args] (let [...
null
https://raw.githubusercontent.com/cldwalker/logseq-query/064700384723b9c4934e0e73cc75d35f5fd255c3/test/cldwalker/logseq_query/datascript_test.cljc
clojure
(ns cldwalker.logseq-query.datascript-test (:require [clojure.test :refer [is deftest testing]] [cldwalker.logseq-query.cli :as cli] [cldwalker.logseq-query.datascript :as ld] [cldwalker.logseq-query.util :as util] [clojure.edn :as edn])) (defn- q-error [args] (let [...
7ae468b5c122a0a1bc96dfea8c454523b3e7e9a668277dc17ef2ca7c4fd6df52
joedevivo/chatterbox
http2_spec_8_1_SUITE.erl
-module(http2_spec_8_1_SUITE). -include("http2.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -compile([export_all]). all() -> [ sends_head_request, sends_headers_containing_trailer_part, sends_second_headers_with_no_end_stream, sends_uppercase_head...
null
https://raw.githubusercontent.com/joedevivo/chatterbox/560f2c71a151716512781f0f6196a8a9ff678852/test/http2_spec_8_1_SUITE.erl
erlang
-module(http2_spec_8_1_SUITE). -include("http2.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -compile([export_all]). all() -> [ sends_head_request, sends_headers_containing_trailer_part, sends_second_headers_with_no_end_stream, sends_uppercase_head...
222c42bc0bab0d5c61de1e1986a2d1ad37e52f3fb9db89ebfcaac51f237af307
eugeneia/athens
agent.lisp
Asynchronous agents ( similar to Erlang processes ) . (in-package :erlangen.agent) (defstruct (agent (:constructor make-agent%)) "*Syntax:* _agent_::= _structure_ | _keyword_ | _string_ *Description:* An _agent_ can either be an _agent structure_, a _keyword_ denoting a registered _agent_ or a _str...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/lib/erlangen/agent.lisp
lisp
*agent* will be rebound by the “real” agents, but for the initial processes SEND, and RECEIVE as if they were agents. See AGENT below. agent's mailbox. Kill links. Message monitors. Agent exits normally. Agent is killed with reason. Handler for when agent signals a SERIOUS-CONDITION. is invoked automatically. ...
Asynchronous agents ( similar to Erlang processes ) . (in-package :erlangen.agent) (defstruct (agent (:constructor make-agent%)) "*Syntax:* _agent_::= _structure_ | _keyword_ | _string_ *Description:* An _agent_ can either be an _agent structure_, a _keyword_ denoting a registered _agent_ or a _str...
b152451237e6e7f5eb0af0a966e9eb57833e7b9b14f46cbe0cfc46ed56a93ef9
fractalide/fractalide
contributing.rkt
#lang typed/racket (provide contributing-template) (define contributing-template #<<EOM --- domain: rfc.zeromq.org shortname: 42/C4 name: Collective Code Construction Contract status: stable editor: Pieter Hintjens <> --- The Collective Code Construction Contract (C4) is an evolution of the github.com [Fork + Pull M...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/pkgs/hyperflow/fractal-management/generic/contributing.rkt
racket
either version 3 of the License , or ( at your option ) any later version . without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. if not, see <>. their job is to enforce process.
#lang typed/racket (provide contributing-template) (define contributing-template #<<EOM --- domain: rfc.zeromq.org shortname: 42/C4 name: Collective Code Construction Contract status: stable editor: Pieter Hintjens <> --- The Collective Code Construction Contract (C4) is an evolution of the github.com [Fork + Pull M...
279040dc246da8ecc22b2fdf80f1d1712bc1354e59e214525764baa4cf309cea
pedestal/pedestal-app
naive.clj
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/test/clj/io/pedestal/app/perf/model/naive.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.app.perf.model.naive (:require [io.pedestal.app.diff :as diff] [clojure.core.async :refer [go chan <! >!]])) (defn apply-transform "Given a model and a transform message, return a map with an updated model and the i...
b31d0424f7da3808aa4b75f44d21d571004488cf6c31e0ccbd1fdb8b913bed4c
aaronallen8455/hi-fi
Main.hs
import System.Exit import System.Process import Test.Tasty import Test.Tasty.HUnit main :: IO () main = defaultMain . testCase "type errors" $ (@?= ExitSuccess) =<< system "./type-error-test/run-test"
null
https://raw.githubusercontent.com/aaronallen8455/hi-fi/8dece5086a3c5b2bd8bc335dbd7c5d253e78d9e1/type-error-test/Main.hs
haskell
import System.Exit import System.Process import Test.Tasty import Test.Tasty.HUnit main :: IO () main = defaultMain . testCase "type errors" $ (@?= ExitSuccess) =<< system "./type-error-test/run-test"
c11dc6d39099b11055bb250056f60d76cc6c99369b5f65b419801b92aac6382a
intolerable/api-builder
Error.hs
module Network.API.Builder.Error ( APIError(..) ) where import Data.Semigroup import Network.HTTP.Client (HttpException) import Prelude -- | Error type for the @API@, where @a@ is the type that should be returned when -- something goes wrong on the other end - i.e. any error that isn't directly related -- to th...
null
https://raw.githubusercontent.com/intolerable/api-builder/f7440211195da98cfa93b6a97e51892b939919e1/src/Network/API/Builder/Error.hs
haskell
| Error type for the @API@, where @a@ is the type that should be returned when something goes wrong on the other end - i.e. any error that isn't directly related to this library. ^ A type that represents any error that happens on the API end. Define your own custom type with a @FromJSON@ instance if you i...
module Network.API.Builder.Error ( APIError(..) ) where import Data.Semigroup import Network.HTTP.Client (HttpException) import Prelude want to handle them , or you can use @()@ if you just want to @Builder@ 's base URL and your @Route@s . ^ Empty error to serve as a zero element for Monoid . deriving S...
9236c2e93333d06fce0eb8589c29c032b2ef233d7975569343574e1ddc03e80a
janestreet/core_unix
test_iobuf_unix.ml
open! Core open! Iobuf open! Iobuf_unix module Unix = Core_unix module Thread = Core_thread type nonrec ('d, 'w) t = ('d, 'w) Hexdump.t [@@deriving sexp_of] let%test_unit _ = let to_bigstring_shared_via_iovec ?pos ?len iobuf = let iovec = Expert.to_iovec_shared ?pos ?len iobuf in Bigstring.sub_shared iovec....
null
https://raw.githubusercontent.com/janestreet/core_unix/abfad608bb4ab04d16478a081cc284a88c3b3184/iobuf_unix/test/test_iobuf_unix.ml
ocaml
Sometimes use a bigstring buffer, sometimes a char queue, to test the latter and [read_to_fd] symmetrically to [write_from_fd] below. no short writes * Loop through and check all messages in the given file match the expected "MESSAGE %d" format doesn't allocate The logic for fold/iter/input is connecte...
open! Core open! Iobuf open! Iobuf_unix module Unix = Core_unix module Thread = Core_thread type nonrec ('d, 'w) t = ('d, 'w) Hexdump.t [@@deriving sexp_of] let%test_unit _ = let to_bigstring_shared_via_iovec ?pos ?len iobuf = let iovec = Expert.to_iovec_shared ?pos ?len iobuf in Bigstring.sub_shared iovec....
9487631cc5922ef0b8e13c1820ada58bc1b13cccd081338f31d22d7f674485b9
vimus/libmpd-haskell
PlaybackOptions.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Network . MPD.Applicative . PlaybackOptions Copyright : ( c ) Joachim Fasting 2012 License : MIT Maintainer : Stability : stable Portability : unportable Playback options Module : Network.MPD.Applicative.PlaybackOptions Copyrigh...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/src/Network/MPD/Applicative/PlaybackOptions.hs
haskell
# LANGUAGE OverloadedStrings # | Toggle consume mode. | Set crossfading between songs. | Toggle random mode. | Toggle repeat mode. | Set volume. | Toggle single mode. | Set replay gain mode. | Get replay gain status: option name and its value. | Set MixRamp overlap threshold. Songs must have MixRamp tags set...
| Module : Network . MPD.Applicative . PlaybackOptions Copyright : ( c ) Joachim Fasting 2012 License : MIT Maintainer : Stability : stable Portability : unportable Playback options Module : Network.MPD.Applicative.PlaybackOptions Copyright : (c) Joachim Fasting 2012 Lice...
5a38f8aae871bc8e4bf54fb790f3c0fbe49a65497137d483cd22ab6524fc180b
coq/coq
find_subterm.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/d0ed66ddfaa765ad0d9185dd00b68b2fa83cd798/pretyping/find_subterm.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
ac8602c15214f75ab34fea3d5aa88c092286ae1f00eff20a6434b4fa76e40b72
fission-codes/fission
Bool.hs
module Fission.Test.Internal.Bool (spec) where import Fission.Internal.Bool import Fission.Test.Prelude spec :: Spec spec = describe "Fission.Internal.Bool" do describe "truthy" do context "t" $ it "is truthy" $ truthy ("t" :: String) `shouldBe` True context "f" $ ...
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/fission-core/test/Fission/Test/Internal/Bool.hs
haskell
module Fission.Test.Internal.Bool (spec) where import Fission.Internal.Bool import Fission.Test.Prelude spec :: Spec spec = describe "Fission.Internal.Bool" do describe "truthy" do context "t" $ it "is truthy" $ truthy ("t" :: String) `shouldBe` True context "f" $ ...
85b58c580d994af9afeb8aaca070d6a2a1ac903770f69bb404530217f84da7dc
elaforge/karya
Code.hs
Copyright 2018 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Deriver code common to sampler patches. module Synth.Sampler.Patch.Lib.Code where import qualified Derive.Args as Args import qualified Derive.Call as Call import qualified Derive.Co...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Sampler/Patch/Lib/Code.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Deriver code common to sampler patches. | Modify a deriver to add 'Controls.variation', for patches that use it. | Like 'withVariation', but use a normal distribution.
Copyright 2018 module Synth.Sampler.Patch.Lib.Code where import qualified Derive.Args as Args import qualified Derive.Call as Call import qualified Derive.Controls as Controls import qualified Derive.Derive as Derive import qualified Derive.EnvKey as EnvKey import qualified Perform.Pitch as Pitch import Global ...
8e109863f28b77f93df2bee5bcdcb2a02d03009245a385da2be09abed90c8376
tweag/asterius
T15696_2.hs
# LANGUAGE MagicHash # import GHC.Exts import GHC.Prim main :: IO () main = do used to print 0 , should print 1 used to print 1 correctly where # NOINLINE f # f = T2 # NOINLINE a # a = f data T = T1 | T2
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/T15696_2.hs
haskell
# LANGUAGE MagicHash # import GHC.Exts import GHC.Prim main :: IO () main = do used to print 0 , should print 1 used to print 1 correctly where # NOINLINE f # f = T2 # NOINLINE a # a = f data T = T1 | T2
a66b0a5f18d86fb68ea33f2c465124d4be34b7f995f70279d947e04b2ffe24c4
dhleong/wish
formatted.cljs
(ns ^{:author "Daniel Leong" :doc "Utils for generating hiccup from formatted text"} wish.util.formatted (:require [clojure.string :as str])) (def ul-regex #"^[ ]*-[ ]*(.*)$") (def ol-regex #"^[ ]*[0-9]\.[ ]*(.*)$") (defn- maybe-span "If there's just one part, return it directly; if there are more, wrap...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/util/formatted.cljs
clojure
if there are more, wrap them expand an existing span to include the other parts wrap join with previous create a new ul to contain it otherwise, let it be NOTE this assumes reasonably well-formatted input done! a cond-let macro would be wonderful... else, just expand ** and _ wraps base case: formatted strin...
(ns ^{:author "Daniel Leong" :doc "Utils for generating hiccup from formatted text"} wish.util.formatted (:require [clojure.string :as str])) (def ul-regex #"^[ ]*-[ ]*(.*)$") (def ol-regex #"^[ ]*[0-9]\.[ ]*(.*)$") (defn- maybe-span "If there's just one part, return it in a :span" [& parts] (let [p...
4ff765e2f58b6a6a21d83677c4e81b7214df1cbf41a6aced5228eff60ba1a060
pink-gorilla/webly
css.cljs
(ns demo.pages.main.css (:require [taoensso.timbre :refer-macros [debug info warn error]] [reagent.core :as r] [re-frame.core :as rf] [demo.helper.ui :refer [link-dispatch link-href link-fn block2]] [demo.emoji :refer [emoji]])) ; CSS (defn demo-css [] (let [show (r/atom false) loading? (rf/...
null
https://raw.githubusercontent.com/pink-gorilla/webly/d47404d25248ba719be29da43dbe983bbc78a23d/demo-webly/src/demo/pages/main/css.cljs
clojure
CSS this triggers loading of the emojii css
(ns demo.pages.main.css (:require [taoensso.timbre :refer-macros [debug info warn error]] [reagent.core :as r] [re-frame.core :as rf] [demo.helper.ui :refer [link-dispatch link-href link-fn block2]] [demo.emoji :refer [emoji]])) (defn demo-css [] (let [show (r/atom false) loading? (rf/subscr...
3a59ffb059ea435fcd3d9d0d20d3b8b9621c1b32e99787793dd8403b7f74c3f4
HealthSamurai/bxb
simple.cljc
(ns mappers.simple (:require [clojure.string :as str])) (defn match [pattern obj] (or (= obj pattern) (when (and (map? pattern) (map? obj)) (loop [[[k pv] & kvs] pattern] (let [iv (get obj k)] (cond (nil? k) true (nil? iv) false (or (= p...
null
https://raw.githubusercontent.com/HealthSamurai/bxb/2275b0b8498035e78f23608756465bba945522ec/src/mappers/simple.cljc
clojure
(and (= {} obj) (nil? ps)) v (println k v)
(ns mappers.simple (:require [clojure.string :as str])) (defn match [pattern obj] (or (= obj pattern) (when (and (map? pattern) (map? obj)) (loop [[[k pv] & kvs] pattern] (let [iv (get obj k)] (cond (nil? k) true (nil? iv) false (or (= p...
6e2175792f0aaed14be469b43446fecb82f0bd6a3db2b32e0e883832a1fed33f
ucsd-progsys/dsolve
wellformed.ml
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/liquid/wellformed.ml
ocaml
let _ = Format.printf "@[%a@.%a@.END@]@.@." pprint (shape f1) pprint (shape p) in pmr: maybe we need to switch to ids for this
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
6dca922d7b226541d8fda2f339cfe5b1ad1fef4570307e906c3134e1439ccdae
Deducteam/Logipedia
systems.ml
type t = Coq | Matita | Pvs | OpenTheory | Lean | Hollight | Latex let systems = [Coq ; Matita ; Pvs ; OpenTheory ; Lean ; Hollight ; Latex] exception UnsupportedSystem of string (** A specification is - an identifier, - a system *) type spec = string * t (** Association list mapping a system name to the di...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/core/systems.ml
ocaml
* A specification is - an identifier, - a system * Association list mapping a system name to the directory where the translated files have been or will be dumped. * Association list mapping keys that can be used on command line to designate the system. * Maps system to their extension. * [of_string s...
type t = Coq | Matita | Pvs | OpenTheory | Lean | Hollight | Latex let systems = [Coq ; Matita ; Pvs ; OpenTheory ; Lean ; Hollight ; Latex] exception UnsupportedSystem of string type spec = string * t let artefact_path : (t * string) list ref = ref [] let spec : spec list = [ ( "coq" , Coq ) ; ( ...
842310c7943652fa49387a56410d025d1cd225bf258a5be1fa26647d45cf4066
lambdaisland/webstuff
markdown.clj
(ns lambdaisland.markdown (:require [clojure.string :as str] [clojure.walk :as walk]) (:import (com.vladsch.flexmark.ast AutoLink BlockQuote BulletList Code ...
null
https://raw.githubusercontent.com/lambdaisland/webstuff/fae90bc1d280dfe14f6259aae9428774fa549c4e/src/lambdaisland/markdown.clj
clojure
Paragraph (html [node] {:tag "p" :content (map html (.getChildren node))}) (html [node] {:tag "strong" :content (map html (.getChildren node))}) Heading (html [node] }) (html [node] (if (.isImplicitName node) (let [name (.unescape (.getName node))] ))) AutoLink BlockQuote Code Emphas...
(ns lambdaisland.markdown (:require [clojure.string :as str] [clojure.walk :as walk]) (:import (com.vladsch.flexmark.ast AutoLink BlockQuote BulletList Code ...
bdddc804a4c3d847c48355f54ddb9607c1a0fa50d60734208896fd97b775fd50
nuvla/api-server
acl_collection_test.cljc
(ns sixsq.nuvla.server.resources.spec.acl-collection-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.spec.acl-collection :as acl-collection] [sixsq.nuvla.server.resources.spec.spec-test-utils :as stu])) (deftest check-collection-acl (let [acl {:query ["user/id1" "gr...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/spec/acl_collection_test.cljc
clojure
empty map is valid none of the fields are required all fields can be empty
(ns sixsq.nuvla.server.resources.spec.acl-collection-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.spec.acl-collection :as acl-collection] [sixsq.nuvla.server.resources.spec.spec-test-utils :as stu])) (deftest check-collection-acl (let [acl {:query ["user/id1" "gr...
0d60e2eaedb318318148af08cc640c115f949ddafa8d95cfa855031aa6781fc1
jeromesimeon/Galax
parse_xqueryx.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/parsing/parse_xqueryx.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : parse_xqueryx.ml , v 1.3 2007/08/09 20:21:22 simeon Exp $ open Xquery_ast open Error let check_attributes attlist fi = begin match attlist with | [] -> () | att_e :: _ -> begin match att_e.pexpr_desc with | EAt...
690f04011530fda852c2b70f683c0c13d0c7782b9135d13d71437fcc36386f3e
nedap/formatting-stack
pretty_line_printer.clj
(ns formatting-stack.reporters.pretty-line-printer "Outputs report similar to github.com/xojs/xo" (:require [clojure.stacktrace :refer [print-stack-trace]] [formatting-stack.protocols.reporter :as reporter] [formatting-stack.protocols.spec :as protocols.spec] [formatting-stack.reporters.impl :refer [tru...
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/src/formatting_stack/reporters/pretty_line_printer.clj
clojure
print summary in order
(ns formatting-stack.reporters.pretty-line-printer "Outputs report similar to github.com/xojs/xo" (:require [clojure.stacktrace :refer [print-stack-trace]] [formatting-stack.protocols.reporter :as reporter] [formatting-stack.protocols.spec :as protocols.spec] [formatting-stack.reporters.impl :refer [tru...
78bd89ccef6cd3a11a55333d71dbeaa1563af8b6125c08d93af4d9c475722043
exercism/common-lisp
word-count.lisp
(defpackage :word-count (:use :cl) (:export :count-words)) (in-package :word-count) (defun count-words (sentence))
null
https://raw.githubusercontent.com/exercism/common-lisp/f3cdf6cf7e607138d1bb4d26c57999d4364af243/exercises/practice/word-count/word-count.lisp
lisp
(defpackage :word-count (:use :cl) (:export :count-words)) (in-package :word-count) (defun count-words (sentence))
9beb8824c1cb2c40f0d1b4816e47b74d25dc5d5bb59004df506d0983e50e3c7b
conscell/hugs-android
Queens.hs
This N - Queens program is based on a small variation of the 8 - queens program from Bird and Wadler 's book . -- Be warned : printing out the complete list of solutions ( all 92 of them ) by evaluating " q 8 " takes well over 1 million reductions and uses nearly 2.5 million cells ... it may take some time to...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/demos/Queens.hs
haskell
This N - Queens program is based on a small variation of the 8 - queens program from Bird and Wadler 's book . Be warned : printing out the complete list of solutions ( all 92 of them ) by evaluating " q 8 " takes well over 1 million reductions and uses nearly 2.5 million cells ... it may take some time to ex...
b28d2a1821611db304f4877b8ca6802654947ffd747d51212d21a80d49dec628
TyOverby/mono
ppx_compare_lib.ml
open Import0 let phys_equal = phys_equal external polymorphic_compare : 'a -> 'a -> int = "%compare" external polymorphic_equal : 'a -> 'a -> bool = "%equal" external ( && ) : bool -> bool -> bool = "%sequand" let compare_abstract ~type_name _ _ = Printf.ksprintf failwith "Compare called on the type %s, wh...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-base/src/ppx_compare_lib.ml
ocaml
open Import0 let phys_equal = phys_equal external polymorphic_compare : 'a -> 'a -> int = "%compare" external polymorphic_equal : 'a -> 'a -> bool = "%equal" external ( && ) : bool -> bool -> bool = "%sequand" let compare_abstract ~type_name _ _ = Printf.ksprintf failwith "Compare called on the type %s, wh...
46ba94c75d67ebf36fdc2c0455b4ee77d5f50118bbb27acb7a84e5a2a956229e
97jaz/gregor
numbers.rkt
#lang racket/base (require racket/format racket/match cldr/core cldr/numbers-modern memoize "../ast.rkt" "../parse-state.rkt") (provide num-fmt num-parse num-string-translate num-string-untranslate num-re number-system-...
null
https://raw.githubusercontent.com/97jaz/gregor/91d71c6082fec4197aaf9ade57aceb148116c11c/gregor-lib/gregor/private/pattern/l10n/numbers.rkt
racket
#lang racket/base (require racket/format racket/match cldr/core cldr/numbers-modern memoize "../ast.rkt" "../parse-state.rkt") (provide num-fmt num-parse num-string-translate num-string-untranslate num-re number-system-...
1af6092d64649bf375b73613483f7abaa9a2d9e16f66c3dfffddbd07f538c7fa
clarkhillm/Hawkmoth
managedResoreces.clj
(ns ^{:author cWX205128} framework.managedResoreces (:import [java.util.concurrent ArrayBlockingQueue])) (def rigistedThread (atom ())) (defn rigistThread [thread] (swap! rigistedThread concat [thread])) (def blockingQueneMap (atom {})) (defn initBlockQueneMap [threadName] (swap! blockingQueneMap assoc (keywo...
null
https://raw.githubusercontent.com/clarkhillm/Hawkmoth/608767bb86c380fadaf12f9201e2198e5766eabb/src/framework/managedResoreces.clj
clojure
(ns ^{:author cWX205128} framework.managedResoreces (:import [java.util.concurrent ArrayBlockingQueue])) (def rigistedThread (atom ())) (defn rigistThread [thread] (swap! rigistedThread concat [thread])) (def blockingQueneMap (atom {})) (defn initBlockQueneMap [threadName] (swap! blockingQueneMap assoc (keywo...
582b285827fffc5c3db1af302f46f387f96787a1c9245432245c7628c30bf307
emqx/emqx
emqx_map_lib.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/0d1f1066d99904e6afe0c93c5f01ece9baabebac/apps/emqx/src/emqx_map_lib.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_map_lib). -export([ deep_get/2, deep_get/3, deep_find/2, deep_put/3...
44b760400e6b0e3cec339af61bcfa8f7f01318f4f8720bbd4f4d4265fce492df
B-Lang-org/bsc
AUses.hs
# LANGUAGE PatternGuards # -- AUses -- This module is used by ASchedule to create a MethodUsesMap , which is then used by and exposed to later stages ( AState ) through the output of the ASchedule stage . -- MethodUsesMap relates to a list of UniqueUse ( an expression -- or action) and, for each use: -- * a...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/AUses.hs
haskell
AUses or action) and, for each use: * a list of RuleId for rules which use the method in their condition, * a list of RuleId for rules which use the method in their action, * a list of AId for submodule instances which use the method in their instantiation (e.g. continuous connection to an input port)...
# LANGUAGE PatternGuards # This module is used by ASchedule to create a MethodUsesMap , which is then used by and exposed to later stages ( AState ) through the output of the ASchedule stage . MethodUsesMap relates to a list of UniqueUse ( an expression Thus , the data types MethodId , UniqueUse , MethodUse...
571c1c19a53080dce5d12de9fe0259b30bd53bb663821cda8a5ab03f8a044d2d
takikawa/racket-ppa
alarm.rkt
#lang racket/base (require "check.rkt" "evt.rkt" "schedule-info.rkt") (provide (rename-out [create-alarm-evt alarm-evt])) (struct alarm-evt (msecs monotonic) #:property prop:evt (poller (lambda (e ctx) (define msecs (alarm-evt-msecs e)) (define monotonic? (alarm-evt-mon...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/src/thread/alarm.rkt
racket
#lang racket/base (require "check.rkt" "evt.rkt" "schedule-info.rkt") (provide (rename-out [create-alarm-evt alarm-evt])) (struct alarm-evt (msecs monotonic) #:property prop:evt (poller (lambda (e ctx) (define msecs (alarm-evt-msecs e)) (define monotonic? (alarm-evt-mon...
884481ecfb2b05d7605dcd0192f6c2953f53bfab4512c88a0aac7f1f23e2d581
dgtized/shimmers
wave_function_collapse.cljc
(ns shimmers.algorithm.wave-function-collapse (:require [clojure.set :as set] [clojure.string :as str] [shimmers.common.sequence :as cs] [shimmers.common.ui.debug :as debug] [shimmers.math.deterministic-random :as dr] [thi.ng.geom.vector :as gv] [thi.ng.math.core :as tm] #?(:clj [clojure.data....
null
https://raw.githubusercontent.com/dgtized/shimmers/57288e7faa60d9e04e2c515ef93c7016864b0d53/src/shimmers/algorithm/wave_function_collapse.cljc
clojure
-collapse-algorithm/ -james-v.github.io/oatmilk/index.html#/notebooks/wave-collapse.org.md Rules are in form of [legal-tile dir other-tile] ie given `other-tile` is present in `dir`, `legal-tile` is possible. build the local neighborhoodcontaining immediate valid directions mapped to the set of tiles at that ...
(ns shimmers.algorithm.wave-function-collapse (:require [clojure.set :as set] [clojure.string :as str] [shimmers.common.sequence :as cs] [shimmers.common.ui.debug :as debug] [shimmers.math.deterministic-random :as dr] [thi.ng.geom.vector :as gv] [thi.ng.math.core :as tm] #?(:clj [clojure.data....
f194de9bdd087d2e474cc4bd2800d57b3596976cffb3d753de85adbde9c137f1
alex-gutev/static-dispatch
next-methods-defs.lisp
next-methods-defs.lisp ;;;; Copyright 2019 - 2021 ;;;; ;;;; 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 us...
null
https://raw.githubusercontent.com/alex-gutev/static-dispatch/e17db89dbb7a4ca1e1e4b60129845202ee9e1915/test/next-methods-defs.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
next-methods-defs.lisp Copyright 2019 - 2021 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 WARRANTY OF ANY KIND , Gener...
d847568ee06c701819c8d1278563c892ff4fbd26852128a384b45d715236a2a3
apatil/ocaml-vega-lite
stacked_bar.ml
(* -lite/examples/stacked_bar_weather.html *) open VegaLite.V2 let data = `Url (UrlData.make ~url:"data/seattle-weather.csv" ()) let encoding = let xax = Axis.make ~title:"Month of the year" () in let xf = PositionFieldDef.make ~typ:`Ordinal ~timeUnit:(`Single (`Local `Month)) ~field:(`String ...
null
https://raw.githubusercontent.com/apatil/ocaml-vega-lite/182cbbe134942a2f98c2900fc134071ab6c93479/examples/stacked_bar.ml
ocaml
-lite/examples/stacked_bar_weather.html
open VegaLite.V2 let data = `Url (UrlData.make ~url:"data/seattle-weather.csv" ()) let encoding = let xax = Axis.make ~title:"Month of the year" () in let xf = PositionFieldDef.make ~typ:`Ordinal ~timeUnit:(`Single (`Local `Month)) ~field:(`String "date") ~axis:xax () in let l...
021438adb383b46789d189a26f2c31a1d0f0d32f6f899a48278ba32f0b724ca4
haskell-repa/repa
States.hs
# LANGUAGE UndecidableInstances # module Data.Repa.Flow.States ( Next (..) , States (..) , Refs (..) , foldRefsM , toListM) where import Control.Monad import qualified Data.Vector.Mutable as VM #include "repa-flow.h" ----------------------------------------------...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-flow/Data/Repa/Flow/States.hs
haskell
----------------------------------------------------------------------------- | Given an index an arity, get the next index after this one, or `Nothing` if there aren't any more. | Check if an index is valid for this arity. | Unit indices. | Integer indices. # INLINE check # | Tuple indices. # INLINE check # --...
# LANGUAGE UndecidableInstances # module Data.Repa.Flow.States ( Next (..) , States (..) , Refs (..) , foldRefsM , toListM) where import Control.Monad import qualified Data.Vector.Mutable as VM #include "repa-flow.h" class (Ord i, Eq i) => Next i where | Get t...
937339d261d04d2e1511e23675f7116754445dc83bb382e1523f2f5c9f0b74e5
mdedwards/slippery-chicken
tempus-perfectum.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; File: tempus-perfectum.lsp ;;; Class Hierarchy : None ;;; Version : 1.0 ;;; ;;; Project: slippery chicken (algorithmic composition) ;;; ;;; Purpose: This file contains the data associated wi...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/tempus-perfectum.lsp
lisp
File: tempus-perfectum.lsp Project: slippery chicken (algorithmic composition) Purpose: This file contains the data associated with the slippery chicken User Guide tutorial for Intra-Phrasal Looping. Creation date: 3rd August 2012 **** ...
Class Hierarchy : None Version : 1.0 Author : $ $ Last modified : 17:10:18 Fri Jul 20 2012 CEST SVN ID : $ I d : tempus-perfectum.lsp 3406 2013 - 01 - 28 15:13:21Z medward2 $ Licence : Copyright ( c ) 2010 Public License as published by the Free Softw...
f216926023cc3d7268c9982c8b04c545acccabff66313a56b1a53dda49b52ce8
robert-strandh/SICL
equal-defun.lisp
(cl:in-package #:sicl-arithmetic) (defun = (argument &rest arguments) (loop for y in arguments always (binary-equal argument y)))
null
https://raw.githubusercontent.com/robert-strandh/SICL/e4cba4056739c85dad730e8c6492d51cc8f2e465/Code/Arithmetic/equal-defun.lisp
lisp
(cl:in-package #:sicl-arithmetic) (defun = (argument &rest arguments) (loop for y in arguments always (binary-equal argument y)))
44920b5a177a1045e715853fff25439be2efdbb1d2aecb9e0f40642f50ae5dd0
evturn/haskellbook
Parser.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Parser where import Control.Applicative import Data.ByteString (ByteString) import Data.Char (isAlpha) import Data.Map (Map) import qualified Data.Map as M import ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/29/29.09-config-directories/src/Parser.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
module Parser where import Control.Applicative import Data.ByteString (ByteString) import Data.Char (isAlpha) import Data.Map (Map) import qualified Data.Map as M import Data.Text (Text) import qualified Data.Text.IO ...
4930398a3c861448b297d8455cf2f1e220dc74b28da644425c5a23deb8f69b00
cyverse-archive/DiscoveryEnvironmentBackend
core.clj
(ns anon-files.core (:gen-class) (:use [compojure.core] [anon-files.serve] [anon-files.config]) (:require [compojure.route :as route] [clojure.string :as string] [common-cli.core :as ccli] [ring.adapter.jetty :as jetty] [common-cfg.cfg :as cfg] ...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/anon-files/src/anon_files/core.clj
clojure
(ns anon-files.core (:gen-class) (:use [compojure.core] [anon-files.serve] [anon-files.config]) (:require [compojure.route :as route] [clojure.string :as string] [common-cli.core :as ccli] [ring.adapter.jetty :as jetty] [common-cfg.cfg :as cfg] ...
e3a60b76276e0d3190fa457fc20d468f8cb11ed40dc1a434854125325c228742
xvw/muhokama
migrate.ml
open Lib_common open Lib_crypto open Caqti_request.Infix open Caqti_type.Std let table = "muhokama_migrations" let create_migration_table = let query = (unit ->. unit) ~oneshot:true ([ "CREATE TABLE IF NOT EXISTS " ; table ; " (id SERIAL NOT NULL PRIMARY KEY," ; "number INTEGER ...
null
https://raw.githubusercontent.com/xvw/muhokama/d628d05e2fc5af3fbf86d2177458336b647ece08/lib/migration/migrate.ml
ocaml
open Lib_common open Lib_crypto open Caqti_request.Infix open Caqti_type.Std let table = "muhokama_migrations" let create_migration_table = let query = (unit ->. unit) ~oneshot:true ([ "CREATE TABLE IF NOT EXISTS " ; table ; " (id SERIAL NOT NULL PRIMARY KEY," ; "number INTEGER ...
f1c839249347330f63316b13e6a71cabae0135e595dccd6280899fef95a00ac6
bracevac/corrl
Parse.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Core/Parse.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Pretty-printer for core-F ------------------------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Core.Parse( parseCore ) where import Text.Parsec hiding (space,tab,lower,upper,alphaNum) import Common.Failure( failure, a...
d8706723b8ee788aca27314dc15b507938212b3a317425e194a8f82793cdd1ba
otpcl/otpcl
otpcl_env_tests.erl
-module(otpcl_env_tests). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). minimal_state_test() -> {ok, _S1} = otpcl:eval("", otpcl_env:minimal_state()), ok. core_state_test() -> {V1, _S1} = otpcl:eval("return foo | return", otpcl_env:core_state()), ?assertEqual(foo, V1), ok. strin...
null
https://raw.githubusercontent.com/otpcl/otpcl/b174e6dce625f7bca4772c1bca65f4a9e7bbd769/test/otpcl_env_tests.erl
erlang
-module(otpcl_env_tests). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). minimal_state_test() -> {ok, _S1} = otpcl:eval("", otpcl_env:minimal_state()), ok. core_state_test() -> {V1, _S1} = otpcl:eval("return foo | return", otpcl_env:core_state()), ?assertEqual(foo, V1), ok. strin...
09c7e1dd14911190068c294df521a3d7824d94e23e7b798dd90e3ab5cd7ff61b
fallen-icarus/cardano-swaps
Main.hs
module Main where import Options.Applicative import CLI.Parsers (parseCommand) import CLI.Run main :: IO () main = do let preferences = prefs $ showHelpOnError <> showHelpOnEmpty opts = info (parseCommand <**> helper) (fullDesc <> progDesc "A distributed Cardano DEX") customExecParser preferences opts >>= ...
null
https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/9c60327c567414842f16eddcd3baa03bfecc74e8/app/Main.hs
haskell
module Main where import Options.Applicative import CLI.Parsers (parseCommand) import CLI.Run main :: IO () main = do let preferences = prefs $ showHelpOnError <> showHelpOnEmpty opts = info (parseCommand <**> helper) (fullDesc <> progDesc "A distributed Cardano DEX") customExecParser preferences opts >>= ...
7139acbb873806e35bbfedffa9e30ddf8e46293ed7af065590a354dfffdf9375
fpco/odbc
Space.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # -- | Measure space usage of the odbc library. module Main where import Control.Concurrent.Async import Data.Text (Text) import qualified Data.Text as T import qualified Database.ODBC.Internal as Internal i...
null
https://raw.githubusercontent.com/fpco/odbc/7c0cea45d0b779419eb16177407c4ee9e7ba4c6f/bench/Space.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # | Measure space usage of the odbc library. | Weigh maps. | Run n times.
# LANGUAGE DeriveGeneric # module Main where import Control.Concurrent.Async import Data.Text (Text) import qualified Data.Text as T import qualified Database.ODBC.Internal as Internal import qualified Database.ODBC.SQLServer as SQLServer import System.Environment import Weigh...
04c8ffa073723e3531c640bb96ebb4a7172e7c70a2786f939415351c3eb4c39a
filippo/sgte
eunit_render_str.erl
-module(eunit_render_str). -include_lib("eunit/include/eunit.hrl"). %%-------------------- %% %% Tests %% %%-------------------- %% %% Render Test %% string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), ...
null
https://raw.githubusercontent.com/filippo/sgte/1d6c90cd6043d41fccd2905c8c1dd6fc19155607/test/eunit_render_str.erl
erlang
-------------------- Tests -------------------- Render Test error test test callable attribute test on a non existent file -------------------- -------------------- Template String
-module(eunit_render_str). -include_lib("eunit/include/eunit.hrl"). string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), Res = sgte:render_str(Compiled, data()), ResultStr = "This is a test:\n" ++...
2e987f118d9a41fd55674368da40c1a1880f6bc5a32ed0a9ce0fcf5638dcfb5d
otabat/couchbase-clj
future.clj
(ns couchbase-clj.test.future (:import [net.spy.memcached CASResponse] [net.spy.memcached.internal BulkGetFuture GetFuture OperationFuture] [net.spy.memcached.ops OperationStatus CASOperationStatus] [com.couchbase.client.internal HttpFuture] [com.couchbase.client.protocol.v...
null
https://raw.githubusercontent.com/otabat/couchbase-clj/5f975dc85d0eec554034eefa9d97f1ee7ad9e84a/test/couchbase_clj/test/future.clj
clojure
(use-fixtures :once tf/setup-client tf/flush-data)
(ns couchbase-clj.test.future (:import [net.spy.memcached CASResponse] [net.spy.memcached.internal BulkGetFuture GetFuture OperationFuture] [net.spy.memcached.ops OperationStatus CASOperationStatus] [com.couchbase.client.internal HttpFuture] [com.couchbase.client.protocol.v...
d239dfae396dcb2d13625e21f168b8da12da5a2d95ccede6f124b53b8374f507
stassats/storage
disk.lisp
;;; -*- Mode: Lisp -*- (in-package #:storage) (defvar *statistics* ()) (defun collect-stats (code) (let* ((type (aref *codes* code)) (cons (assoc type *statistics*))) (if cons (incf (cdr cons)) (push (cons type 1) *statistics*)) type)) (defvar *indexes*) (declaim (simple-vector *in...
null
https://raw.githubusercontent.com/stassats/storage/6e6865333e029ce9782afd8381f30fda026d1498/disk.lisp
lisp
-*- Mode: Lisp -*- (collect-stats code) T Symbol Ratio Float Characters Strings Pathname Cons list-of-objects vector Simple-vector Array Hash-table storable-class identifiable standard-object
(in-package #:storage) (defvar *statistics* ()) (defun collect-stats (code) (let* ((type (aref *codes* code)) (cons (assoc type *statistics*))) (if cons (incf (cdr cons)) (push (cons type 1) *statistics*)) type)) (defvar *indexes*) (declaim (simple-vector *indexes*)) (defvar *read...
f593801d4fa84004ab093649776ce8fb6adddb35580980c954971328ac2e3df6
mflatt/macro-dsl-tutorial
raw.rkt
#lang racket/base (provide class make-object get-field set-field! lookup-method) ( symbol ( object any ... - > any ) ) ( symbol integer ) (struct object (class ; class ( vectorof any ) (define (make-object c . args) (object c (list->vector args))) (define (get-field ...
null
https://raw.githubusercontent.com/mflatt/macro-dsl-tutorial/76e979d24c2e05bd1457e3a859645cddfee0cbd1/objects/raw.rkt
racket
class
#lang racket/base (provide class make-object get-field set-field! lookup-method) ( symbol ( object any ... - > any ) ) ( symbol integer ) ( vectorof any ) (define (make-object c . args) (object c (list->vector args))) (define (get-field o name) (vector-ref (object-fi...
f20a13c1229ffb3a492ebf80a9aa45117ac5e526c1d865b29d12b56cfe3a595c
MaskRay/OJHaskell
bangalore-bank.hs
# LANGUAGE ViewPatterns # import Control.Monad import Data.List tr x = if x == 0 then 9 else x-1 solve :: [Int] -> Int solve (map tr -> x:xs) = ((length xs+1)+) . minimum . snd . foldl' (\(y, xs) z -> let t = map (abs (y-z) +) xs in (z, snd . mapAccumR (\r x -> join (,) $ min (r+1) x) 99999 . snd . mapAccumL (\l ...
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/HackerRank/fp/bangalore-bank.hs
haskell
# LANGUAGE ViewPatterns # import Control.Monad import Data.List tr x = if x == 0 then 9 else x-1 solve :: [Int] -> Int solve (map tr -> x:xs) = ((length xs+1)+) . minimum . snd . foldl' (\(y, xs) z -> let t = map (abs (y-z) +) xs in (z, snd . mapAccumR (\r x -> join (,) $ min (r+1) x) 99999 . snd . mapAccumL (\l ...
4bae189153109f2396623dcb506e4f3a2a793e42cb5c3ddb6f5a41898fcd7b7a
amosr/folderol
ClosestPoints.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # module Bench.Clustering.ClosestPoints where import Bench.Plumbing.Folderol import Folderol import Folderol.Splice import qualified Folderol.Source as Source import qualified Data.Vector.Unboxed as Unbox import Prelude hidin...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Clustering/ClosestPoints.hs
haskell
# LANGUAGE BangPatterns # infinite...
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # module Bench.Clustering.ClosestPoints where import Bench.Plumbing.Folderol import Folderol import Folderol.Splice import qualified Folderol.Source as Source import qualified Data.Vector.Unboxed as Unbox import Prelude hiding (filter, map) type Point = ...
5079010e7d5672329d52ac946ab313758302135f98360717da950f3710b497e9
arttuka/reagent-material-ui
list_item_icon.cljs
(ns reagent-mui.material.list-item-icon "Imports @mui/material/ListItemIcon as a Reagent component. Original documentation is at -ui/api/list-item-icon/ ." (:require [reagent.core :as r] ["@mui/material/ListItemIcon" :as MuiListItemIcon])) (def list-item-icon (r/adapt-react-class (.-default MuiListI...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/list_item_icon.cljs
clojure
(ns reagent-mui.material.list-item-icon "Imports @mui/material/ListItemIcon as a Reagent component. Original documentation is at -ui/api/list-item-icon/ ." (:require [reagent.core :as r] ["@mui/material/ListItemIcon" :as MuiListItemIcon])) (def list-item-icon (r/adapt-react-class (.-default MuiListI...
71761cb02b49b97383eea37119f6ff6948de16b4167db7ecba3e7d3c7af4cdd7
tarantool/jepsen.tarantool
db.clj
(ns tarantool.db (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [clojure.java.io :as io] [next.jdbc :as j] [tarantool.client :as cl] [jepsen.os.debian :as debian] [jepsen.control.util :as cu] [jepsen [core :as ...
null
https://raw.githubusercontent.com/tarantool/jepsen.tarantool/6165e6e5752e37c04e8a0e221412ac8151a48940/src/tarantool/db.clj
clojure
Ah, we're out of date Not found Already built Build Log version
(ns tarantool.db (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [clojure.java.io :as io] [next.jdbc :as j] [tarantool.client :as cl] [jepsen.os.debian :as debian] [jepsen.control.util :as cu] [jepsen [core :as ...
c39ea2ecf2ea7d7d12dd68cd378e316778f2b051b0066877dc8a68f9073b3a29
sneeuwballen/benchpress
benchpress_lsp.ml
module Loc = Benchpress.Loc module Stanza = Benchpress.Stanza module Error = Benchpress.Error module Definitions = Benchpress.Definitions module Sexp_loc = Benchpress.Sexp_loc module Lock = CCLock type 'a or_error = ('a, Error.t) result module E = CCResult module IO = Linol.Blocking_IO module L = Linol.Jsonrpc2.Mak...
null
https://raw.githubusercontent.com/sneeuwballen/benchpress/d130298fa6975495d8bc62b01b48bad86115b7c0/src/lsp/benchpress_lsp.ml
ocaml
parsed succesfully, but stanzas might contain some additional errors configure how sync happens FIXME: completion is never useful on a parsable buffer, and buffers that do not parse have no definitions We define here a helper method that will: - process a document - store the state resulting from ...
module Loc = Benchpress.Loc module Stanza = Benchpress.Stanza module Error = Benchpress.Error module Definitions = Benchpress.Definitions module Sexp_loc = Benchpress.Sexp_loc module Lock = CCLock type 'a or_error = ('a, Error.t) result module E = CCResult module IO = Linol.Blocking_IO module L = Linol.Jsonrpc2.Mak...
26d67543aaa74184f7988fd269e64ca6f57b1d4c969fc30fbd15ed9418d89b79
xh4/web-toolkit
functions.lisp
(in-package :alexandria) ;;; To propagate return type and allow the compiler to eliminate the IF when ;;; it is known if the argument is function or not. (declaim (inline ensure-function)) (declaim (ftype (function (t) (values function &optional)) ensure-function)) (defun ensure-function (function-des...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/alexandria-20191227-git/functions.lisp
lisp
To propagate return type and allow the compiler to eliminate the IF when it is known if the argument is function or not. non-NIL value of the last predicate if all succeed. Using M-V-C we don't need to append the arguments.
(in-package :alexandria) (declaim (inline ensure-function)) (declaim (ftype (function (t) (values function &optional)) ensure-function)) (defun ensure-function (function-designator) "Returns the function designated by FUNCTION-DESIGNATOR: if FUNCTION-DESIGNATOR is a function, it is returned, otherwi...
2e98f191ec24a021f4d2bb0c6d9f95d6b63759708849f25920c23428ee7fab04
sondresl/AdventOfCode
Day05.hs
module Day05 where import Lib (count, lineSegment, (.:), freqs) import Linear (V2(..)) import Data.List (partition) import Control.Applicative (liftA2) import Text.ParserCombinators.Parsec (parse, many1, digit, char, string) import qualified Data.Map as Map main :: IO () main = do input <- parseInput <$> readFile "...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/39b536c236498ac14d7eff59423017c26c14ed1f/2021/Haskell/src/Day05.hs
haskell
module Day05 where import Lib (count, lineSegment, (.:), freqs) import Linear (V2(..)) import Data.List (partition) import Control.Applicative (liftA2) import Text.ParserCombinators.Parsec (parse, many1, digit, char, string) import qualified Data.Map as Map main :: IO () main = do input <- parseInput <$> readFile "...
b17b5e858e3b6dc27d181b30f6486824e3478f97c204575e775bcefbda74f5b8
danieljharvey/nix-mate
CreateNixFile.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module NixMate.Types.CreateNixFile where newtype Derivation = Derivation String deriving newtype (Show, Semigroup)
null
https://raw.githubusercontent.com/danieljharvey/nix-mate/0197b8517319a4ad4c9cb489579a6ed36ad9aec1/src/NixMate/Types/CreateNixFile.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module NixMate.Types.CreateNixFile where newtype Derivation = Derivation String deriving newtype (Show, Semigroup)
5c56c69b9058282b39d3f8a99623d8e084cee2356868f823a0bbdec8ba5a6b73
juspay/medea
Property.hs
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # module Data.Medea.Parser.Spec.Property ( Specification (..), parseSpecification, ) where import Data.Functor (($>)) import Data.Medea.Parser.Primitive ( Identifier, MedeaString, ReservedIdentifier (..), parseIdentifier, parseKeyVa...
null
https://raw.githubusercontent.com/juspay/medea/b493dd96f7f8d465ec95d3dafa0da430625c9c87/src/Data/Medea/Parser/Spec/Property.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # module Data.Medea.Parser.Spec.Property ( Specification (..), parseSpecification, ) where import Data.Functor (($>)) import Data.Medea.Parser.Primitive ( Identifier, MedeaString, ReservedIdentifier (..), parseIdentifier, parseKeyVa...
ec6d03e967fee6cf24001092da5b2dcad75bd06c4c29db939ff3e8b31b6d85f6
zwizwa/staapl
toplevel-hacks.rkt
#lang racket/base (provide (all-defined-out)) (require (for-syntax racket/base)) Workaround to fish something from the transformer environment in an ;; interactive session. There has to be another way.. (define-syntax (slv stx) (syntax-case stx () ((_ id) (datum->syntax #f #`'#,(syntax-loca...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/tools/toplevel-hacks.rkt
racket
interactive session. There has to be another way..
#lang racket/base (provide (all-defined-out)) (require (for-syntax racket/base)) Workaround to fish something from the transformer environment in an (define-syntax (slv stx) (syntax-case stx () ((_ id) (datum->syntax #f #`'#,(syntax-local-value #'id)))))
e6a073419185dc31e8b0beb0d56ab0f18ba2f9864b822143748a2b697031051d
artyom-poptsov/guile-ics
binary.scm
binary.scm -- iCalendar BINARY ( RFC5545 , 3.3.1 . ) type . Copyright ( C ) 2017 - 2022 Artyom V. Poptsov < > ;; ;; 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 L...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-ics/0a313ed199eea4f28655cce8370add2acbec1e82/modules/ics/type/binary.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
binary.scm -- iCalendar BINARY ( RFC5545 , 3.3.1 . ) type . Copyright ( C ) 2017 - 2022 Artyom V. Poptsov < > 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 Lic...
59b69c5202a951e5a6868d259bfc572bb344d8a2ce164862f1623bbf43a1bf97
returntocorp/semgrep
Normalize_generic.mli
val normalize_import_opt : bool -> AST_generic.directive_kind -> (AST_generic.tok * AST_generic.module_name list) option
null
https://raw.githubusercontent.com/returntocorp/semgrep/70af5900482dd15fcce9b8508bd387f7355a531d/src/matching/Normalize_generic.mli
ocaml
val normalize_import_opt : bool -> AST_generic.directive_kind -> (AST_generic.tok * AST_generic.module_name list) option
3edadf34f954b7e57399ebbd41e388f0ab27756f1bebc3b76378c080b77b325b
ghuysmans/ocaml-fet
import.ml
let test of_list f = Csv.load f |> List.tl |> List.map of_list |> List.length |> Printf.printf "%d\n" let () = test Fet.Activities.of_list "activities.csv" let () = test Fet.Activity_tags.of_list "activity_tags.csv" let () = test Fet.Rooms_and_buildings.of_list "rooms_and_buildings.csv" let () = test Fet.Sta...
null
https://raw.githubusercontent.com/ghuysmans/ocaml-fet/e1f2ce9e500e16e6d181baf9e440ede21d740ef7/tests/import.ml
ocaml
let test of_list f = Csv.load f |> List.tl |> List.map of_list |> List.length |> Printf.printf "%d\n" let () = test Fet.Activities.of_list "activities.csv" let () = test Fet.Activity_tags.of_list "activity_tags.csv" let () = test Fet.Rooms_and_buildings.of_list "rooms_and_buildings.csv" let () = test Fet.Sta...
b8e1ddc0ef8c6d1648cdb4acec9b7a98922a8c3458bee40f4be69b1770ba44e7
input-output-hk/ouroboros-network
ProtocolInfo.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Test.ThreadNet.Infra.Byron.ProtocolInfo ( mkLeaderCredentials , mkProtocolByron , theProposedProtocolVersion , theProposedSoftwareVersion ) where import Data.Foldable (find) import ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/ebb34fa4d1ba1357e3b803a49f750d2ae3df19e5/ouroboros-consensus-byron-test/src/Test/ThreadNet/Infra/Byron/ProtocolInfo.hs
haskell
# LANGUAGE OverloadedStrings # ^ We return the signing key which is needed in some tests, because it | The protocol version proposed as part of the hard-fork smoke test smoke test, if the proposal and votes are enabled, then we will be proposing an update to @1.0.0@. 'Byron.byronProtocolVersion' field of the s...
# LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Test.ThreadNet.Infra.Byron.ProtocolInfo ( mkLeaderCredentials , mkProtocolByron , theProposedProtocolVersion , theProposedSoftwareVersion ) where import Data.Foldable (find) import Data.Map.Strict (Map) import qu...
b27edf84f7641505b5bc0aba148060be4f98b619904a94901f66af05393109f2
zellige/zellige
WindingOrderSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Data.Geometry.WindingOrderSpec where import Test.Hspec (Spec, describe, it, shouldBe) import qualified Data.Geometry.WindingOrder as WindingOrder import qualified Data.SpecHelper as SpecHelper simplePolygonPts :: [(Double, Double)] simp...
null
https://raw.githubusercontent.com/zellige/zellige/87e6dab11ac4c1843009043580f14422a1d83ebf/test/Data/Geometry/WindingOrderSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Data.Geometry.WindingOrderSpec where import Test.Hspec (Spec, describe, it, shouldBe) import qualified Data.Geometry.WindingOrder as WindingOrder import qualified Data.SpecHelper as SpecHelper simplePolygonPts :: [(Double, Double)] simplePolygonPts = [(0, 0), (4, 0), (4,...
4cde179111ce494ac810ea20d50b177131e6227093c04ec3a1fa8220fb7e89db
open-telemetry/opentelemetry-erlang
otel_span_processor.erl
%%%------------------------------------------------------------------------ Copyright 2019 , OpenTelemetry Authors 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 %% %% Unl...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang/2ff5849d01f77fc143c83aa13f1d64fe2a7e5c48/apps/opentelemetry/src/otel_span_processor.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 o...
Copyright 2019 , OpenTelemetry Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @doc Behaviour each Span Processor must implement . -module(otel_span_processor). -export([start_link/2]). -type processor_config() ...
bb5632a0eb218ec6229bb37f8906173d5b430a2b6d05dfc11a10b17be84b4ce9
Smart-Sql/smart-sql
my_user_group.clj
(ns org.gridgain.plus.tools.my-user-group (:require [org.gridgain.plus.dml.select-lexical :as my-lexical] [org.gridgain.plus.dml.my-select-plus :as my-select] [org.gridgain.plus.dml.my-select-plus-args :as my-select-plus-args] [org.gridgain.plus.dml.my-smart-db :as my-smart-db] ...
null
https://raw.githubusercontent.com/Smart-Sql/smart-sql/d2f237f935472942a143816925221cdcf8246aff/src/main/clojure/org/gridgain/plus/tools/my_user_group.clj
clojure
:implements [org.gridgain.superservice.INoSqlFun] 生成 class 的类名 通过 user_token 获取 user-group 的列表对象 [0 "MY_META" "all"] (let [group_id [0 "MY_META" "all"]] (let [vs (my-lexical/no-sql-get-vs ignite group_id (doto (Hashtable.) (.put "table_name" "user_group_cache")(.put "key" user_token)))] ...
(ns org.gridgain.plus.tools.my-user-group (:require [org.gridgain.plus.dml.select-lexical :as my-lexical] [org.gridgain.plus.dml.my-select-plus :as my-select] [org.gridgain.plus.dml.my-select-plus-args :as my-select-plus-args] [org.gridgain.plus.dml.my-smart-db :as my-smart-db] ...
72b448ecaf0512686e5a0be540b1338371979e9fedfa437227accbf418ccb067
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.JA.Rules ( rules ) wh...
null
https://raw.githubusercontent.com/facebook/duckling/c6a48a1d0678a389f86d17db2676e1a289e355ce/Duckling/Numeral/JA/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.JA.Rules ( rules ) where import Data.HashMap.Strict (HashMap) import Data.String import Data.Text (Text) import Prelude import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text import Duckling.Dimensions.Types ...
e165eee54da0e0228bf2a4c39b0058f675e772a5b5d75c939570ce468d1185d1
jellelicht/guix
freeipmi.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2015 < > ;;; ;;; 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 General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/freeipmi.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 © 2013 < > Copyright © 2015 < > 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 (gnu packages freeipmi) #:use-module (guix packages) #:use-module (gu...
4c16cf55d5ec4af4498ef5d9e5a5878b23a6c29a40999123672ce5aab9fd39e2
peti/hsyslog
Functions.hs
# LANGUAGE ForeignFunctionInterface # | Maintainer : Stability : provisional Portability : POSIX Low - level FFI bindings to @syslog(3)@ et al from < POSIX.1 - 2008 > . This module is intended for purposes of low - level implementation . Users of this library should prefer safer...
null
https://raw.githubusercontent.com/peti/hsyslog/7dcdb0ad2e592191e31a137a595713d1e313498b/src/System/Posix/Syslog/Functions.hs
haskell
specific signature for the variadic function, because it's ideal for the ^ The actual log message, which does not need to be either, though. ^ The length of the log message. Yes, this is a signed integer. Yes, an unsigned integer would be better. No, I pass any negative values here, okay? ^ A process-wide identi...
# LANGUAGE ForeignFunctionInterface # | Maintainer : Stability : provisional Portability : POSIX Low - level FFI bindings to @syslog(3)@ et al from < POSIX.1 - 2008 > . This module is intended for purposes of low - level implementation . Users of this library should prefer safer...
f6d405ea7eae500e38f7b4ed7aa608417708bc0744df11c2d1ddd16be8ea9b2f
nikodemus/SBCL
sap.lisp
;;;; the PPC VM definition of SAP operations This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public dom...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/ppc/sap.lisp
lisp
the PPC VM definition of SAP operations more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Moves and coercions: Move untagged sap values. Move untagged sap arguments/return-values. Use stand...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") Move a tagged SAP to an untagged representation . (define-vop (move-to-sap) (:args (x :scs (any-...
bc2ba961151c258a9c804a856a9d9e4d7493754b3cb8949440a4f1f8500510b8
mstksg/inCode
Stream.hs
-- | -to-machines-arrows-part-1-stream-and module Stream where import Data.Char (chr) data List a = Cons (a, List a) | Nil deriving (Show) newtype Stream b = SCons { runStream :: (b, Stream b) } -- | Stream testers -- -- streamToList: Straightforward conversion to infinite list streamToList :: Stream b -> [b] st...
null
https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/code-samples/machines/Stream.hs
haskell
| -to-machines-arrows-part-1-stream-and | Stream testers streamToList: Straightforward conversion to infinite list testStream: Steps the stream n times, returning the result as a list with the modified stream. testStream_: Steps the stream n times and throws away the modified stream. | Sample List ...
module Stream where import Data.Char (chr) data List a = Cons (a, List a) | Nil deriving (Show) newtype Stream b = SCons { runStream :: (b, Stream b) } streamToList :: Stream b -> [b] streamToList (SCons (x, xs)) = x : streamToList xs testStream :: Stream b -> Int -> ([b], Stream b) testStream strm 0 = ([] , s...
bfad537bff38e9e45bfadd357a9b25632f9462744f7ded7cd3a059c58496c314
ghc/packages-Cabal
setup.test.hs
import Test.Cabal.Prelude -- Test that per-component copy works, when only building library main = setupAndCabalTest $ do withPackageDb $ do setup "configure" [] setup "build" ["lib:p"] setup "copy" ["lib:p"]
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/CopyComponent/Lib/setup.test.hs
haskell
Test that per-component copy works, when only building library
import Test.Cabal.Prelude main = setupAndCabalTest $ do withPackageDb $ do setup "configure" [] setup "build" ["lib:p"] setup "copy" ["lib:p"]
36d22c2e475e194c9eb4695cbaedc48cddf295d1d3c9ef88d245c392aef46849
ocsigen/html_of_wiki
cli.mli
val run : (Global.cli_options -> unit) -> unit
null
https://raw.githubusercontent.com/ocsigen/html_of_wiki/08f5d140cf41846ccd504d851e2bab6b418f43ee/src/ohow/cli.mli
ocaml
val run : (Global.cli_options -> unit) -> unit
fe5a1569b64f6df91ddad0997fe08f35e363a0bd04bdf45ad14e0ce16b1b7520
fimad/prometheus-haskell
GaugeSpec.hs
{-# language OverloadedStrings #-} module Prometheus.Metric.GaugeSpec ( spec ) where import Prometheus import Control.Monad import Test.Hspec spec :: Spec spec = describe "Prometheus.Metric.Gauge" $ do it "starts at zero" $ do m <- register $ gauge (Info "name" "help") value <- get...
null
https://raw.githubusercontent.com/fimad/prometheus-haskell/4e2c2f1da1f891e9de3ce5a5260ae92882a9f35e/prometheus-client/tests/Prometheus/Metric/GaugeSpec.hs
haskell
# language OverloadedStrings #
module Prometheus.Metric.GaugeSpec ( spec ) where import Prometheus import Control.Monad import Test.Hspec spec :: Spec spec = describe "Prometheus.Metric.Gauge" $ do it "starts at zero" $ do m <- register $ gauge (Info "name" "help") value <- getGauge m value `shouldBe...
2ec2d6c6ae24f95d417e7fdcd88e010decd26a2849c971449df9fe4f5283df7e
kiselgra/c-mera
nodes.lisp
;;;; Definitions of the most general node types (in-package :c-mera) Node utils (defmacro defclass# (name superclass-list slot-list &key export) "Class definition with slot initialisation :initarg :<name>" (let ((slots (loop for slot in slot-list collect `(,slot :initarg ,(intern (symbol-name slot) :keyword))...
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/src/c-mera/nodes.lisp
lisp
Definitions of the most general node types Symbols in 'subnodes' describe slots that contain nodes. Slots with only atoms are listed in 'values'. This distinction is used by the traverser. Node with source location information. Proxy nodes Temporary usage in traversers The one and only node type that contains a...
(in-package :c-mera) Node utils (defmacro defclass# (name superclass-list slot-list &key export) "Class definition with slot initialisation :initarg :<name>" (let ((slots (loop for slot in slot-list collect `(,slot :initarg ,(intern (symbol-name slot) :keyword))))) `(progn ,(when export `(export '(...
9b195e7d8f408f7adb773bf2690c21ef8a7a614d3a064f08fe0ba865acb2436e
JanAhrens/yesod-oauth-demo
Foundation.hs
module Foundation where import Prelude import Yesod import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Yesod.Auth.GoogleEmail import Yesod.Default.Config import Yesod.Default.Util (addStaticContentExternal) import Network.HTTP.Conduit (Manager) import qualified Settings import Settings.Developmen...
null
https://raw.githubusercontent.com/JanAhrens/yesod-oauth-demo/0966dc7907c35ce483f4842752dd89e8da84c542/Foundation.hs
haskell
not used ^ Settings for static file serving. ^ Database connection pool. disable the session backend, to not send cookies with each API request Store session data on the client in encrypted cookies, makeSessionBackend _ = do What messages should be logged. The following includes all messages when in development, ...
module Foundation where import Prelude import Yesod import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Yesod.Auth.GoogleEmail import Yesod.Default.Config import Yesod.Default.Util (addStaticContentExternal) import Network.HTTP.Conduit (Manager) import qualified Settings import Settings.Developmen...
8359be38c9c16690421a9ee19a14911d654cc2419b25c5083a3a2119659ae442
TDacik/Deadlock
concurrency_model.mli
Functions over conccurency model . * * Author : ( ) , 2021 * * Author: Tomas Dacik (), 2021 *) type stmt = | Lock of Cil_types.exp | Unlock of Cil_types.exp | Lock_init of Cil_types.exp | Lock_destroy of Cil_types.exp | Condition_wait of Cil_types.exp * Cil_types.exp (* Condition * Lock *)...
null
https://raw.githubusercontent.com/TDacik/Deadlock/b69d47be037d4d7f90bce63dffbe82f306498a7a/src/concurrency_model/concurrency_model.mli
ocaml
Condition * Lock Thread ID * Entry point * Argument Thread ID Function * Params * Abstraction over statements * Does given type (possibly recursively) containts lock type. * Return formal parameters of functions that main contain a lock.
Functions over conccurency model . * * Author : ( ) , 2021 * * Author: Tomas Dacik (), 2021 *) type stmt = | Lock of Cil_types.exp | Unlock of Cil_types.exp | Lock_init of Cil_types.exp | Lock_destroy of Cil_types.exp | Condition_wait of Cil_types.exp * Cil_types.exp | Thread_create of ...
c08cacfdc63ec81ef1fa88e4243dc7f304b6a1be501c525775a5052eb5827517
phronmophobic/membrane
project.clj
(defproject com.phronemophobic/membrane "0.11.1-beta" :description "A platform agnostic library for creating user interfaces" :url "" :license {:name "Apache License, Version 2.0" :url "-2.0"} :dependencies [[org.clojure/clojure "1.10.3"] [net.n01se/clojure-jna "1.0.0" ...
null
https://raw.githubusercontent.com/phronmophobic/membrane/6ce89319cd09c9dff6c00253104cf537215d6f45/project.clj
clojure
built and installed locally! "-Djna.debug_load=true" "-Djna.debug_load.jna=true" "-Xmx14g" for testing graalvm "-Dclojure.compiler.direct-linking=true" useful for clj-async-profiler "-Djdk.attach.allowAttachSelf" "-XX:+UnlockDiagnosticVMOptions" "-XX:+DebugNonSafepoints" :source-paths ["cljs_src"] skia skij...
(defproject com.phronemophobic/membrane "0.11.1-beta" :description "A platform agnostic library for creating user interfaces" :url "" :license {:name "Apache License, Version 2.0" :url "-2.0"} :dependencies [[org.clojure/clojure "1.10.3"] [net.n01se/clojure-jna "1.0.0" ...
e59d0e6f69c705e35ebc8c7ede0f6ca01709a4deab92c4125590da8d56405fc5
Virtual-Insurance-Products/relations
postgres-interface.lisp
(in-package :relations) ;; this is an implementation of a base relvar for tables stored in a postgres database (defclass postgres-table (explicitly-named join-parameter selectable projectable) ()) (defun pg-table (name) (make-instance 'postgres-table :name name)) ;; This *could* be made more specific I guess (def...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/relations/eba3bc4132b3bc6520fc3fc34abe53dca335c06b/postgres-interface.lisp
lisp
this is an implementation of a base relvar for tables stored in a postgres database This *could* be made more specific I guess QUERY GENERATION !!! I'm definitely going to want to generalise this code these are both just unary operators The 'in' (member) situation is a bit more complicated and, in general, we w...
(in-package :relations) (defclass postgres-table (explicitly-named join-parameter selectable projectable) ()) (defun pg-table (name) (make-instance 'postgres-table :name name)) (defmethod tuple-type ((x postgres-table)) 'list) (defmethod expression-operation-to-sql ((op (eql 'coalesce)) &rest operands) (wi...
f6a07f92dd119034e16a4e2b4f5dc01f760cf8330d9c30b77af1891021527cd2
avsm/eeww
typedecl_variance.ml
(**************************************************************************) (* *) (* OCaml *) (* *) , proj...
null
https://raw.githubusercontent.com/avsm/eeww/4834abb9a40a9f35d0d7041a61e53e3426d8886f/boot/ocaml/typing/typedecl_variance.ml
ocaml
************************************************************************ OCaml ...
, projet , INRIA Saclay , projet Deducteam , INRIA Saclay Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Types module TypeSet = Btype.TypeSe...
f30725569ba85098a24285b69ca904a67894d781ec6b6ed505291ad099c74dfc
ice1000/learn
the-if-function.hs
module If where _if :: Bool -> a -> a -> a _if True x _ = x _if False _ y = y
null
https://raw.githubusercontent.com/ice1000/learn/4ce5ea1897c97f7b5b3aee46ccd994e3613a58dd/Haskell/CW-Kata/the-if-function.hs
haskell
module If where _if :: Bool -> a -> a -> a _if True x _ = x _if False _ y = y
1485f4fb0ddcb124d05028ec822d9a5380e7cfca073e5b400a3e6f2dec4c0dfd
tommaisey/aeon
slew.help.scm
(hear (slew (mul (saw ar 800) 0.2) 400 400))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/controls/slew.help.scm
scheme
(hear (slew (mul (saw ar 800) 0.2) 400 400))
a0c5ebf5cf378fca1091b6a01a56b2e252d6c13f793d0342b18c4f1bde1c984e
CloudI/CloudI
numbers_fsm.erl
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- %%% ------------------------------------------------------------------- Copyright 2010 - 2020 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it a...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/proper/test/numbers_fsm.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 FITN...
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- Copyright 2010 - 2020 < > , < > 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 Licens...
5317bd50d2959246638665e44aa81bd59c6eac53d1cd3ba5d5805533d7c2d496
VisionsGlobalEmpowerment/webchange
icon_caret_up.cljs
(ns webchange.ui.components.icon.system.icon-caret-up) (def data [:svg {:xmlns "" :width "24" :height "24" :viewBox "0 0 24 24" :class-name "stroke-colored" :fill "none" :stroke "#3453A1" :stroke-width "2" :stroke-linecap "round" :stroke-linejoin "round"} [:g {:clip-path...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/e5747e187937d85e9c92c728d52a704f323f00ef/src/cljs/webchange/ui/components/icon/system/icon_caret_up.cljs
clojure
(ns webchange.ui.components.icon.system.icon-caret-up) (def data [:svg {:xmlns "" :width "24" :height "24" :viewBox "0 0 24 24" :class-name "stroke-colored" :fill "none" :stroke "#3453A1" :stroke-width "2" :stroke-linecap "round" :stroke-linejoin "round"} [:g {:clip-path...
25e2b64487c7ab9f66b699a11a8c25daebddd6c6e5b5ed14688fcfe3957b0475
qfpl/reflex-workshop
HigherOrder.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Workshop/DOM/Switching/HigherOrder.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
3da6f4ffc0e59e4a957f01b95890d64df56578b44b76a128e142abc2cccb9a8d
ff-notes/ron
Options.hs
# LANGUAGE NoImplicitPrelude # module Options ( Command (..), NodeOptions (..), Options (..), Peer (..), UIOptions (..), parseOptions, ) where import RON.Prelude import Control.Applicative ((<**>)) import Network.URI (URI (..), URIAuth (..), nullURI, nullURIAuth, ...
null
https://raw.githubusercontent.com/ff-notes/ron/cc89335845c5400618c1921e1c2af3825bb9677f/demo/chat/Options.hs
haskell
port string starts with ':'
# LANGUAGE NoImplicitPrelude # module Options ( Command (..), NodeOptions (..), Options (..), Peer (..), UIOptions (..), parseOptions, ) where import RON.Prelude import Control.Applicative ((<**>)) import Network.URI (URI (..), URIAuth (..), nullURI, nullURIAuth, ...
fcbe18224ba2b78c0a4afd8e53bf2668834ee087428580fdd5e8db02d43cc626
aaronc/freactive
project.clj
(defproject freactive "0.2.0-SNAPSHOT" :description "High-performance, pure Clojurescript, declarative DOM library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/data.avl "0.0.12"] [garden "1.2.5"] [freactive.core "0....
null
https://raw.githubusercontent.com/aaronc/freactive/b8d8c1d93a37403ae4bf812f67055bffa9f490a1/project.clj
clojure
(defproject freactive "0.2.0-SNAPSHOT" :description "High-performance, pure Clojurescript, declarative DOM library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/data.avl "0.0.12"] [garden "1.2.5"] [freactive.core "0....
2cda919fa1e3af3e93dc3c753916104fbb825dd056cf01a29149f8311ed1ec9e
letmaik/monadiccp
Or.hs
# LANGUAGE FlexibleContexts # module Control.Search.Combinator.Or ((<|>)) where import Control.Search.Language import Control.Search.GeneratorInfo import Control.Search.Generator import Control.Search.MemoReader import Control.Search.Memo import Control.Monatron.Monatron hiding (Abort, L, state, cont) import Control...
null
https://raw.githubusercontent.com/letmaik/monadiccp/fe4498e46a7b9d9e387fd5e4ed5d0749a89d0188/src/Control/Search/Combinator/Or.hs
haskell
>>> (cont j <== true) , complete = const $ return false >>> (cont j2 <== true)
# LANGUAGE FlexibleContexts # module Control.Search.Combinator.Or ((<|>)) where import Control.Search.Language import Control.Search.GeneratorInfo import Control.Search.Generator import Control.Search.MemoReader import Control.Search.Memo import Control.Monatron.Monatron hiding (Abort, L, state, cont) import Control...
d596d358dc8ceb411bf7459ff9b8dc62c077ac6148facb054a61e713850f674d
haskell-opengl/OpenGLRaw
VertexArray.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.VertexArray Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- --------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/VertexArray.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.VertexArray License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.VertexArray ( glGetEXTVertexArray, gl_EXT_vertex_array, pattern GL_COLOR_ARRAY_COUNT_EXT, pattern GL_COLOR_ARRAY_EXT, pattern GL_COLOR_ARRAY_POINTER_EXT, pattern GL_COLOR_ARRAY_SIZE_EXT, pattern ...
f379b82230f0187e0281f1489a3549f8d10ae3b67b22cef298ff297dcebf3bbb
vernemq/vernemq_dev
on_unsubscribe_hook.erl
%% @hidden -module(on_unsubscribe_hook). -include("vernemq_dev.hrl"). %% called as an 'all'-hook, return value is ignored -callback on_unsubscribe(UserName :: username(), SubscriberId :: subscriber_id(), Topics :: [Topic :: topic()]) -> ok | {ok, u...
null
https://raw.githubusercontent.com/vernemq/vernemq_dev/6d622aa8c901ae7777433aef2bd049e380c474a6/src/on_unsubscribe_hook.erl
erlang
@hidden called as an 'all'-hook, return value is ignored Change the topics which will be unsubscribed.
-module(on_unsubscribe_hook). -include("vernemq_dev.hrl"). -callback on_unsubscribe(UserName :: username(), SubscriberId :: subscriber_id(), Topics :: [Topic :: topic()]) -> ok | {ok, unsub_modifiers()} | next. -type unsub_modifiers() :: ...
2562ec7438422a108b674f8aad66bec6d98f9d1945908e6187224c107781b666
blitz/stumpwm
tile-window.lisp
;;; a dumping spot for window stuff that has tiling stuff in it (in-package :stumpwm) (defclass tile-window (window) ((frame :initarg :frame :accessor window-frame))) (defmethod update-decoration ((window tile-window)) give it a colored border but only if there are more than 1 frames . (let* ((group (windo...
null
https://raw.githubusercontent.com/blitz/stumpwm/439180985920a628b18d4426f1a29b1c36576531/tile-window.lisp
lisp
a dumping spot for window stuff that has tiling stuff in it windows that dont fill the entire screen have a transparent background. get the background updated In this case, visible means the window is the top window in the frame. This is not entirely true when it doesn't take up the entire frame and there's a win...
(in-package :stumpwm) (defclass tile-window (window) ((frame :initarg :frame :accessor window-frame))) (defmethod update-decoration ((window tile-window)) give it a colored border but only if there are more than 1 frames . (let* ((group (window-group window)) (screen (group-screen group))) (le...
ba7d4bc5d1e8ffc07312e8cbe04c6db68d5c5a5beb6d08646122847f8b3843f1
jepsen-io/maelstrom
message.clj
(ns maelstrom.net.message "Contains operations specifically related to network messages; used by both net and net.journal." (:require [schema.core :as s])) (defrecord Message [^long id src dest body]) (defn message "Constructs a new Message. If no ID is provided, uses -1." ([src dest body] (Message. -1...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/50608759036ebd5da6b3d113a8df93734763f6a2/src/maelstrom/net/message.clj
clojure
used by both
(ns maelstrom.net.message net and net.journal." (:require [schema.core :as s])) (defrecord Message [^long id src dest body]) (defn message "Constructs a new Message. If no ID is provided, uses -1." ([src dest body] (Message. -1 src dest body)) ([id src dest body] (Message. id src dest body))) (defn...
0b51a063d4039f090120c18fb95ef102c70549a5d3d7a76d7ca1bab9edfbcbca
input-output-hk/cardano-sl
Addresses.hs
module Cardano.Wallet.API.V1.Addresses where import Servant import Universum (Text) import Cardano.Wallet.API.Response import Cardano.Wallet.API.Types import Cardano.Wallet.API.V1.Parameters import Cardano.Wallet.API.V1.Types type API = Tag "Addresses" 'NoT...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/wallet/src/Cardano/Wallet/API/V1/Addresses.hs
haskell
module Cardano.Wallet.API.V1.Addresses where import Servant import Universum (Text) import Cardano.Wallet.API.Response import Cardano.Wallet.API.Types import Cardano.Wallet.API.V1.Parameters import Cardano.Wallet.API.V1.Types type API = Tag "Addresses" 'NoT...
94a18ff887da7475db3007d19474ace2126b056f967c1e17e651d55b0242a320
jmlowenthal/staged-streams.agda
ListExts.hs
Spececifications of things in Data . List but not in the H98 List module module Spec.ListExts ( foldl', foldl1', intercalate, isInfixOf, ) where import Prelude (Int, Integer, Integral, Num(..), Eq(..), Ord(..), Ordering(..), Bool(..), (&&), (||), not, Maybe(..), String, ...
null
https://raw.githubusercontent.com/jmlowenthal/staged-streams.agda/3ac5fbff18808a505185c88000a817046de35d0d/lib/stream-fusion-0.1.2.5/tests/Spec/ListExts.hs
haskell
Spececifications of things in Data . List but not in the H98 List module module Spec.ListExts ( foldl', foldl1', intercalate, isInfixOf, ) where import Prelude (Int, Integer, Integral, Num(..), Eq(..), Ord(..), Ordering(..), Bool(..), (&&), (||), not, Maybe(..), String, ...
e98de35c7d6975b32cd962bf4a9e9ced0103ee6d85a6af8d61410276b5b7cc7a
aphyr/gretchen
history_test.clj
(ns gretchen.history-test (:refer-clojure :exclude [ancestors descendants]) (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.test.check.clojure-test :refer [defsp...
null
https://raw.githubusercontent.com/aphyr/gretchen/bb7c4439884494a218561bc08a164ff0da84af36/test/gretchen/history_test.clj
clojure
test.spec iters
(ns gretchen.history-test (:refer-clojure :exclude [ancestors descendants]) (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.test.check.clojure-test :refer [defsp...
feb4ac85523676438b82667e47a8e8305d0d9e972b0d8fc1c603acc22f66da47
gebi/jungerl
loop_tcp.erl
%%% File : loop_tcp.erl Author : < > %%% Description : Loop driver api Created : 16 Oct 2004 by < > -module(loop_tcp). -vsn("$Revision$ "). -rcsid("$Id$\n"). %% Socket server for TCP/IP -export([connect/3, connect/4, listen/2, accept/1, accept/2, close/1]). -export([send/2, recv/2, recv/3, unrecv/2...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/ssh/src/loop_tcp.erl
erlang
File : loop_tcp.erl Description : Loop driver api Socket server for TCP/IP inet_tcp port lookup inet_tcp address lookup inet_tcp address lookup Send data on a socket XXX This result mapping is a kludge, that should really be fixed now, which a change in prim_inet would imply. / raimo Receive data from...
Author : < > Created : 16 Oct 2004 by < > -module(loop_tcp). -vsn("$Revision$ "). -rcsid("$Id$\n"). -export([connect/3, connect/4, listen/2, accept/1, accept/2, close/1]). -export([send/2, recv/2, recv/3, unrecv/2]). -export([shutdown/2]). -export([controlling_process/2]). -export([fdopen/2]). -expor...
89e55db2f096eb694315df891f1b59a4625ac37ce766979c18e11e8f75324173
ocaml/ocaml-lsp
snippet.mli
open! Import module Var : sig type t = | TM_SELECTED_TEXT | TM_CURRENT_LINE | TM_CURRENT_WORD | TM_LINE_INDEX | TM_LINE_NUMBER | TM_FILENAME | TM_FILENAME_BASE | TM_DIRECTORY | TM_FILEPATH end type variable_transform = { regex : string ; format_string : string ; regex_optio...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/0b1390b78c0e4f72deb76f04b8a0e83fa2f03b6c/lsp/src/snippet.mli
ocaml
open! Import module Var : sig type t = | TM_SELECTED_TEXT | TM_CURRENT_LINE | TM_CURRENT_WORD | TM_LINE_INDEX | TM_LINE_NUMBER | TM_FILENAME | TM_FILENAME_BASE | TM_DIRECTORY | TM_FILEPATH end type variable_transform = { regex : string ; format_string : string ; regex_optio...