_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
17e8f053e351bfbac812ce816c150cbf0c8b92716cc695350a1b3cbdc6611553
tonyg/racket-stomp
rpc-server.rkt
#lang racket (module+ main (require "../main.rkt") ;; or just (require stomp) (define server-host "dev.rabbitmq.com") (command-line #:program "rpc-server.rkt" #:once-each [("-s" "--server") hostname ((format "STOMP server hostname (default ~a)" server-host)) (set! server-host hostname)] #:a...
null
https://raw.githubusercontent.com/tonyg/racket-stomp/8ec9471362f42253df787c83dc3f241086be6b9f/stomp/examples/rpc-server.rkt
racket
or just (require stomp) We wrap the code in a handler for exn:stomp, in order to get insight into the details of any error messages returned by the server. We listen for requests on the RabbitMQ queue named "rpc-server.rkt". Note well we use the `'client-individual` ack-mode here. This means that each request ...
#lang racket (module+ main (define server-host "dev.rabbitmq.com") (command-line #:program "rpc-server.rkt" #:once-each [("-s" "--server") hostname ((format "STOMP server hostname (default ~a)" server-host)) (set! server-host hostname)] #:args () (void)) (define start-time (current-inex...
2a04642991799f30ba4241675a73bf5fe5863ae0fa2330412c5e19db9e2486e7
camllight/camllight
test_ratios.ml
#open "test";; #open "nat";; #open "big_int";; #open "ratio";; #open "int_misc";; #open "arith_status";; set_error_when_null_denominator false;; let infinite_failure = "infinite or undefined rational number";; testing_function "create_ratio";; let r = create_ratio (big_int_of_int 1) (big_int_of_int (-2)) in test 1 ...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/libnum/test/test_ratios.ml
ocaml
#open "test";; #open "nat";; #open "big_int";; #open "ratio";; #open "int_misc";; #open "arith_status";; set_error_when_null_denominator false;; let infinite_failure = "infinite or undefined rational number";; testing_function "create_ratio";; let r = create_ratio (big_int_of_int 1) (big_int_of_int (-2)) in test 1 ...
fc06a8c994a2f906e861811db8ffda97b52dd21ee995bfcfec2146fe4bfeb890
jyh/metaprl
itt_reflection_test.ml
extends Itt_theory extends Itt_reflection open Basic_tactics open Itt_reflection interactive wellformed_bterm_example 'J : sequent { <H> >- is_bterm{ bterm{| <J>; x:term; <K> >- prod[@]{univ[@,i:l];y.union[@]{'x;'y}} |} } } interactive isbterm_wf1 'J : sequent { <H> >- is_bterm{ bterm{| <J>; x:term; <K...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/reflection/obsolete/itt_reflection_test.ml
ocaml
extends Itt_theory extends Itt_reflection open Basic_tactics open Itt_reflection interactive wellformed_bterm_example 'J : sequent { <H> >- is_bterm{ bterm{| <J>; x:term; <K> >- prod[@]{univ[@,i:l];y.union[@]{'x;'y}} |} } } interactive isbterm_wf1 'J : sequent { <H> >- is_bterm{ bterm{| <J>; x:term; <K...
2497d38dd23937dad9e9d2b7cd664e725cbcb1f1606183537dde841bf3db802b
rotatef/cl-html5-parser
cxml-dom.lisp
;;;; HTML5 parser for Common Lisp ;;;; Copyright ( C ) 2014 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 Copyright ( C ) 2012 < > ;;;; ;;;; This library is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU Lesser General...
null
https://raw.githubusercontent.com/rotatef/cl-html5-parser/74a92eb3a183a0afd089ea33350e816e6b9aeefa/cxml/cxml-dom.lisp
lisp
HTML5 parser for Common Lisp This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ...
Copyright ( C ) 2014 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 Copyright ( C ) 2012 < > by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package #:html5-parser...
9a667085a9d795a8813c51785a6f583903e0c29dff1ee2736ea6a727befd43ad
OCamlPro/alt-ergo
loc.mli
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/291523151417f4cd112744d740b58ab1e8a630b4/src/lib/util/loc.mli
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
12b2b718aa026ba82363735f83ddd2fa82c65975ceba18781cba742273a49eba
haskell-repa/repa
Partitioned.hs
module Data.Array.Repa.Repr.Partitioned ( P, Array (..) , Range(..) , inRange) where import Data.Array.Repa.Base import Data.Array.Repa.Shape import Data.Array.Repa.Eval import Data.Array.Repa.Repr.Delayed -- | Partitioned arrays. -- The last partition takes priority -- These are produ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Repr/Partitioned.hs
haskell
| Partitioned arrays. The last partition takes priority using a different element function for each partition. The basic idea is described in ``Efficient Parallel Stencil Convolution'', though the underlying array representation has changed since this paper was published. indices defining the range p...
module Data.Array.Repa.Repr.Partitioned ( P, Array (..) , Range(..) , inRange) where import Data.Array.Repa.Base import Data.Array.Repa.Shape import Data.Array.Repa.Eval import Data.Array.Repa.Repr.Delayed These are produced by 's support functions and allow arrays to be defined data P ...
5e77dad12aca813d7d13452b37af9c7ee40d6c546f7977c7eef149931c7aa0f0
imrehg/ypsilon
orientation.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk orientation) (export gtk_orientation_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libgtk-x11-...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/orientation.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk orientation) (export gtk_orientation_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libgtk-x11-...
d1c083db8bf40fb30994feae1e5e863b7c6a17b5aac6d1b8ca2b007866b072a6
karttu/bream
dispatch.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; ;; BREAM / dispatch.scm ;; -- Generic functions for dispatching to an appropriate ; ; ;; function, based on Scheme fo...
null
https://raw.githubusercontent.com/karttu/bream/f46f2da3b285d70e83d9ae167a9d2f57f157236c/src/dispatch.scm
scheme
;; BREAM / dispatch.scm ;; ; function, based on Scheme form and calling convention/ ;; dictionary in use. ;; ...
Copyright ( C ) 2010 - 2011 , subject to the terms of the GPL v2 . ( " karttu " ) started writing this module at Sep 18 2010 . Edited Oct 28 2010 by karttu . Added one more kludgous argument , get - search - symbol for generic - dispatch . Edited Nov 20 2010 by karttu Edited May 21 2011...
7457924bd66759071d529b288d78184f275c4b3c2ad772e09152f6e6879c804c
gsakkas/rite
20060323-21:30:30-8708affd60c03e76b1b80f206b86f42a.seminal.ml
exception Unimplemented exception AlreadyDone let pi = 4.0 *. atan 1.0 let rec loopFor moves lst index acc2 = if (index = (moves-1)) then acc2 else loopFor moves lst (index+1) ((List.nth lst index)::acc2) (*** part a ***) type move = Home | Forward of float | Turn of float | For of in...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060323-21%3A30%3A30-8708affd60c03e76b1b80f206b86f42a.seminal.ml
ocaml
** part a ** ** part b ** ** part c ** ** part d ** ** part e ** ** part f ** ** possibly helpful testing code **
exception Unimplemented exception AlreadyDone let pi = 4.0 *. atan 1.0 let rec loopFor moves lst index acc2 = if (index = (moves-1)) then acc2 else loopFor moves lst (index+1) ((List.nth lst index)::acc2) type move = Home | Forward of float | Turn of float | For of int * move list l...
06f931fb6894107c2c68988fd95ac67960af8afd78e6092be03c8f10d04f1c83
parenthesin/microservice-boilerplate-malli
webserver_test.clj
(ns integration.parenthesin.webserver-test (:require [clojure.test :refer [use-fixtures]] [integration.parenthesin.util :as util] [integration.parenthesin.util.webserver :as util.webserver] [parenthesin.utils :as u] [state-flow.api :refer [defflow]] [state-f...
null
https://raw.githubusercontent.com/parenthesin/microservice-boilerplate-malli/b4bd9fa95f3457dfac47b7b64e00e4f14ba7060c/test/integration/parenthesin/webserver_test.clj
clojure
(ns integration.parenthesin.webserver-test (:require [clojure.test :refer [use-fixtures]] [integration.parenthesin.util :as util] [integration.parenthesin.util.webserver :as util.webserver] [parenthesin.utils :as u] [state-flow.api :refer [defflow]] [state-f...
0f96199fc4481c702fda231c883732167dd570733bfe0db8fb8fff2c6a083010
scalaris-team/scalaris
join_leave_proto_sched_SUITE.erl
2010 - 2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/test/join_leave_proto_sched_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2010 - 2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc Unit tests for src / dht_node_join.erl in combination with -module(join_leave_proto_sched_SUITE). -author(...
594cb5c52b9806bad657db2ff2ef571e2dcee84ec072844c8bd07673e7d9aca9
melange-re/melange
class5_test.ml
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = incr test_id ; suites := (loc ^" id " ^ (string_of_int !test_id), (fun _ -> Mt.Eq(x,y))) :: !suites class printable_point x_init = object (s) val mutable x = x_init method get_x = x method move d = x <- x ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/class5_test.ml
ocaml
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = incr test_id ; suites := (loc ^" id " ^ (string_of_int !test_id), (fun _ -> Mt.Eq(x,y))) :: !suites class printable_point x_init = object (s) val mutable x = x_init method get_x = x method move d = x <- x ...
60db590441e7d7a5b79ea66739dd5cb2df2e72bb23f8260633058814840bd5aa
flussonic/sqlapi
sql_ets_api_SUITE.erl
-module(sql_ets_api_SUITE). -compile(export_all). all() -> [{group, ets}]. groups() -> [{ets, [], [ full_cycle ]}]. init_per_suite(Config) -> application:ensure_started(sqlapi), sqlapi:load_config(#{port => 4406, listener_name => test_sql, handler => sql_ets_api, trivial => true}), Config. end_p...
null
https://raw.githubusercontent.com/flussonic/sqlapi/a8f51e3cb5827366a6224585ee52024720b9c3ef/test/sql_ets_api_SUITE.erl
erlang
-module(sql_ets_api_SUITE). -compile(export_all). all() -> [{group, ets}]. groups() -> [{ets, [], [ full_cycle ]}]. init_per_suite(Config) -> application:ensure_started(sqlapi), sqlapi:load_config(#{port => 4406, listener_name => test_sql, handler => sql_ets_api, trivial => true}), Config. end_p...
71059002375eef46ce6fa69d60501f9fd7157c538b5f6d02056c380ccd0755b0
Haskallywags/school-of-haskell
ExprT.hs
module Provided.ExprT where data ExprT = Lit Integer | Add ExprT ExprT | Mul ExprT ExprT deriving (Show, Eq)
null
https://raw.githubusercontent.com/Haskallywags/school-of-haskell/bf4475d2b1dff6165ea20461d87f4ce77aaedcf9/cis194/homework-5/src/Provided/ExprT.hs
haskell
module Provided.ExprT where data ExprT = Lit Integer | Add ExprT ExprT | Mul ExprT ExprT deriving (Show, Eq)
f3528ae8ac752d36d81ef67893c6d684bb4879aa148639f5068e6b8847cfe375
iand675/datadog
Event.hs
module Test.Network.Datadog.Event (spec) where import Control.Concurrent (threadDelay) import Control.Lens ((^.)) import Control.Monad (when) import Data.Time.Clock (addUTCTime, getCurrentTime) import Test.Hspec (Spec, describe, expectationFailure, it) import Network.Datadog (Environment, createEnvironment, loadKeysF...
null
https://raw.githubusercontent.com/iand675/datadog/0419b9dfc32581a2e27316786c23df452c7bd475/test/Test/Network/Datadog/Event.hs
haskell
module Test.Network.Datadog.Event (spec) where import Control.Concurrent (threadDelay) import Control.Lens ((^.)) import Control.Monad (when) import Data.Time.Clock (addUTCTime, getCurrentTime) import Test.Hspec (Spec, describe, expectationFailure, it) import Network.Datadog (Environment, createEnvironment, loadKeysF...
4182e65518cd229ab5bbba5925cea6442951189d6f1f34aeedd874e02d7acc3f
chansey97/clprosette-miniKanren
full-abstract-interp-extended.rkt
#lang racket (require "../mk.rkt") (require "../rosette-bridge.rkt") (require "sign-domain.rkt") (provide (all-defined-out)) The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional ;; interpreters. (define (evalo expr val) (eval-expo expr initial-env ...
null
https://raw.githubusercontent.com/chansey97/clprosette-miniKanren/0fd95aa8d2da48a87817f9436e64da6735f5e139/clprosette-miniKanren/tests/full-abstract-interp-extended.rkt
racket
interpreters. Multi-argument variadic Multi-argument Multiple argument need to make sure lambdas are well formed. grammar constraints would be useful here!!! this code is super inefficient, and calls z3 a zillion time! could be made faster this call should probably comes before the arguments to '+' are eval...
#lang racket (require "../mk.rkt") (require "../rosette-bridge.rkt") (require "sign-domain.rkt") (provide (all-defined-out)) The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional (define (evalo expr val) (eval-expo expr initial-env val)) (define (e...
336356393c8a49065221a03424b3e4c587741ed1702e4150ae13229d333c6ae3
facebook/flow
types_js.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/c22dc787522964fee15b5f45a6590c952d6201a2/src/services/inference/types_js.ml
ocaml
This module drives the type checker ***************** typecheck job helpers ******************** * A recheck is estimated to be slower than reinitializing No one who is calling collate_parse_results is skipping files with hash mismatches Clear duplicate provider errors for all dirty modules. Avoid iterating ove...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
c104322c04456251f57d7afa79a2a1eb4ce504408c1dd1a0d4b8a7d33d53645f
intolerable/reddit
SubredditSpec.hs
module Reddit.Types.SubredditSpec where import Reddit.Types.Subreddit import Data.Aeson (eitherDecode) import Data.ByteString.Lazy (ByteString) import Test.Hspec isLeft :: Either a b -> Bool isLeft = const True `either` const False main :: IO () main = hspec spec spec :: Spec spec = describe "Reddit.Types.Subreddi...
null
https://raw.githubusercontent.com/intolerable/reddit/588901f79e684536a6839d63e6f9c6a4847fe001/test/Reddit/Types/SubredditSpec.hs
haskell
module Reddit.Types.SubredditSpec where import Reddit.Types.Subreddit import Data.Aeson (eitherDecode) import Data.ByteString.Lazy (ByteString) import Test.Hspec isLeft :: Either a b -> Bool isLeft = const True `either` const False main :: IO () main = hspec spec spec :: Spec spec = describe "Reddit.Types.Subreddi...
4150bf239170635ec0aabb7d23391adc98ceaf1e801071a4aa393ace02474826
cirodrig/triolet
TypeInferenceEval.hs
| Convert type - inferred expressions to System F. This pass over the program looks up the final values of placeholders and unification variables computed by type inference . This pass over the program looks up the final values of placeholders and unification variables computed by type inference. ...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/Untyped/TypeInferenceEval.hs
haskell
| For debugging: reduce to normal form | Convert a 'Repr' to an expression that evaluates to run-time type info Call 'repr_Box' to create representation of a boxed object Should never need run-time type info for values | Convert a 'Size' to an expression that evaluates to a run-time size. Returns the size and r...
| Convert type - inferred expressions to System F. This pass over the program looks up the final values of placeholders and unification variables computed by type inference . This pass over the program looks up the final values of placeholders and unification variables computed by type inference. ...
5993e3257d31e2d5722dda8b7ea1ddc9a310b2c35241b9825838615e0f8c35a4
tonyfloatersu/solution-haskell-craft-of-FP
DequeDL.hs
module DequeDL ( DequeDL , emptyDQDL , isEmptyDQDL , addFDQDL , addBDQDL , remFDQDL , remBDQDL ) where data DequeDL a = DequeDL [a] [a] emptyDQDL :: DequeDL a emptyDQDL = DequeDL [] [] isEmptyDQDL :: DequeDL a -> Bool isEmpt...
null
https://raw.githubusercontent.com/tonyfloatersu/solution-haskell-craft-of-FP/0d4090ef28417c82a7b01e4a764f657641cb83f3/DequeDL.hs
haskell
module DequeDL ( DequeDL , emptyDQDL , isEmptyDQDL , addFDQDL , addBDQDL , remFDQDL , remBDQDL ) where data DequeDL a = DequeDL [a] [a] emptyDQDL :: DequeDL a emptyDQDL = DequeDL [] [] isEmptyDQDL :: DequeDL a -> Bool isEmpt...
912537dd3361825877c828c820b13fd40352e68aeb6323f6fa27c6faa164944c
jaspervdj/advent-of-code
23.hs
import AdventOfCode.Main (simpleMain) import Control.Monad (replicateM_, zipWithM_) import Control.Monad.ST (ST, runST) import Data.Char (digitToInt, intToDigit, isDigit) import qualified Data.Vector.Unboxed.Mutable as VUM typ...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bdc9628d1495d4e7fdbd9cea2739b929f733e751/2020/23.hs
haskell
Slow?
import AdventOfCode.Main (simpleMain) import Control.Monad (replicateM_, zipWithM_) import Control.Monad.ST (ST, runST) import Data.Char (digitToInt, intToDigit, isDigit) import qualified Data.Vector.Unboxed.Mutable as VUM typ...
9c82fbb1e9682baf6a3c4909bc8f089ec3de2b964b41065f1f58b94cde40b958
tfausak/rattletrap
MissingClassName.hs
module Rattletrap.Exception.MissingClassName where import qualified Control.Exception as Exception newtype MissingClassName = MissingClassName String deriving (Eq, Show) instance Exception.Exception MissingClassName
null
https://raw.githubusercontent.com/tfausak/rattletrap/4d6e3cc0aa0f45beaf189255943f0d824c80a7df/src/lib/Rattletrap/Exception/MissingClassName.hs
haskell
module Rattletrap.Exception.MissingClassName where import qualified Control.Exception as Exception newtype MissingClassName = MissingClassName String deriving (Eq, Show) instance Exception.Exception MissingClassName
defc6ffd505c48ca0ee7244fbd992bc545964038236dec2d31f7716c58cced39
cblp/crdt
GSet.hs
module CRDT.Cv.GSet ( GSet , add , initial , lookup ) where import Prelude hiding (lookup) import Data.Set (Set) import qualified Data.Set as Set -- | Grow-only set type GSet = Set -- | update add :: Ord a => a -> GSet a -> GSet a add = Set.insert -- | initialization initial...
null
https://raw.githubusercontent.com/cblp/crdt/175d7ee7df66de1f013ee167ac31719752e0c20b/crdt/lib/CRDT/Cv/GSet.hs
haskell
| Grow-only set | update | initialization | lookup query
module CRDT.Cv.GSet ( GSet , add , initial , lookup ) where import Prelude hiding (lookup) import Data.Set (Set) import qualified Data.Set as Set type GSet = Set add :: Ord a => a -> GSet a -> GSet a add = Set.insert initial :: GSet a initial = Set.empty lookup :: Ord a => ...
081816366eb6b534737434118e432a783a73f1d7b6bcda0a3ad8fda114b64329
Clozure/ccl-tests
set.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Jun 21 22:35:48 2003 ;;;; Contains: Tests of SET (in-package :cl-test) (deftest set.1 (let ((*var-used-in-set-tests* 'a) (var '*var-used-in-set-tests*)) (declare (special *var-used-in-set-tests*) (ignorable var)) (values *var-used-in-set-tests*...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/set.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of SET
Author : Created : Sat Jun 21 22:35:48 2003 (in-package :cl-test) (deftest set.1 (let ((*var-used-in-set-tests* 'a) (var '*var-used-in-set-tests*)) (declare (special *var-used-in-set-tests*) (ignorable var)) (values *var-used-in-set-tests* (set var 'b) *var-used-in-set-tests*)) ...
48fd820f5a0940f0b7481e991ce13e53c6806816a73ec0a4571a70b873d6e774
nd/bird
2.1.3.hs
(=>) :: Bool -> Bool -> Bool (x => y) = x && not y
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch02/2.1.3.hs
haskell
(=>) :: Bool -> Bool -> Bool (x => y) = x && not y
29cf375172b0e7c382cc024ac8dd865d6b820ec38da5f7746c1f6c2d772c3684
MastodonC/kixi.datastore
schema.clj
(ns kixi.integration.schema {::acceptance true} (:require [clojure.spec.test.alpha :refer [with-instrument-disabled]] [clojure.test :refer :all] [kixi.datastore [metadatastore :as ms] [schemastore :as ss]] [kixi.integration.base :as base :refer :all] ...
null
https://raw.githubusercontent.com/MastodonC/kixi.datastore/f33bba4b1fdd8c56cc7ac0f559ffe35254c9ca99/test/kixi/integration/schema.clj
clojure
(ns kixi.integration.schema {::acceptance true} (:require [clojure.spec.test.alpha :refer [with-instrument-disabled]] [clojure.test :refer :all] [kixi.datastore [metadatastore :as ms] [schemastore :as ss]] [kixi.integration.base :as base :refer :all] ...
b645bb5e5c1f2d23d472a915a96832fe5c43ac1d3f5bced775dd129338988a91
grin-compiler/ghc-wpc-sample-programs
NTreeEdit.hs
-- ------------------------------------------------------------ | Module : Control . Arrow . NTreeEdit Copyright : Copyright ( C ) 2011 License : MIT Maintainer : ( uwe\@fh-wedel.de ) Stability : experimental Portability : portable arrows for efficient editing of...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/hxt-9.3.1.18/src/Control/Arrow/NTreeEdit.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ | Edit parts of a rose tree eof ------------------------------------------------------------
| Module : Control . Arrow . NTreeEdit Copyright : Copyright ( C ) 2011 License : MIT Maintainer : ( uwe\@fh-wedel.de ) Stability : experimental Portability : portable arrows for efficient editing of rose trees Module : Control.Arrow.NTreeEdit Copyri...
313f067457c6115d43736eef61568750116657d307b0af67bc9ca28cdce33570
smallmelon/sdzmmo
mysql_conn.erl
%%%------------------------------------------------------------------- %%% File : mysql_conn.erl Author : < > . : MySQL connection handler , handles de - framing of messages %%% received by the MySQL receiver process. Created : 5 Aug 2005 by < > Modified : 11 Jan 2006 by < > %%% Not...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/lib/mysql/mysql_conn.erl
erlang
------------------------------------------------------------------- File : mysql_conn.erl received by the MySQL receiver process. in the file mysql.erl - I just moved it here. and different logging style. Added transaction handling and prepared statement execution. See the file COPYING ...
Author : < > . : MySQL connection handler , handles de - framing of messages Created : 5 Aug 2005 by < > Modified : 11 Jan 2006 by < > Note : All MySQL code was written by , originally Modified : 12 Sep 2006 by < > Added automatic type conversion between MySQL types and Erlang types...
18212e96098d5ed65a381030856b5fdf067237825ccf7c39114585c135e37677
vaclavsvejcar/headroom
Version.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE StrictData #-} {-# LANGUAGE TemplateHaskellQuotes #-} # LANGUAGE NoImplicitPrelude # -- | -- Module : Headroom.Meta.Version Description : Type safe representation of Haskell PVP version Copyright : ( c ) ...
null
https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/src/Headroom/Meta/Version.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # # LANGUAGE StrictData # # LANGUAGE TemplateHaskellQuotes # | Module : Headroom.Meta.Version License : BSD-3-Clause Maintainer : Stability : experimental Portability : POSIX This module contains data types and functions for working with ------...
# LANGUAGE QuasiQuotes # # LANGUAGE NoImplicitPrelude # Description : Type safe representation of Haskell PVP version Copyright : ( c ) 2019 - 2022 Haskell PVP versions ( < / > ) in type safe way . module Headroom.Meta.Version ( Version (..) , parseVersion , printVersion , printVersionP ...
64cb855c2f4d3097923b9271b8ccaeacfa45360970b17387fc732ecb4f12d38c
alvatar/spheres
test-irregex.scm
#!/usr/local/bin/csi -script regexp (load "irregex.scm") (define (subst-matches matches subst) (define (submatch n) (if (vector? matches) (and (irregex-match-valid-index? matches n) (irregex-match-substring matches n)) (list-ref matches n))) (and matches (call-with-output...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/test-irregex.scm
scheme
basic irregex chunked irregex pregexp This is here to help optimized implementations catch segfaults and other such problems. These calls will always return errors in plain Scheme, but only because it will try to use the invalid object in a way that's not supported by the operator. Once Scheme grows a...
#!/usr/local/bin/csi -script regexp (load "irregex.scm") (define (subst-matches matches subst) (define (submatch n) (if (vector? matches) (and (irregex-match-valid-index? matches n) (irregex-match-substring matches n)) (list-ref matches n))) (and matches (call-with-output...
a43717f8bbfbde226ae95e4b7322891390ed9fb4aa380dfad6c9805c47bc890d
imrehg/ypsilon
init.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk init) (export gtk_init gtk_init_add gtk_init_check gtk_init_with_args) (import (rnrs) (ypsilon ffi)) ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/init.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk init) (export gtk_init gtk_init_add gtk_init_check gtk_init_with_args) (import (rnrs) (ypsilon ffi)) ...
167ad49db0dbf750a8b61bb6f47311e61abd5a94caebe6bea431638a9b8eb003
elastic/eui-cljs
observer.cljs
(ns eui.observer (:require ["@elastic/eui/lib/components/observer/observer.js" :as eui])) (def EuiObserver eui/EuiObserver)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/observer.cljs
clojure
(ns eui.observer (:require ["@elastic/eui/lib/components/observer/observer.js" :as eui])) (def EuiObserver eui/EuiObserver)
82dbf8d3e0ee779be60bce06aeb57f059042c9cdf1128429964119f5b3b9a7b1
endobson/racket-llvm
tests.rkt
#lang racket/base (require "../simple.rkt" "../private/short.rkt") (ll (llvm-define-module module #:exports (add-float add-byte max-byte) (llvm-define-function add-float ((left float) (right float) -> float) (return (+ left right))) (llvm-define-function add-byte ((left i8) (right i8) -> i8) (retu...
null
https://raw.githubusercontent.com/endobson/racket-llvm/3eb557b0fe4bddfdfce8e8f4659d218535daa061/tests/tests.rkt
racket
#lang racket/base (require "../simple.rkt" "../private/short.rkt") (ll (llvm-define-module module #:exports (add-float add-byte max-byte) (llvm-define-function add-float ((left float) (right float) -> float) (return (+ left right))) (llvm-define-function add-byte ((left i8) (right i8) -> i8) (retu...
bae9488135a46043f163050ba500cf7a43c13f510e6a07c569f59a4537f85c41
kowainik/tomland
Monoid.hs
module Test.Toml.Codec.Combinator.Monoid ( monoidSpec ) where import Data.Monoid (All (..), Any (..), First (..), Last (..), Product (..), Sum (..)) import Test.Hspec (Spec, describe) import Test.Toml.Codec.Combinator.Common (codecRoundtrip) import qualified Hedgehog.Gen as Gen import qualified Test.Toml.Ge...
null
https://raw.githubusercontent.com/kowainik/tomland/2b4bcc465b79873a61bccfc7131d423a9a0aec1d/test/Test/Toml/Codec/Combinator/Monoid.hs
haskell
module Test.Toml.Codec.Combinator.Monoid ( monoidSpec ) where import Data.Monoid (All (..), Any (..), First (..), Last (..), Product (..), Sum (..)) import Test.Hspec (Spec, describe) import Test.Toml.Codec.Combinator.Common (codecRoundtrip) import qualified Hedgehog.Gen as Gen import qualified Test.Toml.Ge...
df3c3f79785621fd0c5adeb30a73eb83cc3f857dfb43e54b7a558d886a26c6bf
pfdietz/ansi-test
vector.lsp
;-*- Mode: Lisp -*- Author : Created : Thu Jan 23 06:32:02 2003 Contains : Tests of VECTOR ( type and function ) ;;; More tests of type vector in make-array.lsp (deftest vector.type.1 (notnot-mv (typep #(a b c) 'vector)) t) (deftest vector.type.2 (notnot-mv (typep #() 'vector)) t) (deftes...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/arrays/vector.lsp
lisp
-*- Mode: Lisp -*- More tests of type vector in make-array.lsp Tests of vector as class
Author : Created : Thu Jan 23 06:32:02 2003 Contains : Tests of VECTOR ( type and function ) (deftest vector.type.1 (notnot-mv (typep #(a b c) 'vector)) t) (deftest vector.type.2 (notnot-mv (typep #() 'vector)) t) (deftest vector.type.3 (notnot-mv (typep "" 'vector)) t) (deftest vector.t...
e17afa3f7bcad00e3c87a5944aab8bd51c6a886218731632bbd27ce42bc90b38
zotonic/z_stdlib
z_ubf_test.erl
-module(z_ubf_test). -include_lib("eunit/include/eunit.hrl"). list_test() -> L = [1,2,3], {ok, Enc} = z_ubf:encode(L), {ok, L1, _} = z_ubf:decode(Enc), ?assertEqual(L, L1), ?assertEqual(Enc, <<"#3&2&1&$">>). float_test() -> F = 3.14159, {ok, Enc} = z_ubf:encode(F), {ok, F1, _} = z_ubf...
null
https://raw.githubusercontent.com/zotonic/z_stdlib/da120ed8128dd811b0b1a2aeaa62e89c9134204a/test/z_ubf_test.erl
erlang
bug_test() -> % TODO : this was on the original code as a bug/0 function . %% was never called, but points to a bug.
-module(z_ubf_test). -include_lib("eunit/include/eunit.hrl"). list_test() -> L = [1,2,3], {ok, Enc} = z_ubf:encode(L), {ok, L1, _} = z_ubf:decode(Enc), ?assertEqual(L, L1), ?assertEqual(Enc, <<"#3&2&1&$">>). float_test() -> F = 3.14159, {ok, Enc} = z_ubf:encode(F), {ok, F1, _} = z_ubf...
bbd2c0322e17b2cef104e9b5dd2213d2c069fd7a828c88ec708eb6f1e354b3ab
adacapo21/plutusPioneerProgram
oracle-client.hs
# LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} module Main ( main ) where import Control.Concurrent import Control.Monad (when) import Control.Monad.IO.Class (MonadIO (..)) import Data.ByteString (ByteString) import Data.ByteString.Char8 (unpack) import Data.Proxy ...
null
https://raw.githubusercontent.com/adacapo21/plutusPioneerProgram/298b71148394cbbe9a0246ff2aab5001b277d63b/week06/app/oracle-client.hs
haskell
# LANGUAGE OverloadedStrings # updateOracle: Prepares a POST request TO NOT BE USED AS PRODUCTION CODE
# LANGUAGE NumericUnderscores # module Main ( main ) where import Control.Concurrent import Control.Monad (when) import Control.Monad.IO.Class (MonadIO (..)) import Data.ByteString (ByteString) import Data.ByteString.Char8 (unpack) import Data.Proxy (Proxy (..)) import Data.Text ...
2acadf8e11283eab2a1b2ffb303992024a78fb5c844ff67b2686681aa8687ac1
rroohhh/guix_system
ofono.scm
(define-module (services ofono) #:use-module (guix gexp) #:use-module (gnu services) #:use-module (gnu services dbus) #:use-module (gnu services shepherd) #:use-module (vup misc)) (define-public (ofono-shepherd-service _) "Return a shepherd service for ofono" (list (shepherd-service (documentati...
null
https://raw.githubusercontent.com/rroohhh/guix_system/72dc9099f0e73131e971317598d8cd14b0077762/services/ofono.scm
scheme
(define-module (services ofono) #:use-module (guix gexp) #:use-module (gnu services) #:use-module (gnu services dbus) #:use-module (gnu services shepherd) #:use-module (vup misc)) (define-public (ofono-shepherd-service _) "Return a shepherd service for ofono" (list (shepherd-service (documentati...
27b201cd9621335e31075c22e1958258f6eea42927b575843e7205fb026340ae
openbadgefactory/salava
async.clj
(ns salava.badgeIssuer.async (:require [salava.badgeIssuer.db :as db] [salava.core.util :refer [publish]])) (defn subscribe [ctx] {:create (fn [data] (let [event-id (-> (db/insert-create-event! ctx data) :generated_key)])) ( db / insert - selfie - event - owner ! ctx ( assoc data : event - id )...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/clj/salava/badgeIssuer/async.clj
clojure
(ns salava.badgeIssuer.async (:require [salava.badgeIssuer.db :as db] [salava.core.util :refer [publish]])) (defn subscribe [ctx] {:create (fn [data] (let [event-id (-> (db/insert-create-event! ctx data) :generated_key)])) ( db / insert - selfie - event - owner ! ctx ( assoc data : event - id )...
37b6e276572f77e095f11d4682b20499e493e6a506a1fa1eefbfb0fd8b8e13e6
kafka4beam/kflow
kflow_chunks_to_file_SUITE.erl
-module(kflow_chunks_to_file_SUITE). -include("kflow_int.hrl"). -include_lib("kflow/src/testbed/kafka_ct_setup.hrl"). -include_lib("snabbkaffe/include/ct_boilerplate.hrl"). -include_lib("erlcloud/include/erlcloud_aws.hrl"). -define(test_group_id(Topic), <<(Topic)/binary, "_test_consumer">>). -compile(export_all). %...
null
https://raw.githubusercontent.com/kafka4beam/kflow/2c44379a2934385a17fb504e7a933c859da7ab06/test/kflow_chunks_to_file_SUITE.erl
erlang
==================================================================== CT boilerplate ==================================================================== Create parent directory as a non-privileged user to prevent docker from doing it as root: Set location for minio container: =======================================...
-module(kflow_chunks_to_file_SUITE). -include("kflow_int.hrl"). -include_lib("kflow/src/testbed/kafka_ct_setup.hrl"). -include_lib("snabbkaffe/include/ct_boilerplate.hrl"). -include_lib("erlcloud/include/erlcloud_aws.hrl"). -define(test_group_id(Topic), <<(Topic)/binary, "_test_consumer">>). -compile(export_all). ...
5f054a8712773acecf83017fd904a020252718ead780491e4c7a2f233bcfa2eb
greglook/cljstyle
find.clj
(ns cljstyle.task.find "Task implementation for `cljstyle find`." (:require [cljstyle.task.process :as process] [cljstyle.task.util :as u])) (defn print-usage "Print help for the `find` command." [] (println "Usage: cljstyle [options] find [paths...]") (newline) (println "Search for files which ...
null
https://raw.githubusercontent.com/greglook/cljstyle/1f58e2e7af4c193aa77ad0695f6c2b9ac2c5c5ec/src/cljstyle/task/find.clj
clojure
(ns cljstyle.task.find "Task implementation for `cljstyle find`." (:require [cljstyle.task.process :as process] [cljstyle.task.util :as u])) (defn print-usage "Print help for the `find` command." [] (println "Usage: cljstyle [options] find [paths...]") (newline) (println "Search for files which ...
eeeec2c98c2c480a64424d9bb488bb578434622bf1f679231236faabaf47c1b8
audreyt/openafp
Utils.hs
----------------------------------------------------------------------------- -- | -- Module : OpenAFP.Prelude.Utils Copyright : ( c ) 2004 - 2011 License : PublicDomain -- -- Maintainer : -- Stability : experimental Portability : non - portable ( GHC - only ) -- This module provide...
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Prelude/Utils.hs
haskell
--------------------------------------------------------------------------- | Module : OpenAFP.Prelude.Utils Maintainer : Stability : experimental ---------------------------------------------------------------------------
Copyright : ( c ) 2004 - 2011 License : PublicDomain Portability : non - portable ( GHC - only ) This module provides various AFP manipulation utilities . module OpenAFP.Prelude.Utils where import OpenAFP.Types import OpenAFP.Records import OpenAFP.Internals import qualified Data.ByteString as ...
96f534d3065e3b71493da9710119bc143ed93847ad7615fce9905daecf37ddf4
rems-project/cerberus
ansi.ml
let start_red = "\027[31m" let start_yellow = "\027[33m" let start_green = "\027[32m" let reset_colour = "\027[0m"
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/backend/rustic/src/ansi.ml
ocaml
let start_red = "\027[31m" let start_yellow = "\027[33m" let start_green = "\027[32m" let reset_colour = "\027[0m"
efcff72666cee39bfc0b8a4068158980c75a673679aaf9693485d4aa96d88c1c
tonyg/kali-scheme
package.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . ; Structures 'n' packages. ; -------------------- ; Structures ; ; A structure is a map from names to binding records, determined by an ; interface (a set of names) and a package (a map from name...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/bcomp/package.scm
scheme
Structures 'n' packages. -------------------- Structures A structure is a map from names to binding records, determined by an interface (a set of names) and a package (a map from names to binding records). The interface is specified as a thunk. This removes dependencies on the order in which structures are d...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . (define-record-type structure :structure (really-make-structure package interface-thunk interface clients name) structure? (interface-thunk structure-interface-thunk) (interface structur...
3bfd6953376ded13fef3de3e7af85b69b8a76d3ba8e17ca508bbc579fbeecf0e
imalsogreg/servant-reflex
ReflexSpec.hs
{-# language OverloadedStrings #-} module Servant.ReflexSpec where import Control.Concurrent (threadDelay) import Control.Monad.IO.Class (liftIO) import Data.Monoid ((<>)) import qualified Data.Text as T import Data.Foldable import Test.WebDriver.Commands.Wait import Test.Hspec.WebDriver import Test.Hspec.WebDriver (...
null
https://raw.githubusercontent.com/imalsogreg/servant-reflex/20e2621cc2eca5fe38f8a01c7a159b0b9be524ea/testdriver/test/Servant/ReflexSpec.hs
haskell
# language OverloadedStrings #
module Servant.ReflexSpec where import Control.Concurrent (threadDelay) import Control.Monad.IO.Class (liftIO) import Data.Monoid ((<>)) import qualified Data.Text as T import Data.Foldable import Test.WebDriver.Commands.Wait import Test.Hspec.WebDriver import Test.Hspec.WebDriver (chromeCaps) clickingShouldCause :...
6bb4d4b4f5a9d729cf91099c3e00acff991ebef8633b1a2d6e4cfa1769b7aea9
kayceesrk/Quelea
ShoppingCartTxns.hs
# LANGUAGE TemplateHaskell , ScopedTypeVariables # module ShoppingCartTxns ( openSite, searchItem, addToCart, removeFromCart, checkOut ) where import Quelea.ClientMonad import Quelea.TH (checkTxn) import ShoppingCartDefs import ShoppingCartCtrts import Control.Monad.Trans (liftIO) import System.Random (ra...
null
https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/tests/ShoppingCart/ShoppingCartTxns.hs
haskell
Pos Pos Pos Pos Pos
# LANGUAGE TemplateHaskell , ScopedTypeVariables # module ShoppingCartTxns ( openSite, searchItem, addToCart, removeFromCart, checkOut ) where import Quelea.ClientMonad import Quelea.TH (checkTxn) import ShoppingCartDefs import ShoppingCartCtrts import Control.Monad.Trans (liftIO) import System.Random (ra...
b1cfdee91ba0a2f07cabf294f01c416d196ee45f9dafbc8e6447c62a5efe1ce4
batterseapower/supercompilation-by-evaluation
Utilities.hs
# LANGUAGE TupleSections , PatternGuards , ExistentialQuantification # # OPTIONS_GHC -fno - warn - orphans # module Utilities ( module IdSupply, module Utilities, module Control.Arrow, module Control.DeepSeq, module Control.Monad, module Data.Maybe, module Data.List, modul...
null
https://raw.githubusercontent.com/batterseapower/supercompilation-by-evaluation/daeb3e12ca8319a5144dd48a763cf7e7825a1999/Utilities.hs
haskell
Argument of a function application Argument of an infix operator Others
# LANGUAGE TupleSections , PatternGuards , ExistentialQuantification # # OPTIONS_GHC -fno - warn - orphans # module Utilities ( module IdSupply, module Utilities, module Control.Arrow, module Control.DeepSeq, module Control.Monad, module Data.Maybe, module Data.List, modul...
53f807884e6a173cd1c2d077980073e127510794e5e2d2932ee2c0bf84badca9
dbuenzli/mtime
B0.ml
open B0_kit.V000 open Result.Syntax (* OCaml library names *) let compiler_libs_toplevel = B0_ocaml.libname "compiler-libs.toplevel" let mtime = B0_ocaml.libname "mtime" let mtime_top = B0_ocaml.libname "mtime.top" let mtime_clock = B0_ocaml.libname "mtime.clock" let mtime_clock_os = B0_ocaml.libname "mtime.clock.os...
null
https://raw.githubusercontent.com/dbuenzli/mtime/0e4102781f1adfe2ef6c3feeb8c7586061f0213b/B0.ml
ocaml
OCaml library names Libraries Tests Packs
open B0_kit.V000 open Result.Syntax let compiler_libs_toplevel = B0_ocaml.libname "compiler-libs.toplevel" let mtime = B0_ocaml.libname "mtime" let mtime_top = B0_ocaml.libname "mtime.top" let mtime_clock = B0_ocaml.libname "mtime.clock" let mtime_clock_os = B0_ocaml.libname "mtime.clock.os" let mtime_lib = let ...
1b5d2da988292dfed1ad3269374e5be6fe129b638e5b1bc527701e9d4dbfcabc
naoiwata/sicp
q-1.38.scm
;; ;; @author naoiwata SICP Chapter1 q-1.38 ;; (add-load-path "." :relative) (load "q-1.37.scm") ; e = lim (1 + 1/n)^n (n -> infinity) (define e (+ 2 (cont-franc (lambda (i) 1.0) (lambda (i) (if (= (remainder (+ i 1) 3) 0) (* (+ i 1) (/ 2 3)) 1)) 100))) (print e) 2.71...
null
https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter1/q-1.38.scm
scheme
@author naoiwata e = lim (1 + 1/n)^n (n -> infinity) END
SICP Chapter1 q-1.38 (add-load-path "." :relative) (load "q-1.37.scm") (define e (+ 2 (cont-franc (lambda (i) 1.0) (lambda (i) (if (= (remainder (+ i 1) 3) 0) (* (+ i 1) (/ 2 3)) 1)) 100))) (print e) 2.7182818284590455
274ff6b794ffcc50233c57ec4a7195c8d17fba07f451f6df9df1137ff5dcd813
hunt-framework/hunt
Grammar.hs
{-# LANGUAGE OverloadedStrings #-} -- ---------------------------------------------------------------------------- | The query language . ' Query ' specifies the complete grammar . " . Query . Language . " provides a parser for plain text queries . The query language. 'Query' specifies the com...
null
https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-searchengine/src/Hunt/Query/Language/Grammar.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * Query data types * Optimizing * Pretty printing ------------------------------------------------------------ they can be repre...
| The query language . ' Query ' specifies the complete grammar . " . Query . Language . " provides a parser for plain text queries . The query language. 'Query' specifies the complete grammar. "Hunt.Query.Language.Parser" provides a parser for plain text queries. -} module Hunt.Query.Lang...
cff47e5b2b4952d4191453963ab38116d0d204bf4e430222ac5bdf2bf66661e7
mcorbin/tour-of-clojure
comp.clj
(def get-bar-foo (comp :foo :bar)) (println (get-bar-foo {:bar {:foo 1}})) (def count-and-add-one (comp (partial + 1) count)) (println (count-and-add-one [10 10 10])) (def combine-math (comp (partial + 1) (partial * 2) (partial / 10))) will do ( + 1 ( * 2 ( / 10 100 ) ) ) = > 1.2 (println (combine-math 100))
null
https://raw.githubusercontent.com/mcorbin/tour-of-clojure/57f97b68ca1a8c96904bfb960f515217eeda24a6/resources/public/pages/code/comp.clj
clojure
(def get-bar-foo (comp :foo :bar)) (println (get-bar-foo {:bar {:foo 1}})) (def count-and-add-one (comp (partial + 1) count)) (println (count-and-add-one [10 10 10])) (def combine-math (comp (partial + 1) (partial * 2) (partial / 10))) will do ( + 1 ( * 2 ( / 10 100 ) ) ) = > 1.2 (println (combine-math 100))
e2b819801557e84a4f9f3cfca475ff59e55cae243196f923023756ca26aeecd3
tommaisey/aeon
mouse-x.help.scm
(import (rsc3)) (hear (mul (sin-osc ar (mouse-x kr 40 10000 1 0.1) 0) 0.1)) (hear (mce2 (mul (sin-osc ar (mouse-x kr 20 2000 1 0.1) 0) (mouse-y kr 0.01 0.1 0 0.1)) (mul (sin-osc ar (mouse-y kr 20 2000 1 0.1) 0) (mouse-x kr 0.01 0.1 0 0.1)))) ;; Auto-pilot variant (hear (mul (sin-osc a...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/controls/mouse-x.help.scm
scheme
Auto-pilot variant
(import (rsc3)) (hear (mul (sin-osc ar (mouse-x kr 40 10000 1 0.1) 0) 0.1)) (hear (mce2 (mul (sin-osc ar (mouse-x kr 20 2000 1 0.1) 0) (mouse-y kr 0.01 0.1 0 0.1)) (mul (sin-osc ar (mouse-y kr 20 2000 1 0.1) 0) (mouse-x kr 0.01 0.1 0 0.1)))) (hear (mul (sin-osc ar (mouse-x* kr 40 1000...
c36f78eebe564ed58840e39a4c19444f5d92a70c21375fc1e7d592b54c81d96e
timbod7/terraform-hs
Core.hs
# LANGUAGE OverloadedStrings , FlexibleInstances , ScopedTypeVariables # -- | An EDSL for generating terraform code. -- The basic idea is that you compose an monadic ` TF ` action to specify -- the terraform resources and their dependencies, and then call `generateFiles` -- to actually generate the terraform files. A...
null
https://raw.githubusercontent.com/timbod7/terraform-hs/c8c505df1df5489646a5ae18b7baed7a0911ddac/src/Language/Terraform/Core.hs
haskell
| An EDSL for generating terraform code. the terraform resources and their dependencies, and then call `generateFiles` to actually generate the terraform files. An example: @ main = generateFiles "/tmp" $ do Construct an AWS virtual private cloud -- Construct a route table return () @ In terraform,...
# LANGUAGE OverloadedStrings , FlexibleInstances , ScopedTypeVariables # The basic idea is that you compose an monadic ` TF ` action to specify { - # LANGUAGE OverloadedStrings # - } import Language . Terraform . Core import Language . Terraform . Aws import Data . Default vpc < - awsVpc " vpc " " 10.30....
2c3accc935a25024a6e2ef0a683391f23d5b1871ffed6d471e76297753d21577
privet-kitty/cl-competitive
implicit-treap.lisp
(defpackage :cp/test/implicit-treap (:use :cl :fiveam :cp/implicit-treap) (:import-from :cp/test/base #:base-suite) (:import-from :cp/implicit-treap #:%itreap-value #:%itreap-priority #:%itreap-left #:%itreap-right #:%itreap-count #:%itreap-accumulator #:%itreap-lazy #:%itreap-reve...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/f63d141b9ce2e7dce23ff440a9514686d3dbc49b/module/test/implicit-treap.lisp
lisp
ref and fold point update invalid index error range update range update (for null range) null case END arg null case insert delete point update range min range update max-right min-left reverse merge/split
(defpackage :cp/test/implicit-treap (:use :cl :fiveam :cp/implicit-treap) (:import-from :cp/test/base #:base-suite) (:import-from :cp/implicit-treap #:%itreap-value #:%itreap-priority #:%itreap-left #:%itreap-right #:%itreap-count #:%itreap-accumulator #:%itreap-lazy #:%itreap-reve...
c228223145fa9b9357f65e8cec0202d2b9d89a9c418d5d8a974cd83f571a51ce
S8A/htdp-exercises
ex274.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex274) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settin...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex274.rkt
racket
about the language level of this file in a form that our tools can easily process. Lo1S -> LLo1S produces all the prefixes of list l N -> Lo1S Lo1S -> LLo1S produces a list of all the suffixes of list l N -> Lo1S
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex274) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "image.rkt" "teachpack" "2ht...
555212f09426aec289f61379a2ed497d31eddce33a4f1db8ce8714ea17092292
robert-strandh/Acclimation
language.lisp
(cl:in-package #:acclimation) (defclass language () ()) (defclass svenska (language) ()) (defclass deutsch (language) ()) (defclass tieng-viet (language) ())
null
https://raw.githubusercontent.com/robert-strandh/Acclimation/8b4418c5760a377b5e82d821658b7fd7ac494fb1/language.lisp
lisp
(cl:in-package #:acclimation) (defclass language () ()) (defclass svenska (language) ()) (defclass deutsch (language) ()) (defclass tieng-viet (language) ())
84070bb84a25c47dc13e567de437397ec56492e7a94b9365d5d783b915ede427
txyyss/Project-Euler
Euler025.hs
-- The Fibonacci sequence is defined by the recurrence relation: F(n ) = F(n-1 ) + F(n-2 ) , where F(1 ) = 1 and F(2 ) = 1 . Hence the first 12 terms will be : F(1 ) = 1 F(2 ) = 1 F(3 ) = 2 F(4 ) = 3 F(5 ) = 5 F(6 ) = 8 F(7 ) = 13 F(8 ) = 21 F(9 ) = 34 F(10 ) = 55 ) = 89 F(12 ) = 144 ...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler025.hs
haskell
The Fibonacci sequence is defined by the recurrence relation: digits?
F(n ) = F(n-1 ) + F(n-2 ) , where F(1 ) = 1 and F(2 ) = 1 . Hence the first 12 terms will be : F(1 ) = 1 F(2 ) = 1 F(3 ) = 2 F(4 ) = 3 F(5 ) = 5 F(6 ) = 8 F(7 ) = 13 F(8 ) = 21 F(9 ) = 34 F(10 ) = 55 ) = 89 F(12 ) = 144 The 12th term , F(12 ) , is the first term to contain three digit...
93c826416bba547f128706bddb5c085756248efb87efec753803141ef4b88321
ocaml-sf/learn-ocaml-corpus
test.ml
open Report open Test_lib let sample_array s = sample_array ~min_size: 1 s let exercise_1 = set_progress "Grading exercise 1." ; Section ([ Text "Exercise 1: " ; Code "rotate" ], let { before_reference ; before_user ; test } = array_arg_mutation_test_callbacks [%ty: int array] in ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq4/ex1/test.ml
ocaml
open Report open Test_lib let sample_array s = sample_array ~min_size: 1 s let exercise_1 = set_progress "Grading exercise 1." ; Section ([ Text "Exercise 1: " ; Code "rotate" ], let { before_reference ; before_user ; test } = array_arg_mutation_test_callbacks [%ty: int array] in ...
783549da1f9cf5d6f16d6e2c6499b02e6279e242cae274f2df66f71eadd9102d
uhc/uhc
Fix.hs
# LANGUAGE NoImplicitPrelude , CPP # {-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-} ----------------------------------------------------------------------------- -- | Module : System . IO.Fix Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file librar...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/ehclib/uhcbase/System/IO/Fix.hs
haskell
# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable fixIO --------------------------------------------...
# LANGUAGE NoImplicitPrelude , CPP # Module : System . IO.Fix Copyright : ( c ) The University of Glasgow 2001 module System.IO.Fix ( * The IO monad ) where import UHC.Base import Data.IORef import System.IO.Unsafe data Lazy a = Lazy a functie aangepast met Lazy data type als wrapper voor ...
a72b85e610e85cd081a7741c4a9a9d28d677ff1fc1534bbc6869024c8835c810
konn/smooth
Weil.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} ...
null
https://raw.githubusercontent.com/konn/smooth/624490c8c01be1529db75b503cf4825cb5dd14aa/src/Numeric/Algebra/Smooth/Weil.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # # OPTIONS_GHC -fplugin GHC.TypeLits.Presburger # * Various lifting functions # COMPLETE Weil # | Maximum non-vanishing power of each ariables; there can be a non-zero monomial which are not a standard monomial. | Dictionary f...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeV...
f5aabc8f436945c24ce4ca80a734a0904b45a1315d3fedc2cee02c575ead7c78
bevuta/pox
sxml.scm
(use sxml-transforms spiffy) (define (string-blank? s) (irregex-match '(* space) s)) (define (simple-format str) (let loop ((input (with-input-from-string str read-lines))) (receive (lines rest) (break string-blank? (drop-while string-blank? input)) (if (null? lines) '() (con...
null
https://raw.githubusercontent.com/bevuta/pox/9684d4037573b6c55acf24867c1d50aa8f4ea57e/sxml.scm
scheme
(use sxml-transforms spiffy) (define (string-blank? s) (irregex-match '(* space) s)) (define (simple-format str) (let loop ((input (with-input-from-string str read-lines))) (receive (lines rest) (break string-blank? (drop-while string-blank? input)) (if (null? lines) '() (con...
a9e32544d2e1dd36920e3ed1429d4df82ef46774c78e6d8f3ffe89bf1eb42a38
ulisses/Static-Code-Analyzer
StrategyInfix.hs
------------------------------------------------------------------------------ -- | Maintainer : , -- Stability : experimental -- Portability : portable -- This module is part of ' StrategyLib ' , a library of functional strategy -- combinators, including combinators for generic traversal. This module -- in...
null
https://raw.githubusercontent.com/ulisses/Static-Code-Analyzer/4c3f6423d43e1bccb9d1cf04e74ae60d9170186f/Analyzer/Strafunski/Data/Generics/Strafunski/StrategyLib/StrategyInfix.hs
haskell
---------------------------------------------------------------------------- | Stability : experimental Portability : portable combinators, including combinators for generic traversal. This module indicates how some strategy combinators could be denoted via infix combinators. ----------------------------------...
Maintainer : , This module is part of ' StrategyLib ' , a library of functional strategy module Data.Generics.Strafunski.StrategyLib.StrategyInfix where import Data.Generics.Strafunski.StrategyLib.StrategyPrelude import Data.Generics.Strafunski.StrategyLib.OverloadingTheme infixl 1 >>>, >>>=, >>>- infixl...
3078633977703a2e3f8f2d56fa534d6ca8e7b9c37a362ddc06b10764473bb383
dyzsr/ocaml-selectml
t191-vectlength.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = 0.0 in if Array.length [| x |] <> 1 then raise Not_found ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t191-vectlength.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = 0.0 in if Array.length [| x |] <> 1 then raise Not_found ...
202aff64bcb26bc8c8e41a9e7ad76f81eace14de3f042e415dbd71cad364d27f
cse-bristol/110-thermos-ui
core.cljs
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.events.core (:require [thermos-frontend.operations :as operations])) (defmulti handle (fn [_ event] (if ...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_frontend/events/core.cljs
clojure
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.events.core (:require [thermos-frontend.operations :as operations])) (defmulti handle (fn [_ event] (if ...
d6be4e7e82d481db43ae439f3beadb5b80ecd6d083d89caf86c12f531e0cf28a
bscarlet/llvm-general
User.hs
{-# LANGUAGE ForeignFunctionInterface, MultiParamTypeClasses, UndecidableInstances #-} | FFI functions for handling the LLVM User class module LLVM.General.Internal.FFI.User where import LLVM.General.Prelude import Foreign.Ptr import Foreign.C import LLVM.General.Internal.FFI.PtrHierarchy -- | a blind typ...
null
https://raw.githubusercontent.com/bscarlet/llvm-general/61fd03639063283e7dc617698265cc883baf0eec/llvm-general/src/LLVM/General/Internal/FFI/User.hs
haskell
# LANGUAGE ForeignFunctionInterface, MultiParamTypeClasses, UndecidableInstances # | a blind type to correspond to llvm::Use | test if a 'Value' is a 'User' | <#ga66a226d3d06ffada5c929656f4d97d35> | <#ga6ea72661bcca2b77bea57173317ec942> | <#ga2ad633a6afc7906f1afe329f244240f6> | <#ga799d58a361054323cb45794...
| FFI functions for handling the LLVM User class module LLVM.General.Internal.FFI.User where import LLVM.General.Prelude import Foreign.Ptr import Foreign.C import LLVM.General.Internal.FFI.PtrHierarchy data Use foreign import ccall unsafe "LLVMIsAUser" isAUser :: Ptr Value -> IO (Ptr User) foreign import c...
397fdec0e421cda332799b74649ff1e6076254d4ad3c93eaaecbf43ebc19a353
mjrusso/joy-of-clojure-examples
ch4.clj
(ns joc.ch4) (let [imadeuapi 3.14159265358979323846264338327950288419716939937M] (println (class imadeuapi)) imadeuapi) java.math . BigDecimal = > 3.14159265358979323846264338327950288419716939937 M (let [butieatedit 3.14159265358979323846264338327950288419716939937] (println (class butieatedit)) butieatedi...
null
https://raw.githubusercontent.com/mjrusso/joy-of-clojure-examples/d59fddbb416ff613af63d540d3f1076de0c79bc0/src/joc/ch4.clj
clojure
java.lang.Double => java.lang.ArithmeticException: integer overflow rational? --> check if a given number is a rational rationalize --> convert number to a rational keywords ("symbolic identifiers") -- always refer to themselves (e.g. `:magma` always has value `:magma`); however, the symbol keywords can be used a...
(ns joc.ch4) (let [imadeuapi 3.14159265358979323846264338327950288419716939937M] (println (class imadeuapi)) imadeuapi) java.math . BigDecimal = > 3.14159265358979323846264338327950288419716939937 M (let [butieatedit 3.14159265358979323846264338327950288419716939937] (println (class butieatedit)) butieatedi...
31a88a2363176dcf1d64e0bd02cbc2d8603e28242ced793383f83ea998af081d
lispbuilder/lispbuilder
package.lisp
;;; -*- lisp -*- (in-package #:cl-user) (defpackage #:lispbuilder-sdl-image-cffi (:use #:cl #:cffi) (:nicknames #:sdl-image-cffi) (:documentation "The main package of `lispbuilder-sdl-image'.") (:export No symbols are exported from the CFFI package . ))
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl-image/cffi/package.lisp
lisp
-*- lisp -*-
(in-package #:cl-user) (defpackage #:lispbuilder-sdl-image-cffi (:use #:cl #:cffi) (:nicknames #:sdl-image-cffi) (:documentation "The main package of `lispbuilder-sdl-image'.") (:export No symbols are exported from the CFFI package . ))
ec96a7e688dc5e889c83dddc90d5e442461b67c5a1c66da20a12bcb93a1abd7c
nitrogen/NitrogenProject.com
demos_binding2.erl
-module (demos_binding2). -include_lib ("nitrogen_core/include/wf.hrl"). -compile(export_all). -record(mydata, {title, author, description, postback}). main() -> #template { file="./templates/demos433.html" }. title() -> "Record-Based Binding". headline() -> "Record-Based Binding". left() -> [ " <p>...
null
https://raw.githubusercontent.com/nitrogen/NitrogenProject.com/b4b3a0dbe17394608d2ee6eaa089e3ece1285075/src/demos/demos_binding2.erl
erlang
Binding data stored in a record. The binding map is field based...
-module (demos_binding2). -include_lib ("nitrogen_core/include/wf.hrl"). -compile(export_all). -record(mydata, {title, author, description, postback}). main() -> #template { file="./templates/demos433.html" }. title() -> "Record-Based Binding". headline() -> "Record-Based Binding". left() -> [ " <p>...
f36da42468a754907122f5246f4dc0bb22220a2349f5fe1848a8a68fc3a34c24
SonyCSLParis/fcg-server
init-portuguese.lisp
(in-package :fcg-server) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Load system for the grammar ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (asdf:operate 'asdf:load-op 'portuguese-grammar) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Add pointer to cxn - inventory ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Here , you should add a pointer...
null
https://raw.githubusercontent.com/SonyCSLParis/fcg-server/99962c6f10e9e415a729f256f43767373a8dc9fe/Archive/v1.0/init-portuguese.lisp
lisp
Load system for the grammar ;; ; You can make it with the function make-html-cxn-inventory-for-fcg-interactive , e.g. (fcg::make-html-cxn-inventory-for-fcg-interactive fcg::*portuguese-corpus-grammar* :hide-labels '(fcg::morph fcg::lex)) Add pointer to examples ;; Here you should add links to text files...
(in-package :fcg-server) (asdf:operate 'asdf:load-op 'portuguese-grammar) Here , you should add a pointer to a folder containing static html for your cxn - inventory Then put it somewhere /var / www / wordpress / FCG / cxn - inventories - or talk to (pushnew '("*portuguese-corpus-grammar*" . "cxn-inventories/...
4130b5340a43a5b97b9747994a0383ada795fe6d6108a107d2cc3937c655c6b4
manuel-serrano/bigloo
library.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Module / library.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Module/library.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Library finalizer */ *===========================...
* serrano / prgm / project / bigloo / comptime / Module / library.scm * / * Author : * / * Creation : Tue Jul 9 16:05:09 1996 * / * Last change : Thu Sep 19 11:52:46 2013 ( serrano ) * / * Cop...
d5e29da13c6cf6f49a7f6802c1e6bebbd2f0b9c60ca88bf1567a13d316f82812
fizruk/free-agent
abt.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} module Main where import Control.Monad.Trans.Free import Control.Monad.State import Control.Monad.Reader import Control.Agent.Free import Control.Agent.Free.Algorithms.ABT import Control.Agent.Free.Environments.STM import Co...
null
https://raw.githubusercontent.com/fizruk/free-agent/50830431211399383c2ad1dc23882e7c4091adc3/examples/abt.hs
haskell
# LANGUAGE RankNTypes # ----------------------------------------------------------------------
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # module Main where import Control.Monad.Trans.Free import Control.Monad.State import Control.Monad.Reader import Control.Agent.Free import Control.Agent.Free.Algorithms.ABT import Control.Agent.Free.Environments.STM import Control.Concurrent.STM (atomic...
381f0290f33f76f8d96ae3316c16072bba54d76096312a6eab4970390e71f8f2
mjambon/dune-deps
Filterable.mli
(** A labeled directed graph representation, suitable for this application. It is meant to be easy to filter on, using input from the user. *) (** Holds the graph information. *) type t type node_kind = Dep_graph.Node.kind = Exe | Lib | Ext type node = private { id : string; (* unique identifier *) label ...
null
https://raw.githubusercontent.com/mjambon/dune-deps/48897a338bcbf91b57fccbed883497f050870b92/src/lib/Filterable.mli
ocaml
* A labeled directed graph representation, suitable for this application. It is meant to be easy to filter on, using input from the user. * Holds the graph information. unique identifier anything you want ID list of outgoing edges rendering hint rendering hint * Ingest a dependency graph. Node IDs mu...
type t type node_kind = Dep_graph.Node.kind = Exe | Lib | Ext type node = private { } val of_dep_graph : Dep_graph.t -> t val to_list : t -> node list val filter : t -> (node -> bool) -> t val relabel : t -> (node -> string) -> t * nodes as important or not . val set_importance : t -> (node -> bool) -> t * Re...
a282272793fb04197eba47a68f5bf5a08793d8f1a517dd221654c74ddcea35ec
ecmendenhall/malcontent
middleware_spec.clj
(ns malcontent.middleware-spec (:require [speclj.core :refer :all] [malcontent.middleware :refer :all] [malcontent.policy-spec :refer [tricky-http-policy]])) (def user-agent-string (str "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) " "AppleWebKit/537.36 (KHTML, l...
null
https://raw.githubusercontent.com/ecmendenhall/malcontent/685b996ba1589a2831ac13bf21fec3f70051536c/spec/malcontent/middleware_spec.clj
clojure
(ns malcontent.middleware-spec (:require [speclj.core :refer :all] [malcontent.middleware :refer :all] [malcontent.policy-spec :refer [tricky-http-policy]])) (def user-agent-string (str "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) " "AppleWebKit/537.36 (KHTML, l...
95b0eca0ccbe67bb69b522acea1397f4b367e130b141d1ae87cebdea5d7c193d
BillHallahan/G2
Replicate.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} module Replicate where import Prelude hiding (length, replicate, foldr, foldr1, map, concat, zipWith) infixr 9 :+: add :: a -> List a -> List a data List a = Emp | (:+:) a (List a) deriving (Eq, Ord, Show) @ measure ...
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/Liquid/Replicate.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ invariant {v:List a | 0 <= size v} @ @ add :: a -> xs:List a -> ListN a {1 + size xs} @ @ replicate :: n:Nat -> a -> {l: (List a) | n = (size l)} @ @ r :: a -> {l: (List a) | 1 = (size l)} @ @ r2 :: {l: (List Int) | 1 = (size l)} @ @ badRep :: n:Nat -> a -> {l:...
module Replicate where import Prelude hiding (length, replicate, foldr, foldr1, map, concat, zipWith) infixr 9 :+: add :: a -> List a -> List a data List a = Emp | (:+:) a (List a) deriving (Eq, Ord, Show) @ measure size : : List a - > Int size ( Emp ) = 0 ...
7ddc34aa287fb1c5a2b6d905801397bc2acd2719137383386e6ad92ff7f0b925
dgiot/dgiot
dgiot_parse_handler.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_parse/src/handler/dgiot_parse_handler.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 - 2021 DGIOT 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(dgiot_parse_handler). -author("dgiot"). -include_lib("dgiot/include/logger.hrl"). -beh...
bb076b6494d2ee5307a4a734e9a00ed62c7e26b593a56a6e19366220208ba2af
Ptival/chick
Test.hs
{-# LANGUAGE OverloadedStrings #-} module Parsing.Inductive.Test ( test, unitTests, ) where import Inductive.Inductive import Parsing.Unsafe import qualified StandardLibrary as SL import qualified Term.Raw as Raw import Term.Term import qualified Term.Universe as U import Test.Tasty import Test.Tasty.HUnit i...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/test/Parsing/Inductive/Test.hs
haskell
# LANGUAGE OverloadedStrings #
module Parsing.Inductive.Test ( test, unitTests, ) where import Inductive.Inductive import Parsing.Unsafe import qualified StandardLibrary as SL import qualified Term.Raw as Raw import Term.Term import qualified Term.Universe as U import Test.Tasty import Test.Tasty.HUnit indAnd :: Inductive Raw.Raw Variable...
3353272e23080ee4c8a4967854ad8aeab0e23aec8f0798707db9d6784bf86658
ptaoussanis/tufte
timbre.cljc
(ns taoensso.tufte.timbre "Simple logging handler for integration with Timbre." (:require [taoensso.encore :as enc] [taoensso.tufte :as tufte] #?(:clj [taoensso.timbre :as timbre :refer [log!]] :cljs [taoensso.timbre :as timbre :refer-macros [log!]]))) (defn add-timbre-log...
null
https://raw.githubusercontent.com/ptaoussanis/tufte/396ca0d5e05db9d9721635ca11bf4e00fb393ab8/src/taoensso/tufte/timbre.cljc
clojure
(ns taoensso.tufte.timbre "Simple logging handler for integration with Timbre." (:require [taoensso.encore :as enc] [taoensso.tufte :as tufte] #?(:clj [taoensso.timbre :as timbre :refer [log!]] :cljs [taoensso.timbre :as timbre :refer-macros [log!]]))) (defn add-timbre-log...
4d4751abda7522b647fd046de3428420cf44f2d7137332fb63fe79c7fd002357
uzh/ask
model.ml
module AnswerInput = struct type uuid = string option [@@deriving yojson, show, eq] type filename = string [@@deriving yojson, show, eq] type size = int [@@deriving yojson, show, eq] type mime_type = string [@@deriving yojson, show, eq] type data = string [@@deriving yojson, show, eq] type text_answer = str...
null
https://raw.githubusercontent.com/uzh/ask/5ba939c7ccbe20251b26f8d691635d94e65e518f/ask/src/model/model.ml
ocaml
module AnswerInput = struct type uuid = string option [@@deriving yojson, show, eq] type filename = string [@@deriving yojson, show, eq] type size = int [@@deriving yojson, show, eq] type mime_type = string [@@deriving yojson, show, eq] type data = string [@@deriving yojson, show, eq] type text_answer = str...
a049136181fae669d39eb5e185df0fc7acf24c98c94e8e765f30f7a26ca02d29
ndmitchell/nsis
Base64.hs
{-# LANGUAGE OverloadedStrings #-} module Examples.Base64(base64) where import Development.NSIS import Development.NSIS.Plugins.Base64 base64 = do name "base64" allowRootDirInstall True outFile "base64.exe" caption "Base64 test" showInstDetails Show installDir "$EXEDIR" requestExecutionL...
null
https://raw.githubusercontent.com/ndmitchell/nsis/4c174fa51dca97d34ee32e50fcf932aae779d8a6/test/Examples/Base64.hs
haskell
# LANGUAGE OverloadedStrings #
module Examples.Base64(base64) where import Development.NSIS import Development.NSIS.Plugins.Base64 base64 = do name "base64" allowRootDirInstall True outFile "base64.exe" caption "Base64 test" showInstDetails Show installDir "$EXEDIR" requestExecutionLevel User addPluginDir "." ...
f893a06c41acecd5bfadd8f643f445675318114a951d159d8214a696490df5bb
ghc/packages-Cabal
fail.test.hs
# LANGUAGE ScopedTypeVariables # import Test.Cabal.Prelude import Data.IORef import Control.Monad.IO.Class import Control.Exception (ErrorCall) import qualified Control.Monad.Catch as Catch main = setupTest $ do -- the following is a hack to check that `setup configure` indeed -- fails: all tests use `assertFailu...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/tests/fail.test.hs
haskell
the following is a hack to check that `setup configure` indeed fails: all tests use `assertFailure` which uses `error` if the fail note: we cannot use `fails $ do ...` here since that only checks that all assertions fail. If there is no assertion in `m`, then `fails m` will *succeed*. That's not what we want. So ...
# LANGUAGE ScopedTypeVariables # import Test.Cabal.Prelude import Data.IORef import Control.Monad.IO.Class import Control.Exception (ErrorCall) import qualified Control.Monad.Catch as Catch main = setupTest $ do succeededRef <- liftIO $ newIORef True setup "configure" [] `Catch.catch` \(_ :: ErrorCall) -> lif...
e520a23861c4a9a21225a8392a17f8ac45365a5dfa36982833f55003ea1d9fac
fpco/ide-backend
BufferMode.hs
module TestSuite.Tests.BufferMode (testGroupBufferMode) where import Data.List (partition) import Data.Monoid import Test.Tasty import Test.HUnit import qualified Data.ByteString.UTF8 as S import qualified Data.ByteString.Lazy.Char8 as L (unlines) import IdeSession import TestSuite.Assertions import TestSuite.S...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/TestSuite/Tests/BufferMode.hs
haskell
------------------------------------------------------------------------------ Auxiliary ------------------------------------------------------------------------------ total to the right thing :) As above, we don't want to be too precise. Certaily no chunks should be larger than 4, and "some" should be smaller
module TestSuite.Tests.BufferMode (testGroupBufferMode) where import Data.List (partition) import Data.Monoid import Test.Tasty import Test.HUnit import qualified Data.ByteString.UTF8 as S import qualified Data.ByteString.Lazy.Char8 as L (unlines) import IdeSession import TestSuite.Assertions import TestSuite.S...
a4b16ef94179a8411c017180f1101392652fb19b0f44da064e93d83e8a909563
goodell/cppmem
ids.mli
(*========================================================================*) (* *) cppmem model exploration tool (* *) ...
null
https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/ids.mli
ocaml
======================================================================== ...
cppmem model exploration tool This ...
6e0e9db202b466ad7f483a9fd3a48621c9df5d6ab29ec59cd8cd9ec1d3a7f235
skynet-gh/skylobby
project.clj
(defproject cryogen "0.1.0" :description "Simple static site generator" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [ring/ring-devel "1.8.2"] ...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/914db874625aa9c275b9d8986cb8b40f07ea3604/cryogen/project.clj
clojure
(defproject cryogen "0.1.0" :description "Simple static site generator" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [ring/ring-devel "1.8.2"] ...
72db142e61bb51a926c101f5f4c4a202ca9574e956d674ad8142bd3abcffebe4
janestreet/memtrace_viewer_with_deps
app_intf.ml
open! Core_kernel open Virtual_dom open Async_kernel (** Common module types *) module type Model = sig type t (** A function for testing whether the model has changed enough to require refiring the incremental graph. It's best if the values in the model support a semantically reasonable cutoff ...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/src/app_intf.ml
ocaml
* Common module types * A function for testing whether the model has changed enough to require refiring the incremental graph. It's best if the values in the model support a semantically reasonable cutoff function which lets you avoid infinite recomputation loops that can otherwise be triggere...
open! Core_kernel open Virtual_dom open Async_kernel module type Model = sig type t val cutoff : t -> t -> bool end module type Action = sig type t [@@deriving sexp_of] end module type State = sig * Represents the imperative state associated with an application , typically used for housing things lik...
bf5bd945e03010bbb562396fd79323c27e0fb730590e9fb45169ad5c65cdafd2
dyzsr/ocaml-selectml
flambda_to_clambda.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/middle_end/flambda/flambda_to_clambda.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "+a-4-9-30-40-41-42"] module V = Backend_var modu...
b3aa5587e329ae0caf04825d1174945279cccb061bda469c190c9cb0ab8a2b12
flussonic/type_mapper
tm_logger.erl
-module(tm_logger). -include("../include/type_mapper.hrl"). -export([tm_handle_scalar/3, tm_handle_record_field/4, tm_handle_close_record/4]). tm_handle_scalar(_, Input, Type) -> io:format("tm_handle_scalar(~p,~p)\n", [Input, Type]), {ok, Input}. tm_handle_record_field(_, Class, ExtractedValue, #type_mapper...
null
https://raw.githubusercontent.com/flussonic/type_mapper/a8fb63daeb4f3817588bc06930a0c04a56539f02/src/tm_logger.erl
erlang
-module(tm_logger). -include("../include/type_mapper.hrl"). -export([tm_handle_scalar/3, tm_handle_record_field/4, tm_handle_close_record/4]). tm_handle_scalar(_, Input, Type) -> io:format("tm_handle_scalar(~p,~p)\n", [Input, Type]), {ok, Input}. tm_handle_record_field(_, Class, ExtractedValue, #type_mapper...
faaa7871eb48f8b12f0a5340e3a6245443981d3f57e1cad01577c711801ceaf6
facebook/duckling
Corpus.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 OverloadedStrings #-} module Duckling.AmountOfMoney.PT.Corpus ( corpus ) where import Dat...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/AmountOfMoney/PT/Corpus.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 OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.AmountOfMoney.PT.Corpus ( corpus ) where import Data.String import Prelude import Duckling.AmountOfMoney.Types import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLo...
11dcb498be878e4ecbcf40d850d9c317961a8679632f78bc2bc405d7a635c75f
pmh/funkyweb
response.clj
(ns funkyweb.helpers.response) (declare alter-response) (def *response* (ref {})) (defn response "Applies f and args to the response map and returns a new copy with the changes present (response merge {:foo \"bar\"} = > { : foo \"bar\ " } " [f & args] (apply f @*response* args)) (defn response-set [k v &...
null
https://raw.githubusercontent.com/pmh/funkyweb/b3731c5664c3b6a40db32a1fef18a59777d9156d/src/funkyweb/helpers/response.clj
clojure
(ns funkyweb.helpers.response) (declare alter-response) (def *response* (ref {})) (defn response "Applies f and args to the response map and returns a new copy with the changes present (response merge {:foo \"bar\"} = > { : foo \"bar\ " } " [f & args] (apply f @*response* args)) (defn response-set [k v &...
0443652596dc50ab3e790ef4b180286e24bc9b82449b00fb8caa062ea28f5d54
ucsd-progsys/dsolve
funfieldrel.ml
type t = {x: int; y: int};; qualif XGEY(r): r.y <= r.x;; qualif LTA(b): b <= a;; let f a b = {x = a; y = b} in f 5 3;;
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/funfieldrel.ml
ocaml
type t = {x: int; y: int};; qualif XGEY(r): r.y <= r.x;; qualif LTA(b): b <= a;; let f a b = {x = a; y = b} in f 5 3;;
d03c42560613eaa7dfdf8f9a089886b3bb25502122bcf795019d02473fc01d2e
archaelus/erms
erms_smpp.erl
%%%------------------------------------------------------------------- @copyright Catalyst IT Ltd ( ) %%% @author nt < > %% @version {@vsn}, {@date} {@time} @doc SMPP utility functions %% @end %%%------------------------------------------------------------------- -module(erms_smpp). %% API -export([pdu_to_ms...
null
https://raw.githubusercontent.com/archaelus/erms/5dbe5e79516a16e461e7a2a345dd80fbf92ef6fa/src/erms_smpp.erl
erlang
------------------------------------------------------------------- @version {@vsn}, {@date} {@time} @end ------------------------------------------------------------------- API ------------------------------------------------------------------- Include files -------------------------------------------------------...
@copyright Catalyst IT Ltd ( ) @author nt < > @doc SMPP utility functions -module(erms_smpp). -export([pdu_to_msg/1, smpptime_year_normalise/1, pdu_timing/1, smpp_timing/2, smpptime_to_universal/1, smpptime_to_universal/2, universal_to_smpptime/1, ...
63633de425954257043c070edc4c9c4bdeff8adb6664aecc7eab03ba4a389ae9
achirkin/qua-kit
Import.hs
{-# OPTIONS_HADDOCK hide, prune #-} module Import ( module Import ) where import Foundation as Import import Import.NoFoundation as Import import Model.Session as Import
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Import.hs
haskell
# OPTIONS_HADDOCK hide, prune #
module Import ( module Import ) where import Foundation as Import import Import.NoFoundation as Import import Model.Session as Import
db8f06b6374fd20ac682d94c3cac0b2fedbd25cc53c485389d4302a192f08743
michaelklishin/monger
cursor_test.clj
(ns monger.test.cursor-test (:import [com.mongodb DBCursor DBObject Bytes] [java.util List Map]) (:require [monger.core :as mg] [clojure.test :refer :all] [monger.cursor :refer :all])) (let [conn (mg/connect) db (mg/get-db conn "monger-test")] (deftest make-db-cursor-...
null
https://raw.githubusercontent.com/michaelklishin/monger/9f3d192dffb16da011f805355b87ae172c584a69/test/monger/test/cursor_test.clj
clojure
test default value removing not-set option should not affect result removing active option should remove correct value remove key and add another option
(ns monger.test.cursor-test (:import [com.mongodb DBCursor DBObject Bytes] [java.util List Map]) (:require [monger.core :as mg] [clojure.test :refer :all] [monger.cursor :refer :all])) (let [conn (mg/connect) db (mg/get-db conn "monger-test")] (deftest make-db-cursor-...
b0474718b299bddf89ae660c5f5d137199f099e055cb04ab41326cf99ec02f1b
oliyh/re-learn
todos_clear.cljs
(ns todomvc.components.todos-clear (:require [todomvc.session :as session] [todomvc.actions :as actions] [todomvc.helpers :as helpers])) (defn component [] [:button#clear-completed {:on-click #(actions/clear-completed-todos @session/todos) :style {:display (helpe...
null
https://raw.githubusercontent.com/oliyh/re-learn/8fb3307554debb28b6545a4d38fa3b1ccfa43419/example/todomvc/todomvc/components/todos_clear.cljs
clojure
(ns todomvc.components.todos-clear (:require [todomvc.session :as session] [todomvc.actions :as actions] [todomvc.helpers :as helpers])) (defn component [] [:button#clear-completed {:on-click #(actions/clear-completed-todos @session/todos) :style {:display (helpe...
b734e1ad8c61772e64bf2b1d069650676e64ab8ccc9551ddc79c2a2c24dac45f
janestreet/universe
import.ml
open! Core_kernel include Virtual_dom.Vdom include Virtual_dom_test_helpers
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/virtual_dom/test/import.ml
ocaml
open! Core_kernel include Virtual_dom.Vdom include Virtual_dom_test_helpers
6ca03d92fb07b3076500348bb1b0568a4792c2d1e67a94ca40262b99f1f21bb9
sbcl/sbcl
kill-non-lisp-thread.impure.lisp
;;;; Testing signal handling in non-lisp threads. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This softwar...
null
https://raw.githubusercontent.com/sbcl/sbcl/1cde1dcd3a2802b6a8bfa2eb5008bc6941e1702d/tests/kill-non-lisp-thread.impure.lisp
lisp
Testing signal handling in non-lisp threads. more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. On sb-safepoint builds, the usual resignalling...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . #+(or :win32 (not :sb-thread)) (invoke-restart 'run-tests::skip-file) (use-package :sb-alien) (defun run (program &rest arguments) (let* ((proc nil) (outp...
587a2458d050c56a35b29041371f27446007a8df93d26740ab8e8939b7e44520
fjvallarino/monomer
LabeledItem.hs
| Module : . Widgets . Containers . Base . LabeledItem Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Container for items with an associated clickable label . Mainly used with radio and c...
null
https://raw.githubusercontent.com/fjvallarino/monomer/b8d3b82b50719204385179614f06bae283f90303/src/Monomer/Widgets/Containers/Base/LabeledItem.hs
haskell
# LANGUAGE RankNTypes # | Creates a stack with a label and the provided widget, passing to this widget all the click events received. Positioning is configurable. ^ The side of the label. ^ The child spacing. ^ The caption. ^ The config options. ^ The child node. ^ The created stack.
| Module : . Widgets . Containers . Base . LabeledItem Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Container for items with an associated clickable label . Mainly used with radio and c...
3fbde6a177532434d3ca1d1190def82fe3b9325b46aebed40e3716b7d7d204e2
chrissound/GitChapter
Parsers.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # module Operations.Parsers where import Hart import Text.Parsec.String import Data.Either.Extra import Safe import Data.Bool import Text.Parsec hiding (parserTrace) data SectionBlock = SectionRaw Text | SectionGHCi Text (Maybe Text) deriving (Show, Eq) data...
null
https://raw.githubusercontent.com/chrissound/GitChapter/4bfd9bd47b622c1dac08ab8e5ab4427432c48d26/src/Operations/Parsers.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Operations.Parsers where import Hart import Text.Parsec.String import Data.Either.Extra import Safe import Data.Bool import Text.Parsec hiding (parserTrace) data SectionBlock = SectionRaw Text | SectionGHCi Text (Maybe Text) deriving (Show, Eq) data FileLineRange = FileLineRange (May...
099224b84af05f92609726519a4f0ce96156f15acd2027f502abe71688af13da
paulbutcher/lein-lambda
identitymanagement.clj
(ns lein-lambda.identitymanagement (:require [clojure.string :as string] [amazonica.aws.identitymanagement :as amazon] [amazonica.aws.securitytoken :as sts])) (defn account-id [] (get-in (sts/get-caller-identity {}) [:account])) (defn- get-role-arn [name] (get-in (amazon/get-role :role-n...
null
https://raw.githubusercontent.com/paulbutcher/lein-lambda/20398b6dadeb9679d7eb258d4c47b60cd8485ff7/src/lein_lambda/identitymanagement.clj
clojure
(ns lein-lambda.identitymanagement (:require [clojure.string :as string] [amazonica.aws.identitymanagement :as amazon] [amazonica.aws.securitytoken :as sts])) (defn account-id [] (get-in (sts/get-caller-identity {}) [:account])) (defn- get-role-arn [name] (get-in (amazon/get-role :role-n...
b4bf6a72c250a3220b1a37aecc29ae92d5c6410419958da732e0daa716581e5d
achirkin/vulkan
VK_EXT_line_rasterization.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {-# LANGUAGE PatternSynonyms #-} {-# LA...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_line_rasterization.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | supported: @vulkan@ author: @EXT@ type: @dev...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_EXT_line_rasterization * Vulkan extension : @VK_EXT_line_rasterization@ contact : @Jeff Bolz @jeffbolznv@ module Graphics.Vulkan.Ma...
1a04274ff2d5e6ecd114efc50106aa3dbb0b726a608226fd4ab346ed8953ea13
lthms/chain
Main.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module Main where import Control.Monad ...
null
https://raw.githubusercontent.com/lthms/chain/6b709756a84f118950337e5aae7d6b6caa3f3df9/chain-fs/app/Main.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # we have printed the reason we failed we could not
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module Main where import Control.Monad (forever) import Control.Monad.Chain import Control.Monad.Chain.Console as Console import qualified Control.Monad.Chain.Fs a...