_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
9693ae35df60b757f30ecacc7aab2a78cdbeff1bf452fb86bfc988bb4c6f77a8
kazu-yamamoto/http3
Internal.hs
module Network.HTTP3.Internal ( module Network.HTTP3.Error , module Network.HTTP3.Frame ) where import Network.HTTP3.Error import Network.HTTP3.Frame
null
https://raw.githubusercontent.com/kazu-yamamoto/http3/93b2b18a3b92b313129b91b6cafefd8f228215db/Network/HTTP3/Internal.hs
haskell
module Network.HTTP3.Internal ( module Network.HTTP3.Error , module Network.HTTP3.Frame ) where import Network.HTTP3.Error import Network.HTTP3.Frame
89d7c3021d9dab913ba06d0f4d3168d06d17e675e619fd38478c74332f0fca99
ocaml-ppx/ocamlformat
verbatim_comments.ml
= Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer . * [ ... ] THIS SOFTWARE IS P...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/ddca4a34439926e5e36e1f0ce9180feaf69a671a/test/passing/tests/verbatim_comments.ml
ocaml
= Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer . * [ ... ] THIS SOFTWARE IS P...
25c0a52f9a85cc38ecb14eccb865273a46bfb3d0e9ee0a1e98acdc3466c9529f
ghc/packages-Cabal
Dependency.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Distribution.Types.Dependency ( Dependency(..) , mkDependency , depPkgName , depVerRange , depLibraries , simplifyDependency , mainLibSet ) where import Distribution.Compat.Prelude import Prelude () import Distribution.Types.V...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/Types/Dependency.hs
haskell
# LANGUAGE DeriveDataTypeable # | Describes a dependency on a source package (API) set of library names. ^ The set of libraries required from the package. Only the selected libraries will be built. It does not affect the cabal-install solver yet. | Smart constructor of 'Dependency'. it is automatically conver...
# LANGUAGE DeriveGeneric # module Distribution.Types.Dependency ( Dependency(..) , mkDependency , depPkgName , depVerRange , depLibraries , simplifyDependency , mainLibSet ) where import Distribution.Compat.Prelude import Prelude () import Distribution.Types.VersionRange (isAnyVersionLight) impo...
6bcf14f03e840ba8010d0cda4415259e071eff0b0b4dde2170847bb86e0ecd86
polymeris/cljs-aws
cloudsearch.cljs
(ns cljs-aws.cloudsearch (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "CloudSearch" "cloudsearch-2013-01-01.min.json")
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/src/cljs_aws/cloudsearch.cljs
clojure
(ns cljs-aws.cloudsearch (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "CloudSearch" "cloudsearch-2013-01-01.min.json")
3b6c9c17b3a21f3ec6e387f14f27aca4e631306a6367fd9abb8ca27b49d0d4c4
stchang/lazyprofile-tool
csv-parser-full-profiled.rkt
# lang racket #lang s-exp "../../lazy-profile.rkt" ;(require "parser-with-errors.rkt") ;(provide (all-defined-out)) ;(require "string-helpers.rkt") (define (str-empty? str) (string=? str "")) (define (str-fst str) (string-ref str 0)) (define (str-rst str) (substring str 1)) ;(require (only-in racket [string mk-strin...
null
https://raw.githubusercontent.com/stchang/lazyprofile-tool/f347cbe6e91f671320d025d9217dfe1795b8d0f0/examples-popl2014/parsec/csv-parser-full-profiled.rkt
racket
(require "parser-with-errors.rkt") (provide (all-defined-out)) (require "string-helpers.rkt") (require (only-in racket [string mk-string])) (provide (all-defined-out)) - (Consumed [Reply X]) - (Empty [Reply X]) should be lazy? (see >>= def) - (Ok X State Message) - (Error Message) creates a parser that consumes n...
# lang racket #lang s-exp "../../lazy-profile.rkt" (define (str-empty? str) (string=? str "")) (define (str-fst str) (string-ref str 0)) (define (str-rst str) (substring str 1)) (define (mk-string x) (string x)) Parsec with errors messages A [ Parser X ] is a function State - > [ Consumed X ] A State is a (...
be6cef10499a28d90583490bcbbeb6a5a5b4b68d20efa8a891bcc55383c0fbad
Tyruiop/syncretism
options.clj
(ns syncretism.crawler.options (:require [taoensso.timbre :as timbre :refer [info warn error]] [clojure.java.io :as io] [clojure.string :as str] [clojure.data.json :as json] [clojure.set :as set] [clj-http.client :as http] [syncretism.crawler.db :as odb] [syncretism.crawler.shared :refer [conf...
null
https://raw.githubusercontent.com/Tyruiop/syncretism/f387ab88abf8a9c1aea48e3a2f616de879e75883/syncretism-crawler/src/syncretism/crawler/options.clj
clojure
------- REQUEST QUEUE ------------- (count @symbols) (alternating query endpoint) Once a day, clean the queue and the symbols list (mainly, remove all options that have expired) Query a (symbol, date) pair, add any never seen before expiration date to the queue, and append a new call for the on just seen. ...
(ns syncretism.crawler.options (:require [taoensso.timbre :as timbre :refer [info warn error]] [clojure.java.io :as io] [clojure.string :as str] [clojure.data.json :as json] [clojure.set :as set] [clj-http.client :as http] [syncretism.crawler.db :as odb] [syncretism.crawler.shared :refer [conf...
d70cc51a9aeaa56840eb643b7bc783a8203ed9d9fbfaa5c17d69c2919be5f5e4
phoe/riichi-evaluator
payment-trainer.lisp
;;;; src/payment-trainer.lisp ;;;; Copyright 2012 - 2019 Kimmo " keko " and " phoe " Herda . ;;;; ;;;; 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 wit...
null
https://raw.githubusercontent.com/phoe/riichi-evaluator/52503213129e82c6e7c9f06a5ccd4a4fc4f6b186/src/payment-trainer.lisp
lisp
src/payment-trainer.lisp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions:...
Copyright 2012 - 2019 Kimmo " keko " and " phoe " Herda . to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRAN...
31396287c7d03b53b82b7aa8bc2979e0d4a7543436fe434ea25fe152827b0d2e
mchakravarty/HaskellSpriteKit
Geometry.hs
# LANGUAGE TemplateHaskell , QuasiQuotes , DeriveDataTypeable , RecordWildCards , ForeignFunctionInterface # -- | Module : Graphics . . Geometry Copyright : [ 2014 ] -- License : All rights reserved -- Maintainer : < > -- Stability : experimental -- -- Geometry types and operations mo...
null
https://raw.githubusercontent.com/mchakravarty/HaskellSpriteKit/f4ed000f0c0e0055d0f6d2d87a1e3d6f38996bed/HaskellSpriteKit/spritekit/Graphics/SpriteKit/Geometry.hs
haskell
| License : All rights reserved Stability : experimental Geometry types and operations ** Basic temporal definition ** Basic geometry definitions * Marshalling functions (internal) standard libraries language-c-inline Temporal definitions -------------------- Basic geometry definitions ------------...
# LANGUAGE TemplateHaskell , QuasiQuotes , DeriveDataTypeable , RecordWildCards , ForeignFunctionInterface # Module : Graphics . . Geometry Copyright : [ 2014 ] Maintainer : < > module Graphics.SpriteKit.Geometry ( TimeInterval, GFloat, Point(..), Size(..), Rect(..), Vector(..), p...
1242b7e542b56f904a50537bbc2ffb48e0bb4dd7738122848d5de12847389c60
formal-land/coq-of-ocaml
coqOfOCaml.ml
module Output = struct type t = { error_message : string; generated_file : (string * string) option; has_errors : bool; source_file_name : string; success_message : string; } let write (json_mode : bool) (output : t) : unit = if json_mode then let error_file_name = output.source_fil...
null
https://raw.githubusercontent.com/formal-land/coq-of-ocaml/19fe7cf51722da9453cb7ce43724e774e7c9d040/src/coqOfOCaml.ml
ocaml
* The main function.
module Output = struct type t = { error_message : string; generated_file : (string * string) option; has_errors : bool; source_file_name : string; success_message : string; } let write (json_mode : bool) (output : t) : unit = if json_mode then let error_file_name = output.source_fil...
5418169a4198f21bca2de0fe95f2e0f4dcb4fea0a98e6b2440628e2eb8aecf8c
ocaml-multicore/tezos
block.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/test/helpers/block.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2020 Metastate AG < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " ,...
98a00ba6a023beaff7dabadf8395c14f206e0d65bb216d7f360d57613f7f19ad
kpreid/e-on-cl
smethod.lisp
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (cl:in-package :e.elib) (defvar *exercise-reffiness* nil "Set this true to test for code which is inappropriately sensitive to the presence of forwarding refs, by placing them around each argument to methods written in Lis...
null
https://raw.githubusercontent.com/kpreid/e-on-cl/f93d188051c66db0ad4ff150bd73b838f7bc25ed/lisp/smethod.lisp
lisp
so declarations and scoping work right (declare ...) or non-final string These are feature conditionals to remind me that they must be set at compile time anyway. quote form +foo+ per CLHS 3.1.2.1.3 XXX too lenient therefore inline XXX should be more like mverb-is-magic-p
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (cl:in-package :e.elib) (defvar *exercise-reffiness* nil "Set this true to test for code which is inappropriately sensitive to the presence of forwarding refs, by placing them around each argument to methods written in Lis...
f37266338c44145725abb9f3527353a7168f53e39b82c61b654e69272f126692
zed-throben/erlangeos
sample_rpcobj.erl
- module('sample_rpcobj'). - compile(export_all). start() -> RPC1 = eos:new(eos@rpc,[],[{node , '192.168.0.2@main' },{module , main }]), eos:invoke(RPC1,hello,["world"]), RPC2 = eos:new(eos@rpc,[],[{node , '192.168.0.3@main' },{module , main }]), eos:invoke(RPC2,hello,["world"]).
null
https://raw.githubusercontent.com/zed-throben/erlangeos/44e50e442f5d396c69ae90db530b0b60b01d692a/sample/sample_rpcobj.erl
erlang
- module('sample_rpcobj'). - compile(export_all). start() -> RPC1 = eos:new(eos@rpc,[],[{node , '192.168.0.2@main' },{module , main }]), eos:invoke(RPC1,hello,["world"]), RPC2 = eos:new(eos@rpc,[],[{node , '192.168.0.3@main' },{module , main }]), eos:invoke(RPC2,hello,["world"]).
dea8778ce24a2fce67a722423fc0722738ebd9d5f5cedbb7d1bccce73889a5ca
ChrisPenner/proton
Coalgebraic.hs
module Examples.Coalgebraic where > > > [ Just 1 , Just 2 , Just 3 ] & _ Just > - sum Just 6 > > > [ Just 1 , Nothing , Just 3 ] & _ Just > - sum -- Nothing > > > [ Right 1 , Left " whoops " , Right 2 ] & _ Right > - sum -- Left "whoops"
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Examples/Coalgebraic.hs
haskell
Nothing Left "whoops"
module Examples.Coalgebraic where > > > [ Just 1 , Just 2 , Just 3 ] & _ Just > - sum Just 6 > > > [ Just 1 , Nothing , Just 3 ] & _ Just > - sum > > > [ Right 1 , Left " whoops " , Right 2 ] & _ Right > - sum
a92192b31cd879a0bd08d0a9f5e7f10fb4e776fad7c70461f882e819ddf13c31
NorfairKing/the-notes
Macro.hs
module Macro.Topology.Macro where import Types import Macro.Math import Macro.Text import Macro.Tuple import Functions.Distances.Macro (dist_, metr_) Topology set topset :: Note topset = "X" Topology Topology ( Topology on topset ) toptop :: Note toptop = comm0...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Macro/Topology/Macro.hs
haskell
Topological space
module Macro.Topology.Macro where import Types import Macro.Math import Macro.Text import Macro.Tuple import Functions.Distances.Macro (dist_, metr_) Topology set topset :: Note topset = "X" Topology Topology ( Topology on topset ) toptop :: Note toptop = comm0...
ab02fbdf249d3bc4b385bbdbe042573a821b1d1cc22e888a15214f32312aa89d
NorfairKing/cursor
NonEmpty.hs
# LANGUAGE TypeFamilies # module Cursor.Simple.List.NonEmpty ( NonEmptyCursor, NEC.nonEmptyCursorPrev, NEC.nonEmptyCursorCurrent, NEC.nonEmptyCursorNext, makeNonEmptyCursor, makeNonEmptyCursorWithSelection, NEC.singletonNonEmptyCursor, rebuildNonEmptyCursor, mapNonEmptyCursor, NEC...
null
https://raw.githubusercontent.com/NorfairKing/cursor/71ec3154809e229efbf35d500ac6d1a42ae5fdc0/cursor/src/Cursor/Simple/List/NonEmpty.hs
haskell
| A 'nonempty list' cursor
# LANGUAGE TypeFamilies # module Cursor.Simple.List.NonEmpty ( NonEmptyCursor, NEC.nonEmptyCursorPrev, NEC.nonEmptyCursorCurrent, NEC.nonEmptyCursorNext, makeNonEmptyCursor, makeNonEmptyCursorWithSelection, NEC.singletonNonEmptyCursor, rebuildNonEmptyCursor, mapNonEmptyCursor, NEC...
1a7ba3ba8200cbfc3ea5259eca21ee861d0d2c2552e05d24e127a4e36ee83d51
dcos/dcos-net
dcos_overlay_app.erl
%%%------------------------------------------------------------------- %% @doc navstar public API %% @end %%%------------------------------------------------------------------- -module(dcos_overlay_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%========================...
null
https://raw.githubusercontent.com/dcos/dcos-net/7bd01ac237ff4b9a12a020ed443e71c45f7063f4/apps/dcos_overlay/src/dcos_overlay_app.erl
erlang
------------------------------------------------------------------- @doc navstar public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ========================================================...
-module(dcos_overlay_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> dcos_net_app:load_config_files(dcos_overlay), dcos_overlay_sup:start_link( [application:get_env(dcos_overlay, enable_overlay, true)]). stop(_State) -> ok.
2477530f2045729bc4f0f3d35f4c4a64e51f228257d138b473381a8940092e67
inaka/apns4erl
apns_connection.erl
@doc This gen_statem handles the APNs Connection . %%% Copyright 2017 Erlang Solutions Ltd. %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% -2.0 %%% %%% Unless req...
null
https://raw.githubusercontent.com/inaka/apns4erl/bf2d11530ebffcc8906e417c8d4c765619db81b0/src/apns_connection.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@doc This gen_statem handles the APNs Connection . Copyright 2017 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , < > -module(apns_connection). -author("Felipe Ripoll <>"). -behaviour(gen_state...
7d9dc3da37562cee4878524aaa072c3b6367f45ea32e4a0f4350f1240ec7873f
wdebeaum/step
tend.lisp
;;;; ;;;; W::tend ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::tend (SENSES ((LF-PARENT ONT::be-inclined) (example "It tends to increase.") (TEMPL NEUTRAL-FORMAL-CP-SUBJCONTROL-TEMPL (xp (% W::cp (W::ctype W::s-to)))) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/tend.lisp
lisp
W::tend
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::tend (SENSES ((LF-PARENT ONT::be-inclined) (example "It tends to increase.") (TEMPL NEUTRAL-FORMAL-CP-SUBJCONTROL-TEMPL (xp (% W::cp (W::ctype W::s-to)))) ) ) ) ))
24999557b711aeffb882ea8f38cb650f141b995e6b1800edec05d48cfb9c1f12
arttuka/reagent-material-ui
account_circle.cljs
(ns reagent-mui.icons.account-circle "Imports @mui/icons-material/AccountCircle as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def account-circle (create-svg-i...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/account_circle.cljs
clojure
(ns reagent-mui.icons.account-circle "Imports @mui/icons-material/AccountCircle as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def account-circle (create-svg-i...
78a2c216be5f1569fbb25cb81c5be4ee7356a463bdc1d38871e02c2116314753
robert-strandh/SICL
sublis-defun.lisp
(cl:in-package #:sicl-cons) (defun |sublis key=identity test=eq| (alist tree) (let ((substitution-p nil)) (labels ((traverse (tree) (let ((entry (with-alist-elements (element alist sublis) (when (eq tree (car element)) (return element))...
null
https://raw.githubusercontent.com/robert-strandh/SICL/32d995c4f8e7d228e9c0cda6f670b2fa53ad0287/Code/Cons/sublis-defun.lisp
lisp
(cl:in-package #:sicl-cons) (defun |sublis key=identity test=eq| (alist tree) (let ((substitution-p nil)) (labels ((traverse (tree) (let ((entry (with-alist-elements (element alist sublis) (when (eq tree (car element)) (return element))...
b07137e2967efa2acdef17b689eb7ca93e81ddc002bc537d7560ee6caa35a866
sbcl/sbcl
arith-slow.pure.lisp
These two tests are by themselves because they consume more run time ;;; than all other tests in arith.pure combined. (defmacro test-guts () #+sb-thread '(let ((t1 (sb-thread:make-thread #'doit :arguments '(-8 0))) (t2 (sb-thread:make-thread #'doit :arguments '(1 8)))) (sb-thre...
null
https://raw.githubusercontent.com/sbcl/sbcl/fa10fc0554789ba1c18467790e665db74c6035b5/tests/arith-slow.pure.lisp
lisp
than all other tests in arith.pure combined. too slow too slow
These two tests are by themselves because they consume more run time (defmacro test-guts () #+sb-thread '(let ((t1 (sb-thread:make-thread #'doit :arguments '(-8 0))) (t2 (sb-thread:make-thread #'doit :arguments '(1 8)))) (sb-thread:join-thread t1) (sb-thread:joi...
a11bb71721cae718afb3f11c4188184c1713041eb805fd7d147fa3a0d648d193
rfkm/zou
schema.clj
(ns zou.web.asset.schema (:require [schema.core :as s])) (def AssetSpec {(s/optional-key :id) s/Keyword :name s/Str :type (s/enum :javascript :stylesheet) :src (s/either java.net.URL java.io.File s/Str)}) (defn validate-asset-specs [assets] (s/validate [AssetSpec] a...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/web/src/zou/web/asset/schema.clj
clojure
(ns zou.web.asset.schema (:require [schema.core :as s])) (def AssetSpec {(s/optional-key :id) s/Keyword :name s/Str :type (s/enum :javascript :stylesheet) :src (s/either java.net.URL java.io.File s/Str)}) (defn validate-asset-specs [assets] (s/validate [AssetSpec] a...
23b36b69153a801ee37b723fc83403710f6eaf9c7e4d37df925eaa80d6ae27c9
gelisam/klister
Test.hs
# LANGUAGE BlockArguments # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Main where import Control.Lens hiding (List) import Control.Monad import qualified Data.Map as Map import Control.Monad.IO.Class (liftIO) ...
null
https://raw.githubusercontent.com/gelisam/klister/795393ce4f8c17489b8ca4f855b462db409c5514/tests/Test.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # [[lambda [x] body] e] Make sure it's the use site in the macro body that throws the error assertFailure ------------------------------------------------------------------------------ TODO(lb): Should we be accessing size parameters from the Gen monad to decid...
# LANGUAGE BlockArguments # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Main where import Control.Lens hiding (List) import Control.Monad import qualified Data.Map as Map import Control.Monad.IO.Class (liftIO) import Data.Maybe (maybeToList) import Data.Text (Text) import ...
99d169924eb9067b0e7d76ffb1d5155287224a2cebb9eb7a2a981b40ae90b833
janestreet/bonsai
update_options.ml
open! Core open! Import open Gen_js_api type t = Ojs.t let t_to_js x = x let t_of_js x = x let create ?options ?data () = (* This is intentionally different than an object with a property "options". *) let options = let default = Ojs.empty_obj () in Option.value_map options ~default ~f:Options.t_to_js ...
null
https://raw.githubusercontent.com/janestreet/bonsai/c202b961f41e20e0b735c4e33c2bbac57a590941/bindings/dygraph/src/update_options.ml
ocaml
This is intentionally different than an object with a property "options".
open! Core open! Import open Gen_js_api type t = Ojs.t let t_to_js x = x let t_of_js x = x let create ?options ?data () = let options = let default = Ojs.empty_obj () in Option.value_map options ~default ~f:Options.t_to_js in Option.iter data ~f:(fun data -> Ojs.set_prop_ascii options "file" (Data.t_t...
250ae8b190facb3f3dffa136dffdc08be1d901abb5d2d97edbacb0cf066a4297
yallop/causal-commutative-arrows-revisited
Sample.hs
{-# LANGUAGE Arrows #-} module Sample where import Control.Arrow import Control.CCA.Types import Control.CCA.Instances import SigFun import Prelude hiding (init, exp) sr = 44100 :: Int dt = 1 / (fromIntegral sr) exp :: ArrowInit a => a () Double exp = proc () -> do rec let e = 1 + i i <- integral -< e retu...
null
https://raw.githubusercontent.com/yallop/causal-commutative-arrows-revisited/95aaadd8c79f39972a1c83ad7f9961cc3bf7974f/test/Sample.hs
haskell
# LANGUAGE Arrows # SPECIALIZE INLINE would make SF version even slower! {-# SPECIALIZE INLINE exp :: SF () Double #-} alternatively, we could define intergral directly as loopD, which helps CCNF_ST signficantly by skip the direct use of overhead. integral = loopD 0 (\ (x, i) -> (i, i + dt * x)) SPECIALIZE INL...
module Sample where import Control.Arrow import Control.CCA.Types import Control.CCA.Instances import SigFun import Prelude hiding (init, exp) sr = 44100 :: Int dt = 1 / (fromIntegral sr) exp :: ArrowInit a => a () Double exp = proc () -> do rec let e = 1 + i i <- integral -< e returnA -< e # SPECIALIZE IN...
e55d19809944e11af75445cd7c975afc64e09428781fd54882d0d4437a06c51f
Paczesiowa/virthualenv
Actions.hs
module Actions ( cabalUpdate , installCabalConfig , installCabalWrapper , installActivateScript , copyBaseSystem , initGhcDb , installGhc , createDirStructure ) where import System.Directory (setCurr...
null
https://raw.githubusercontent.com/Paczesiowa/virthualenv/aab89dad9de7dac5268472eaa50c11eb40b02380/src/Actions.hs
haskell
install cabal wrapper (in bin/ directory) inside virtual environment dir structure install activate script (in bin/ directory) inside virtual environment dir structure install cabal's config file (in cabal/ directory) inside virtual environment dir structure copy optional packages and don't fail completely if this ...
module Actions ( cabalUpdate , installCabalConfig , installCabalWrapper , installActivateScript , copyBaseSystem , initGhcDb , installGhc , createDirStructure ) where import System.Directory (setCurr...
0fc566332759edae97fb82826d92a54e69f92acf6cdbf972a7cb3d7c3a283df3
clojure-interop/java-jdk
MultiColorChooserUI.clj
(ns javax.swing.plaf.multi.MultiColorChooserUI "A multiplexing UI used to combine ColorChooserUIs. This file was automatically generated by AutoMulti." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.multi MultiColorChooserUI])) (defn ->multi-color-chooser-ui "Constructor." (^M...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/multi/MultiColorChooserUI.clj
clojure
(ns javax.swing.plaf.multi.MultiColorChooserUI "A multiplexing UI used to combine ColorChooserUIs. This file was automatically generated by AutoMulti." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.multi MultiColorChooserUI])) (defn ->multi-color-chooser-ui "Constructor." (^M...
a2c7cf6550983ba3e2c0042ea807d5852311f3b4a28dfbd39f9b6de047ee78e4
ha-mo-we/Racer
lracer-utf8-test.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: cl-user -*- (in-package cl-user) #-(or :sbcl :allegro :clisp) (error "UTF8 demo requires ACL or SBCL.") (close-server-connection) (setf *external-format* :utf-8) ;;; make sure RacerPro is running in UTF8 mode: RacerPro -- -ef @UTF8 (enable-lracer-read-macros) ;;;...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/clients/lracer/lracer-utf8-test.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: cl-user -*- make sure RacerPro is running in UTF8 mode: RacerPro -- -ef @UTF8 Client Side Loading
(in-package cl-user) #-(or :sbcl :allegro :clisp) (error "UTF8 demo requires ACL or SBCL.") (close-server-connection) (setf *external-format* :utf-8) (enable-lracer-read-macros) Server Side Loading (full-reset) (racer-read-file (demo-file "family-j-utf8.racer")) (pprint (taxonomy)) (pprint (describe-indi...
d83f42a2c1e7a3dc117e8bd0c4f42b58a2a8893fa13db60bae04822deeafb7b8
CRogers/obc
switch.mli
* switch.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions...
null
https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/compiler/switch.mli
ocaml
|switch| -- generate switching code for CASE statement
* switch.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions...
b4c249d1d7d985db6634528e4ed0fcdd926633bc548fd7aff0c4544d6643e091
simonmar/monad-par
nbody.hs
- Modified from code released with : - Intel Concurrent Collections for ( c ) 2010 , Intel Corporation . - Modified from code released with: - Intel Concurrent Collections for Haskell - Copyright (c) 2010, Intel Corporation. -} # LANGUAGE ExistentialQuantification , ScopedTypeVariables , Bang...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/examples/src/nbody/nbody.hs
haskell
This step generates the bodies in the system. #define IDIOMATIC_VER Only doing the O(N^2) part in parallel: This step computes the accelerations of the bodies. Performance degredation here: Making this much less idiomatic to avoid allocation: Manually inlining to see if the tuples unbox: accels <- A....
- Modified from code released with : - Intel Concurrent Collections for ( c ) 2010 , Intel Corporation . - Modified from code released with: - Intel Concurrent Collections for Haskell - Copyright (c) 2010, Intel Corporation. -} # LANGUAGE ExistentialQuantification , ScopedTypeVariables , Bang...
5eedf713d5366d7f7f526fecbae90ad3dc96d3d55bccc1fbea641274d4b6621a
maximedenes/native-coq
recdef.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/plugins/funind/recdef.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i camlp4deps: "parsing/grammar.cma" ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Tacexpr open Term open N...
cf09406960bcb8f9d1e26db22862532a6bf525fdc4737c8aee4cb8551c0de8ed
aantron/markup.ml
test_js_of_ocaml.ml
This file is part of Markup.ml , released under the MIT license . See LICENSE.md for details , or visit . LICENSE.md for details, or visit . *) let () = Markup.of_list [1; 2; 3] |> Markup_lwt.to_list |> ignore
null
https://raw.githubusercontent.com/aantron/markup.ml/420aaa3d38d90ed84d1d7157840f7df5f3b5b349/test/js_of_ocaml/test_js_of_ocaml.ml
ocaml
This file is part of Markup.ml , released under the MIT license . See LICENSE.md for details , or visit . LICENSE.md for details, or visit . *) let () = Markup.of_list [1; 2; 3] |> Markup_lwt.to_list |> ignore
5fb7bad7b31f865a1a0c3fb1ed779f293f13b89e5bab32c902af99fbfd0a82f6
racket/racket7
path.rkt
#lang racket/base (require racket/path racket/file racket/list racket/function) (provide (all-defined-out)) (define (path->bytes* pkg) (cond [(path? pkg) (path->bytes pkg)] [(string? pkg) (path->bytes (string->path pkg))] [(bytes? pkg) pkg])) (define (directory...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/pkg/private/path.rkt
racket
Delete everything except `orig-sub`: Get list of files and directories to move: Make sure `sub` doesn't match a name we want to move here: pick a new name: Move content of `sub` out: Remove directory that we moved files out of: Treat a single directory produced in `pkg-dir` as having the content of the package,...
#lang racket/base (require racket/path racket/file racket/list racket/function) (provide (all-defined-out)) (define (path->bytes* pkg) (cond [(path? pkg) (path->bytes pkg)] [(string? pkg) (path->bytes (string->path pkg))] [(bytes? pkg) pkg])) (define (directory...
74579afa3fc4f048459d35bd6a010d2f1f564c9bfa463474f86337018a446846
nikita-volkov/rerebase
Extra.hs
module Data.ByteString.Builder.Extra ( module Rebase.Data.ByteString.Builder.Extra ) where import Rebase.Data.ByteString.Builder.Extra
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/ByteString/Builder/Extra.hs
haskell
module Data.ByteString.Builder.Extra ( module Rebase.Data.ByteString.Builder.Extra ) where import Rebase.Data.ByteString.Builder.Extra
f8b8d8d8f9b910606ae2280cfe03edfa58f4f23f172161f9430b85a3577509cb
gator1/jepsen
counter.clj
(ns cassandra.counter (:require [clojure [pprint :refer :all] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [jepsen [core :as jepsen] [db :as db] [util :as util :refer [meh timeout...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/cassandra/src/cassandra/counter.clj
clojure
(ns cassandra.counter (:require [clojure [pprint :refer :all] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [jepsen [core :as jepsen] [db :as db] [util :as util :refer [meh timeout...
4cbdbc3e9a0f257e2311237f7b845969e38acf3b37993605a40d7adfcbf0788d
w3ntao/programming-in-haskell
Exercise_10_10_3.hs
# OPTIONS_GHC -Wall # module Exercise_10_10_3 where import Exercise_10_10_2 hiding (putBoard) putBoard :: Board -> IO () putBoard xs = sequence_ [putRow n x | (n, x) <- zip [1..] xs]
null
https://raw.githubusercontent.com/w3ntao/programming-in-haskell/c2769fa19d8507aad209818c83f67e82c3698f07/Chapter-10/Exercise_10_10_3.hs
haskell
# OPTIONS_GHC -Wall # module Exercise_10_10_3 where import Exercise_10_10_2 hiding (putBoard) putBoard :: Board -> IO () putBoard xs = sequence_ [putRow n x | (n, x) <- zip [1..] xs]
aedfb691bf6cc77382f18eb8a2127166f091784a4487300c35aaf4189e3a232e
luminus-framework/examples
core.clj
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/reporting-example/test/clj/reporting_example/test/db/core.clj
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns reporting-example.test.db.core (:require [reporting-example.db.core :as db] [reporting-example.db.migrations ...
ee4a2be4ea1346000f5605cf4330367e7ef519caffb0ea7c9c09817413a3b4da
AccelerateHS/accelerate-io
ForeignPtr.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # -- | -- Module : Data.Array.Accelerate.IO.Foreign.ForeignPtr Copyright : [ 2017 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portabi...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-io/d62e543a1156b63b242387ca8348836efca744f4/accelerate-io/src/Data/Array/Accelerate/IO/Foreign/ForeignPtr.hs
haskell
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # | Module : Data.Array.Accelerate.IO.Foreign.ForeignPtr License : BSD3 Stability : experimental | A family of types which represent a collection of 'ForeignPtr's. The structure of the collection depends on the element type @e@. coll...
# LANGUAGE TypeApplications # Copyright : [ 2017 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.IO.Foreign.ForeignPtr where import Data.Array.Accelerate.Array.Data ( ArrayData, GArrayDataR ) ...
7b306d589917a764c0f2f672388e658913949920e31893644248d828544239ac
hellonico/origami-fun
matchingshapes.clj
(ns opencv4.matchingshapes (:require [opencv4.utils :as u] [opencv4.core :refer :all])) (def t1 (-> "resources/white-blue-triangle.png" (imread 0) (threshold! 210 240 1))) (def t2 (-> "-Sweden_road_sign_A20.svg.png" u/mat-from-url (cvt-color! COLOR_RGB2GRAY) (threshold! 210 240 1))) (match...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/matchingshapes.clj
clojure
(ns opencv4.matchingshapes (:require [opencv4.utils :as u] [opencv4.core :refer :all])) (def t1 (-> "resources/white-blue-triangle.png" (imread 0) (threshold! 210 240 1))) (def t2 (-> "-Sweden_road_sign_A20.svg.png" u/mat-from-url (cvt-color! COLOR_RGB2GRAY) (threshold! 210 240 1))) (match...
2d95c774ed648e9903f02a09dea44da6145c90ab912ce5fb97ae8b1b4ee93fd2
jsoo1/guix-channel
termonad.scm
(define-module (termonad) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system haskell) #:use-module (ghc-keys) #:use-module (ghc-pointed) #:use-module (ghc-instances) #:use-module (gnu packages glib) #:use-module (g...
null
https://raw.githubusercontent.com/jsoo1/guix-channel/934b830110f4f7169257f107311cd10f628e0682/termonad.scm
scheme
PUBLIC DEPENDENCIES
(define-module (termonad) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system haskell) #:use-module (ghc-keys) #:use-module (ghc-pointed) #:use-module (ghc-instances) #:use-module (gnu packages glib) #:use-module (g...
a378d2f7691cddcbe7963913caecf6ae8c59d1cee2dbec8bdbedda5d7c59a58f
joshuamiller/cljs-react-navigation-example
events.cljs
(ns nav-example.events (:require [re-frame.core :refer [reg-event-db after]] [clojure.spec.alpha :as s] [nav-example.db :as db :refer [app-db]])) ;; -- Interceptors ------------------------------------------------------------ ;; ;; See -frame/blob/master/docs/Interceptors.md ;; (defn check-and-throw "Thro...
null
https://raw.githubusercontent.com/joshuamiller/cljs-react-navigation-example/45568ed191e782c3f8c0580d2d8774c6b2add52f/src/nav_example/events.cljs
clojure
-- Interceptors ------------------------------------------------------------ See -frame/blob/master/docs/Interceptors.md -- Handlers --------------------------------------------------------------
(ns nav-example.events (:require [re-frame.core :refer [reg-event-db after]] [clojure.spec.alpha :as s] [nav-example.db :as db :refer [app-db]])) (defn check-and-throw "Throw an exception if db doesn't have a valid spec." [spec db [event]] (when-not (s/valid? spec db) (let [explain-data (s/explain...
d04248d87c2497ed2fdbf969a2d22d5547053fb8715cd8431d6e2f9666281b86
hmac/kite
Error.hs
-- All errors that can be raised by the compiler are represented here module Error ( Error(..) ) where import GHC.Generics ( Generic ) import Prettyprinter import qualified Chez.Compile import qualified Interpret import qualified ModuleLoader import qualified Package import ...
null
https://raw.githubusercontent.com/hmac/kite/a48839fa5a4edce3bc7a758e4fcb1bda38a556f0/src/Error.hs
haskell
All errors that can be raised by the compiler are represented here
module Error ( Error(..) ) where import GHC.Generics ( Generic ) import Prettyprinter import qualified Chez.Compile import qualified Interpret import qualified ModuleLoader import qualified Package import qualified Type import qualified Type.Print data Error = PackageEr...
9ba41ccb9f5446fdf18b7cc22feb524285a428af9c2ad3f827ab1363cd129e50
Aeva/snake-oil
test.rkt
#lang racket/base (require snake-oil) ; Import functions, etc from python source files! (require-py "test.py" fnord) (fnord 1 2 3) ; Or from modules! (require-py "math" radians) (radians 90) ; Or just vibe! (py-eval "(min(123, 456), [456, 789], 'Hail Eris!', {'a':1, 'b':2})") ; Or if you need to get really fancy, ...
null
https://raw.githubusercontent.com/Aeva/snake-oil/d21a794653036d8e870b5b6e8cc14c574e75f9e7/example/test.rkt
racket
Import functions, etc from python source files! Or from modules! Or just vibe! Or if you need to get really fancy,
#lang racket/base (require snake-oil) (require-py "test.py" fnord) (fnord 1 2 3) (require-py "math" radians) (radians 90) (py-eval "(min(123, 456), [456, 789], 'Hail Eris!', {'a':1, 'b':2})") (define math (py-import "math")) (py-eval "sqrt(2)" math)
6bd2d6bd270e68e613b2467ddf24c04d0953e258f43969444b21b1b8b54f2c32
Gabriella439/turtle
Shell.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # OPTIONS_GHC -fno - warn - missing - methods # | You can think of ` Shell ` as @[]@ + ` IO ` + ` Managed ` . In fact , you can embed all three...
null
https://raw.githubusercontent.com/Gabriella439/turtle/d387014ffc8382d23c54bf6f3a5d94a11044f3a6/src/Turtle/Shell.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE RankNTypes # For every shell ` s ` : For every shell `s`: * Shell Fix redundant import warnings | A @(Shell a)@ is a protected stream of @a@'s with side effects | Flipped version of 'fold'. Useful for reducing...
# LANGUAGE ExistentialQuantification # # OPTIONS_GHC -fno - warn - missing - methods # | You can think of ` Shell ` as @[]@ + ` IO ` + ` Managed ` . In fact , you can embed all three of them within a ` Shell ` : > select : : [ a ] - > Shell a > liftIO : : IO a - > Shell a > using : : M...
b65ab597c56de3cabe37b8a8cc7113aa548ac4b186d6b39e6b4f2346b72f3e44
ocaml-sf/learn-ocaml-corpus
term_no_sub.ml
(* The type [parser] satisfies the monad API: [delay], [return], [>>=]. *) (* [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. *) let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p (...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/parser_combinators/wrong/term_no_sub.ml
ocaml
The type [parser] satisfies the monad API: [delay], [return], [>>=]. [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. [return a] always succeeds, consumes no input, and returns [a]. [p >>= f] is the sequential compositio...
let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p () cursor) let return (a : 'a) : 'a parser = fun cursor -> NonDet.return (a, cursor) let (>>=) (p : 'a parser) (f : 'a -> 'b parser) : 'b parser = fun cursor -> let open NonDet in p cursor >>= fun (a, cur...
4cc15d8d1efbdb175e86fffaeffaafcd644a21570cf89265e972f203a0803946
jqueiroz/lojban.io
Exercises.hs
{-# LANGUAGE OverloadedStrings #-} -- | This module defines the course exercuses. module Study.Courses.English.Vocabulary.Attitudinals.Exercises where import Core import Util (shuffle, chooseItemUniformly, combineGeneratorsUniformly, mapRandom) import Study.Courses.English.Vocabulary.Attitudinals.Model import Study.C...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Study/Courses/English/Vocabulary/Attitudinals/Exercises.hs
haskell
# LANGUAGE OverloadedStrings # | This module defines the course exercuses. * Exercise templates Correct attitudinal * Exercises per lesson
module Study.Courses.English.Vocabulary.Attitudinals.Exercises where import Core import Util (shuffle, chooseItemUniformly, combineGeneratorsUniformly, mapRandom) import Study.Courses.English.Vocabulary.Attitudinals.Model import Study.Courses.English.Vocabulary.Attitudinals.Vocabulary import Study.Courses.English.Voc...
92a78d4d2aa60ee95fb5185e80acd7d98c8cb0c9bcb00955582832b6ea053e53
foretspaisibles/cl-kaputt
entrypoint.lisp
entrypoint.lisp — A Testsuite for the Kaputt Test Framework ( -kaputt ) This file is part of Kaputt . ;;;; Copyright © 2019–2021 ;;;; All rights reserved. This software is governed by the CeCILL - B license under French law and ;;;; abiding by the rules of distribution of free software. You can use, ...
null
https://raw.githubusercontent.com/foretspaisibles/cl-kaputt/94ff2a96ced6576e3995b445b78ab2a4bf09c57f/testsuite/entrypoint.lisp
lisp
All rights reserved. abiding by the rules of distribution of free software. You can use, "-B_V1-en.txt"
entrypoint.lisp — A Testsuite for the Kaputt Test Framework ( -kaputt ) This file is part of Kaputt . Copyright © 2019–2021 This software is governed by the CeCILL - B license under French law and modify and/ or redistribute the software under the terms of the CeCILL - B license as circulated by CEA...
f4593aa864fd8bb3a4e3b526b43348a4fdc14e18b2548427dd45fff7312fb98d
dakrone/cheshire
parse.clj
(ns cheshire.parse (:import (com.fasterxml.jackson.core JsonParser JsonToken))) (declare parse*) (def ^:dynamic *chunk-size* 32) (def ^{:doc "Flag to determine whether float values should be returned as BigDecimals to retain precision. Defaults to false." :dynamic true} *use-bigdecimals?* fal...
null
https://raw.githubusercontent.com/dakrone/cheshire/d2153a60ff242afabbbe5499ecf1d2674e8c568a/src/cheshire/parse.clj
clojure
(ns cheshire.parse (:import (com.fasterxml.jackson.core JsonParser JsonToken))) (declare parse*) (def ^:dynamic *chunk-size* 32) (def ^{:doc "Flag to determine whether float values should be returned as BigDecimals to retain precision. Defaults to false." :dynamic true} *use-bigdecimals?* fal...
f72e15997182ffec0f8cc3d1c62d247a546c2bd8201907f93590d29b3903f18a
samrocketman/home
Gloss-Orb-light.scm
Author : Version : 1.0 ;Homepage: Split-visionz.net ;License: Released under the GPL included in the file with the scripts. (define (script-fu-sv-gloss-orb-light myradius bgcolor) (let* ( (buffer (* myradius 0.2)) (image (car (gimp-image-new (+ buffer myradius) (+ buffer myradius) RGB))) (shadow-layer (car (gimp...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/Gloss-Orb-light.scm
scheme
Homepage: Split-visionz.net License: Released under the GPL included in the file with the scripts. end variable defines ////////////////////////////////////// shadow layer ////////////////////////////////////// gradient layer ////////////////////////////////////// highlight layer ////////////////////////////// dark la...
Author : Version : 1.0 (define (script-fu-sv-gloss-orb-light myradius bgcolor) (let* ( (buffer (* myradius 0.2)) (image (car (gimp-image-new (+ buffer myradius) (+ buffer myradius) RGB))) (shadow-layer (car (gimp-layer-new image myradius myradius RGBA-IMAGE "shadowLayer" 100 NORMAL-MODE))) (grad-layer (car (gim...
ca2b1c9ae4433dff6aa924e0c7155a1d3c52725d007b2fe62b35f18ec92c529a
ruHaskell-learn/lhx
TestTemplate.hs
module TestTemplate (tests) where import Data.Bifunctor (first) import Data.Either (isLeft, isRight, fromRight) import Data.Text qualified as T import Data.Text.Arbitrary () import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase, (@?), (@?=)) import Test.Tasty.QuickCheck qualified as QC import Lhx ...
null
https://raw.githubusercontent.com/ruHaskell-learn/lhx/95e8e83db5a60ba74615e8ff7df52672bf5cc524/test/TestTemplate.hs
haskell
module TestTemplate (tests) where import Data.Bifunctor (first) import Data.Either (isLeft, isRight, fromRight) import Data.Text qualified as T import Data.Text.Arbitrary () import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase, (@?), (@?=)) import Test.Tasty.QuickCheck qualified as QC import Lhx ...
1b4b045365731ef7b7c70a9a372bdfcbd9450a85faf1d61b317a030e173fc3a8
clingen-data-model/genegraph
response_cache.clj
(ns genegraph.response-cache (:require [genegraph.rocksdb :as rocksdb] [genegraph.env :as env] [mount.core :refer [defstate] :as mount] [io.pedestal.interceptor.chain :refer [terminate]] [io.pedestal.log :as log] [clojure.core.async :as a ...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/8c217e4c3820b3bd0a0937a6e331a6e6a49b8c14/src/genegraph/response_cache.clj
clojure
(ns genegraph.response-cache (:require [genegraph.rocksdb :as rocksdb] [genegraph.env :as env] [mount.core :refer [defstate] :as mount] [io.pedestal.interceptor.chain :refer [terminate]] [io.pedestal.log :as log] [clojure.core.async :as a ...
22179311b7b37b1cc9343c3d02692a1588500c80198039ff7822bf7d48eb5cf5
ocurrent/citty
utils.ml
let rec interleave sep = function | ([] | [ _ ]) as tail -> tail | hd :: tail -> let tail = interleave sep tail in hd :: sep :: tail let failwithf fmt = Printf.ksprintf failwith fmt let rec filter_map f = function | [] -> [] | x :: xs -> ( match f x with | None -> filter_map f xs ...
null
https://raw.githubusercontent.com/ocurrent/citty/25141643a417c412573fca6fcd918cd7ceba5363/src/utils.ml
ocaml
let rec interleave sep = function | ([] | [ _ ]) as tail -> tail | hd :: tail -> let tail = interleave sep tail in hd :: sep :: tail let failwithf fmt = Printf.ksprintf failwith fmt let rec filter_map f = function | [] -> [] | x :: xs -> ( match f x with | None -> filter_map f xs ...
8164228c4d1ef176f619f4c08ed04124be3dda2ab2199f9041848e27d5ac8c49
mchakravarty/language-c-inline
Error.hs
# LANGUAGE TemplateHaskell , QuasiQuotes # -- | -- Module : Language.C.Inline.Error Copyright : [ 2013 ] -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- -- This module provides support for error reporting. module Langu...
null
https://raw.githubusercontent.com/mchakravarty/language-c-inline/034128f80abc917040f42a10ce982775ae5e7387/Language/C/Inline/Error.hs
haskell
| Module : Language.C.Inline.Error License : BSD3 Stability : experimental This module provides support for error reporting. * Error reporting * Exception handling * Pretty printing for error messages quasi-quotation libraries reportErrorAndBail msg = do { reportError msg ; Just unde...
# LANGUAGE TemplateHaskell , QuasiQuotes # Copyright : [ 2013 ] Maintainer : < > Portability : non - portable ( GHC extensions ) module Language.C.Inline.Error ( reportErrorWithLang, reportErrorAndFail, tryWithPlaceholder, prettyQC ) where import Language.Haskell.TH as TH import L...
1ca926e4c4a1f7212af8b6dbc199a07a872a718ad9bf482a2bb40d3f1e68e674
udem-dlteam/ribbit
25-cdr.scm
(putchar (cdr (cons 65 66))) (putchar 10) ;;;options: -l min ;;;expected: ;;;B
null
https://raw.githubusercontent.com/udem-dlteam/ribbit/3e88b58706dba9eac2bbb841f947b4cd9c47d6ec/src/tests/25-cdr.scm
scheme
options: -l min expected: B
(putchar (cdr (cons 65 66))) (putchar 10)
1a42bb23e6a1f8a6401e59a261d47f7a71be268c5d8dd8cb4ad453ddac5174c3
stepcut/plugins
API.hs
module API where -- just a dummy for the build system
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/hier/hier2/api/API.hs
haskell
just a dummy for the build system
module API where
5a4816cd980614c5023ff7037baa51c875e16f62ab699c79042cb017b678f990
janestreet/vcaml
message.mli
open Core module Custom : sig type t = { type_id : int ; data : Bytes.t } [@@deriving compare, sexp] end type t = | Nil | Integer of int | Int64 of Int64.t | UInt64 of Int64.t | Boolean of bool | Floating of float | Array of t list | Map of (t * t) list | String of string | Binary ...
null
https://raw.githubusercontent.com/janestreet/vcaml/b02fc56c48746fa18a6bc9a0f8fb85776db76977/msgpack/protocol/src/message.mli
ocaml
open Core module Custom : sig type t = { type_id : int ; data : Bytes.t } [@@deriving compare, sexp] end type t = | Nil | Integer of int | Int64 of Int64.t | UInt64 of Int64.t | Boolean of bool | Floating of float | Array of t list | Map of (t * t) list | String of string | Binary ...
23e48283dbb04ba325cbc1aade7cd2678525954de7c0b731197639193451089d
janestreet/bonsai
knobs.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Form = Bonsai_web_ui_form module Style = [%css stylesheet {| .form-title { justify-content:center; padding: 3px; } .card-content { flex-grow: 1; } |}] module Shared = struct type t = { left : [ `Hex of string ] ; righ...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/oklab/knobs.ml
ocaml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Form = Bonsai_web_ui_form module Style = [%css stylesheet {| .form-title { justify-content:center; padding: 3px; } .card-content { flex-grow: 1; } |}] module Shared = struct type t = { left : [ `Hex of string ] ; righ...
ca6b65fe189d30e9041272c50826e6c5734f9f95039f91a72a177b1eb7ed6210
wireapp/wire-server
Teams.hs
# OPTIONS_GHC -Wno - incomplete - uni - patterns # -- Disabling to stop warnings on HasCallStack {-# OPTIONS_GHC -Wno-redundant-constraints #-} -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modi...
null
https://raw.githubusercontent.com/wireapp/wire-server/bd9d33f7650f1bc47700601a029df2672d4998a6/services/galley/test/integration/API/Teams.hs
haskell
Disabling to stop warnings on HasCallStack # OPTIONS_GHC -Wno-redundant-constraints # This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY...
# OPTIONS_GHC -Wno - incomplete - uni - patterns # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Pu...
f1820d999b887943898ecadb8f18667c1ba1e6cfa8e0687ea6e524673ec6145a
donut/OCamURL-server
url.ml
open Lib_common open Lib_common.Ext_option module Scheme = struct type t = HTTP | HTTPS exception No_matching_string of string let of_string s = match String.lowercase_ascii s with | "http" -> HTTP | "https" -> HTTPS | _ -> raise (No_matching_string s) let of_string_opt s = try Some (of_string ...
null
https://raw.githubusercontent.com/donut/OCamURL-server/87738c1a0bbfc2c848f9f4e2052cacc81a176489/lib/model/url.ml
ocaml
open Lib_common open Lib_common.Ext_option module Scheme = struct type t = HTTP | HTTPS exception No_matching_string of string let of_string s = match String.lowercase_ascii s with | "http" -> HTTP | "https" -> HTTPS | _ -> raise (No_matching_string s) let of_string_opt s = try Some (of_string ...
79daf870dc0db72f4e740534487501d112f4b26ee8c00926ef86420d46e22f1d
jfeser/castor
layout_to_depjoin.ml
open Core open Ast module V = Visitors module S = Schema module A = Constructors.Annot let list l = { d_lhs = l.l_keys; d_rhs = l.l_values } let dedup_names = List.stable_dedup_staged ~compare:(fun n n' -> [%compare: String.t] (Name.name n) (Name.name n')) |> Staged.unstage let hash_idx h = let rk_schema...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/layout_to_depjoin.ml
ocaml
open Core open Ast module V = Visitors module S = Schema module A = Constructors.Annot let list l = { d_lhs = l.l_keys; d_rhs = l.l_values } let dedup_names = List.stable_dedup_staged ~compare:(fun n n' -> [%compare: String.t] (Name.name n) (Name.name n')) |> Staged.unstage let hash_idx h = let rk_schema...
6792f7b13521c2b0de6011af52e9186cd5a1701b7bb549574f1d220ac4e3b5cb
coq/coq
tac2interp.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/be037486c27f29dc0bcfbfd742c0303af295e23f/plugins/ltac2/tac2interp.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...
6889869a0765d0446a83c8748d71a00ada4318dfa6d8c71d14d02224b568686a
ocaml-flambda/ocaml-jst
toploop.ml
# 2 "toplevel/toploop.ml" (**************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/1bb6c797df7c63ddae1fc2e6f403a0ee9896cc8e/toplevel/toploop.ml
ocaml
************************************************************************ OCaml ...
# 2 "toplevel/toploop.ml" , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format include Topcommon include Topeval type input = | Stdin | File ...
8483354dc0df22462c4e12114904b3aa58194c2b3a2b8d102b06b91ce68e15b0
jarohen/phoenix
project.clj
(defproject jarohen/phoenix.build "0.0.1" :description "The build protocols for the Phoenix runtime, so that Components don't have to depend on Phoenix core." :url "-henderson/phoenix" :license {:name "Eclipse Public License" :url "-v10.html"})
null
https://raw.githubusercontent.com/jarohen/phoenix/f828bf144154f110f0a73f54645f5696e2c8bdab/build/project.clj
clojure
(defproject jarohen/phoenix.build "0.0.1" :description "The build protocols for the Phoenix runtime, so that Components don't have to depend on Phoenix core." :url "-henderson/phoenix" :license {:name "Eclipse Public License" :url "-v10.html"})
1834a48974599c255967b621bb9242fbc5fea8e236d1c5372c51f0eae1ac44e2
dawidovsky/IIUWr
Wykład.rkt
#lang racket (define (leaf? x) (eq? x 'leaf)) (define leaf 'leaf) (define (node? x) (and (list? x) (= (length x) 4) (eq? (car x) 'node))) (define (node-val x) (cadr x)) (define (node-left x) (caddr x)) (define (node-right x) (cadddr x)) (define (make-node v l r) (list 'node v l r))...
null
https://raw.githubusercontent.com/dawidovsky/IIUWr/73f0f65fb141f82a05dac2573f39f6fa48a81409/MP/Pracownia4/Wyk%C5%82ad.rkt
racket
pairs with priority priority queues, aka heaps trivial implementation using ordered lists dekodowanie
#lang racket (define (leaf? x) (eq? x 'leaf)) (define leaf 'leaf) (define (node? x) (and (list? x) (= (length x) 4) (eq? (car x) 'node))) (define (node-val x) (cadr x)) (define (node-left x) (caddr x)) (define (node-right x) (cadddr x)) (define (make-node v l r) (list 'node v l r))...
8b08a4f62a394c4c8c13fcf4be7bed1d386e587a0c313c895f61f1b4f3ab76f7
ruricolist/core-lisp
core-lisp-boot.lisp
(in-package :core-lisp) (cl:defmacro with-unique-names (names &body body) `(let ,(loop for name in names collect `(,name (cl:gensym ,(symbol-name name)))) ,@body)) (cl:defmacro rebinding (vars &body body) (loop for var in vars for name = (cl:gensym (symbol-name var)) collect `(...
null
https://raw.githubusercontent.com/ruricolist/core-lisp/1ea73b65a7de8abb608c253134b1b8e617018063/core-lisp-boot.lisp
lisp
TODO Actually implement abstract classes.
(in-package :core-lisp) (cl:defmacro with-unique-names (names &body body) `(let ,(loop for name in names collect `(,name (cl:gensym ,(symbol-name name)))) ,@body)) (cl:defmacro rebinding (vars &body body) (loop for var in vars for name = (cl:gensym (symbol-name var)) collect `(...
8f030de9e0af79a163de1b834ecfb8b7b40aa7ff2964f1558996df4c44016627
monadius/ocaml_simple_interval
t_interval1.ml
open Test open Interval1 module T = Test_interval (* let () = Random.self_init () *) let samples = try int_of_string (Sys.getenv "TEST_SAMPLES") with Not_found -> 1000 let () = Format.printf "samples = %d@." samples let intervals_of_pair = let intervals (a, b) = if is_nan a || is_nan b || (a = i...
null
https://raw.githubusercontent.com/monadius/ocaml_simple_interval/d1081e969e7f4907bc60c1e7d2af95fdf1f34310/tests/t_interval1.ml
ocaml
let () = Random.self_init () fsucc tests fpred tests mid tests neg tests abs tests min/max tests add tests sub tests mul tests div tests inv tests sqrt tests pown tests
open Test open Interval1 module T = Test_interval let samples = try int_of_string (Sys.getenv "TEST_SAMPLES") with Not_found -> 1000 let () = Format.printf "samples = %d@." samples let intervals_of_pair = let intervals (a, b) = if is_nan a || is_nan b || (a = infinity && b = neg_infinity) || ...
353e3f1691cee549ab8091bba3b6b304725e75ea50faeebbeb3e9de44877cb83
eugeneia/athens
tests.lisp
(defpackage :simple-date-tests (:use :common-lisp :fiveam :simple-date)) (in-package :simple-date-tests) ;; After loading the file, run the tests with (fiveam:run! :simple-date) (def-suite :simple-date) (in-suite :simple-date) (test days-in-month Note : internal date numbers , so 0 is March (is (= 31 (simple-...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/postmodern-20180711-git/simple-date/tests.lisp
lisp
After loading the file, run the tests with (fiveam:run! :simple-date)
(defpackage :simple-date-tests (:use :common-lisp :fiveam :simple-date)) (in-package :simple-date-tests) (def-suite :simple-date) (in-suite :simple-date) (test days-in-month Note : internal date numbers , so 0 is March (is (= 31 (simple-date::days-in-month 0 2000))) (is (= 30 (simple-date::days-in-month 1 2...
10a39840a876420e731cd4240008c3782eb2ca21c02ec6fb9e0c282ae0ba52ab
Janiczek/clj-markov
project.clj
(defproject janiczek/markov "0.3.1" :description "Markov chains in Clojure" :url "" :license {:name "Eclipse Public License - v1.0" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
null
https://raw.githubusercontent.com/Janiczek/clj-markov/e1da8e1653e029fbc3f38056d7019946013465f4/project.clj
clojure
(defproject janiczek/markov "0.3.1" :description "Markov chains in Clojure" :url "" :license {:name "Eclipse Public License - v1.0" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
85a9b9435db3434f9c5873dabf29dfdc1bf64feb1236bfa1de32326ac7e5d186
Apress/practical-webdev-haskell
Fixture.hs
module Fixture where import ClassyPrelude unimplemented :: a unimplemented = error "unimplemented" dispatch :: (MonadIO m, MonadReader r m) => (r -> a -> IO b) -> (a -> m b) dispatch getter param = do func <- asks getter liftIO $ func param dispatch2 :: (MonadIO m, MonadReader r m) =...
null
https://raw.githubusercontent.com/Apress/practical-webdev-haskell/17b90c06030def254bb0497b9e357f5d3b96d0cf/12/test/Fixture.hs
haskell
module Fixture where import ClassyPrelude unimplemented :: a unimplemented = error "unimplemented" dispatch :: (MonadIO m, MonadReader r m) => (r -> a -> IO b) -> (a -> m b) dispatch getter param = do func <- asks getter liftIO $ func param dispatch2 :: (MonadIO m, MonadReader r m) =...
cf81ea2217bcfd857840b51b299a27a65f26833e232c5d8cfd6cef60e28e16cb
samoht/camloo
io.scm
;; Le module (module __caml_io (import __caml_arg __caml_baltree __caml_char __caml_eq __caml_exc __caml_fchar __caml_filename __caml_float __caml_fstring __caml_fvect __caml_genlex __caml_hashtbl __caml_int __caml_lexing __caml_list __caml_map __...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/runtime/Llib.bootstrap/io.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_io (import __caml_arg __caml_baltree __caml_char __caml_eq __caml_exc __caml_fchar __caml_filename __caml_float __caml_fstring __caml_fvect __caml_genlex __caml_hashtbl __caml_int __caml_lexing __caml_list __caml_map __caml_pair ...
d793593f8bb8c2703015685c94d4f13b5646247ad5e595452ee093cd993027d3
racket/racket7
get-linklet.rkt
#lang racket/base (require "../common/set.rkt" "../common/phase.rkt" "../run/status.rkt" "../host/linklet.rkt" "../compile/module-use.rkt" "../syntax/binding.rkt" "../namespace/provided.rkt" "link.rkt" "linklet-info.rkt" "linklet.rkt" ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/extract/get-linklet.rkt
racket
strip away submodule path skip pre-defined modules from the compiled module Extract other metadata at the module level: Extract phase-specific (i.e., linklet-specific) info on variables: Extract phase-specific info on imports (for reporting bootstrap issues): Extract phase-specific info on side effects: Extract...
#lang racket/base (require "../common/set.rkt" "../common/phase.rkt" "../run/status.rkt" "../host/linklet.rkt" "../compile/module-use.rkt" "../syntax/binding.rkt" "../namespace/provided.rkt" "link.rkt" "linklet-info.rkt" "linklet.rkt" ...
adeb3e23d16680bc618b292b72c97084121df793000f35a4c43da923e639ca4f
marigold-dev/mankavar
a_test.expected.ml
module My_int_container : sig type nonrec ints val of_ints : ints -> int list val to_ints : int list -> ints end = struct type nonrec ints = int list let of_ints x = x let to_ints x = x end
null
https://raw.githubusercontent.com/marigold-dev/mankavar/2a384efc359799b6cf37504fc6f2e6019a5feabc/vendors/ppx-abstract/test/positive/a_test.expected.ml
ocaml
module My_int_container : sig type nonrec ints val of_ints : ints -> int list val to_ints : int list -> ints end = struct type nonrec ints = int list let of_ints x = x let to_ints x = x end
2d80946d21defe97f9b58219fc42f249df316497f6b0773728c1016164df9e18
janestreet/merlin-jst
pprintast.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_414/parsing/pprintast.ml
ocaml
************************************************************************ OCaml Fabrice L...
, OCamlPro , University of Pennsylvania Copyright 2007 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Original Code from Ber - metaocaml , modified...
36f5a7811a9986942b0fd56dfbfaeeb27fe2f472913cd477dc4cfce982907e28
footprintanalytics/footprint-web
annotate_test.clj
(ns metabase.query-processor.middleware.annotate-test (:require [clojure.test :refer :all] [medley.core :as m] [metabase.driver :as driver] [metabase.models :refer [Card Field]] [metabase.query-processor :as qp] [metabase.query-processor.middleware.annotate ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor/middleware/annotate_test.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | column-info (:native) | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor.middleware.annotate-test (:require [clojure.test :refer :all] [medley.core :as m] [metabase.driver :as driver] [metabase.models :refer [Card Field]] [metabase.query-processor :as qp] [metabase.query-processor.middleware.annotate ...
b5fe71a230f38538162bb1237ba73d36ab6f3bf8b224bcff6e5db30b5fdc84d2
helium/ebus-gatt
gatt_application_sup.erl
-module(gatt_application_sup). -behavior(supervisor). -export([start_link/2, init/1]). -export([service_sup/1]). -define(SERVICES, services). start_link(Module, Args) -> supervisor:start_link(?MODULE, [Module, Args]). init([Module, Args]) -> SupFlags = {rest_for_one, 3, 10}, ChildSpecs = [ ...
null
https://raw.githubusercontent.com/helium/ebus-gatt/92732d7d7c153e46f4a7b9bde46c676b8d8476fd/src/gatt_application_sup.erl
erlang
-module(gatt_application_sup). -behavior(supervisor). -export([start_link/2, init/1]). -export([service_sup/1]). -define(SERVICES, services). start_link(Module, Args) -> supervisor:start_link(?MODULE, [Module, Args]). init([Module, Args]) -> SupFlags = {rest_for_one, 3, 10}, ChildSpecs = [ ...
7dcf5b66ced54b3b27a845f52370da3af7e351773d3cb4390c4a718843449143
camllight/camllight
ouster-f16.11.ml
#open "tk";; let top = OpenTk() in let files = listbox__create top [Relief Raised; Borderwidth (Pixels 2)] and scroll = scrollbar__create top [] in listbox__configure files [YScrollCommand (scrollbar__set scroll)]; scrollbar__configure scroll [Slidecommand (fun n ->...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camltk/books-examples/ouster-f16.11.ml
ocaml
replaced [glob *] by arbitrary strings
#open "tk";; let top = OpenTk() in let files = listbox__create top [Relief Raised; Borderwidth (Pixels 2)] and scroll = scrollbar__create top [] in listbox__configure files [YScrollCommand (scrollbar__set scroll)]; scrollbar__configure scroll [Slidecommand (fun n ->...
4ff4c9943f4271deb2c6cc0d2eafbf7af0d74a5d6c28e335abf75eb9b624dbad
AlexKnauth/debug
helpers.rkt
#lang racket/base ;; Any helper functions that the report macros expand into should be ;; defined in this file. ;; Type annotations for these helpers should go in ;; typed/debug/report/helpers.rkt (provide pass-through-values effect/report effect/report/line effect/report/file) (require r...
null
https://raw.githubusercontent.com/AlexKnauth/debug/aa798842c09ece55c2a088f09d30e398d2b77fee/debug/report/helpers.rkt
racket
Any helper functions that the report macros expand into should be defined in this file. Type annotations for these helpers should go in typed/debug/report/helpers.rkt pass-through-values : (∀ (X ...) (-> (-> (values X ...)) (values X ...))) --------------------------------------------------------------...
#lang racket/base (provide pass-through-values effect/report effect/report/line effect/report/file) (require racket/match racket/struct pretty-format) ( - > ( Any ) Void ) (define (pass-through-values thunk effect) (let ([lst (call-with-values thunk list)]) ...
d97d06e4258532e98cc8d53cfe0fb7cae1511523a01a4bc5c10fbfbd5b67803a
huangjs/cl
lbfgs.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lbfgs/lbfgs.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
7c04f962f86edeb89374d890eb53e3460d752e5a385cdb5d0fd23e82f2308321
bitemyapp/fp-course
Comonad.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE InstanceSigs # module Course.Comonad where import Course.Core import Course.ExactlyOne import Course.Extend | All instances of the ` Comonad ` type - class must satisfy two laws . These -- laws are not checked by the compiler. These laws ar...
null
https://raw.githubusercontent.com/bitemyapp/fp-course/a9a325cd895a0953151ec3d02f40006eb7993fb8/src/Course/Comonad.hs
haskell
laws are not checked by the compiler. These laws are given as: * The law of left identity * The law of right identity | Implement the @Comonad@ instance for @ExactlyOne@. >>> copure (ExactlyOne 7) | Witness that all things with (<<=) and copure also have (<$>). >>> (+10) <$$> ExactlyOne 7
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE InstanceSigs # module Course.Comonad where import Course.Core import Course.ExactlyOne import Course.Extend | All instances of the ` Comonad ` type - class must satisfy two laws . These ` ∀x . < < = x ≅ x ` ` ∀f . . ( f < < =) = =...
c0029466cc3c6fa71b06a4550b465d4bde5a0528b1e0e9a8bd0f1a129d08a24d
flodihn/NextGen
http_api_callback.erl
-module(http_api_callback). -export([handle/2, handle_event/3]). -include_lib("elli/include/elli.hrl"). -behaviour(elli_handler). handle(Req, Args) -> handle(Req#req.method, elli_request:path(Req), Req, Args). handle('GET',[<<"crossdomain.xml">>], Req, Args) -> {200, [], <<"<?xml version=\"1.0\"?>\n<cross-domai...
null
https://raw.githubusercontent.com/flodihn/NextGen/3da1c3ee0d8f658383bdf5fccbdd49ace3cdb323/CrossDomainPolicyServer/src/http_api_callback.erl
erlang
@doc: Handle request events, like request completed, exception thrown, client timeout, etc. Must return 'ok'.
-module(http_api_callback). -export([handle/2, handle_event/3]). -include_lib("elli/include/elli.hrl"). -behaviour(elli_handler). handle(Req, Args) -> handle(Req#req.method, elli_request:path(Req), Req, Args). handle('GET',[<<"crossdomain.xml">>], Req, Args) -> {200, [], <<"<?xml version=\"1.0\"?>\n<cross-domai...
48bdfdc45c3a32483e0059eabafe3b34b5aa777f255a7f3ddf5c4ccf58622f35
ros/roslisp_common
simple-action-client.lisp
Copyright ( c ) 2014 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of conditions...
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/actionlib_lisp/src/new_implementation/simple-action-client.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in ...
Copyright ( c ) 2014 , < > * Neither the name of the Institute for Artificial Intelligence/ Universitaet Bremen nor the names of its contributors may be used to THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR P...
2bd5d55186c2610a7a7670e8b84ff4348da84919d84a77437a341fdbd931d6a1
elektronaut/advent-of-code
day06.clj
(ns advent-of-code.2020.06 (:require [clojure.string :as str] [clojure.set :as set])) (def groups (str/split (slurp "2020/day06/input.txt") #"\n\n")) (defn questions-any [g] (set (str/replace g #"[^\w]" ""))) (defn questions-all [g] (let [member-count (count (str/split-lines g))] (->> (frequenc...
null
https://raw.githubusercontent.com/elektronaut/advent-of-code/a8bb7bbadc8167ebb1df0d532493317705bb7f0d/2020/day06/day06.clj
clojure
(ns advent-of-code.2020.06 (:require [clojure.string :as str] [clojure.set :as set])) (def groups (str/split (slurp "2020/day06/input.txt") #"\n\n")) (defn questions-any [g] (set (str/replace g #"[^\w]" ""))) (defn questions-all [g] (let [member-count (count (str/split-lines g))] (->> (frequenc...
8bd10f02ae0182194838084a4ee0a4a657264601be5a659a3dec1928fdefdb4b
intermine/bluegenes
views.cljs
(ns bluegenes.pages.profile.views (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [oops.core :refer [oget ocall]] [bluegenes.pages.profile.events :as events] [bluegenes.pages.profile.subs :as subs] [bluegenes.components.loader :ref...
null
https://raw.githubusercontent.com/intermine/bluegenes/417ea23b2d00fdca20ce4810bb2838326a09010e/src/cljs/bluegenes/pages/profile/views.cljs
clojure
It's possible to do this with CSS transitions, except the dark background will abruptly appear and disappear even though the request is so quick the transition doesn't have time to finish.
(ns bluegenes.pages.profile.views (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [oops.core :refer [oget ocall]] [bluegenes.pages.profile.events :as events] [bluegenes.pages.profile.subs :as subs] [bluegenes.components.loader :ref...
aa44d8f99fde7359759bcd8f5801c3ada9655bdacda904aaa9e97ba9d622d324
chaoxu/fancy-walks
C.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # {-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control ...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/codeforces.com/91/C.hs
haskell
# OPTIONS_GHC -O2 # -------------------------------------------------------------------- -------------------------------------------------------------------- --------------------------------------------------------------------
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control . Monad . State import C...
c52e5b89e0c4409ad972cf8be43d4fbdf18b42c32081ec0a663f05293e30529b
serokell/time-warp
Main.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Main ( main , yohohoScenario , , transferScenario , proxyScenario ...
null
https://raw.githubusercontent.com/serokell/time-warp/2783f81957a2e5b02e9d3425d760247a6c5a766b/examples/playground/Main.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # , runReal use ghci; this is only for logger debugging * data types * scenarios | Examples management info. | Example of `Transfer` usage =$= awaitForever (\m -> yield "trash" >> yield m) * Blind proxy sc...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Main ( main , yohohoScenario , , transferScenario , proxyScenario , slowpokeScenario , closingServerScenario , pendingForkStrategy ...
8edfd5dea27810c039000f22e9637a013763444e2dc46f1347b412bdb23725e0
simonmar/monad-par
issue21.hs
$ cabal install -O2 monad - par-0.3 $ ghc -O2 -threaded -rtsopts -with - rtsopts -N issue21.hs -o issue21.exe $ ./issue21.exe 10000000 2089877 $ ./issue21.exe 10000000 issue21 : < < loop>>issue21 : issue21 : issue21 : thread blocked indefinitely in an MVar operation < < loop > > < < loop > > issue21...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/tests/issue21.hs
haskell
Default to 10M to trigger the bug.
$ cabal install -O2 monad - par-0.3 $ ghc -O2 -threaded -rtsopts -with - rtsopts -N issue21.hs -o issue21.exe $ ./issue21.exe 10000000 2089877 $ ./issue21.exe 10000000 issue21 : < < loop>>issue21 : issue21 : issue21 : thread blocked indefinitely in an MVar operation < < loop > > < < loop > > issue21...
28ef6e93aa294efafefeda14a43bec8eecb399107e375acf6cf1f0745cf117d0
YoshikuniJujo/test_haskell
makeEnumVkDynamicState.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import MakeEnum main :: IO () main = makeEnum' "/usr/include/vulkan/vulkan_core.h" ["Foreign.Ptr"] "DynamicState" "VkDynamicState" ["Show", "Eq", "Storable"] "type PtrDynamicState = Ptr DynamicState"
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/abf9fb3dd4be311e1182751f0888270ea431630d/themes/gui/vulkan/try-my-vulkan/tools/makeEnumVkDynamicState.hs
haskell
# OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import MakeEnum main :: IO () main = makeEnum' "/usr/include/vulkan/vulkan_core.h" ["Foreign.Ptr"] "DynamicState" "VkDynamicState" ["Show", "Eq", "Storable"] "type PtrDynamicState = Ptr DynamicState"
19c9ffeaa50e997a824724cb4a3083b5413e6c6ec673f3a579e670727774c328
roterski/syncrate-fulcro
validations.cljc
(ns app.posts.validations (:require #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]))) (s/def :post/title (s/and string? #(<= 3 (count %)))) (s/def :post/body (s/and string? #(< 0 (count %)))) (s/def ::post (s/keys :req [:post/title :post/body])) (defn valid-post? [attrs] (s/valid? ::pos...
null
https://raw.githubusercontent.com/roterski/syncrate-fulcro/3fda40b12973e64c7ff976174498ec512b411323/src/main/app/posts/validations.cljc
clojure
(ns app.posts.validations (:require #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]))) (s/def :post/title (s/and string? #(<= 3 (count %)))) (s/def :post/body (s/and string? #(< 0 (count %)))) (s/def ::post (s/keys :req [:post/title :post/body])) (defn valid-post? [attrs] (s/valid? ::pos...
596c25af1d6e38e65e4a77a744bc9bfb9dc2384fa51bc16c6c8326f7766db2a1
lucassouzamatos/chico.lang
chico_tokenizer.erl
-file("/opt/homebrew/Cellar/erlang/25.2/lib/erlang/lib/parsetools-2.4.1/include/leexinc.hrl", 0). %% The source of this file is part of leex distribution, as such it %% has the same Copyright as the other files in the leex %% distribution. The Copyright is defined in the accompanying file COPYRIGHT . However , the r...
null
https://raw.githubusercontent.com/lucassouzamatos/chico.lang/8d2d120ecbf1a4d7d9958da0f13a085c0cb7e429/src/chico_tokenizer.erl
erlang
The source of this file is part of leex distribution, as such it has the same Copyright as the other files in the leex distribution. The Copyright is defined in the accompanying file property of the creator of the scanner and is not covered by that Copyright. User code. This is placed here to allow extra attribut...
-file("/opt/homebrew/Cellar/erlang/25.2/lib/erlang/lib/parsetools-2.4.1/include/leexinc.hrl", 0). COPYRIGHT . However , the resultant scanner generated by is the -module(chico_tokenizer). -export([string/1, string/2, token/2, token/3, tokens/2, tokens/3]). -export([format_error/1]). -file("./chico_tokenizer.xrl...
a6a696bcdfa2d3ae44f14f9fc2ad54c8d9befd6d6083df3bed1ef925407f6d8b
takeoutweight/clojure-scheme
macros.clj
(ns cljscm.macro-test.macros (:refer-clojure :exclude [==])) (defmacro == [a b] `(+ ~a ~b))
null
https://raw.githubusercontent.com/takeoutweight/clojure-scheme/6121de1690a6a52c7dbbe7fa722aaf3ddd4920dd/test/cljscm/cljscm/macro_test/macros.clj
clojure
(ns cljscm.macro-test.macros (:refer-clojure :exclude [==])) (defmacro == [a b] `(+ ~a ~b))
f8aa53c3ec0206bc2e2ae2f1af2c196c05926ab169742c14531bb59be6eae4e6
clojure-interop/aws-api
AbstractAmazonWorkLinkAsync.clj
(ns com.amazonaws.services.worklink.AbstractAmazonWorkLinkAsync "Abstract implementation of AmazonWorkLinkAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clojure :only [require comm...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.worklink/src/com/amazonaws/services/worklink/AbstractAmazonWorkLinkAsync.clj
clojure
(ns com.amazonaws.services.worklink.AbstractAmazonWorkLinkAsync "Abstract implementation of AmazonWorkLinkAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clojure :only [require comm...
b3290fe6891dea68a1df29ccdc15fb5b8322e19248cf0541116d2efc231bfe7b
nuttycom/aftok
WorkLog.hs
# LANGUAGE InstanceSigs # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Aftok.Snaplet.WorkLog where import Aftok.Database import Aftok.Interval ( Interval (..), intervalJSON, ) import Aftok.Json import Aftok.Snaplet import Aftok.Snaplet.Auth import Aftok.Snaplet....
null
https://raw.githubusercontent.com/nuttycom/aftok/58feefe675cea908cf10619cc88ca4770152e82e/server/Aftok/Snaplet/WorkLog.hs
haskell
-------------------- Handlers -------------------- -------------------- Parsing -------------------- -------------------- Rendering --------------------
# LANGUAGE InstanceSigs # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Aftok.Snaplet.WorkLog where import Aftok.Database import Aftok.Interval ( Interval (..), intervalJSON, ) import Aftok.Json import Aftok.Snaplet import Aftok.Snaplet.Auth import Aftok.Snaplet....
5dff12b652410330336ba9c3d913087696175b7df77142e3913afb982d16be69
ekmett/eq
Type.hs
# LANGUAGE CPP , , ScopedTypeVariables , TypeOperators # #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 706 #define LANGUAGE_PolyKinds # LANGUAGE PolyKinds # #endif #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 707 # LANGUAGE RoleAnnotations # #endif #if defined(__GLASGOW_HASKELL__) && MIN_VER...
null
https://raw.githubusercontent.com/ekmett/eq/4bba24b6d41c76931d22651f3250ad8eeb81e339/src/Data/Eq/Type.hs
haskell
# LANGUAGE GADTs # --------------------------------------------------------------------------- | Module : Data.Eq.Type License : BSD-style (see the file LICENSE) Stability : provisional Portability : rank2 types, type operators, (optional) type families <-cafe/2010-May/077177.html> -------------...
# LANGUAGE CPP , , ScopedTypeVariables , TypeOperators # #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 706 #define LANGUAGE_PolyKinds # LANGUAGE PolyKinds # #endif #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 707 # LANGUAGE RoleAnnotations # #endif #if defined(__GLASGOW_HASKELL__) && MIN_VER...
4f955337f7e6b2eb2e3a86e1b0785e220bfe32fceb1668187087a7685fc7b660
dbenoit17/dynamic-ffi
inline.rkt
#lang at-exp racket/base (require rackunit rackunit/text-ui "../unsafe.rkt") @define-inline-ffi[mylib]{ #include <stdio.h> #include <string.h> int int_add(int x, int y) { return x + y; } int int_sub(int x, int y) { return x - y; } int int_mult(int x, int y) { return x * ...
null
https://raw.githubusercontent.com/dbenoit17/dynamic-ffi/c82f5cb25932e9cab31844569b1364e23a02f205/test/inline.rkt
racket
I was pleasantly surprised these floating point tests work. Are Racket's real numbers implemented with IEEE floats? If these ever break, it's likely and its probably ok to just delete the tests.
#lang at-exp racket/base (require rackunit rackunit/text-ui "../unsafe.rkt") @define-inline-ffi[mylib]{ #include <stdio.h> #include <string.h> int int_add(int x, int y) { } int int_sub(int x, int y) { } int int_mult(int x, int y) { } int int_div(int x, int y) { } int int_m...
70f060e8bbea8280b2c68a20be5e2dffc9cc36a0240e7e3a183f75785f69ee3b
racket/gui
only-one-child.rkt
(require mred mzlib/class mzlib/etc mzlib/list mzlib/match (prefix a: "../alignment.rkt") "../alignment-helpers.rkt" "../dllist.rkt" mrlib/click-forwarding-editor "../on-show-pasteboard.rkt" "../really-resized-pasteboard.rkt" "../interface.rkt" "../locked-pasteboard.rkt" "../suppress-modify-editor.rkt") ...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/embedded-gui/private/tests/only-one-child.rkt
racket
alignment (((is-a?/c alignment<%>)) ((union (is-a?/c alignment<%>) false?)) . opt-> . void?) Add the given alignment as a child before the existing child
(require mred mzlib/class mzlib/etc mzlib/list mzlib/match (prefix a: "../alignment.rkt") "../alignment-helpers.rkt" "../dllist.rkt" mrlib/click-forwarding-editor "../on-show-pasteboard.rkt" "../really-resized-pasteboard.rkt" "../interface.rkt" "../locked-pasteboard.rkt" "../suppress-modify-editor.rkt") ...
d78872f1156d2d449de101db5cf5d658bd2dab3fed09fed043a390f7910422c8
ocurrent/ocaml-ci
test.ml
let () = Alcotest.run "ocaml-ci" [ ("obuilder_specs", Test_spec.tests); ("pipeline", Test_pipeline.tests) ]
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/755fe5e74264e0d40ece51afbd4ebf6ff5061600/test/service/test.ml
ocaml
let () = Alcotest.run "ocaml-ci" [ ("obuilder_specs", Test_spec.tests); ("pipeline", Test_pipeline.tests) ]
dd2aa22d6da85ca805496d9e2a46107d8da73a3a99dac6b3f32093d5f435b898
joinr/clclojure
pmap.lisp
This is an implementation of Clojure 's ;persistent map for Common Lisp. (defpackage :clclojure.pmap (:use :common-lisp) (:export :persistent-map :empty-map? :pmap-count :pmap-map :pmap-reduce) (:shadow :assoc :find)) ; :pmap-chunks ; :pmap-element-type ; :pmap-assoc ; :pmap-nth))...
null
https://raw.githubusercontent.com/joinr/clclojure/8b51214891c4da6dfbec393dffac70846ee1d0c5/dustbin/pmap.lisp
lisp
persistent map for Common Lisp. :pmap-chunks :pmap-element-type :pmap-assoc :pmap-nth)) Currently deferred... i.e. wrap a hashtable and copy its contents... utility functions Persistent maps require a lot of array copying, and according to the clojure implementation, bit-twiddling. it's a user-defined ...
This is an implementation of Clojure 's (defpackage :clclojure.pmap (:use :common-lisp) (:export :persistent-map :empty-map? :pmap-count :pmap-map :pmap-reduce) (:shadow :assoc :find)) (in-package clojure.pmap) Original from Stack Overflow , with some slight modifications . (defun |brace-rea...
2bdfd6fe3e0232d47ee180efcb22522a12c832919661aab6738ef43cad3f8101
pflanze/chj-schemelib
compat.scm
Copyright 2014 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require (cj-env in...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/compat.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. XXX hm can we simply ignore need? nothing to change
Copyright 2014 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require (cj-env insert-result-of)) Provide compatibility with Gambit 4.2.8 - 1.1 in Debian (insert-result-of (with-exception-catc...
c92ebbe7b1c4c009c9f7a9427e3d4bb812416805a1f36996354b4bab176e2313
eslick/cl-stdutils
assoc-table.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: assoc-table.lisp ;;;; Purpose: A generic data structure; assoc-list tables Programmer : Da...
null
https://raw.githubusercontent.com/eslick/cl-stdutils/4a4e5a4036b815318282da5dee2a22825369137b/src/assoc-table.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*- ************************************************************************* FILE IDENTIFICATION Name: assoc-table.lisp Purpose: A generic data structure; assoc-list tables
Programmer : Date Started : August 2005 (in-package :stdutils.gds) (defclass-exported assoc-table (table) ((alist :accessor alist :initarg :alist :initform nil) (key-test :accessor key-test :initarg :key-test :initform #'eq))) (defmethod-exported drop ((table assoc-table) key) (assoc-del key (ali...
df9d655b4fc0f063ee786673be71f07e5469ffbbc298402d56a3fa9fd9b4e649
kronkltd/jiksnu
test_helper.clj
(ns jiksnu.test-helper (:require [ciste.runner :refer [start-application! stop-application!]] [hiccup.core :as h] [jiksnu.modules.core.db :as db] [jiksnu.referrant :as r] [midje.sweet :refer [=> =not=> fact future-fact namespace-state-changes throws]] [net.c...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/test/jiksnu/test_helper.clj
clojure
(actions.domain/current-domain) FIXME: Handle error (stop-application!) (println "error") (fact (do ~@body) =not=> (throws))
(ns jiksnu.test-helper (:require [ciste.runner :refer [start-application! stop-application!]] [hiccup.core :as h] [jiksnu.modules.core.db :as db] [jiksnu.referrant :as r] [midje.sweet :refer [=> =not=> fact future-fact namespace-state-changes throws]] [net.c...