_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
1f26a1e33f8365a13baa2ffce4667ab3b3f3ac308564657a9a1c9870a877cff1
ocaml-gospel/gospel
PriorityQueue.mli
(**************************************************************************) (* *) VOCaL -- A Verified OCaml Library (* *) Copyright ( ...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/bd213d7fdfaf224666acb413efc49f872251bca7/test/vocal/PriorityQueue.mli
ocaml
************************************************************************ (as described in file LICE...
VOCaL -- A Verified OCaml Library Copyright ( c ) 2020 The VOCaL Project This software is free software , distributed under the MIT license module Make (X : sig type t val dummy : t val compare : t -> t -> int end) : sig ...
7e40ef9457a8de2d9ecb259801bb539bd2ec203d14347bdec531d3355ea20310
reactive-systems/syfco
Config.hs
----------------------------------------------------------------------------- -- | -- Module : Config License : MIT ( see the LICENSE file ) Maintainer : ( ) -- -- Configuration of the tool, set up via the command line arguments. -- ---------------------------------------------------------------...
null
https://raw.githubusercontent.com/reactive-systems/syfco/0f0f6a6fff7960d8a0cbb120587984183fa7fc0e/src/lib/Config.hs
haskell
--------------------------------------------------------------------------- | Module : Config Configuration of the tool, set up via the command line arguments. --------------------------------------------------------------------------- -------------------------------------------------------------------------...
License : MIT ( see the LICENSE file ) Maintainer : ( ) # LANGUAGE LambdaCase , MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances , FlexibleContexts , RecordWildCards # LambdaCase , MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstan...
cd2171448ae5d03e8a64b3eae05e0b7c27f316548b8eaa42801d8cc48f935505
cubicle-model-checker/cubicle
sum.ml
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/smt/sum.ml
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
ff1ce4fccb067d41e6d7c67cd56047d7f04d1691d278de6de04c1a7e4ce9269d
mirage/alcotest
alcotest_async.mli
* Copyright ( c ) 2017 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/src/alcotest-async/alcotest_async.mli
ocaml
* Copyright ( c ) 2017 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
8666f4e3e98fa1ad5dd980faac2a7f6937eb4eac82889cd183e94b193c29a7fb
AccelerateHS/accelerate-llvm
Compile.hs
# LANGUAGE TypeFamilies # {-# OPTIONS -fno-warn-orphans #-} -- | Module : Data . Array . Accelerate . . Compile Copyright : [ 2014 .. 2015 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- module Data...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/icebox/accelerate-llvm-multidev/Data/Array/Accelerate/LLVM/Multi/Compile.hs
haskell
# OPTIONS -fno-warn-orphans # | License : BSD3 Stability : experimental accelerate standard library | Compile a given Accelerate array computation for all target backends
# LANGUAGE TypeFamilies # Module : Data . Array . Accelerate . . Compile Copyright : [ 2014 .. 2015 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.LLVM.Multi.Compile ( ExecutableR(..), module Data.Array.Accelerate.LLVM.Co...
32d9fa40665b1b799d024345d1f4d3c037a3e4c7ecd8efc071100f0a8e94eb19
zack-bitcoin/amoveo
sub_spend_tx.erl
-module(sub_spend_tx). -export([go/4, make_dict/6, from/1, to/1]). -include("../../records.hrl"). from(X) -> X#sub_spend_tx.from. to(X) -> X#sub_spend_tx.to. make_dict(To, Amount, Fee, Contract, Type, From) -> Acc = trees:get(accounts, From), #sub_spend_tx{from = From, nonce = Acc#acc.nonce + 1, to = To, amoun...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo/2d5755abd80f0852ab2faf3f1fda83c76de07f93/apps/amoveo_core/src/consensus/txs/sub_spend_tx.erl
erlang
true -> none end,
-module(sub_spend_tx). -export([go/4, make_dict/6, from/1, to/1]). -include("../../records.hrl"). from(X) -> X#sub_spend_tx.from. to(X) -> X#sub_spend_tx.to. make_dict(To, Amount, Fee, Contract, Type, From) -> Acc = trees:get(accounts, From), #sub_spend_tx{from = From, nonce = Acc#acc.nonce + 1, to = To, amoun...
9d8e6a87a918edd62275c5458f41c2c2887922791b12b503d555b1bc1e14c96d
mokus0/junkbox
BF.hs
module BF ( runBF ) where import OptBF import BFTape import Control.Monad.ST import Data.Int import Data.STRef {-# SPECIALIZE runBF :: String -> Int -> (Int8 -> IO Int8) -> (Int8 -> IO ()) -> IO ()#-} runBF :: (Num a, Ord a) => String -- the program -> Int -- the size of the tape to allocate -> (a -> I...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Projects/BrainFuck%20take%202/BF.hs
haskell
# SPECIALIZE runBF :: String -> Int -> (Int8 -> IO Int8) -> (Int8 -> IO ()) -> IO ()# the program the size of the tape to allocate an input function; arg is current cell value an output function returns: () the program the size of the tape to allocate an input function; arg is current cell value an output func...
module BF ( runBF ) where import OptBF import BFTape import Control.Monad.ST import Data.Int import Data.STRef runBF :: (Num a, Ord a) => runBF prog tapeSize inF outF = unsafeSTToIO (runBF_ST prog tapeSize (unsafeIOToST . inF) (unsafeIOToST . outF)) # SPECIALIZE runBF_ST : : String - > Int - > ( Int8 - > ST ...
99a744c6e96845387c3e3637f53e8086f766caf4e9a0014c43a7b42a966bc4bb
patrikja/AFPcourse
Animate.hs
-- | Combining 'Signal' and 'Shape' to obtain moving objects. module Animate where import System.Posix (usleep) import Signal import Shape import Render import ANSI fps :: Double we generate 10 fps -- | Animate a shape valued signal. animate :: Window -> Time -> Time -> Signal Shape -> IO () animate win t0 t1 ss ...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L2/src/Animate.hs
haskell
| Combining 'Signal' and 'Shape' to obtain moving objects. | Animate a shape valued signal. sleeping removes flickering
module Animate where import System.Posix (usleep) import Signal import Shape import Render import ANSI fps :: Double we generate 10 fps animate :: Window -> Time -> Time -> Signal Shape -> IO () animate win t0 t1 ss = mapM_ display frames where ts = samples t0 t1 (round $ (t1 - t0) * fps) frames = m...
6de3bdfb82abaf722b8840b0508abbed19d5b79e4ba3c3a148e530ab0de8c782
cyga/real-world-haskell
Foldl.hs
-- file: ch25/Foldl.hs foldl' :: (a -> b -> a) -> a -> [b] -> a foldl' f z xs = lgo z xs where lgo z [] = z lgo z (x:xs) = let z' = f z x in z' `seq` lgo z' xs
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch25/Foldl.hs
haskell
file: ch25/Foldl.hs
foldl' :: (a -> b -> a) -> a -> [b] -> a foldl' f z xs = lgo z xs where lgo z [] = z lgo z (x:xs) = let z' = f z x in z' `seq` lgo z' xs
159b1bc22e82ab24cd97a67f525e6918065382c320ad6a5718f734214f0024a0
fluree/db
sync_package_json.clj
(ns sync-package-json (:require [clojure.edn :as edn] [cheshire.core :as json])) (defn js-deps [] (-> "package.json" slurp (json/parse-string true) :dependencies)) (defn run [& args] (let [version (first args) target-package-json-file (second args) target-package-json (-> target-...
null
https://raw.githubusercontent.com/fluree/db/48d5daea08e4cb9830c484d753de7e78e9433f9a/script/sync_package_json.clj
clojure
(ns sync-package-json (:require [clojure.edn :as edn] [cheshire.core :as json])) (defn js-deps [] (-> "package.json" slurp (json/parse-string true) :dependencies)) (defn run [& args] (let [version (first args) target-package-json-file (second args) target-package-json (-> target-...
f41c0dd928186dee38b84245ab0c9fd60fde1b3f1a209f6f71003e92094f3164
thoughtstem/morugamu
list-cards.rkt
#lang racket (require "./common.rkt" "./redex/list.rkt") (module+ test (require (prefix-in list: "../themes/emoji-list.rkt")) (render list:theme)) (make-generator generate list-lang e) (make-simulator simulate list-lang) (make-renderer render (cons nil head tail))
null
https://raw.githubusercontent.com/thoughtstem/morugamu/a9095ddebe364adffb036c3faed95c873a4d9f3c/rule-systems/list-cards.rkt
racket
#lang racket (require "./common.rkt" "./redex/list.rkt") (module+ test (require (prefix-in list: "../themes/emoji-list.rkt")) (render list:theme)) (make-generator generate list-lang e) (make-simulator simulate list-lang) (make-renderer render (cons nil head tail))
ca50bd2583c5394029ed65696af8a7342d630dc488f8d7a53ad3d8c51baa9e9a
data61/Mirza
Auth.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MonoLocalBinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Mirza.OrgRegistry.Auth ( tokenServerContext , tableUserToAuthUser , listUsersQuer...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/src/Mirza/OrgRegistry/Auth.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # ------------------------------------------------------------------------------ Authentication ------------------------------------------------------------------------------ | We need to supply our handlers with the right Context. In this case, ----...
# LANGUAGE MonoLocalBinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Mirza.OrgRegistry.Auth ( tokenServerContext , tableUserToAuthUser , listUsersQuery , oauthClaimsToAuthUser , getUserByOAuthSubQuery , userOrganisationAut...
cc0db00cf6b1dd59e17d3ea817be9b62389e6ce4c4d75bc7f02fa46bb5e9a217
konn/subcategories
Internal.hs
# LANGUAGE CPP , GADTs , InstanceSigs , KindSignatures , PatternSynonyms # # LANGUAGE RankNTypes , RoleAnnotations , ScopedTypeVariables # # LANGUAGE StandaloneDeriving , TemplateHaskell , TypeApplications # # LANGUAGE TypeFamilies , TypeOperators , UndecidableSuperClasses # module Control.Subcateg...
null
https://raw.githubusercontent.com/konn/subcategories/2ad473e09bbf674bbe3825849bad3cca7b25f4ac/src/Control/Subcategory/Wrapper/Internal.hs
haskell
To restrict the construction, we hide genuine constructor specifies type roles tightly (note: the role for @mono@ should NOT be representational honestly; indeed, @WrapMono mono a@ representationally equivalent __AND__ @Element a ~ Element a@.)
# LANGUAGE CPP , GADTs , InstanceSigs , KindSignatures , PatternSynonyms # # LANGUAGE RankNTypes , RoleAnnotations , ScopedTypeVariables # # LANGUAGE StandaloneDeriving , TemplateHaskell , TypeApplications # # LANGUAGE TypeFamilies , TypeOperators , UndecidableSuperClasses # module Control.Subcateg...
476662c79b81f693c76999a655186dd008fca06afd4dc8ea42341db28ff164a5
deepfire/cl-org-mode
extended.lisp
(defpackage :cl-org-mode-extended-tests (:use :cl :alexandria :iterate :cl-org-mode :cl-org-mode-utils :cl-org-mode-extended)) (in-package :cl-org-mode-extended-tests) (defun roundtrip-hash-stability (org) (let* ((initial (read-file-into-string (asdf:system-relative-pathname (asdf...
null
https://raw.githubusercontent.com/deepfire/cl-org-mode/a45eadade90d64ec0d543b6a2befcb302d63fdbb/t/extended.lisp
lisp
(defpackage :cl-org-mode-extended-tests (:use :cl :alexandria :iterate :cl-org-mode :cl-org-mode-utils :cl-org-mode-extended)) (in-package :cl-org-mode-extended-tests) (defun roundtrip-hash-stability (org) (let* ((initial (read-file-into-string (asdf:system-relative-pathname (asdf...
1957043bae8f9a2a3aee23a0afd59adbe9aa8906fe20519dbf5c356df49a656b
tiensonqin/lymchat
coerce.clj
(ns api.schema.coerce (:require [schema.core :as s] [api.schemas :as as] [clj-time.coerce :as coerce] [hiccup.util :refer [escape-html]] [api.util :refer [->long ->double mobile-display mobile-request?]])) (defonce ^:private request-non-escape-rules {:arts :descripti...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/api/src/api/schema/coerce.clj
clojure
[request x] (let [{:keys [uri body]} request [_ e] (re-find #"/v[\d]+/(\w+)" uri) e (keyword e)] (if-let [k (get request-non-escape-rules e)] (if (and (string? x) (= (get body k) x)) x (escape-html x)) (escape-html x)))) escape html chars (escape-if-match r...
(ns api.schema.coerce (:require [schema.core :as s] [api.schemas :as as] [clj-time.coerce :as coerce] [hiccup.util :refer [escape-html]] [api.util :refer [->long ->double mobile-display mobile-request?]])) (defonce ^:private request-non-escape-rules {:arts :descripti...
c603711d844d4cff7aa09bbb520f76a60aa318df691fc126ce3a61d6ac35d4f5
vaibhavsagar/experiments
MarshalByRefObject.hs
module Dotnet.System.MarshalByRefObject where import Dotnet import qualified Dotnet.System.Object data MarshalByRefObject_ a type MarshalByRefObject a = Dotnet.System.Object.Object (MarshalByRefObject_ a)
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/MarshalByRefObject.hs
haskell
module Dotnet.System.MarshalByRefObject where import Dotnet import qualified Dotnet.System.Object data MarshalByRefObject_ a type MarshalByRefObject a = Dotnet.System.Object.Object (MarshalByRefObject_ a)
a3a1ba4044ffee0f78c6b2536062e68ae318f464096748659577045cf2f32d53
boris-ci/boris
Network.hs
-- | -- Boris HTTP interactions. -- -- Should be used as a qualified import from top-level module: -- > import qualified . Client as -- -- Example: > Boris.runRequest configuration Boris.userinfo -- # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Boris.Client.Network ( runRequest , ...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-client/src/Boris/Client/Network.hs
haskell
| Boris HTTP interactions. Should be used as a qualified import from top-level module: Example: # LANGUAGE OverloadedStrings # | explicitly. | runs the request. Results are embeded in ExceptT for convenience. - oauth2 - }
> import qualified . Client as > Boris.runRequest configuration Boris.userinfo # LANGUAGE NoImplicitPrelude # module Boris.Client.Network ( runRequest , runRequestT ) where import Boris.Prelude import Boris.Client.Config import Boris.Client.Error import Boris.Clien...
214329b50aa6d6c7955a6a5b28f8ba8a7cdfe295bbb13598cda6c352df159811
chrisdone/prana
Internals.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CApiFFI # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # {-# LANGUAGE UnliftedFFITypes #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GHCForeignImportPrim # # LANGUAGE CPP # # LANGUAGE StandaloneDeriving # # LANGUAGE NoImplicitPrelude # #include "MachDeps.h" -- | -- Mod...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-boot/packages/integer-gmp-1.0.2.0/src/GHC/Integer/GMP/Internals.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE UnliftedFFITypes # # LANGUAGE DeriveDataTypeable # | Module : GHC.Integer.GMP.Internals License : BSD3 Stability : provisional exposes some highly optimized GMP-operations. Note that since @integer-gmp@ does not depend on `base`, error reporting via exception...
# LANGUAGE CApiFFI # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE GHCForeignImportPrim # # LANGUAGE CPP # # LANGUAGE StandaloneDeriving # # LANGUAGE NoImplicitPrelude # #include "MachDeps.h" Copyright : ( c ) 2014 Maintainer : Portability : non - portable ( GHC Extensions ) This...
0ff1c4d28c71d5ce242373dd80ae39081d142fe610ab12e5812a5a12bc2d5d05
deadtrickster/rebar3_elvis_plugin
elvis_file.erl
-module(elvis_file). -export([ src/1, path/1, parse_tree/2, load_file_data/2, find_files/2, filter_files/4 ]). -export_type([file/0]). -type file() :: #{path => string(), content => binary(), _ => _}. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
null
https://raw.githubusercontent.com/deadtrickster/rebar3_elvis_plugin/0b7dd1a3808dbe2e2e916ecf3afd1ff24e723021/src/elvis_file.erl
erlang
Public @doc Returns a tuple with the contents of the file and the file itself. @doc Given a file() returns its path. @doc Add the root node of the parse tree to the file data. @doc Loads and adds all related file data. that match the pattern Name. @doc Filter files based on the glob provided. Private
-module(elvis_file). -export([ src/1, path/1, parse_tree/2, load_file_data/2, find_files/2, filter_files/4 ]). -export_type([file/0]). -type file() :: #{path => string(), content => binary(), _ => _}. -spec src(file()) -> {binary(), file()} | {erro...
67b535209b4ea87a42141121b8f1149d06db192c028283c73310c1a264fe4560
camllight/camllight
asynt.ml
#open "langage";; #open "alex";; let rec analyse_programme s = Programme(analyse_prog s) and analyse_prog = function | [< analyse_phrase ph; analyse_prog p >] -> ph :: p | [< 'Symbole `.` >] -> [] and analyse_phrase = function | [< 'Mot "pour"; 'Mot s; paramètres variables; suite_d'ordres ordres >] -> Pou...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/examples/minilogo/asynt.ml
ocaml
#open "langage";; #open "alex";; let rec analyse_programme s = Programme(analyse_prog s) and analyse_prog = function | [< analyse_phrase ph; analyse_prog p >] -> ph :: p | [< 'Symbole `.` >] -> [] and analyse_phrase = function | [< 'Mot "pour"; 'Mot s; paramètres variables; suite_d'ordres ordres >] -> Pou...
7d46cdb489a11817058233525e3c464fbb7c187ba38ce3b4125adef602d33bec
liquidz/merr
bb_test_runner.clj
(ns bb-test-runner (:require [clojure.test :as t] [merr.core-test] [merr.helper-test])) (t/run-tests 'merr.core-test) (t/run-tests 'merr.helper-test)
null
https://raw.githubusercontent.com/liquidz/merr/89e8c2f34e61e6b99e447375255314ade128de09/bb_test_runner.clj
clojure
(ns bb-test-runner (:require [clojure.test :as t] [merr.core-test] [merr.helper-test])) (t/run-tests 'merr.core-test) (t/run-tests 'merr.helper-test)
cb1fd387f8c69f58511748a5cc9a0eab4321354fec7591beaec6e452fbd32cd1
erlyaws/yaws
multipart_bm.erl
-module(multipart_bm). -include("../../include/yaws_api.hrl"). -export([benchmarks/0]). -export([long_msg/1]). benchmarks() -> {100, [long_msg]}. long_msg(Iter) -> Sep = make_rand_bin(32), Body = binary:copy(make_rand_bin(10240), 100), Msg = list_to_binary(["--", Sep, "\r\n", ...
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/contrib/benchmarks/multipart_bm.erl
erlang
io:format("~p~n", [Res]),
-module(multipart_bm). -include("../../include/yaws_api.hrl"). -export([benchmarks/0]). -export([long_msg/1]). benchmarks() -> {100, [long_msg]}. long_msg(Iter) -> Sep = make_rand_bin(32), Body = binary:copy(make_rand_bin(10240), 100), Msg = list_to_binary(["--", Sep, "\r\n", ...
0ccbd09de9d197128b09e2facd83b966517dea2614190ae1a94decf3214e4443
igorhvr/bedlam
srfi-8.scm
srfi-8.scm --- SRFI-8 procedures for Copyright ( C ) 2000 Free Software Foundation , Inc. ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ;;; (at your option) ...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-cvs/src/sisc/modules/srfi/srfi-8.scm
scheme
This program is free software; you can redistribute it and/or either version 2 , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU...
srfi-8.scm --- SRFI-8 procedures for Copyright ( C ) 2000 Free Software Foundation , Inc. modify it under the terms of the GNU General Public License as You should have received a copy of the GNU General Public License the Free Software Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 -...
c9a3125d7433b9b4ab9f69dd1d60e5ea05a6e1eddeb75ac507426394491ba656
fujita-y/ypsilon
dynamic-wind.scm
Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. ;; Reference: ;; R. Kent Dybvig / The Scheme Programming Language, Third Edition Chapter 5 . Control Operations , Section 5.6 . Continuations (define dynamic-wind (lambda (in bo...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/44260d99e24000f9847e79c94826c3d9b76872c2/heap/boot/dynamic-wind.scm
scheme
See LICENSE file for terms and conditions of use. Reference: R. Kent Dybvig / The Scheme Programming Language, Third Edition
Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . Chapter 5 . Control Operations , Section 5.6 . Continuations (define dynamic-wind (lambda (in body out) (in) (current-dynamic-wind-record (cons (cons in out) (current-dynamic-wind-record))) (call-with-values body ...
df1c7a8d393b4e384a26fe54545ef26b29416f017224c752033527e37821341b
Purple-Services/app-service
gas_rec_past_order_tester.clj
;; This is expected to be run in couriers ns (map #(let [[a b] %] [(:id a) (:id b) (get-stations (common.db/conn) (:lat a) (:lng a) (:lat b) (:lng b))]) ...
null
https://raw.githubusercontent.com/Purple-Services/app-service/e0a4f74c621159240cff33ed4225a7303524ebf8/scripts/gas_rec_past_order_tester.clj
clojure
This is expected to be run in couriers ns scratch for testing certain coord pairs
(map #(let [[a b] %] [(:id a) (:id b) (get-stations (common.db/conn) (:lat a) (:lng a) (:lat b) (:lng b))]) (partition 2 1 (!select (common.db/conn) ...
30953ba217bb49735a5a7429055cbb38176df13cd80ff96795c2a12d1cab5aa7
CryptoKami/cryptokami-core
Logic.hs
-- | This module re-exports everything from 'Pos.Block.Logic.*'. # OPTIONS_GHC -F -pgmF autoexporter #
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/block/src/Pos/Block/Logic.hs
haskell
| This module re-exports everything from 'Pos.Block.Logic.*'.
# OPTIONS_GHC -F -pgmF autoexporter #
c076e83d22f15105b9a2333b9f447612dae67fffebe937b135c5462c6c6ad406
latte-central/latte-kernel
presyntax.cljc
(ns latte-kernel.presyntax "The rich syntax of the lambda-calculus implemented by LaTTe." (:require [latte-kernel.defenv :as defenv])) ;;{ ;; # The LaTTe language (rich) syntax ;; The internal language of LaTTe is a very simple ;; lambda-calculus. In this namespace is defined ;; the richer external syntax form...
null
https://raw.githubusercontent.com/latte-central/latte-kernel/48c24d93781d109d31198dbbc9aa5ad774764fa2/src/latte_kernel/presyntax.cljc
clojure
{ # The LaTTe language (rich) syntax The internal language of LaTTe is a very simple lambda-calculus. In this namespace is defined the richer external syntax forming the user inputs. } { ## Reserved symbols There are a few symbols that are reserved and thus not usable as variable names, definitions, etc. } { T...
(ns latte-kernel.presyntax "The rich syntax of the lambda-calculus implemented by LaTTe." (:require [latte-kernel.defenv :as defenv])) (def +reserved-symbols+ '#{□ ✳ λ Π ⟶ ∃ ∀ lambda forall exists}) - □ ( or ` : kind ` ) is a sort , the type of all kinds ( Page 87 ) - ✳ ( or ` : type ` ) is a so...
43e1ffe359a7a1d4cc7214ba1e2dd62d3b592f0bf16a6f045032aed28b498fc2
ocamllabs/ocaml-modular-implicits
end_test.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Crista...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-num/end_test.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Test.end_tests ();;
e3c630388c930e2c85e40b14399e5d4d6e02e57a9a7c1d74cb918e3c24891da6
fractalide/fractalide
name.rkt
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "vp" ${gui.vertical-panel}) (edge-out "vp" "out" "out") (node "name-label" ${gui.message}) (edge "name-label" "out" _ "vp" "place" 20) (mesg "name-label" "in" '(init . ((label . "Name")))) (node "tf" ${gui.text-field}) (ed...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet/wsettings/name.rkt
racket
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "vp" ${gui.vertical-panel}) (edge-out "vp" "out" "out") (node "name-label" ${gui.message}) (edge "name-label" "out" _ "vp" "place" 20) (mesg "name-label" "in" '(init . ((label . "Name")))) (node "tf" ${gui.text-field}) (ed...
74b0347ad104692cdf62ad89cdd82e33086df1538fc8ee8f74fb7294ea56c66d
jeffshrager/biobike
load-seed-genes.lisp
-*- Package : bio ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :bio) ;;; +=========================================================================+ | Copyright ( c ) 2009 JP Massar | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/seedorgs/load-seed-genes.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bio) | Copyright ( c ) 2009 JP Massar | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished ...
834b347d8a228423468ea34dd54674da2f323e983a23f5051edf791058f0e528
GaloisInc/ivory
Type.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # module Ivory.Language.Type where import Ivory.Language.Proxy import qualified Ivory.Language.Syntax as AST -- Ivory Types ----------------------------------------------------------------- | The connection between Haskell and Ivory...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Type.hs
haskell
Ivory Types ----------------------------------------------------------------- | @void@ type | Lifting a variable name. | Unwrapping for Ivory expressions. ----------------------------------------------------------------- XXX do not export XXX do not export XXX do not export XXX do not export Proxy Type -------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # module Ivory.Language.Type where import Ivory.Language.Proxy import qualified Ivory.Language.Syntax as AST | The connection between Haskell and Ivory types . class IvoryType t where ivoryType :: Proxy t -> AST.Type instance Ivo...
343d43871d8c2a799bdbd20989e0acdf11b5bf9ab3d0ec7f7fa6339b6b9f43ba
dardoria/ponon
utils.lisp
;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; utils.lisp --- Ponon utils ;;; Copyright ( c ) 2011 , Boian Tzonev < > ;;; ;;; 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...
null
https://raw.githubusercontent.com/dardoria/ponon/f62d285da2a9a86c9f2dff8578bde61f52b97ab9/utils.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- utils.lisp --- Ponon utils Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to ...
Copyright ( c ) 2011 , Boian Tzonev < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,...
541a7c022ae3989b0bad3734eba6c38034bb9e04273f0b7fb55b109a14636b53
tfausak/hairy
Models.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Hairy.Models where import Data.Text (Text) import Data.Time.Clock (UTCTime) import Database.Persist.TH...
null
https://raw.githubusercontent.com/tfausak/hairy/8032b3b7fd555356dc53754d924a4b34e58e625b/library/Hairy/Models.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Hairy.Models where import Data.Text (Text) import Data.Time.Clock (UTCTime) import Database.Persist.TH (mkMigrate, mkPersist,...
9964c93a7573a963625e35af42f5dcced20677456d6905838b6494dd2b21ef89
cstar/erldis
erldis_shard.erl
%% @doc This module is used to access a sharded Redis cluster. %% %% An important thing to note about sharding is that if you change the ring, %% keys will be hashed on different shards. This requires a data migration. Right now %% it is recommend to do pre-sharding, which means, create a large number of shards up fro...
null
https://raw.githubusercontent.com/cstar/erldis/375260795e6a3de2600e297658f364deedbe6f1b/src/erldis_shard.erl
erlang
@doc This module is used to access a sharded Redis cluster. An important thing to note about sharding is that if you change the ring, keys will be hashed on different shards. This requires a data migration. Right now it is recommend to do pre-sharding, which means, create a large number of shards up front, and a...
` erldis_shard : start_link([{"redis01 " , [ { { { " 127.0.0.1 " , 6379 } , 5 } , master } , { { { " 127.0.0.1 " , 6379 } , 5 } , slave } , { { { " 127.0.0.1 " , 6380 } , 5 } , slave } ] } , { " redis02 " , [ { { { " 127.0.0.1 " , 6379 } , 5 } , master } ] } ] ) , ' -module(erldis_shard). -export([ start_link/1,...
87c0d0843b0c87d0a7b585f0a4d9162296d0c546b7466409790941a7d6109021
konn/smooth
higher-diff-heap.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperato...
null
https://raw.githubusercontent.com/konn/smooth/cf3b030170e86df5bf32c252c21636ec8f3955b5/bench/higher-diff-heap.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno - type - defaults # # OPTIO...
8794bb3434207a07bf3250b43e2c5aba8d39bddd14132c92a9d1f63c47862121
privet-kitty/cl-competitive
quicksort.lisp
(defpackage :cp/quicksort (:use :cl) (:export #:quicksort! #:quicksort-by2!) (:documentation "Provides quicksort (deterministic median-of-three partitioning)")) (in-package :cp/quicksort) (declaim (inline %median3)) (defun %median3 (x y z order) (if (funcall order x y) (if (funcall order y z) y...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/2c4d4e82af2a1672eef334a0a229c67d4fb37188/module/quicksort.lisp
lisp
TODO: move to another module
(defpackage :cp/quicksort (:use :cl) (:export #:quicksort! #:quicksort-by2!) (:documentation "Provides quicksort (deterministic median-of-three partitioning)")) (in-package :cp/quicksort) (declaim (inline %median3)) (defun %median3 (x y z order) (if (funcall order x y) (if (funcall order y z) y...
2f6ee985765e3b0c3e5f8bb62d7c35f86ddae3f992ffcd97025f38fc7dcbc340
sgignoux/sicp-solutions.net
ch3support.scm
CODE TO SUPPORT CHAPTER 3 OF STRUCTURE AND INTERPRETATION OF ;;; COMPUTER PROGRAMS NB . This code is * not * from the book ;;; In addition to code supplied here * * For 3.4 , might want parallel - execute as implemented for MIT Scheme * * For 3.5 , need stream special forms , which are not in Standard Scheme Fo...
null
https://raw.githubusercontent.com/sgignoux/sicp-solutions.net/688edba8e1060e48283c76c7d2d398d83163101c/solutions/code%20from%20sicp%20second%20edition/ch3support.scm
scheme
COMPUTER PROGRAMS In addition to code supplied here though the values of a, b, m may not be very "appropriately chosen" Note: logical-and should test for valid signals, as logical-not does Evaluate and accumulate n terms of the series s at the given x
CODE TO SUPPORT CHAPTER 3 OF STRUCTURE AND INTERPRETATION OF NB . This code is * not * from the book * * For 3.4 , might want parallel - execute as implemented for MIT Scheme * * For 3.5 , need stream special forms , which are not in Standard Scheme For Section 3.1.2 -- written as suggested in footnote , (define...
30430235427330abce935f5b48dbbf113b1f35182c587e7f44f7bd9d7064e6c1
fogus/bacwn
test_database.cljs
Copyright ( c ) . All rights reserved . The use and ;; distribution terms for this software are covered by the Eclipse Public ;; License 1.0 (-1.0.php) which can ;; be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by t...
null
https://raw.githubusercontent.com/fogus/bacwn/8aa39b6683db1772aedb7a0ecd7aa6372b72b231/test-cljs/bacwm/test/impl/test_database.cljs
clojure
distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or an...
Copyright ( c ) . All rights reserved . The use and A Clojure implementation of Datalog -- Database straszheimjeffrey ( gmail ) Created 12 Feburary 2009 (ns bacwn.test.impl.test_database (:use-macros [cemerick.cljs.test :only (is deftest with-test run-tests testing)] [fogus.datalog.ba...
42b17029f689b5c45a1b1c2b82d59a54e52f16dcf5e2c7ee9408f7600d99df07
databrary/databrary
Time.hs
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Model.Time ( Date , Timestamp , dateYear , MaskedDate , maskDateIf , maskedYear ) where import qualified Data.Aeson as JSON import Data.Fixed (Fixed(..)) import Data.Time (Day(..), UTCTime(..), DiffTime, toGregorian, fromGregorian)...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Time.hs
haskell
| Synonym for a UTCTime | Extract year part of a date value | Mask a date value by only keeping the year portion | Extract year from a potentially masked date value | Provide behavior to hook into general date formatting utilities
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Model.Time ( Date , Timestamp , dateYear , MaskedDate , maskDateIf , maskedYear ) where import qualified Data.Aeson as JSON import Data.Fixed (Fixed(..)) import Data.Time (Day(..), UTCTime(..), DiffTime, toGregorian, fromGregorian)...
38a72eb040e49239575ad4c332e2fbe7b5374415a3466c8c355e722f4ff0069c
mfoemmel/erlang-otp
test_server_sup.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/test_server/src/test_server_sup.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1998 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(test_server_sup). -export([timetra...
2d7a22e5b61235a8e90e81678c33574dab36e927cf283cd338615b57a080ab64
zack-bitcoin/verkle
benchmark.erl
-module(benchmark). -export([doit/1, now/0]). -define(ID, trie01). -include("constants.hrl"). range(A, B) when (A < B) -> [A|range(A+1, B)]; range(A, A) -> []. now() -> {_, B, C} = erlang:timestamp(), T = (1000*(B rem 1000)) + (C div 1000), io:fwrite(integer_to_list(T)), io:fwrite("\n"). do...
null
https://raw.githubusercontent.com/zack-bitcoin/verkle/46bf69f17170a71829f9243faea06ee42f224687/src/benchmark.erl
erlang
{{load_tree,23 866 703}, Many = range(1, Times - 2), Many = [1,2], Key0 = Times + 1 - N, <<Key:256>> = <<(-Key0):256>>, #leaf{key = Key0, value = <<N:16>>}%random version sequential version end, Many), many, go, erl, erl ordered Many = [1,2], Key0 = Times + 1 - N, <<Key:256>> = <<(-Key0):256>>, #leaf{key = Key0, v...
-module(benchmark). -export([doit/1, now/0]). -define(ID, trie01). -include("constants.hrl"). range(A, B) when (A < B) -> [A|range(A+1, B)]; range(A, A) -> []. now() -> {_, B, C} = erlang:timestamp(), T = (1000*(B rem 1000)) + (C div 1000), io:fwrite(integer_to_list(T)), io:fwrite("\n"). do...
cee749841a976266ee0c6febd6db57f2c09bf7e7a526c90b3079cfad99098e80
RefactoringTools/HaRe
ReAssocBaseStruct.hs
module ReAssocBaseStruct where import BaseSyntax import ReAssoc import HsAssoc import TypedIds import DefinedNames --import DefinedNamesBaseStruct instance HasInfixApp i (EI i e p ds t c) e where infixApp = HsInfixApp isInfixApp e = case e of HsInfixApp e1 op e2 -> Just (e1,op,e2) _ -> Nothing in...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/defs/ReAssocBaseStruct.hs
haskell
import DefinedNamesBaseStruct
module ReAssocBaseStruct where import BaseSyntax import ReAssoc import HsAssoc import TypedIds import DefinedNames instance HasInfixApp i (EI i e p ds t c) e where infixApp = HsInfixApp isInfixApp e = case e of HsInfixApp e1 op e2 -> Just (e1,op,e2) _ -> Nothing instance HasInfixApp i (PI i p) p ...
d5d40d2a595c7127e0ab5226551dabb2519c9e9508a7b39d39860c904c482e9d
futurice/haskell-mega-repo
Auth.hs
-- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > module PlanMill.Types.Auth ( Nonce(..), ApiKey(..), ) where import Prelude () import PlanMill.Internal.Prelude import Futurice.EnvConfig (FromEnvVar (..)) import qualified Data.ByteString as BS -- | Unique 4-8 ...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/planmill-client/src/PlanMill/Types/Auth.hs
haskell
| License : BSD3 | Unique 4-8 characters long string composed of upper and lower case letters and numbers. Each nonce can only be used once so it must be regenerated for each request | Also known as signature.
Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill.Types.Auth ( Nonce(..), ApiKey(..), ) where import Prelude () import PlanMill.Internal.Prelude import Futurice.EnvConfig (FromEnvVar (..)) import qualified Data.ByteString as BS newtype Nonce = Nonce BS.ByteString d...
52bc794dcde2be48bb96a58eaaec5e94480f62ca482c124ca7762303521659ca
avsm/eeww
time.ml
type t * Abstract type for GCD 's notion of time external dispatch_now : unit -> t = "ocaml_dispatch_now" external dispatch_forever : unit -> t = "ocaml_dispatch_forever" let now = dispatch_now let forever = dispatch_forever
null
https://raw.githubusercontent.com/avsm/eeww/17c68b93536cd382b901ba675411c2f69831fdac/lib/dispatch/lib/time.ml
ocaml
type t * Abstract type for GCD 's notion of time external dispatch_now : unit -> t = "ocaml_dispatch_now" external dispatch_forever : unit -> t = "ocaml_dispatch_forever" let now = dispatch_now let forever = dispatch_forever
88ba84a8f0de06f2ecbb0269ecef75ecc5b65f0851b6f4ca8dd3dffc0a59fc65
rmloveland/scheme48-0.53
array.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . copyright ( c ) 1993 , 1994 and . See file COPYING . ; (make-array <initial-value> <bound1> ...) ; (array-shape <array>) ; (array-ref <array> <index1> ...) ; (array-set! <array> <value> <index1> ...) ; (make-shared-array <array> <linear-map> <bound...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/big/array.scm
scheme
(make-array <initial-value> <bound1> ...) (array-shape <array>) (array-ref <array> <index1> ...) (array-set! <array> <value> <index1> ...) (make-shared-array <array> <linear-map> <bound1> ...) (copy-array <array>) (array->vector <array>) (array <bounds> . <elements>) The <linear-map> argument to MAKE-SHARED-...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . copyright ( c ) 1993 , 1994 and . See file COPYING . All arrays are zero based . ARRAY->VECTOR returns a vector containing the elements of an array expressed as a vector of coefficients and one constant . Interface due to ( except for r...
3dc9d72a3c9e28c6977802b83826b981aabddf65802db5e8ce3919878d3da541
philnguyen/soft-contract
utils.rkt
#lang racket/base (provide with-syntax-source) (require racket/contract) (define/contract (with-syntax-source src stx) (syntax? any/c . -> . syntax?) (datum->syntax src (if (syntax? stx) (syntax-e stx) stx) (list (syntax-source src) (syntax-line src) ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/parse/utils.rkt
racket
#lang racket/base (provide with-syntax-source) (require racket/contract) (define/contract (with-syntax-source src stx) (syntax? any/c . -> . syntax?) (datum->syntax src (if (syntax? stx) (syntax-e stx) stx) (list (syntax-source src) (syntax-line src) ...
57247e7d7b15273c3592f0799e2ee3f89484091f30bc7507bfc49d3f0b73e5f7
223kazuki/clj-graphql-server
visualizer.cljs
(ns graphql-server.visualizer (:require [hodur-engine.core :as engine] [hodur-visualizer-schema.core :as visualizer]) (:require-macros [graphql-server.macro :refer [read-schema]])) (-> (read-schema "graphql_server/schema.edn") engine/init-schema visualizer/schema visualizer/apply-diagram!)
null
https://raw.githubusercontent.com/223kazuki/clj-graphql-server/0994d2bb98cd483dcb1c02a8175766e4fd35c861/dev/src/graphql_server/visualizer.cljs
clojure
(ns graphql-server.visualizer (:require [hodur-engine.core :as engine] [hodur-visualizer-schema.core :as visualizer]) (:require-macros [graphql-server.macro :refer [read-schema]])) (-> (read-schema "graphql_server/schema.edn") engine/init-schema visualizer/schema visualizer/apply-diagram!)
67b87808d184883ffee6d82bed3c67ac6aa21da78a2aef9b41b04ef7e80e13c3
xh4/web-toolkit
random.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :it.bese.fiveam) ;;;; ** Random (QuickCheck-ish) testing ;;;; FiveAM provides the ability to automatically generate a ;;;; collection of random input data for a specific test and run a ;;;; test multiple times. ;;;; Specification testing is done through the...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/fiveam-v1.4.1/src/random.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- ** Random (QuickCheck-ish) testing FiveAM provides the ability to automatically generate a collection of random input data for a specific test and run a test multiple times. Specification testing is done through the FOR-ALL macro. This macro will bind variables to random...
(in-package :it.bese.fiveam) conditions and creating one random input based on the values of (defparameter *num-trials* 100 "Number of times we attempt to run the body of the FOR-ALL test.") (defparameter *max-trials* 10000 "Number of total times we attempt to run the body of the FOR-ALL test including ...
c3544ab7b714a7d36e3c8eda24952d3d25f8f1c179113469c8d0ea831391a619
qkrgud55/ocamlmulti
cmt2annot.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/tools/cmt2annot.ml
ocaml
********************************************************************* Objective Caml ...
, INRIA Saclay Copyright 2012 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Generate .annot file from a .types files . ...
49e592c9d2ffbbbde87690d0b19c593d0f0ad2b60bf19ca7235fbcfe555e2982
borgeby/jarl
http_test.cljc
(ns jarl.builtins.http-test (:require [jarl.builtins.http :refer [builtin-http-send content-type create-request parse-timeout]] [jarl.exceptions :as errors] [jarl.types :refer [rego-equal?]] [jarl.http-client :as http-client] [jarl.time :as time] #?(:clj [c...
null
https://raw.githubusercontent.com/borgeby/jarl/f7f69ce69b250856fd4b33ef764d0a3c22808113/core/src/test/cljc/jarl/builtins/http_test.cljc
clojure
note upper-case keys
(ns jarl.builtins.http-test (:require [jarl.builtins.http :refer [builtin-http-send content-type create-request parse-timeout]] [jarl.exceptions :as errors] [jarl.types :refer [rego-equal?]] [jarl.http-client :as http-client] [jarl.time :as time] #?(:clj [c...
b382f1991c60be190f72495f215d6483a2bb2b65aa2bdd79580e9ea136f052bf
sunshineclt/Racket-Helper
05.rkt
#lang racket (define (car num) (define (car-iter num ret) (if (= (remainder num 2) 0) (car-iter (/ num 2) (+ 1 ret)) ret)) (car-iter num 0)) (define (cdr num) (define (cdr-iter num ret) (if (= (remainder num 3) 0) (cdr-iter (/ num 3) (+ 1 ret)) ret)) (cdr-iter num 0)) ...
null
https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E9%AA%86%E6%A2%81%E5%AE%B8/Assignment/2/05.rkt
racket
#lang racket (define (car num) (define (car-iter num ret) (if (= (remainder num 2) 0) (car-iter (/ num 2) (+ 1 ret)) ret)) (car-iter num 0)) (define (cdr num) (define (cdr-iter num ret) (if (= (remainder num 3) 0) (cdr-iter (/ num 3) (+ 1 ret)) ret)) (cdr-iter num 0)) ...
e67d8127a9166b395a5293fcde09259ffd24e509e4193e07baa4fc65c68d0001
benbrittain/webRTC.io-erlang
webRTCio_handler.erl
-module(webRTCio_handler). -behaviour(cowboy_http_handler). -behaviour(cowboy_http_websocket_handler). -export([init/3, handle/2, terminate/2]). -export([ websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3 ]). init({tcp, http}, Req, _Opts) -> lager:debug("Request: ~p...
null
https://raw.githubusercontent.com/benbrittain/webRTC.io-erlang/e0746136b2df99862cd5064f29fde8699cb444c7/src/webRTCio_handler.erl
erlang
Handle messoges being sent to the process send messages back to the client remove from rooms
-module(webRTCio_handler). -behaviour(cowboy_http_handler). -behaviour(cowboy_http_websocket_handler). -export([init/3, handle/2, terminate/2]). -export([ websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3 ]). init({tcp, http}, Req, _Opts) -> lager:debug("Request: ~p...
d2adc1233e9844059c7c0b1c0125a0e66027257bf40b9f9a12243e99cb53777a
haskell-tools/haskell-tools
ImportRecordSel_res.hs
module Refactor.OrganizeImports.MakeExplicit.ImportRecordSel where import Refactor.OrganizeImports.MakeExplicit.Source (A(..)) x = b
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/OrganizeImports/MakeExplicit/ImportRecordSel_res.hs
haskell
module Refactor.OrganizeImports.MakeExplicit.ImportRecordSel where import Refactor.OrganizeImports.MakeExplicit.Source (A(..)) x = b
6ec4fe3164f9ee3a92846177b8fc060080779c4135bbb34d321299f5b61af32c
sbcl/sbcl
class-init.lisp
;;;; This file was split out from braid.lisp so that we could do some ;;;; of the work of building the meta-braid at cold initialization ;;;; time. This software is part of the SBCL system . See the README file for ;;;; more information. This software is derived from software originally released by Xerox ;;;; Cor...
null
https://raw.githubusercontent.com/sbcl/sbcl/5cc215c19b9728e8e60066fbd2b97cd7aef4eb6b/src/pcl/class-init.lisp
lisp
This file was split out from braid.lisp so that we could do some of the work of building the meta-braid at cold initialization time. more information. Corporation. Copyright and release statements follow. Later modifications to the software are in the public domain and are provided with absolutely no warranty. S...
This software is part of the SBCL system . See the README file for This software is derived from software originally released by Xerox copyright information from original PCL sources : Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation . derivative works must comply with all applicab...
4e89ca5e22e216ac54f4969141fe534db517f5360f79a859a24404c8499b5197
binaryage/chromex
webrtc_audio_private.cljs
(ns chromex.ext.webrtc-audio-private (:require-macros [chromex.ext.webrtc-audio-private :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-sinks* [config] (gen-wrap :function ::get...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/webrtc_audio_private.cljs
clojure
-- events -----------------------------------------------------------------------------------------------------------------
(ns chromex.ext.webrtc-audio-private (:require-macros [chromex.ext.webrtc-audio-private :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-sinks* [config] (gen-wrap :function ::get...
989c47a6395b3d5b5e4db5a39f66775e47ed847b36d8cfdf11ca7fac439dafa5
gafiatulin/codewars
PigLatin.hs
Igpay Atinlay -- module Kata(pigLatin) where pigLatin :: String -> String pigLatin [] = [] pigLatin (x:xs) | (>3) . succ . length $ xs = xs ++ [x] ++ "ay" | otherwise = x:xs
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/Beta/PigLatin.hs
haskell
Igpay Atinlay module Kata(pigLatin) where pigLatin :: String -> String pigLatin [] = [] pigLatin (x:xs) | (>3) . succ . length $ xs = xs ++ [x] ++ "ay" | otherwise = x:xs
c4a3082b9335458c4f91fe378e21a4e2e107dcdb7cda58e1635ff2593fc43a56
falsetru/htdp
20.2.2.scm
1 . sort : ( listof number ) ( number ) - > ( listof number ) 2 . map : ( number->number ) ( listof number ) - > ( listof number ) 3 . project : ( listof symbol ) ( ( listof symbol)->symbol ) - > ( listof symbol )
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/20/20.2.2.scm
scheme
1 . sort : ( listof number ) ( number ) - > ( listof number ) 2 . map : ( number->number ) ( listof number ) - > ( listof number ) 3 . project : ( listof symbol ) ( ( listof symbol)->symbol ) - > ( listof symbol )
b8076f9c43c52db11ca4e00b4f9f991655affab2d52062d0fed1bbbc395e72ba
exoscale/clojure-kubernetes-client
v1_empty_dir_volume_source.clj
(ns clojure-kubernetes-client.specs.v1-empty-dir-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-empty-dir-volume-source-data v1-empty-dir-volume-source) (def v1-empty-dir-volume-source-data { (ds/opt :medium) st...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_empty_dir_volume_source.clj
clojure
(ns clojure-kubernetes-client.specs.v1-empty-dir-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-empty-dir-volume-source-data v1-empty-dir-volume-source) (def v1-empty-dir-volume-source-data { (ds/opt :medium) st...
5dc9592586aebf963bd8fa63fa287051ec648873a3e7e8c53ebfaaad64ae1425
racket/gui
handler-test.rkt
(module handler-test mzscheme (require "test-suite-utils.rkt") (module test racket/base) (let* ([filename "framework-group-test.rkt"] [tmp-filename (build-path (find-system-path 'temp-dir) filename)]) (test 'file-opened (lambda (x) (equal? (list filename "GRacket REPL") x)) (lambda () (send-...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-test/framework/tests/handler-test.rkt
racket
(module handler-test mzscheme (require "test-suite-utils.rkt") (module test racket/base) (let* ([filename "framework-group-test.rkt"] [tmp-filename (build-path (find-system-path 'temp-dir) filename)]) (test 'file-opened (lambda (x) (equal? (list filename "GRacket REPL") x)) (lambda () (send-...
16a4d8af9941f2248ed0a08a058a7289963ba158be4a87ffc6766c3882968254
yoriyuki/Camomile
configure.ml
#!/usr/bin/env ocaml let () = let share = ref "/usr/share/camomile" in let args = [ "--share", Arg.Set_string share, "DIR directory where to put data files" ] in Arg.parse args ignore "Configura camomile\noptions are:"; let oc = open_out "Camomile/installConfig.ml" in Printf.fprintf oc "let share_dir =...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/configure.ml
ocaml
#!/usr/bin/env ocaml let () = let share = ref "/usr/share/camomile" in let args = [ "--share", Arg.Set_string share, "DIR directory where to put data files" ] in Arg.parse args ignore "Configura camomile\noptions are:"; let oc = open_out "Camomile/installConfig.ml" in Printf.fprintf oc "let share_dir =...
2d892aa34e86cf0fed84d1f6a8e82c4681b79ded9d1ceb5fb5c8da2c6324841e
turnbullpress/aom-code
email.clj
(ns examplecom.etc.email (:require [riemann.email :refer :all])) (def email (mailer {:from ""}))
null
https://raw.githubusercontent.com/turnbullpress/aom-code/2c016cab87d81bcd1f04ab41b6824798eb09e780/5-6/riemann/examplecom/etc/email.clj
clojure
(ns examplecom.etc.email (:require [riemann.email :refer :all])) (def email (mailer {:from ""}))
5580f603d7ec46cd52045a1223d6cb90c3297effe9f5f5ff9b643d393c87707c
basho/riak_ensemble
riak_ensemble_root.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/riak_ensemble/f279810f3b9b3a1b4bc82dda738364242896ff32/src/riak_ensemble_root.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module...
e0709e1a7d9b2b7e9a7f8cd7fe6fd1de15b8292bb369509093f4aaa9ca2b42cf
c-cube/qcheck
test_primitives.ml
open QCheck open Helpers * { 1 . Test primitives derivation } * { 2 . Tests } type int' = int [@@deriving qcheck] let test_int () = test_compare ~msg:"int <=> deriving int" ~eq:Alcotest.int int arb_int' type unit' = unit [@@deriving qcheck] (* Pretty useless though, but, meh *) let test_unit () = test_compare...
null
https://raw.githubusercontent.com/c-cube/qcheck/063c1d74795a24eb77fa661d218c4715382df566/test/ppx_deriving_qcheck/deriver/qcheck/test_primitives.ml
ocaml
Pretty useless though, but, meh
open QCheck open Helpers * { 1 . Test primitives derivation } * { 2 . Tests } type int' = int [@@deriving qcheck] let test_int () = test_compare ~msg:"int <=> deriving int" ~eq:Alcotest.int int arb_int' type unit' = unit [@@deriving qcheck] let test_unit () = test_compare ~msg:"unit <=> deriving unit" ~eq:Alc...
9af1f6a1ddb57edf39548d33171c7c1d101f7b41131b964771292dac9696721d
aantron/dream
long_polling.eml.ml
let home = <html> <body> <pre id="output"></pre> <script> var output = document.querySelector("#output"); function getMessages() { var request = new XMLHttpRequest(); request.open("GET", "/poll", true); request.onload = function () { output.appendChild( document.createTextNode(r...
null
https://raw.githubusercontent.com/aantron/dream/9bec26f837febae64e37a5eb39f7ef66914db4b1/example/w-long-polling/long_polling.eml.ml
ocaml
let home = <html> <body> <pre id="output"></pre> <script> var output = document.querySelector("#output"); function getMessages() { var request = new XMLHttpRequest(); request.open("GET", "/poll", true); request.onload = function () { output.appendChild( document.createTextNode(r...
a6769eb97169d9abccf3d49934429670997194652ac965ccd340d91975ed183b
panglesd/hockmd
utils.ml
module Result_syntax = struct let ( let* ) = Result.bind let ( let+ ) a b = Result.map b a end module Combined_syntax = struct let ( let++ ) a b = let open Lwt.Syntax in let+ x = a in let open Result_syntax in let+ x = x in b x let ( let** ) a b = let open Lwt.Syntax in let* x = a ...
null
https://raw.githubusercontent.com/panglesd/hockmd/b72338deea94b6f623e172063180029c162a0a30/src/utils.ml
ocaml
module Result_syntax = struct let ( let* ) = Result.bind let ( let+ ) a b = Result.map b a end module Combined_syntax = struct let ( let++ ) a b = let open Lwt.Syntax in let+ x = a in let open Result_syntax in let+ x = x in b x let ( let** ) a b = let open Lwt.Syntax in let* x = a ...
4a85cecff0102b7923ec28b7e6f6481138b425a107af0b2634ec858837350bb8
sheaf/ghc-tcplugin-api
RewriterPlugin.hs
# # {-# LANGUAGE DataKinds #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE MultiWayIf #-} # LANGUAGE RecordWildCards # module RewriterPlugin ( plugin ) where ghc import qualified GHC.Plugins as GHC ( Plugin(..), defaultPlugin, purePlugin ) ghc - tcplugin - api import qualified GHC.TcPlugin.API...
null
https://raw.githubusercontent.com/sheaf/ghc-tcplugin-api/93a28bbe22bd408bc7a2b56a9f17393977989b77/examples/RewriterPlugin/plugin/RewriterPlugin.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE MultiWayIf # ------------------------------------------------------------------------------ Plugin definition and setup/finalisation. N.B. The qualified imports here are for clarity of exposition only. In practice, I would recommend importing ...
# # # LANGUAGE RecordWildCards # module RewriterPlugin ( plugin ) where ghc import qualified GHC.Plugins as GHC ( Plugin(..), defaultPlugin, purePlugin ) ghc - tcplugin - api import qualified GHC.TcPlugin.API as API import GHC.TcPlugin.API ( TcPluginErrorMessage(..) ) plugin :: GHC.Plugin plugin = G...
12fa3fe2c00ce0171176a3404e8ce89ca4c25b86eecb620cefbe476ed2aee276
isovector/dynahaskell
FileProvider.hs
# LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Sem.FileProvider where import DynFlags import GHC (SrcSpan, tm_typechecked_source) import Language.Haskell.GHC.ExactPrint.Parsers hiding (parseModuleFromString) import Polysemy import Polysemy.State import Polysemy.Input import Types import Zipper impo...
null
https://raw.githubusercontent.com/isovector/dynahaskell/50819888fa118e123f45d98d3d135e611f4b0c35/src/Sem/FileProvider.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Sem.FileProvider where import DynFlags import GHC (SrcSpan, tm_typechecked_source) import Language.Haskell.GHC.ExactPrint.Parsers hiding (parseModuleFromString) import Polysemy import Polysemy.State import Polysemy.Input import Types import Zipper impo...
eb3702f441d50d381863e9d6627e8b8519470becc93777a581ecb7935fbe5019
ekmett/category-extras
Combinators.hs
# OPTIONS_GHC -cpp ------------------------------------------------------------------------------------------- -- | -- Module : Control.Functor.Combinators Copyright : 2008 -- License : BSD -- Maintainer : < > -- Stability : experimental -- Portability : portable -- -- Generalized functor combinators. ...
null
https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Functor/Combinators.hs
haskell
----------------------------------------------------------------------------------------- | Module : Control.Functor.Combinators License : BSD Stability : experimental Portability : portable Generalized functor combinators. The names are indicative of term-level combinators where possible to aid intuition ----...
# OPTIONS_GHC -cpp Copyright : 2008 Maintainer : < > module Control.Functor.Combinators ( module Control.Functor.Combinators.Biff , module Control.Functor.Combinators.Const , module Control.Functor.Combinators.Join , module Control.Functor.Combinators.Lift , module Control.Functor.Combinators.Of ...
67ee37530e5e59473d0cd181f2d50085070661bbb7047643e4a7e0977298d684
startalkIM/ejabberd
fast_yaml_app.erl
%%%---------------------------------------------------------------------- %%% File : fast_yaml_app.erl Author : < > %%% Purpose : YAML parser application Created : 7 Aug 2013 by < > %%% %%% Copyright ( C ) 2002 - 2016 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apache License , V...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/fast_yaml/src/fast_yaml_app.erl
erlang
---------------------------------------------------------------------- File : fast_yaml_app.erl Purpose : YAML parser application 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, sof...
Author : < > Created : 7 Aug 2013 by < > Copyright ( C ) 2002 - 2016 ProcessOne , SARL . 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(fast_yaml_app). -behaviour(application). ...
177e19b1ea58544658e08e421eae2ef3c9340c630c2ad9e62c02ecf45ab9dda3
fetburner/Coq2SML
subtac_utils.mli
open Term open Libnames open Coqlib open Environ open Pp open Evd open Decl_kinds open Topconstr open Glob_term open Util open Evarutil open Names open Sign val ($) : ('a -> 'b) -> 'a -> 'b val contrib_name : string val subtac_dir : string list val fixsub_module : string list val init_constant : string list -> string ...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/subtac/subtac_utils.mli
ocaml
open Term open Libnames open Coqlib open Environ open Pp open Evd open Decl_kinds open Topconstr open Glob_term open Util open Evarutil open Names open Sign val ($) : ('a -> 'b) -> 'a -> 'b val contrib_name : string val subtac_dir : string list val fixsub_module : string list val init_constant : string list -> string ...
f434dbdcfe3dcff451d7a82f13064243c500be883762661ccde4c34e8c1451dc
Cipherwraith/alacrity
PageManager.hs
module PageManager where import Types import Config import Helpers import Data.List import Control.Lens import Control.Monad.IO.Class (liftIO) import qualified Data.HashMap.Strict as HM import Control.Concurrent (threadDelay) import Control.Concurrent.STM import Data.Monoid import Data.Maybe import System.FileLock --...
null
https://raw.githubusercontent.com/Cipherwraith/alacrity/37aebe475617949ce1d5f784ba38d90f84fda20d/src/PageManager.hs
haskell
This will oversee the pages stored in memory Note: Depending on how many pages are in the state there is no guarantee that the manager will run promptly every interval, but it will never be faster than said interval. This is a `lossy` command because it has a chance to miss some files. This shouldnt...
module PageManager where import Types import Config import Helpers import Data.List import Control.Lens import Control.Monad.IO.Class (liftIO) import qualified Data.HashMap.Strict as HM import Control.Concurrent (threadDelay) import Control.Concurrent.STM import Data.Monoid import Data.Maybe import System.FileLock ...
2adc58ce7ec565e8d4fc9f752519013628a4ee542b454c815e76753d467c9a12
mikelevins/categories
types.scm
;;;; *********************************************************************** ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: types.scm ;;;; Project: Categories ;;;; Purpose: representation of types ;;;; Author: mikel evins Copyright : Copyright 2009 by mikel evins , all rights reserved Lic...
null
https://raw.githubusercontent.com/mikelevins/categories/66e3861071e4d88b7b27421a78ab497e1fb5fa0c/0.2.1/scm/r5rs/types.scm
scheme
*********************************************************************** FILE IDENTIFICATION Name: types.scm Project: Categories Purpose: representation of types Author: mikel evins See the accompanying file "License" for more information *****************************...
Copyright : Copyright 2009 by mikel evins , all rights reserved License : Licensed under the Apache License , version 2.0 (define types:$primitive-type-tag '<primitive-type>) (define types:$synonym-type-tag '<synonym-type>) (define types:$category-type-tag '<category-type>) (define (types:make-primi...
da3663b1bb70a2e34edeb8f253c0be4e1a66c63b54d936f3825c9143a4c6fe07
WorksHub/client
subs.cljs
(ns wh.components.cards.subs (:require [re-frame.core :refer [reg-sub]] [wh.common.blog :as common-blog] [wh.common.user :as user-common] [wh.user.db :as user-db])) (reg-sub :job-card/show-closed? :<- [:user/admin?] (fn [admin? [_ published?]] (and (false? published?) (n...
null
https://raw.githubusercontent.com/WorksHub/client/428afde8ac6dc20ae00972d5fc79880a8c4a92e1/client/src/wh/components/cards/subs.cljs
clojure
we can't use wh.job.db/show-unpublished? since it may not be loaded
(ns wh.components.cards.subs (:require [re-frame.core :refer [reg-sub]] [wh.common.blog :as common-blog] [wh.common.user :as user-common] [wh.user.db :as user-db])) (reg-sub :job-card/show-closed? :<- [:user/admin?] (fn [admin? [_ published?]] (and (false? published?) (n...
cf8a316dcfcf59411431bf7697332dffce9b68050fe9710b22c5852db506faf9
savonet/ocaml-mm
display.ml
open Mm_image module Img = Image.RGBA32 let read_PPM ?alpha fname = let ic = open_in_bin fname in let len = in_channel_length ic in let data = Bytes.create len in really_input ic data 0 len; close_in ic; Img.of_PPM ?alpha (Bytes.unsafe_to_string data) let () = let fname = Sys.argv.(1) in let img = rea...
null
https://raw.githubusercontent.com/savonet/ocaml-mm/916b007cc7cc4bf250e6f71203bb36afb4ed8634/examples/display.ml
ocaml
open Mm_image module Img = Image.RGBA32 let read_PPM ?alpha fname = let ic = open_in_bin fname in let len = in_channel_length ic in let data = Bytes.create len in really_input ic data 0 len; close_in ic; Img.of_PPM ?alpha (Bytes.unsafe_to_string data) let () = let fname = Sys.argv.(1) in let img = rea...
d13c11adce830a883001436fede5879f6adf5968fcb3854998a0b6976bb8c129
oakes/Nightweb
dialogs.clj
(ns net.nightweb.dialogs (:require [neko.resource :as r] [neko.threading :as thread] [neko.ui :as ui] [net.nightweb.actions :as actions] [net.nightweb.views-dialog :as views-dialog] [net.nightweb.utils :as utils] [nightweb.actions :as a] ...
null
https://raw.githubusercontent.com/oakes/Nightweb/089c7a99a9a875fde33cc29d56e1faf54dc9de84/android/src/clojure/net/nightweb/dialogs.clj
clojure
add each user to the list display a dialog with the list
(ns net.nightweb.dialogs (:require [neko.resource :as r] [neko.threading :as thread] [neko.ui :as ui] [net.nightweb.actions :as actions] [net.nightweb.views-dialog :as views-dialog] [net.nightweb.utils :as utils] [nightweb.actions :as a] ...
bba8be6c25118958770c2a5efc6dce1d69f802b782ab15d48ae35988d59cdf86
Chris00/ocaml-mindstorm
ev3_connect.mli
* Module to handle the Bluetooth and USB program arguments to establish a bluetooth or a USB connection with the EV3 LEGO ® brick . establish a bluetooth or a USB connection with the EV3 LEGO® brick. *) type t = { args : (Arg.key * Arg.spec * Arg.doc) list; (** Possible additional program arguments. *) ...
null
https://raw.githubusercontent.com/Chris00/ocaml-mindstorm/a96ea45059cafd136c98190674b6214f03357cf8/tests/ev3_connect.mli
ocaml
* Possible additional program arguments. * The function to execute once connected. * [and_do d] establishes the connection, execute [d.f] and close the connection.
* Module to handle the Bluetooth and USB program arguments to establish a bluetooth or a USB connection with the EV3 LEGO ® brick . establish a bluetooth or a USB connection with the EV3 LEGO® brick. *) type t = { args : (Arg.key * Arg.spec * Arg.doc) list; f : 'a. 'a Mindstorm.EV3.conn -> unit; } val ...
49826d4b5f57fa9ef74a60cf62661005319ef27a072e8e862ce333d9fa65c159
Elzair/nazghul
voidgap-mech.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Deeps random map probability for edge terrains ... out of 83 (define voidgap-terrain-edges (list (list 20 'm_deeptempl_wall #f) (list 25 'm_deeptempl_water #f) (list 30 'm_deeptempl_hole #f) (list 33 'm_deeptempl_lava #f) (list 35 'm_deeptempl_swamp #t) (list 100 '...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/voidgap-mech.scm
scheme
Deeps random map map areas replaced by the various blitting ops parameters to random number generators critter lists bats rats bats n rats slime spiders goblins headless spiders +qs goblin war ghost skels trolls zorn ghost + d deathknights deathknights +d goblin war +p demons goblin tribe dragon dragon + gob gazer...
probability for edge terrains ... out of 83 (define voidgap-terrain-edges (list (list 20 'm_deeptempl_wall #f) (list 25 'm_deeptempl_water #f) (list 30 'm_deeptempl_hole #f) (list 33 'm_deeptempl_lava #f) (list 35 'm_deeptempl_swamp #t) (list 100 'm_deeptempl_passage #t) )) probability for area terr...
911730c332830d1906331ef92bd6c1c105d97a517b9db99b8cd0bd7071c31754
uw-unsat/leanette-popl22-artifact
kernel.rkt
#lang s-exp "../../../lang/main.rkt" (kernel void (fwtKernelSketch [float* tArray] [int step]) (: int tid group pair match) (: float t1 t2) (= tid (get_global_id 0)) (= group (idx tid step 1)) ; (% tid step) (= pair (+ (* (<< step 1) (idx tid step 1)) group)) ; (/ tid step) ...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/synthcl/examples/fastWalshTransform/synth/kernel.rkt
racket
(% tid step) (/ tid step)
#lang s-exp "../../../lang/main.rkt" (kernel void (fwtKernelSketch [float* tArray] [int step]) (: int tid group pair match) (: float t1 t2) (= tid (get_global_id 0)) (= match (+ pair step)) (= t1 [tArray pair]) (= t2 [tArray match]) (= [tArray pair] (+ t1 t2)) (= [tArray match] (- t1 t2))) (kernel vo...
00f084a3a9c9269445195c9c09f036a389fe13ee1948ce28f044d5e68b056abe
fukamachi/lack
util.lisp
(in-package :cl-user) (defpackage lack.util (:use :cl) #+(or mswindows win32 cormanlisp) (:import-from :ironclad :byte-array-to-hex-string :random-data) (:export :find-package-or-load :find-middleware :funcall-with-cb :content-length :g...
null
https://raw.githubusercontent.com/fukamachi/lack/65b2f54690e141f91864d09926e3be66a376a645/src/util.lisp
lisp
We're going to trap on every condition, but only actually handle ones of the type we're interested in. Conditions that we don't explicitly handle will be propagated normally, because capabilities. Use whichever-best supported capability
(in-package :cl-user) (defpackage lack.util (:use :cl) #+(or mswindows win32 cormanlisp) (:import-from :ironclad :byte-array-to-hex-string :random-data) (:export :find-package-or-load :find-middleware :funcall-with-cb :content-length :g...
e0eb1b1fa1219f4f72fb06e7751640c51d9f5015a883932131dff0c1148cf168
haskell-mafia/tinfoil
KDF.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Test.Tinfoil.Data.KDF where import Disorder.Core.Tripping (tripping) import P import System.IO import Tinfoil.Data.KDF import ...
null
https://raw.githubusercontent.com/haskell-mafia/tinfoil/f46b2ea0b9984ac9a97073932b5584ce0a2e0554/test/Test/Tinfoil/Data/KDF.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Test.Tinfoil.Data.KDF where import Disorder.Core.Tripping (tripping) import P import System.IO import Tinfoil.Data.KDF import Test.QuickCheck import Te...
e55a00b97890bb74987aa7f33f93e7214a44684d53bde1030c01e7967c534bea
soulomoon/SICP
ch5-eceval-support.scm
;it have been hack to open the-global-environment ;;;;SIMULATION OF ECEVAL MACHINE OPERATIONS -- ;;;;loaded by load-eceval.scm and by load-eceval-compiler.scm FIRST A LOT FROM 4.1.2 - 4.1.4 (load "/Users/soulomoon/git/SICP/material/allcode/ch5-syntax.scm"); ;section 4.1.2 syntax procedures ;;;SECTIO...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/material/allcode/ch5-eceval-support.scm
scheme
it have been hack to open the-global-environment SIMULATION OF ECEVAL MACHINE OPERATIONS -- loaded by load-eceval.scm and by load-eceval-compiler.scm ;section 4.1.2 syntax procedures SECTION 4.1.3 operations used by compiled code and eceval except as noted * not used by eceval itself -- used by compiled...
FIRST A LOT FROM 4.1.2 - 4.1.4 (define (true? x) (not (eq? x false))) (define (false? x) (eq? x false)) (define (make-procedure parameters body env) (list 'procedure parameters body env)) (define (compound-procedure? p) (tagged-list? p 'procedure)) (define (procedure-parameters p) (cadr p)) (define (...
3a2837143498330d873d9c96c2d6f6578ff5a44e90295cda094f195c40e8fd34
fortytools/holumbus
Template.hs
-- ---------------------------------------------------------------------------- | Module : Hayoo . Search . Pages . Template Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The main...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooSnap/Hayoo/Search/Pages/Template.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # Piwik tracking stuff
| Module : Hayoo . Search . Pages . Template Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The main Hayoo ! template . Module : Hayoo.Search.Pages.Template Copyright : ...
9b6e9821fa0c303417a54c059cb3b78e138a5ce106a8ad1459a14c4aa7e56b9d
oscaro/felice
serdes_test.clj
(ns felice.serdes-test (:require [clojure.test :refer :all] [felice.consumer :as consumer] [felice.producer :as producer] [felice.core-test :refer [create-topic]] [clojure.string :as str])) (deftest nippy-serdes-test (doseq [format #{:nippy+fast :nippy+lz4}] ...
null
https://raw.githubusercontent.com/oscaro/felice/7a5a3a7cf858057ef646a8c4193e9f0eadeff276/test/felice/serdes_test.clj
clojure
(ns felice.serdes-test (:require [clojure.test :refer :all] [felice.consumer :as consumer] [felice.producer :as producer] [felice.core-test :refer [create-topic]] [clojure.string :as str])) (deftest nippy-serdes-test (doseq [format #{:nippy+fast :nippy+lz4}] ...
99c625a769e98fee73d1781d5550ad17ba6f08139ff4e90333302f8a6b39c3cd
LauraVoinea/protocol-reengineering-implementation
bank_expected.erl
-module(bank_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_logout/1, act_payment/1, act_statement/1, callback_mode/0, init/1, receive_details/1, send_statement/1, start_link/0, state1/3, state2/3, st...
null
https://raw.githubusercontent.com/LauraVoinea/protocol-reengineering-implementation/23a8d99fe1663b249c4c46fdf03fd24cc01c060c/src/examples/banking/bank_expected.erl
erlang
require pin assert pay consume tan consume pin
-module(bank_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_logout/1, act_payment/1, act_statement/1, callback_mode/0, init/1, receive_details/1, send_statement/1, start_link/0, state1/3, state2/3, st...
49113caf18e5fcd62ba10044788fd8124627224afb64da525bb49cb4640bb293
40ants/reblocks
hooks.lisp
(uiop:define-package #:reblocks/hooks (:use #:cl #:f-underscore) ;; Just dependencies (:import-from #:reblocks/session) (:import-from #:log) (:import-from #:metatilities) (:import-from #:alexandria #:symbolicate #:ensure-symbol #:with-gensyms) (:impo...
null
https://raw.githubusercontent.com/40ants/reblocks/125c18ebc4a0fbe64dbb5db91c9298d579c38c9e/src/hooks.lisp
lisp
Just dependencies Variables *session-hooks* or *request-hooks* should be bound by prepare-hooks macro, during request processing. internal function replacing callback with given name adding new callback TODO: Add (declare...) processing for body Remember that we already called other callbacks Call the hook's ...
(uiop:define-package #:reblocks/hooks (:use #:cl #:f-underscore) (:import-from #:reblocks/session) (:import-from #:log) (:import-from #:metatilities) (:import-from #:alexandria #:symbolicate #:ensure-symbol #:with-gensyms) (:import-from #:40ants-doc) ...
732ee18747f104d5bd74eb05c413acae88c9e546fdc4beeac4094378e58d707b
alanz/ghc-exactprint
TcCustomSolverSuper.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # module TcCustomSolverSuper where import GHC.TypeLits import Data.Typeable When solving super - class instances , GHC solves the evidence without using the solver ( see ` tcSuperClasses ` in ` TcInstDecls ` ) . However , some classes need to be excepted fro...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/TcCustomSolverSuper.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # module TcCustomSolverSuper where import GHC.TypeLits import Data.Typeable When solving super - class instances , GHC solves the evidence without using the solver ( see ` tcSuperClasses ` in ` TcInstDecls ` ) . However , some classes need to be excepted fro...
0d0541ac01497d23f0ff87b7a4a570f8de00168a191b512bc43160c598cdf689
standardsemiconductor/lion
Core.hs
| Module : Lion . Core Description : Lion RISC - V Core Copyright : ( c ) , 2021 License : BSD-3 - Clause Maintainer : The Lion core is a 32 - bit [ RISC - V]( / about/ ) processor written in using [ Clash]( - lang.org ) . Note , all peripherals and memory must have single cycle latency...
null
https://raw.githubusercontent.com/standardsemiconductor/lion/f67b1fa119aaad1c9831f833748886d4e1e9469b/src/Lion/Core.hs
haskell
| Core configuration ^ ALU configuration, default: `Soft` ^ pipeline configuration | Default core configuration `aluConfig` = `Soft` `pipeConfig` = `P.defaultPipeConfig` | Core outputs ^ shared memory and instruction bus, output from core to memory and peripherals ^ formal verification interface output, see ...
| Module : Lion . Core Description : Lion RISC - V Core Copyright : ( c ) , 2021 License : BSD-3 - Clause Maintainer : The Lion core is a 32 - bit [ RISC - V]( / about/ ) processor written in using [ Clash]( - lang.org ) . Note , all peripherals and memory must have single cycle latency...
0e86a920ea9a1a8966fa733f176fc5d47c4151e2f9b8eca0902293ba7aa17e50
multunus/dashboard-clj
test_runner.cljs
(ns dashboard-clj.test-runner (:require [doo.runner :refer-macros [doo-tests]] [dashboard-clj.core-test])) (enable-console-print!) (doo-tests 'dashboard-clj.core-test)
null
https://raw.githubusercontent.com/multunus/dashboard-clj/14ec30d6eb4a2fdbaadfec52beb572f250b0c781/test/cljs/dashboard_clj/test_runner.cljs
clojure
(ns dashboard-clj.test-runner (:require [doo.runner :refer-macros [doo-tests]] [dashboard-clj.core-test])) (enable-console-print!) (doo-tests 'dashboard-clj.core-test)
26faa0e35a746b412cf0c22e404622a1939a141451c9da6c3291afbed5be4fcb
mtolly/onyxite-customs
onyx-mapping.hs
DTXMapping "mstr.dtx" [ MatchNote Kick (Chip "01") , MatchNote Snare (Branch [ MatchType GemRim (Chip "0W") , MatchVelocity VelocityGhost (Chip "04") , Chip "02" ]) , MatchNote Tom1 (Branch [ MatchVelocity VelocityGhost (Chip "0C") , Chip "0B" ]) , MatchNote Tom2 (Branch [ MatchV...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/40700e11985f64e8abf9b54a5ccc0f817bdd7ff5/sound/approved-dtx/Jazz%20Template/onyx-mapping.hs
haskell
DTXMapping "mstr.dtx" [ MatchNote Kick (Chip "01") , MatchNote Snare (Branch [ MatchType GemRim (Chip "0W") , MatchVelocity VelocityGhost (Chip "04") , Chip "02" ]) , MatchNote Tom1 (Branch [ MatchVelocity VelocityGhost (Chip "0C") , Chip "0B" ]) , MatchNote Tom2 (Branch [ MatchV...
e717519c1a9870359eb7f4239d9945cbe733e2f22b28ac19f13ae2ff27729356
haskell-CI/haskell-ci
VersionInfo.hs
# LANGUAGE CPP # module HaskellCI.VersionInfo ( haskellCIVerStr, dependencies, ) where import HaskellCI.Prelude import Data.Map (Map) import qualified Data.Map as Map haskellCIVerStr :: String haskellCIVerStr = VERSION_haskell_ci dependencies :: Map String String dependencies = Map.fromList [ ...
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/336d76e1b992c4889e707c7d367497a50ebe9218/src/HaskellCI/VersionInfo.hs
haskell
# LANGUAGE CPP # module HaskellCI.VersionInfo ( haskellCIVerStr, dependencies, ) where import HaskellCI.Prelude import Data.Map (Map) import qualified Data.Map as Map haskellCIVerStr :: String haskellCIVerStr = VERSION_haskell_ci dependencies :: Map String String dependencies = Map.fromList [ ...
576ad4d88b938431c927d7035b20b8e1b4ea0b7868d93ab9ba7fb9190a82d969
kolmodin/hinotify
DirTree.hs
2006 - 2007 Requires gtk2hs 0.9.11 import qualified Data.Map as Map import System.Directory import System.Environment import Control.Concurrent import Data.IORef import Control.Monad (liftM) import Ix (inRange) import System.INotify import Graphics.UI.Gtk hiding (TreeModelFlags(TreeModelListOnly), cellText) i...
null
https://raw.githubusercontent.com/kolmodin/hinotify/d225a1aacce290f054917177c17ce5f097421ec0/examples/DirTree/DirTree.hs
haskell
TODO: on destroy model (INotify.removeWatch watch)
2006 - 2007 Requires gtk2hs 0.9.11 import qualified Data.Map as Map import System.Directory import System.Environment import Control.Concurrent import Data.IORef import Control.Monad (liftM) import Ix (inRange) import System.INotify import Graphics.UI.Gtk hiding (TreeModelFlags(TreeModelListOnly), cellText) i...
970e26736b60ec4e41fbac34c400bb7d405bfae9b98a58734f6692f92d84c13c
sadiqj/ocaml-esp32
unboxed.ml
type t = {x: int64} [@@unboxed];; let rec x = {x = y} and y = 3L;; type r = A of r [@@unboxed];; let rec y = A y;;
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/letrec-disallowed/unboxed.ml
ocaml
type t = {x: int64} [@@unboxed];; let rec x = {x = y} and y = 3L;; type r = A of r [@@unboxed];; let rec y = A y;;
4c13252a50dbfb9c013085aaf4cd2cd5d3673c8a33fa42aa7e4ceee6aeb7e30c
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
PlaceOrder.hs
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} -- | Contains the different functions to run the operation placeOrder module OpenAPI.Operati...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/d3e9c7db4d8b15de9136007a9b9519a7bd8e2199/example/generatedCode/src/OpenAPI/Operations/PlaceOrder.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # | Contains the different functions to run the operation placeOrder | > POST /store/order ^ The request body to send | Represents a response of the operation 'placeOrder'. The response constructor is chosen by the status code o...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module OpenAPI.Operations.PlaceOrder where import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe import qualified Control.Monad.Fail import qualified Control...
c299bd55494e25e85d7b8d32e46f9d962ae0da4ec9a0ccc1c5c012d1cab69c94
ku-fpg/blank-canvas
Canvas.hs
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # L...
null
https://raw.githubusercontent.com/ku-fpg/blank-canvas/9f21d37fc34a9551521c41b2ba2ca5f133a73eea/Graphics/Blank/Canvas.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # import qualified Control.Remote.Monad as RM --------------------------------------------------------------------------- the context, for the graphic contexts Not sure about this overloading A bit of a hack; we use method generation to also ge...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE PatternSynonyms # # LANGUAGE GeneralizedNewtypeDe...
31149edea4bd405bbc22fba406d098ca521f1d3a32f34f7107606f70855952b8
erlang-ls/erlang_ls
edoc_diagnostics_custom_tags.erl
-module(edoc_diagnostics_custom_tags). -export([ a/0 ]). %% @edoc %% `edoc' is a custom alias for `doc' a() -> ok. %% @docc %% `docc' is not an existing or custom tag b() -> ok. @generated %% The `generated' tag is used for generated code c() -> ok.
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/0fc151d7fdfca478338777d83057ae1d32d68252/apps/els_lsp/priv/code_navigation/src/edoc_diagnostics_custom_tags.erl
erlang
@edoc `edoc' is a custom alias for `doc' @docc `docc' is not an existing or custom tag The `generated' tag is used for generated code
-module(edoc_diagnostics_custom_tags). -export([ a/0 ]). a() -> ok. b() -> ok. @generated c() -> ok.
e15cc4d63568b1853bf277c759feb71e38d602111a8eea16ad81eed89154646d
flyingmachine/arenaverse
users.clj
(ns arenaverse.views.users (:require [arenaverse.views.common :as common] [arenaverse.data-mappers.user :as user] [arenaverse.models.permissions :as can] [noir.session :as session] [noir.response :as res] [cemerick.friend :as friend] [cemerick.fr...
null
https://raw.githubusercontent.com/flyingmachine/arenaverse/6742c4112f6ec83fb272b1b352868394a8879a07/src/arenaverse/views/users.clj
clojure
(ns arenaverse.views.users (:require [arenaverse.views.common :as common] [arenaverse.data-mappers.user :as user] [arenaverse.models.permissions :as can] [noir.session :as session] [noir.response :as res] [cemerick.friend :as friend] [cemerick.fr...
eea47271c5b9e4339fbd2172a98f6bc8d63c74987c2687c4b0e4b89a3ff11fb1
funcatron/tron
core.clj
(ns funcatron.tron.manager.core (:require [zookeeper :as zk] [clojure.string :as cs] [funcatron.tron.options :as opts])) (defonce zk-client (atom nil) ) (defn- connect-to-zookeeper "Set up the connection to Zookeeper" [] (when-not @zk-client (let [zk (zk/connect (cs/join "," (get-i...
null
https://raw.githubusercontent.com/funcatron/tron/cfe0c227f9c3ad88b3d072b0319954786afb5f15/src/clojure/funcatron/tron/manager/core.clj
clojure
(ns funcatron.tron.manager.core (:require [zookeeper :as zk] [clojure.string :as cs] [funcatron.tron.options :as opts])) (defonce zk-client (atom nil) ) (defn- connect-to-zookeeper "Set up the connection to Zookeeper" [] (when-not @zk-client (let [zk (zk/connect (cs/join "," (get-i...
fa58b00577bbaac76cda9c583174cff3b5dc629e9850fbce2ea856e0147f2be4
noinia/hgeometry
Matrix.hs
-------------------------------------------------------------------------------- -- | Module : Ipe . Matrix Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- Matrix Attributes as defined in Ipe -- -----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-ipe/src/Ipe/Matrix.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Applies the matrix to an ipe object if...
Module : Ipe . Matrix Copyright : ( C ) Maintainer : Matrix Attributes as defined in Ipe module Ipe.Matrix where import Control.Lens hiding (rmap) import Data.Ext import qualified Ipe.Attributes as AT import Ipe.Attributes hiding (Matrix) import Ipe....
9319781245aed58edd1d6ccf554aae5f07996b90ca9a62d23315115dffd75a6a
hraberg/deuce
doc.clj
(ns deuce.emacs.doc (:use [deuce.emacs-lisp :only (defun defvar)]) (:require [clojure.core :as c] [clojure.string :as s] [deuce.emacs-lisp :as el]) (:refer-clojure :exclude [])) (defvar build-files nil "A list of files used to build this Emacs binary.") (defvar internal-doc-file-name n...
null
https://raw.githubusercontent.com/hraberg/deuce/9d507adb6c68c0f5c19ad79fa6ded9593c082575/src/deuce/emacs/doc.clj
clojure
and that it evaluates documentation properties that
(ns deuce.emacs.doc (:use [deuce.emacs-lisp :only (defun defvar)]) (:require [clojure.core :as c] [clojure.string :as s] [deuce.emacs-lisp :as el]) (:refer-clojure :exclude [])) (defvar build-files nil "A list of files used to build this Emacs binary.") (defvar internal-doc-file-name n...
8b6c1f757fb7f23ba8de476fbd19ab91a15b6694001531651df3d9b1a101bd8e
pallet/pallet
crate_install.clj
(ns pallet.crate-install "Install methods for crates" (:require [clj-schema.schema :refer [def-map-schema map-schema optional-path sequence-of]] [clojure.tools.logging :refer [debugf tracef]] [pallet.action :refer [with-action-options]] [pallet.actions :as actions] [pallet.actions :as actions...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/crate_install.clj
clojure
## Install helpers {:keys [install-strategy] :as settings} Would like this but need to preserve backward compatibility, so make it a multimethod "Install facility using the settings in the given instance-id." [facility instance-id] {:pre [(keyword? facility)]} (let [settings (get-settings facility {:ins...
(ns pallet.crate-install "Install methods for crates" (:require [clj-schema.schema :refer [def-map-schema map-schema optional-path sequence-of]] [clojure.tools.logging :refer [debugf tracef]] [pallet.action :refer [with-action-options]] [pallet.actions :as actions] [pallet.actions :as actions...