_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
504045747aa3bfcbe49cd9dad4f895ee863446ebd790c488b4317f313f863ed6
qitab/cl-protobufs
lisp-alias-test.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (defpackage #:cl-protobufs.test.alias (:use #:cl #:clunit) (:local-nicknames (#:pb #:cl-protobufs.alias-test) (#:pi #:cl-protobufs.implem...
null
https://raw.githubusercontent.com/qitab/cl-protobufs/bf5447065714a9f5b1b6ce6d0512fd99b4105e76/tests/lisp-alias-test.lisp
lisp
license that can be found in the LICENSE file or at . Serialization of the aliased (explicit) message cl-protobufs message metadata
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style (defpackage #:cl-protobufs.test.alias (:use #:cl #:clunit) (:local-nicknames (#:pb #:cl-protobufs.alias-test) (#:pi #:cl-protobufs.implementation) (#:proto #:cl-protobufs)) (:export...
3e940ad92d7431fe3ce0c43d34d6920b91c80bfbcead7db6b400fe5c44bac680
lehins/massiv
Mult.hs
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Main where import Criterion.Main import Data.Massiv.Array as A import Data.Massiv.Bench.Matrix multArrsAlt :: Array S Ix2 Double -> Array S Ix2 Double -> Array S Ix2 Double multArrsAlt arr1 arr2 | n1 /= m2 = error $ "(|*|): Inner ar...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv-bench/bench/Mult.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Main where import Criterion.Main import Data.Massiv.Array as A import Data.Massiv.Bench.Matrix multArrsAlt :: Array S Ix2 Double -> Array S Ix2 Double -> Array S Ix2 Double multArrsAlt arr1 arr2 | n1 /= m2 = error $ "(|*|): Inner ar...
9fd0997b7214c9a8c9523e9cc52a089c8b560acc792e083e62b2c983a5a690b5
racket/rhombus-prototype
class-binding.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/syntax-local (only-in enforest/operator operator-proc) "srcloc.rkt" "class-parse.rkt") "binding.rkt" "bind-macro.rkt" ...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/4e66c1361bdde51c2df9332644800baead49e86f/rhombus/private/class-binding.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/syntax-local (only-in enforest/operator operator-proc) "srcloc.rkt" "class-parse.rkt") "binding.rkt" "bind-macro.rkt" ...
20fe81884fdfe089f959a05736f0c0237a4597c3afb6e2791e35e7a9d60d6e9b
scalaris-team/scalaris
clocks.erl
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distribu...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/time/clocks.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(clocks). -author(''). -vsn('$Id$'). -export([init/0, get_monotonic_clock/0, get_monotonic_clock_res/0, ...
893d3a418a6a835a8fb27350ae7a9919496d552d670e93e7970c2c36de0d5979
lopec/LoPEC
statistician.erl
%%%------------------------------------------------------------------- @author < > @author Bjorn " norno " < > @author Gustav " azariah " Simonsson < > @author > ( C ) 2009 , < > %%% @doc %%% %%% Collects various statistics about the cluster nodes and jobs put %%% in the cluster. %%% <pre>...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/common/src/statistician.erl
erlang
------------------------------------------------------------------- @doc Collects various statistics about the cluster nodes and jobs put in the cluster. <pre> Cluster global statistics include: * Jobs executed (also those that are done or cancelled) * Power consumed (estimation) * Time spent executin...
@author < > @author Bjorn " norno " < > @author Gustav " azariah " Simonsson < > @author > ( C ) 2009 , < > Created : 21 Oct 2009 by < > -module(statistician). -include("../include/env.hrl"). -behaviour(gen_server). -export([start_link/1, update/1, job_finished/1, remove_node/1, sto...
8341a9a852b0d6945d11266901e6db1692a204086aff41d58093943faf54da8e
sirherrbatka/statistical-learning
mushrooms.lisp
(cl:in-package #:cl-user) (ql:quickload '(:vellum :vellum-csv :statistical-learning)) (defpackage #:mushrooms-example (:use #:cl #:statistical-learning.aux-package)) (cl:in-package #:mushrooms-example) (defvar *data* (vellum:copy-from :csv (~>> (asdf:system-source-directory :statistical-learning) ...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/dff8230c687f2bfa1097bbbd0f32aa73e2c573b2/examples/mushrooms.lisp
lisp
~0.99
(cl:in-package #:cl-user) (ql:quickload '(:vellum :vellum-csv :statistical-learning)) (defpackage #:mushrooms-example (:use #:cl #:statistical-learning.aux-package)) (cl:in-package #:mushrooms-example) (defvar *data* (vellum:copy-from :csv (~>> (asdf:system-source-directory :statistical-learning) ...
47472ce1a83a1dadfdb3e0b88c17a70a2fb27938c8812c7a3e25b00c566c1d40
synergistics/chemlambda-hask
Main.hs
module Main where import qualified ReactionSitesBench as RSB main = RSB.run -- main = RSB.run >>= print
null
https://raw.githubusercontent.com/synergistics/chemlambda-hask/6a51981d88b950490f38559e3e4c5d109da22fc5/chemlambda-chemistry/bench/Main.hs
haskell
main = RSB.run >>= print
module Main where import qualified ReactionSitesBench as RSB main = RSB.run
fc5fa767b9be154cbcc408c08f43a8a7f15e74cfe26a54e07c234dc82be9113a
sneeuwballen/zipperposition
fo_detector.ml
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Find applied variables in a problem } open Logtk open Logtk_parsers module T = TypedSTerm (** encode a term *) let rec detect_term t = match T.view t with | T.App (f, args) -> T.is_var(f) || CCList.exists det...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/tools/fo_detector.ml
ocaml
* encode a term * encode a statement
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Find applied variables in a problem } open Logtk open Logtk_parsers module T = TypedSTerm let rec detect_term t = match T.view t with | T.App (f, args) -> T.is_var(f) || CCList.exists detect_term args | T.A...
02066566c8d5aca15548434d6648e60136e072ca699a0ce0067df4f5f3221a4a
pouyakary/Nota
Main.hs
module Language.BackEnd.Evaluator.Main where -- ─── IMPORTS ──────────────────────────────────────────────────────────────────── import Language.BackEnd.Evaluator.Nodes.Assignment import Language.BackEnd.Evaluator.Nodes.BinaryOperator import Language.BackEnd.Evaluator.Nodes.FunctionCall import Language.BackEnd.Evalu...
null
https://raw.githubusercontent.com/pouyakary/Nota/d5e29eca7ea34d72835a9708977fa33c030393d1/source/Language/BackEnd/Evaluator/Main.hs
haskell
─── IMPORTS ──────────────────────────────────────────────────────────────────── ─── MASTER EVAL ──────────────────────────────────────────────────────────────── ─── MAIN ─────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────────────────────...
module Language.BackEnd.Evaluator.Main where import Language.BackEnd.Evaluator.Nodes.Assignment import Language.BackEnd.Evaluator.Nodes.BinaryOperator import Language.BackEnd.Evaluator.Nodes.FunctionCall import Language.BackEnd.Evaluator.Nodes.Identifier import Language.BackEnd.Evaluator.Nodes.Negation import Langua...
9957ac663104beb0c5c5aacf548885f5284e5ba5bf856bd409825b9bd319c2f8
nspin/hs-arm
Pattern.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # module Harm.Types.Pattern ( Atom(..) , Pattern(..) , match ) where import Data.Bits import Data.Char import Data.Monoid import Data.Word import Control.DeepSeq import GHC.Generics (Generic) data Atom = Atom { atom_spec :: Word32 , ato...
null
https://raw.githubusercontent.com/nspin/hs-arm/8f10870a4afbbba010e78bd98e452ba67adc34e0/harm/harm-types/src/Harm/Types/Pattern.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # module Harm.Types.Pattern ( Atom(..) , Pattern(..) , match ) where import Data.Bits import Data.Char import Data.Monoid import Data.Word import Control.DeepSeq import GHC.Generics (Generic) data Atom = Atom { atom_spec :: Word32 , atom_mask :: Word32 } deriving ...
f6beeb81c2a483dd5c07f43f8c4ade5882e65f10846398fdffa2a542218b7d53
Oblosys/proxima
ProxParser_Generated.hs
module ProxParser_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..), defaultTextColor) import Presentation.PresLayerTypes import Presentation.PresLayerUtils import Evaluation.DocumentEdit import DocumentEdit_Generated import DocUtils_Generated import Evaluation.DocTypes import ...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/multi-editor/src/ProxParser_Generated.hs
haskell
--- GENERATED PART STARTS HERE. DO NOT EDIT ON OR BEYOND THIS LINE ----- ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------ --------------------------...
module ProxParser_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..), defaultTextColor) import Presentation.PresLayerTypes import Presentation.PresLayerUtils import Evaluation.DocumentEdit import DocumentEdit_Generated import DocUtils_Generated import Evaluation.DocTypes import ...
9618205546d8d602c40176d96e62c358e1a2f6062d62a4c6d1b3157aff5d6d6c
junjihashimoto/hasktorch-yolo
ImageSpec.hs
# LANGUAGE DeriveGeneric # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FunctionalDependencies # # LANGUAGE RecordWildCards # # LANGUAGE NoMonomorphismRestriction # module ImageSpec (spec, main) where import Control.Exception.Safe import Control.Monad.State.Strict import qualified Data.ByteString.Lazy as B import qua...
null
https://raw.githubusercontent.com/junjihashimoto/hasktorch-yolo/af1d2cd221d393bc52d692712ffc9fd46037f296/test/ImageSpec.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FunctionalDependencies # # LANGUAGE RecordWildCards # # LANGUAGE NoMonomorphismRestriction # module ImageSpec (spec, main) where import Control.Exception.Safe import Control.Monad.State.Strict import qualified Data.ByteString.Lazy as B import qua...
1783d46378ef393094c01c47fcdefc4017cbe018f16b8fafe1871457cad46d12
tail-reversion/elle
base.rkt
#lang elle/private/prebase {reprovide elle/private/prebase #:exposing-all} {reprovide elle/private/boolean #:exposing-all} {reprovide elle/private/char #:exposing-all} {reprovide elle/private/equality #:exposing-all} {reprovide elle/private/keyword #:exposing-all} {reprovide elle/private/number #:exposing-all} {reprov...
null
https://raw.githubusercontent.com/tail-reversion/elle/ed113df48d37c0481d2e6d068635e4699ea33d65/elle-lib/base.rkt
racket
#lang elle/private/prebase {reprovide elle/private/prebase #:exposing-all} {reprovide elle/private/boolean #:exposing-all} {reprovide elle/private/char #:exposing-all} {reprovide elle/private/equality #:exposing-all} {reprovide elle/private/keyword #:exposing-all} {reprovide elle/private/number #:exposing-all} {reprov...
2e88c3954125e417efc0fceab202e7671bd7d0c0f66779ded4366af67192a12a
inaka/canillita
canillita_single_newspaper_handler.erl
%%% @doc GET|PUT|DELETE /newspapers/:id handler -module(canillita_single_newspaper_handler). -behaviour(trails_handler). -include_lib("mixer/include/mixer.hrl"). -mixin([{ sr_single_entity_handler , [ init/3 , rest_init/2 , allowed_methods/2 , resource_exists/2 , conten...
null
https://raw.githubusercontent.com/inaka/canillita/56e7fa6b7441a591dbf2396dc85a43cdca6878c6/src/canillita_single_newspaper_handler.erl
erlang
@doc GET|PUT|DELETE /newspapers/:id handler
-module(canillita_single_newspaper_handler). -behaviour(trails_handler). -include_lib("mixer/include/mixer.hrl"). -mixin([{ sr_single_entity_handler , [ init/3 , rest_init/2 , allowed_methods/2 , resource_exists/2 , content_types_accepted/2 , content_types_pro...
49f782a1e4731cab5a6e941a5904b22681b0707fe49b2701e86457f04c795df0
narimiran/AdventOfCode2022
day23.clj
(ns day23 (:require aoc [clojure.data.int-map :refer [dense-int-set int-map]])) (def ^:const S 256) (def ^:const N (- S)) (def directions [[(dec N) N (inc N)] ; N [(dec S) S (inc S)] ; S [(dec N) -1 (dec S)] ; W [(inc N) 1 (inc S)]]) ; E (let [^longs adjacent (long-array (dedupe (r...
null
https://raw.githubusercontent.com/narimiran/AdventOfCode2022/ed7e5674e1c58cc20d5cfabdbbd732ae4b9dde62/clojure/day23.clj
clojure
N S W E
(ns day23 (:require aoc [clojure.data.int-map :refer [dense-int-set int-map]])) (def ^:const S 256) (def ^:const N (- S)) (def directions (let [^longs adjacent (long-array (dedupe (reduce concat directions))) len (alength adjacent) ^longs *nbs* (long-array len)] (defn get-adjacent! ^long...
86c5ba84d4056895974136dcf23d91a664ebf03182477139a90554412a2e4d4a
victornicolet/parsynt
ParsyntI.ml
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later vers...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/bin/ParsyntI.ml
ocaml
let exact_fp = ref false * Recursively solve the inner loops using different tactics. @param problem The problem we are currently trying to solve. @return Some problem if all the inner functions can be paralleized or made memoryless. None if not. Note : added additional optional depth argument Solve th...
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later vers...
f59c6d223002c899410c3dd679a5216c5bd6cbeb627fe6efcbb14be6886b6e4a
acl2/acl2
symbol-listp.lisp
; A lightweight book about the built-in function symbol-listp. ; Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/acl2/acl2/2790a294db676f428d72175afcfa5dfff2b05979/books/kestrel/typed-lists-light/symbol-listp.lisp
lisp
A lightweight book about the built-in function symbol-listp. See also books/std/typed-lists/symbol-listp.lisp, but that book may be more heavyweight. Avoid name clash with std. this had a name conflict with a theorem in std/typed-lists/symbol-listp Disabled but see symbolp-of-car-when-symbol-listp. Avoids nam...
Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") (in-theory (disable symbol-listp)) (defthm symbol-listp-of-set-difference-equal-alt (implies (sy...
f3fac18d0373b2072a421a31a0216af0bb93be0788906dafb4f4e71f8b7b2b62
broadinstitute/wfl
wgs_test.clj
(ns wfl.unit.modules.wgs-test (:require [clojure.test :refer [deftest is]] [wfl.module.wgs :as wgs])) (def ^:private output-url "gs-output-bucket/") (deftest test-make-inputs-from-cram (let [sample "gs-input-bucket/folder/sample.cram" inputs (wgs/make-inputs-to-save output-url {:input_cram s...
null
https://raw.githubusercontent.com/broadinstitute/wfl/f6fc34e1a7bbb9588570d36c96f0d88e5e014a3d/api/test/wfl/unit/modules/wgs_test.clj
clojure
(ns wfl.unit.modules.wgs-test (:require [clojure.test :refer [deftest is]] [wfl.module.wgs :as wgs])) (def ^:private output-url "gs-output-bucket/") (deftest test-make-inputs-from-cram (let [sample "gs-input-bucket/folder/sample.cram" inputs (wgs/make-inputs-to-save output-url {:input_cram s...
01b4510431b965b6d2cc5e9565f62651343b15edb642f620dbaead1a3231e812
brianium/tomaat
settings.cljs
(ns tomaat.worker.settings (:require [tomaat.data :as data])) (defn update-settings "Merge the given settings into stored settings for Tomaat" [event id settings] (-> settings (js->clj :keywordize-keys true) data/write))
null
https://raw.githubusercontent.com/brianium/tomaat/990cb7c496796c567613ec7ea8c9855f397c45c2/src/tomaat/worker/settings.cljs
clojure
(ns tomaat.worker.settings (:require [tomaat.data :as data])) (defn update-settings "Merge the given settings into stored settings for Tomaat" [event id settings] (-> settings (js->clj :keywordize-keys true) data/write))
a761b73f12896d172c057d54b8265bc0888aefcd0d122efbf56cfc0c57f19ade
dancrossnyc/multics
glasstty.ctl.lisp
;;; *********************************************************** ;;; * * * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * ;;; * * * Copyright ( c ) 1978 by Massachusetts Institute of ...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_emacs_ctls_.s.archive/glasstty.ctl.lisp
lisp
*********************************************************** * * * * * * *********************************************************** y is right by...
* Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * * Copyright ( c ) 1978 by Massachusetts Institute of * * Technology and Honeywell Information Systems , Inc. * tty display control From printing tty , BSG 6/29/78 Redone for new redisplay 7/7/78 For tty - no - cleolp , bsg 2/14...
c015829c617c58239ead95f10b259a8dc74ebb34254eca930a12f5fa38773836
jradtilbrook/rubiks
Moves.hs
module Moves ( (-:) , front , back , back' , back2 , down , front' , front2 , left , left' , left2 , right , right' , right2 , up , up' , up2 , down' , down2 ) where import Cube import qualified Moves.Corners as Corner import qualified Moves.Edges as Edge {- - Similar to function composition for applying moves to a ...
null
https://raw.githubusercontent.com/jradtilbrook/rubiks/d49b169187b68b5d07804da723de73820e7ab88b/src/Moves.hs
haskell
- Similar to function composition for applying moves to a cube. - Start with the cube state, then write each move you want to take in order. - Eg. Cube -: down -: right -: front
module Moves ( (-:) , front , back , back' , back2 , down , front' , front2 , left , left' , left2 , right , right' , right2 , up , up' , up2 , down' , down2 ) where import Cube import qualified Moves.Corners as Corner import qualified Moves.Edges as Edge x -: f = f x front = move Corner.front Edge.front front' = mo...
09ac5fcd3a05e45fb790ebe710d8774175b535ac4446faf3a090be38967508c2
tweag/asterius
gcdInteger.hs
# LANGUAGE MagicHash # module Main (main) where import GHC.Base import GHC.Integer main :: IO () main = case i of I# i# -> print (gcd (smallInteger i#) (smallInteger i#)) # NOINLINE i # i :: Int i = minBound
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/integer/gcdInteger.hs
haskell
# LANGUAGE MagicHash # module Main (main) where import GHC.Base import GHC.Integer main :: IO () main = case i of I# i# -> print (gcd (smallInteger i#) (smallInteger i#)) # NOINLINE i # i :: Int i = minBound
f242d4c62cd69bd851402ba570e92d45186b4870c830df2f3ed318b6d6e4568e
ghc/packages-Cabal
cabal.test.hs
import Test.Cabal.Prelude main = cabalTest $ do cabal "v2-build" ["test"]
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Regression/T4720/cabal.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ do cabal "v2-build" ["test"]
bfe810d0311dcf82271b69767605b782923e100c44b4a22baba30181537ccc4b
MinaProtocol/mina
account_id_intf.ml
[%%import "/src/config.mlh"] open Core_kernel open Mina_base_import module type S = sig module Digest : sig [%%versioned: module Stable : sig module V1 : sig type t [@@deriving sexp, equal, compare, hash, yojson] end end] val of_field : Snark_params.Tick.Field.t -> t val to...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d6436be74fd3fa5e38bbf95ad2f2c6dfd10cfe37/src/lib/mina_base/account_id_intf.ml
ocaml
so we can easily import these into Token_id
[%%import "/src/config.mlh"] open Core_kernel open Mina_base_import module type S = sig module Digest : sig [%%versioned: module Stable : sig module V1 : sig type t [@@deriving sexp, equal, compare, hash, yojson] end end] val of_field : Snark_params.Tick.Field.t -> t val to...
52b18ec0b0a6560142d2a29c54dc83e6b6755bfa9b6be38e3b1688d7a6dcadd5
roburio/udns
dns_client_flow.mli
* TODO ideally there 'd be something like mirage - flow - lwt that did n't depend on lwt and a ton of other things , and still provided [ map ] and [ connect ] and so on . leaving this stuff here for now until a better solution presents itself . on lwt and a ton of other thin...
null
https://raw.githubusercontent.com/roburio/udns/585c40933ac3d5eceb351f7edd3f45cf2615a9f8/client/dns_client_flow.mli
ocaml
* A flow is a connection produced by {!U.connect} * [io] is the type of an effect. ['err] is a polymorphic variant. * An address for a given flow type, usually this will consist of IP address + a TCP/IP or UDP/IP port number, but for some flow types it can carry additional information for purposes of cryp...
* TODO ideally there 'd be something like mirage - flow - lwt that did n't depend on lwt and a ton of other things , and still provided [ map ] and [ connect ] and so on . leaving this stuff here for now until a better solution presents itself . on lwt and a ton of other thin...
53389680f46ed6dcfaec3d1d30ce7a127a6fb50962a2e52a5f894e3b0c6daf10
jyh/metaprl
ma_message__automata.ml
extends Nuprl_message__automata open Dtactic define pw_compat : "pw_ma-compat"[level:l]{'L} <--> all_list{'L; A_1.all_list{'L; A_2."ma-compat"[level:l]{'A_1;'A_2}}} define pw_compat_list : pw_compat_list[level:l] <--> ({L:list{msga[level:l]} | "pw_ma-compat"[level:l]{'L}}) interactive empty_is_pw_compat {| intro[]...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/ma_message__automata.ml
ocaml
extends Nuprl_message__automata open Dtactic define pw_compat : "pw_ma-compat"[level:l]{'L} <--> all_list{'L; A_1.all_list{'L; A_2."ma-compat"[level:l]{'A_1;'A_2}}} define pw_compat_list : pw_compat_list[level:l] <--> ({L:list{msga[level:l]} | "pw_ma-compat"[level:l]{'L}}) interactive empty_is_pw_compat {| intro[]...
aa5df0fcaae364b974197b45b92991976da630b2b657d46a39722fb77fbcf765
mfoemmel/erlang-otp
wxXmlResource.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 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/wx/src/gen/wxXmlResource.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 2008 - 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(wxXmlResource). -include("wxe.hrl...
6c7b630ad9f49fd4b3cfcff98d5aea059f9012eb72bd412fab1cc448e03080e8
cl-axon/shop2
io-tests.lisp
;;; -*- mode: common-lisp; coding: unix; -*- ;;;--------------------------------------------------------------------------- Copyright 2010 Smart Information Flow Technologies , d / b / a SIFT , LLC ;;; This file made available together with the SHOP2 system , according to the SHOP2 system 's license ;;; ;;;----...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/tests/io-tests.lisp
lisp
-*- mode: common-lisp; coding: unix; -*- --------------------------------------------------------------------------- --------------------------------------------------------------------------- File Description: This file is intended to supply a number of unit tests to ----------------------------------------...
Copyright 2010 Smart Information Flow Technologies , d / b / a SIFT , LLC This file made available together with the SHOP2 system , according to the SHOP2 system 's license Created [ 2010/05/19 : rpg ] determine whether or not SHOP2 's processing of definitions is working . (in-package :arity-test) (fi...
3c54e477b1e5d6ea44e79c2cd07e0e6de6063b176705c0e174ceb7a8d8264cdf
Reisen/pixel
Error.hs
module Pixel.Error ( Error(..) ) where import Protolude import Pixel.Model.Users.Error ( UserError(..) ) -------------------------------------------------------------------------------- data AuthenticationError = TokenExpired | MissingToken deriving Show data Error = AuthError !AuthenticationError |...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/lib/Pixel/Error.hs
haskell
------------------------------------------------------------------------------
module Pixel.Error ( Error(..) ) where import Protolude import Pixel.Model.Users.Error ( UserError(..) ) data AuthenticationError = TokenExpired | MissingToken deriving Show data Error = AuthError !AuthenticationError | UserError !UserError | UnknownError deriving Show
c4e70168476534f3426f5aff7a1aa7c6101abb04a44efef8021fe98b95950fb0
johnlawrenceaspden/hobby-code
knapsack.clj
;; The Knapsack Problem Suppose you 've got twelve pounds (def budget 12) And there 's a thing that costs a pound , but is worth 20 . And another thing that costs 3 , but is worth 30 And another thing that costs 3 , but is worth 21 And a thing that costs 6 but is worth 40 (def things (map (fn[[c v]] {:cost ...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/knapsack.clj
clojure
The Knapsack Problem What do you buy? If you can put them in an order, then you can buy as many as you can afford So if you're a cynic And if you're an idealist A more cunning approach is to take things in order of their price/value ratio Sadly that does worse than the approach that only pays attention to the ...
Suppose you 've got twelve pounds (def budget 12) And there 's a thing that costs a pound , but is worth 20 . And another thing that costs 3 , but is worth 30 And another thing that costs 3 , but is worth 21 And a thing that costs 6 but is worth 40 (def things (map (fn[[c v]] {:cost c :value v}) [[1 20][3 3...
e25857223867d870861a7f450f749b8ab86c631dbeb92615d129e2f2cf8a46fb
xapi-project/message-switch
vdi_automaton_test.ml
* Copyright Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LICENSE ...
null
https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/storage/vdi_automaton_test.ml
ocaml
For any state [s] and operation [o] where [s' = s + o], [if s <> s' then s - s' = op]
* Copyright Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LICENSE ...
7433ce96fc5048214693732aa62a66bf67da074902a53c83095f7a6757667a31
audreyt/openafp
BFG.hs
module OpenAFP.Records.AFP.BFG where import OpenAFP.Types import OpenAFP.Internals data BFG = BFG { bfg_Type :: !N3 ,bfg_ :: !N3 ,bfg :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/BFG.hs
haskell
module OpenAFP.Records.AFP.BFG where import OpenAFP.Types import OpenAFP.Internals data BFG = BFG { bfg_Type :: !N3 ,bfg_ :: !N3 ,bfg :: !NStr } deriving (Show, Typeable)
adf0da60c7defeb3b46056fe2d68ba25412276b8b96d49d09f37ac0cbf94b075
brendanhay/amazonka
WorkspaceConnectionStatus.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/Types/WorkspaceConnectionStatus.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated | The timestamp of the connection status check. | The timestamp of the last known user connection. | The following record fields are available, with the corresponding lenses provided for backwards compatibility: 'connecti...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Mo...
e6e9bf690a408e89ad8abae62ac0dfc075c671c2427f9e40620b21377308fe87
tommaisey/aeon
sosc.scm
;; bytevector -> int (define decode-u8 (lambda (v) (bytevector-u8-ref v 0))) ;; bytevector -> int (define decode-u16 (lambda (v) (bytevector-u16-ref v 0 (endianness big)))) ;; bytevector -> int (define decode-u32 (lambda (v) (bytevector-u32-ref v 0 (endianness big)))) ;; bytevector -> int (define d...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/sosc/src/sosc.scm
scheme
bytevector -> int bytevector -> int bytevector -> int bytevector -> int bytevector -> int bytevector -> int bytevector -> int bytevector -> int bytevector -> double bytevector -> double bytevector -> string bytevector -> string (decode-pstr (flatten-bytevectors (encode-pstr "string"))) bytevector -> stri...
(define decode-u8 (lambda (v) (bytevector-u8-ref v 0))) (define decode-u16 (lambda (v) (bytevector-u16-ref v 0 (endianness big)))) (define decode-u32 (lambda (v) (bytevector-u32-ref v 0 (endianness big)))) (define decode-u64 (lambda (v) (bytevector-u64-ref v 0 (endianness big)))) (define dec...
a69ab104653f6d84ebfd19d8cae701ba34de2adbb60fa3993aa32abadaef0dd4
chrovis/cljam
depth.clj
(ns cljam.algo.depth "Provides algorithms for calculating simple depth of coverage." (:require [com.climate.claypoole :as cp] [com.climate.claypoole.lazy :as lazy] [cljam.common :as common] [cljam.util.region :as region] [cljam.io.sam :as sam] [cljam.io.sa...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/algo/depth.clj
clojure
lazy ---- eager -----
(ns cljam.algo.depth "Provides algorithms for calculating simple depth of coverage." (:require [com.climate.claypoole :as cp] [com.climate.claypoole.lazy :as lazy] [cljam.common :as common] [cljam.util.region :as region] [cljam.io.sam :as sam] [cljam.io.sa...
d996799ffff852e739aa82198cbc172fbce91f893b6a2f7c598efc52a0e32dce
cojna/iota
FenwickTree.hs
{-# LANGUAGE BangPatterns #-} module Data.FenwickTree where import Control.Monad import Control.Monad.Primitive import Data.Bits import Data.Coerce import Data.Function import Data.Monoid import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM import Data.Vector.Unboxed.Instances...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/src/Data/FenwickTree.hs
haskell
# LANGUAGE BangPatterns # | /O(n)/ | /O(n)/
module Data.FenwickTree where import Control.Monad import Control.Monad.Primitive import Data.Bits import Data.Coerce import Data.Function import Data.Monoid import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM import Data.Vector.Unboxed.Instances () newtype FenwickTree s a =...
fb2cf8a7757a90d6cfb6a40ff206a41e0fc8c85f16de36095345510dbc488057
conquerant-project/conquerant
core.clj
(ns conquerant.core (:refer-clojure :exclude [await promise]) (:require [clojure.walk :refer [prewalk-replace]] [conquerant.internals :as ci])) (defn- async-fn [fn] (for [[argv & body] (rest fn)] (list argv (cons `ci/ado body)))) (defmacro async "If `expr` is a `fn` or `defn` form, its body wi...
null
https://raw.githubusercontent.com/conquerant-project/conquerant/264b5054dbae4f7645ef6501c75a8209bb57e9d6/src/conquerant/core.clj
clojure
some fn that takes a callback can be used as can also be completed from outside
(ns conquerant.core (:refer-clojure :exclude [await promise]) (:require [clojure.walk :refer [prewalk-replace]] [conquerant.internals :as ci])) (defn- async-fn [fn] (for [[argv & body] (rest fn)] (list argv (cons `ci/ado body)))) (defmacro async "If `expr` is a `fn` or `defn` form, its body wi...
05ff7b2deff0cb2db7ebc6752d84041cc9538c9a4164975127e57f2a516a85ef
ddssff/refact-global-hse
D.hs
module D(MoveType(Down, Up) ) where | Declaration moves can be characterized as one of two types , Down -- or Up. This must be computed by scanning the parsed code of the -- departure module (the module where the declaration is when we -- begin) for any remaining uses of the declaration's symbols. Note -- ...
null
https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/expected/simple2/D.hs
haskell
or Up. This must be computed by scanning the parsed code of the departure module (the module where the declaration is when we begin) for any remaining uses of the declaration's symbols. Note that it is possible to specify a move that results in a legitimate import loop. The only solution to this is to bring mor...
module D(MoveType(Down, Up) ) where | Declaration moves can be characterized as one of two types , Down data MoveType = Down | Up
ac72ef5e0e040743cdeead507052260bbc9e52335ac7997a6a38764f03f8d71c
Liqwid-Labs/liqwid-plutarch-extra
State.hs
module Plutarch.Extra.State ( PState, pstate, prunState, pevalState, pexecState, pget, pput, pmodify, ) where import Plutarch.Extra.Applicative (PApplicative (ppure), PApply (pliftA2)) import Plutarch.Extra.Bind (PBind ((#>>=))) import Plutarch.Extra.Functor (PFunctor (PSubcategory, pfmap), Plut) impor...
null
https://raw.githubusercontent.com/Liqwid-Labs/liqwid-plutarch-extra/e354b559c358c1500854ad3c9f14133b258b7531/src/Plutarch/Extra/State.hs
haskell
| @since 1.0.0 | @since 1.0.0 | @since 1.0.0 | @since 1.0.0 > PState s a ) | @since 1.0.0 > PPair s a ) | @since 1.0.0 > s :--> a) | @since 1.0.0 > s :--> s) | @since 1.0.0 | @since 1.0.0 > PState s PUnit) | @since 1.0.0 > s) :--> PState s PUnit)
module Plutarch.Extra.State ( PState, pstate, prunState, pevalState, pexecState, pget, pput, pmodify, ) where import Plutarch.Extra.Applicative (PApplicative (ppure), PApply (pliftA2)) import Plutarch.Extra.Bind (PBind ((#>>=))) import Plutarch.Extra.Functor (PFunctor (PSubcategory, pfmap), Plut) impor...
4e14c70cda02293de4ba2c939ec248034414fafa2a65617d3c82edf718770e0d
chansey97/clprosette-miniKanren
music.rkt
#lang racket (require "../mk.rkt") (require "../rosette-bridge.rkt") (require "../test-check.rkt") (printf "music.rkt\n") (define perfect-consonant '(0 5 7)) (define consonant '(0 3 4 5 7 8 9)) (define imperfect-consonant '(3 4 8 9)) (current-solver (z3 #:path "C:/env/z3/z3-4.8.7/z3-4.8.7-x64-win/bin/z3.exe" #:o...
null
https://raw.githubusercontent.com/chansey97/clprosette-miniKanren/d322f688312fa9481b22c2729018d383f493cb82/clprosette-miniKanren/tests/music.rkt
racket
default:2 in z3 - 4.8.7 default:6 in z3-4.8.12 slow very slow
#lang racket (require "../mk.rkt") (require "../rosette-bridge.rkt") (require "../test-check.rkt") (printf "music.rkt\n") (define perfect-consonant '(0 5 7)) (define consonant '(0 3 4 5 7 8 9)) (define imperfect-consonant '(3 4 8 9)) (current-solver (z3 #:path "C:/env/z3/z3-4.8.7/z3-4.8.7-x64-win/bin/z3.exe" #:o...
9879c3a19eaaaa37104d525e2f1a3812c7f0c8b8e3a8c65905e0d50b389cdcc7
GaloisInc/daedalus
Debug.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} module Daedalus.LSP.Command.Debug (debugPass, passNames) where import qualified Data.Text as Text import qualified Data.Aeson as A import qualified Language.LSP.Types as J import Control.Monad.IO.Class (liftIO) impo...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/4a7db71fd2cbe64d9c073c3cf175ffbc353a65cc/daedalus-language-server/src/Daedalus/LSP/Command/Debug.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # We could be clever and order these to reduce duplication, but this is simpler FIXME: move runIt ms d = do (_, res) <- interpFile Nothing ms (nameScopedIdent (tcDeclName d)) -- For now we just return the pretty-printed value (we could also return the json)...
module Daedalus.LSP.Command.Debug (debugPass, passNames) where import qualified Data.Text as Text import qualified Data.Aeson as A import qualified Language.LSP.Types as J import Control.Monad.IO.Class (liftIO) import Data.Foldable (find) import Dat...
0ff55d2c8e6a6a9f62ba4351413ccc3bd75885cf05fd95afe11dc7b6ca9f7d16
VincentCordobes/prep
cli.ml
open Base let rec add ?(last_reviewed_at = Unix.time ()) ?(retry = false) content = let content = match content with | Some s -> if retry then Editor.edit (s ^ Editor.default_template) else s | None -> Editor.edit Editor.default_template in let store = Store.load () in let card_content = Card.Plai...
null
https://raw.githubusercontent.com/VincentCordobes/prep/8929c4798ae705f4b1c8c389447c47cd2b3caca8/lib/cli.ml
ocaml
let edit open_in_editor card_id = let store = Store.load () in let card = Store.find_card_exn card_id store in let new_content = open_in_editor (content ^ Editor.default_template) in let new_id = Card.Id.generate new_content in else Console.green_s @@ new_card.id
open Base let rec add ?(last_reviewed_at = Unix.time ()) ?(retry = false) content = let content = match content with | Some s -> if retry then Editor.edit (s ^ Editor.default_template) else s | None -> Editor.edit Editor.default_template in let store = Store.load () in let card_content = Card.Plai...
710d5321d83bba053e9cd5e758b487aca5fa918ecf4bcda8b2a57ebb57d87d61
JHU-PL-Lab/jaylang
bluejay_ast_internal.ml
open Batteries type label = Bluejay_ast.label = Label of string [@@deriving eq, ord, show, to_yojson] type ident = Jayil.Ast.ident = Ident of string [@@deriving eq, ord, show, to_yojson] module Ident = Jayil.Ast.Ident module Ident_set = Jayil.Ast.Ident_set module Ident_map = Jayil.Ast.Ident_map type variant_label =...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/da5775f91994333ec0d8c06b8226dbf75add0d77/src/lang-bluejay/bluejay_ast_internal.ml
ocaml
TODO: In the future we may want to change this to argument list accomodate easier user experience P1: no internal transformation -> doesn't need to change tag P2: no internal transformation P3: HAS internal transformation TODO: Create a separate class of constructors for type errors? Type expressions ...
open Batteries type label = Bluejay_ast.label = Label of string [@@deriving eq, ord, show, to_yojson] type ident = Jayil.Ast.ident = Ident of string [@@deriving eq, ord, show, to_yojson] module Ident = Jayil.Ast.Ident module Ident_set = Jayil.Ast.Ident_set module Ident_map = Jayil.Ast.Ident_map type variant_label =...
e48539820f5abb9bd5d6ee273cc0b448bb6e49dbda982db1f0c1d4c5661d69ab
tsloughter/kuberl
kuberl_v1beta1_self_subject_access_review_spec.erl
-module(kuberl_v1beta1_self_subject_access_review_spec). -export([encode/1]). -export_type([kuberl_v1beta1_self_subject_access_review_spec/0]). -type kuberl_v1beta1_self_subject_access_review_spec() :: #{ 'nonResourceAttributes' => kuberl_v1beta1_non_resource_attributes:kuberl_v1beta1_non_resource_attributes(), ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_self_subject_access_review_spec.erl
erlang
-module(kuberl_v1beta1_self_subject_access_review_spec). -export([encode/1]). -export_type([kuberl_v1beta1_self_subject_access_review_spec/0]). -type kuberl_v1beta1_self_subject_access_review_spec() :: #{ 'nonResourceAttributes' => kuberl_v1beta1_non_resource_attributes:kuberl_v1beta1_non_resource_attributes(), ...
458cfd7900c6d33454f0f0f6690fd0a1eb815eabbbd0f11ed435b9badfbe9940
mirage/ke
fke.mli
include Sigs.F module Weighted : Sigs.Weighted.F
null
https://raw.githubusercontent.com/mirage/ke/0b3d570f56c558766e8d53600e59ce65f3218556/lib/fke.mli
ocaml
include Sigs.F module Weighted : Sigs.Weighted.F
599778db4dddcce54eed9739f2e2b24788e06c65b04dcc67705fb5d49d00a6f4
wdhowe/clojure-snippets
project.clj
(defproject config-test "0.1.0-SNAPSHOT" :description "An example of using edn configuration" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"]] :main ^:skip-aot config-test.core :target-path "target/%s"...
null
https://raw.githubusercontent.com/wdhowe/clojure-snippets/0c3247ce99a563312b549d03f080b8cf449b541d/file_operations/config_test/project.clj
clojure
(defproject config-test "0.1.0-SNAPSHOT" :description "An example of using edn configuration" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"]] :main ^:skip-aot config-test.core :target-path "target/%s"...
f24c45ed2a003f9f39fcc4065d86de8ef462b335eb1fd2568ec24a8fcd6fcdba
vernemq/vernemq
vmq_parser.erl
-module(vmq_parser). -include("vmq_types.hrl"). -export([parse/1, parse/2, serialise/1]). -dialyzer({no_match, utf8/1}). -export([ gen_connect/2, gen_connack/0, gen_connack/1, gen_connack/2, gen_publish/4, gen_puback/1, gen_pubrec/1, gen_pubrel/1, gen_pubcomp/1, gen_subscribe/2...
null
https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_commons/src/vmq_parser.erl
erlang
frame types no max size limit reserved reserved for test purposes for test purposes, useful if you want to encode an empty string.. for test purposes packet generator functions (useful for testing)
-module(vmq_parser). -include("vmq_types.hrl"). -export([parse/1, parse/2, serialise/1]). -dialyzer({no_match, utf8/1}). -export([ gen_connect/2, gen_connack/0, gen_connack/1, gen_connack/2, gen_publish/4, gen_puback/1, gen_pubrec/1, gen_pubrel/1, gen_pubcomp/1, gen_subscribe/2...
7825bcd100ee21c56554ce926e0d070063f903c762c0c9dd292b6a20857e4ce0
reflectionalist/S9fES
id.scm
Scheme 9 from Empty Space , Function Library By , 2010 ; Placed in the Public Domain ; ; (false object ...) ==> #f ; (id object) ==> object ; (true object ...) ==> #t ; ( load - from - library " id.scm " ) ; ; ID returns the object passed to it. ...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/id.scm
scheme
Placed in the Public Domain (false object ...) ==> #f (id object) ==> object (true object ...) ==> #t ID returns the object passed to it. FALSE returns always #F and TRUE returns always #T, no matter which values are passed to them. Example: ...
Scheme 9 from Empty Space , Function Library By , 2010 ( load - from - library " id.scm " ) (define (id x) x) (define (true . x) #t) (define (false . x) #f)
ee12e79dc70a368d5990bf0c0dc17d2affcf70e1c1368432b44e66a733d225d0
deadtrickster/prometheus-cowboy
prometheus_cowboy2_handler_SUITE.erl
-module(prometheus_cowboy2_handler_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). %% =================================================================== %% =================================================================== -define(PROMETHEUS_ACCE...
null
https://raw.githubusercontent.com/deadtrickster/prometheus-cowboy/24a29e2f0b096f739587a526bc927a951c44b862/test/cowboy2/prometheus_cowboy2_handler_SUITE.erl
erlang
=================================================================== =================================================================== @doc All tests of this suite. @doc Groups of tests @doc Start the application. debugger:start(), timer:sleep(80000), @doc Stop the application. ===============================...
-module(prometheus_cowboy2_handler_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(PROMETHEUS_ACCEPT, "application/vnd.google.protobuf;" "proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7," "text/plain;version...
f4c69c6e10d4aecc1b999113470a757dec67a8dbaa98d741c5f868de48c32e69
con-kitty/categorifier-c
Pretty.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # | C - code emission from CExpr graphs -- this module contains the low - level functionality for turning AST fragments into pretty - printer fragments . module Categorifier.C.CExpr.C.Pretty ( cFunArgs, newline, infixBinOp, prefixBinOp, p...
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/74bc972dd164bc8e69414397cc366fa8ded2c8f1/Categorifier/C/CExpr/C/Pretty.hs
haskell
# LANGUAGE OverloadedStrings # this module contains the low - level functionality for turning First we can define all the pure helper functions
# LANGUAGE TypeFamilies # AST fragments into pretty - printer fragments . module Categorifier.C.CExpr.C.Pretty ( cFunArgs, newline, infixBinOp, prefixBinOp, prefixUnOp, indexArray, ternary, assignStatement, constAssignStatement, commentName, ) where import Prettyprinter (Doc,...
eeb99466c076e6f9310a4f4d94e32d3af8fda9da3326bdf8431b652e1078f2ce
babashka/neil
dev.clj
(ns babashka.neil.dev (:require [babashka.process :refer [sh]] [clojure.core.async :refer [<!] :as async] [clojure.string :as str] [pod.babashka.fswatcher :as fw] [taoensso.timbre :as log])) (def watch-paths ["bb.edn" "prelude" "src" "dev"]) (defn- build-event? [{:key...
null
https://raw.githubusercontent.com/babashka/neil/3c545b6a6c02b25576f5745cae9d186941e7d90a/dev/babashka/neil/dev.clj
clojure
(ns babashka.neil.dev (:require [babashka.process :refer [sh]] [clojure.core.async :refer [<!] :as async] [clojure.string :as str] [pod.babashka.fswatcher :as fw] [taoensso.timbre :as log])) (def watch-paths ["bb.edn" "prelude" "src" "dev"]) (defn- build-event? [{:key...
84d0fee0399ba9619baa438c39880290d62f2291eb34fc2c78b474b945454bd8
rajasegar/cl-djula-tailwind
utils.lisp
(defpackage cl-djula-tailwind.utils (:use :cl) (:export :get-single :get-double :get-quadruple :get-translate :get-percentage-widths :get-translate-ratios)) (in-package cl-djula-tailwind.utils) (defvar *values* '( "0px" "1px" ...
null
https://raw.githubusercontent.com/rajasegar/cl-djula-tailwind/d7e887c3ad54ada8eb78a33487dc4b96482a5da3/src/utils.lisp
lisp
(defpackage cl-djula-tailwind.utils (:use :cl) (:export :get-single :get-double :get-quadruple :get-translate :get-percentage-widths :get-translate-ratios)) (in-package cl-djula-tailwind.utils) (defvar *values* '( "0px" "1px" ...
d214a53119696a62b87d50de8802a49c3bff23156af6384ce7a7a1a072eabc09
eholk/harlan
typecheck.scm
(library (harlan front typecheck) (export typecheck free-regions-type gen-rvar) (import (rnrs) (elegant-weapons match) (elegant-weapons helpers) (elegant-weapons sets) (harlan compile-opts) (util compat) (util color)) (define (typecheck m) (let-values (((m s) (infer-module m))) ...
null
https://raw.githubusercontent.com/eholk/harlan/3afd95b1c3ad02a354481774585e866857a687b8/harlan/front/typecheck.scm
scheme
Walks type and region variables in a substitution TODO: We will probably need to check for cycles. for both type and region variables. If the unification is successful, this function returns a new substitution. Otherwise, Obviously equal types unify. ((Numeric float) (guard (tvar? a)) `((,a . float) . ,s)) Remove...
(library (harlan front typecheck) (export typecheck free-regions-type gen-rvar) (import (rnrs) (elegant-weapons match) (elegant-weapons helpers) (elegant-weapons sets) (harlan compile-opts) (util compat) (util color)) (define (typecheck m) (let-values (((m s) (infer-module m))) ...
96f2c31b256a683cda510b4bcd997303dcaf6e1faaf7a30fd136f3f4383dc8c6
jeromesimeon/Galax
error.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/base/error.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : error.mli , v 1.40 2007/08/01 18:06:30 simeon Exp $ Module : Error Description : This module deals with error handling in Galax . Description: This module deals with error handling in Galax. *) type error = ...
e6eeb2f4bbb50918d83e596d1d10f7e7b7ee11bc12cc9476e70212d21853ac60
sharplispers/montezuma
index.lisp
(in-package #:montezuma) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *valid-index-options* '(:path :create-if-missing-p :create-p :default-field :id-field :default-search-field :analyzer :directory :close-directory-p :occur-default ...
null
https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/src/index/index.lisp
lisp
Create the index if need be Turn association lists into something we can treat like any other table (including hash tables). Delete existing documents with the same key. The main search method for the index. You need to create a query to { filter , num_docs , first_doc , sort } query:: The query to run on ...
(in-package #:montezuma) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *valid-index-options* '(:path :create-if-missing-p :create-p :default-field :id-field :default-search-field :analyzer :directory :close-directory-p :occur-default ...
2cec34fc271203ec9283567180353aa93b8414a416172c8a25e9d74e50f8d96c
patricoferris/sesame
collection.mli
* { 1 Collections } Collections are at the very heart of and was the first thing Sesame could do . A Collection is simply a set of files that share the same metadata structure . This is expressed in the " Jekyll Format " , a header ( ) of yaml followed by markdown . Once you have speci...
null
https://raw.githubusercontent.com/patricoferris/sesame/8521e2a086b49d0bc20f0fca705f07675c52e1ae/src/sesame/collection.mli
ocaml
* The type for metadata * {2 Make a Collection} This module creates a collection from a file
* { 1 Collections } Collections are at the very heart of and was the first thing Sesame could do . A Collection is simply a set of files that share the same metadata structure . This is expressed in the " Jekyll Format " , a header ( ) of yaml followed by markdown . Once you have speci...
8655f952916c104e4849706dd773ef5a0598b69d480f3cc75dbcc745e9aeb423
spurious/sagittarius-scheme-mirror
%3a26.scm
;; -*- Scheme -*- SRFI 26 (library (srfi :26) (export cut cute) (import (srfi :26 cut)))
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a26.scm
scheme
-*- Scheme -*-
SRFI 26 (library (srfi :26) (export cut cute) (import (srfi :26 cut)))
259427a6f1f684b78bf7d7b47fa929862d38dd36c385f2b8152be5e36068410e
google/lisp-koans
iteration.lisp
Copyright 2013 Google Inc. ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by applicable law or agreed to in writing, software distrib...
null
https://raw.githubusercontent.com/google/lisp-koans/df5e58dc88429ef0ff202d0b45c21ce572144ba8/koans/iteration.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2013 Google Inc. distributed under the License is distributed on an " AS IS " BASIS , (define-test dolist (let ((numbers '(4 8 15 16 23 42))) (let ((sum 0)) (dolist (number numbers) ( INCF PLACE N ) is equivalent to ( SETF PLACE ( + N PLACE ) ) . (incf sum number)) (assert-eq...
b5601ce7ac036a5c5103b86d723450ba56dcb9ff8453eb3b5eedb22c7a9b288a
brendanhay/amazonka
WorkLink.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . -- | Module : Test . Amazonka . Gen. Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan....
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-worklink/test/Test/Amazonka/Gen/WorkLink.hs
haskell
| Stability : auto-generated Auto-generated: the actual test selection needs to be manually placed into the top-level so that real test data can be incrementally added. This commented snippet is what the entire set should look like: fixtures :: TestTree fixtures = [ testGroup "request" ] ...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Module : Test . Amazonka . Gen. Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay...
73d4e54881c79636ed7fb1bfdcf33ebe7b65e093f565963d67c96a482921be73
racket/gui
cycle.rkt
#lang racket/base (define-syntax-rule (decl id set-id) (begin (provide id set-id) (define id #f) (define (set-id v) (set! id v)))) (decl text% set-text%!) (decl pasteboard% set-pasteboard%!) (decl editor-stream-in% set-editor-stream-in%!) (decl editor-stream-out% set-editor-stream-out%!) (decl editor-sn...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wxme/cycle.rkt
racket
#lang racket/base (define-syntax-rule (decl id set-id) (begin (provide id set-id) (define id #f) (define (set-id v) (set! id v)))) (decl text% set-text%!) (decl pasteboard% set-pasteboard%!) (decl editor-stream-in% set-editor-stream-in%!) (decl editor-stream-out% set-editor-stream-out%!) (decl editor-sn...
59a5e9543ea87812cef014b328c9cc3ceaf370cff38b55f90975c4c179aa207e
adolenc/cl-neovim
logging.lisp
(in-package #:cl-neovim) (defparameter *log-stream* *standard-output*) (cl:defun enable-logging (&key (stream *standard-output*) (level :info)) (setf *log-stream* stream vom:*log-stream* stream *print-pretty* NIL) (vom:config t level)) (cl:defmethod mrpc::send :before (event-loop socket bytes) ...
null
https://raw.githubusercontent.com/adolenc/cl-neovim/7212d305206aaae331a3e2d0d2597b671cec01f4/src/logging.lisp
lisp
(in-package #:cl-neovim) (defparameter *log-stream* *standard-output*) (cl:defun enable-logging (&key (stream *standard-output*) (level :info)) (setf *log-stream* stream vom:*log-stream* stream *print-pretty* NIL) (vom:config t level)) (cl:defmethod mrpc::send :before (event-loop socket bytes) ...
b13182fd2ee3a1a5b836814de8b3e5c2510f378ade2c1ba6b34c05ae66082df3
georepl/georepl
draw_primitives_test.clj
(ns georepl.draw-primitives-test (:require [clojure.test :refer :all] [georepl.shapes :as shapes] [georepl.draw-framework :as fw] [georepl.draw-primitives :as dp])) (deftest exit-test (#'fw/init-renderer :test) (is (= :exit (get (#'dp/exit) :f-renderer)))) (deftest draw-str-...
null
https://raw.githubusercontent.com/georepl/georepl/1502ae04bbc3cab757000714008ccecc4e9e571b/test/georepl/draw_primitives_test.clj
clojure
(ns georepl.draw-primitives-test (:require [clojure.test :refer :all] [georepl.shapes :as shapes] [georepl.draw-framework :as fw] [georepl.draw-primitives :as dp])) (deftest exit-test (#'fw/init-renderer :test) (is (= :exit (get (#'dp/exit) :f-renderer)))) (deftest draw-str-...
d01d8b72f7ad558358800f91e7d766e27d0e4d52198a7fd1e8f27b1911c4a1af
ndmitchell/shake
Main.hs
# LANGUAGE RecordWildCards # module Main(main) where import Data.Tuple.Extra import Control.Monad import Data.Char import Data.List.Extra import qualified Data.Text.Lazy as T import qualified Data.Text.Lazy.IO as T import Text.HTML.TagSoup import Text.HTML.TagSoup.Entity import qualified Data.Map as Map import Text.M...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/website/Main.hs
haskell
------------------------------------------------------------------- READ A PAGE -------------------------------------------------------------------
# LANGUAGE RecordWildCards # module Main(main) where import Data.Tuple.Extra import Control.Monad import Data.Char import Data.List.Extra import qualified Data.Text.Lazy as T import qualified Data.Text.Lazy.IO as T import Text.HTML.TagSoup import Text.HTML.TagSoup.Entity import qualified Data.Map as Map import Text.M...
7dc9e71abe8abf6abdf72c29ec132abd7233ccecec128cd31125fe63121f5e77
mzp/coq-ide-for-ios
tactic_printer.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/parsing/tactic_printer.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i These are the entry points for ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : tactic_printer.mli ...
1ef7e766b73ef223434591251e2a46d035b0b71d60bef3a3fb383a94b8af9815
egonSchiele/chips
Main.hs
# LANGUAGE TemplateHaskell , NoMonomorphismRestriction # # OPTIONS_GHC -fno - full - laziness -fno - cse # import Chips main = do playSound ( soundDir + + " chips01.wav " ) True run "chips challenge" (9 * tileSize, 9 * tileSize) (gameState 1) on stepGame stepGame :: Float -> GameMonad () stepGame i = do gs <- ge...
null
https://raw.githubusercontent.com/egonSchiele/chips/14bb957f9ad42fa05c5edc56e50b90fcde461a77/src/Main.hs
haskell
this function checks if there are any sand blocks on brown buttons. If so, the related traps should be open. trap disables/enables input by itself, dont mess with it
# LANGUAGE TemplateHaskell , NoMonomorphismRestriction # # OPTIONS_GHC -fno - full - laziness -fno - cse # import Chips main = do playSound ( soundDir + + " chips01.wav " ) True run "chips challenge" (9 * tileSize, 9 * tileSize) (gameState 1) on stepGame stepGame :: Float -> GameMonad () stepGame i = do gs <- ge...
f99a61cd44b329e4011b1c155f61da23f3af012e65b72739a4c887ae7da20c37
oakes/Dynadoc
boot.clj
(ns dynadoc.boot {:boot/export-tasks true} (:require [dynadoc.core :refer [start]] [boot.core :as core] [clojure.java.io :as io] [clojure.string :as str])) (core/deftask dynadoc [p port PORT int "The port that Dynadoc runs on" _ host HOST str "The hostname that Dynadoc list...
null
https://raw.githubusercontent.com/oakes/Dynadoc/2e3a4bd90bfeb6648674b0891341a047d210e500/src/dynadoc/boot.clj
clojure
(ns dynadoc.boot {:boot/export-tasks true} (:require [dynadoc.core :refer [start]] [boot.core :as core] [clojure.java.io :as io] [clojure.string :as str])) (core/deftask dynadoc [p port PORT int "The port that Dynadoc runs on" _ host HOST str "The hostname that Dynadoc list...
51f1b50135811147806992c5cd0c23d9fdfc599d624e68054c6ad925cc94899b
pveber/bistro
ncbi_genome.mli
open Bistro open Formats val assembly_summary : tsv file val fetch_assembly : genome_id:string -> assembly_id:string -> fasta gz file
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/lib/bio/ncbi_genome.mli
ocaml
open Bistro open Formats val assembly_summary : tsv file val fetch_assembly : genome_id:string -> assembly_id:string -> fasta gz file
002036ab0384a7395e304e4fe8bc106cf98fe9aea8f220fb1ab21483bddad43c
bos/rwh
Hash.hs
{-- snippet jenkins --} # LANGUAGE BangPatterns , ForeignFunctionInterface # module BloomFilter.Hash ( Hashable(..) , hash , doubleHash ) where import Data.Bits ((.&.), shiftR) import Foreign.Marshal.Array (withArrayLen) import Control.Monad (foldM) import Data.Word (Word32, Word64) import Foreig...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch26/BloomFilter/Hash.hs
haskell
- snippet jenkins - - /snippet jenkins - - snippet Hashable - ^ salt ^ value to hash - /snippet Hashable - value to hash number of bytes salt - /snippet hashIO - - snippet hashStorable - - /snippet hashStorable - snippet - - snippet Storable - - /snippet Storable - - snippet hashList - - /snippet hashList - - sn...
# LANGUAGE BangPatterns , ForeignFunctionInterface # module BloomFilter.Hash ( Hashable(..) , hash , doubleHash ) where import Data.Bits ((.&.), shiftR) import Foreign.Marshal.Array (withArrayLen) import Control.Monad (foldM) import Data.Word (Word32, Word64) import Foreign.C.Types (CSize) import...
4ca4debddb390fcfc2f09b3f955f2a3e9503fe8f4887728974b64d923f789f84
patricoferris/ocaml-search
search.ml
include Search_intf module Tfidf = Tfidf module Private = struct module Witness = Witness end let create_uid (type uid) ~(to_string : uid -> string) ~(cmp : uid -> uid -> int) = let module T = struct type t = uid let to_string = to_string let compare = cmp end in (module T : Uid with type t =...
null
https://raw.githubusercontent.com/patricoferris/ocaml-search/bd1702084eef48e31226985e6e9b333e674ab659/src/search.ml
ocaml
include Search_intf module Tfidf = Tfidf module Private = struct module Witness = Witness end let create_uid (type uid) ~(to_string : uid -> string) ~(cmp : uid -> uid -> int) = let module T = struct type t = uid let to_string = to_string let compare = cmp end in (module T : Uid with type t =...
89095ff815e2cfa45e364d17e2686982108cff6cf7665a508981f9f312cb1e13
bobatkey/authenticated-data-structures
Verifier.ml
type 'a auth = string type 'a authenticated_computation = Kit.proof -> [`Ok of Kit.proof * 'a | `ProofFailure] let return a = fun proof -> `Ok (proof, a) let (>>=) c f = fun prfs -> match c prfs with | `ProofFailure -> `ProofFailure | `Ok (prfs',a) -> f a prfs' module Authenticatable = struc...
null
https://raw.githubusercontent.com/bobatkey/authenticated-data-structures/a271bb85edd724a55be69c447f8103b5522dd787/src/Verifier.ml
ocaml
type 'a auth = string type 'a authenticated_computation = Kit.proof -> [`Ok of Kit.proof * 'a | `ProofFailure] let return a = fun proof -> `Ok (proof, a) let (>>=) c f = fun prfs -> match c prfs with | `ProofFailure -> `ProofFailure | `Ok (prfs',a) -> f a prfs' module Authenticatable = struc...
2b0afe31714c9c623ddc59acf158034bb034905d65d200c0117c06164411da37
nasa/Common-Metadata-Repository
util.clj
(ns cmr.plugin.jar.util (:require [clojure.string :as string] [cmr.exchange.common.util] [taoensso.timbre :as log]) (:import (clojure.lang Symbol))) (defn matches-coll? [coll regex-str] (->> coll (map #(re-matches (re-pattern regex-str) %)) (some (complement nil?)))) (defn matche...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/jar-plugin-lib/src/cmr/plugin/jar/util.clj
clojure
(ns cmr.plugin.jar.util (:require [clojure.string :as string] [cmr.exchange.common.util] [taoensso.timbre :as log]) (:import (clojure.lang Symbol))) (defn matches-coll? [coll regex-str] (->> coll (map #(re-matches (re-pattern regex-str) %)) (some (complement nil?)))) (defn matche...
e21e579ad672b70c24e10169d3ada04fb985dd9651024cf5873adeaf893ea154
degree9/enterprise
target.cljs
(ns degree9.events.target) ;; EventTarget Protocol ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defprotocol IEventTarget (addEventListener [this type listener] [this type listener options] "Registers an event handler of a specific event type on the target.") (removeEventListener [this type...
null
https://raw.githubusercontent.com/degree9/enterprise/65737c347e513d0a0bf94f2d4374935c7270185d/src/degree9/events/target.cljs
clojure
EventTarget Protocol ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns degree9.events.target) (defprotocol IEventTarget (addEventListener [this type listener] [this type listener options] "Registers an event handler of a specific event type on the target.") (removeEventListener [this type listener] [this type listener options] "Removes an event listener from the t...
846398545920c443bcbae42ee576a77162603fca931a9ca13bc67526bf2192e4
ml4tp/tcoq
tactic_debug.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/ltac/tactic_debug.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This module intends to be a beginni...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Pp ...
8fc277c57d8e22a03275f5d9c238c7fcd98fb353e9ee27a8794ddd0b7a82d8c3
kazu-yamamoto/network-run
tcpClient.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import qualified Data.ByteString.Char8 as C import Network.Run.TCP (runTCPClient) import Network.Socket.ByteString (recv, sendAll) main :: IO () main = runTCPClient "127.0.0.1" "3000" $ \s -> do sendAll s "Hello, world!" msg <- recv s 1024 putStr...
null
https://raw.githubusercontent.com/kazu-yamamoto/network-run/938eb6223b981f83b5a42c33959a90de7a034efd/examples/tcpClient.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import qualified Data.ByteString.Char8 as C import Network.Run.TCP (runTCPClient) import Network.Socket.ByteString (recv, sendAll) main :: IO () main = runTCPClient "127.0.0.1" "3000" $ \s -> do sendAll s "Hello, world!" msg <- recv s 1024 putStr "Received: " C.putStrLn msg
a8bff81b17a25539301b44b509229b2162947c87dab7502cc6982e1e9cfafdea
KingoftheHomeless/in-other-words
NonDet.hs
module Control.Effect.NonDet ( -- * Effects NonDet(..) , Cull(..) , Cut(..) , Split(..) , Logic -- * Actions , choose , lose , fromList , cull , cutfail , cut , call , split -- * Interpretations , runNonDet , runNonDet1 , runCullCut , runLogic -- * Threading con...
null
https://raw.githubusercontent.com/KingoftheHomeless/in-other-words/9c864c81beb4fdf71d363b6962db5c90275c57ef/src/Control/Effect/NonDet.hs
haskell
* Effects * Actions * Interpretations * Threading constraints * Carriers | Introduce new branches stemming from the current one using a list of values. # INLINE choose # | Fail the current branch and proceed to the next branch, backtracking to the nearest use of 'choose' or 'fromList' that still has unprocesse...
module Control.Effect.NonDet NonDet(..) , Cull(..) , Cut(..) , Split(..) , Logic , choose , lose , fromList , cull , cutfail , cut , call , split , runNonDet , runNonDet1 , runCullCut , runLogic , NonDetThreads , NonDetC , CullCutC , LogicC ) where import Control....
9b96a1051d6211f5265a97979fe8a5636b3003146dfb5d546a9ad91cab5e7516
iokasimov/pandora
Possible.hs
module Pandora.Paradigm.Structure.Ability.Possible where import Pandora.Paradigm.Primary.Functor.Maybe (Maybe) import Pandora.Paradigm.Inventory.Some.Optics (Lens) class Possible target source where perhaps :: Lens Maybe source target
null
https://raw.githubusercontent.com/iokasimov/pandora/62fda602322d0123809dc690f61624f06c008cb2/Pandora/Paradigm/Structure/Ability/Possible.hs
haskell
module Pandora.Paradigm.Structure.Ability.Possible where import Pandora.Paradigm.Primary.Functor.Maybe (Maybe) import Pandora.Paradigm.Inventory.Some.Optics (Lens) class Possible target source where perhaps :: Lens Maybe source target
95a5480f8055543a3b6718b5c2cd90f5dd35edb02f8e4c6de42441678c266d32
fulcrologic/semantic-ui-wrapper
ui_portal_inner.cljc
(ns com.fulcrologic.semantic-ui.addons.portal.ui-portal-inner (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$PortalInner" :as PortalInner]))) (def ui-portal-inner "An inner component that allows you to render children outside their parent. Props: - child...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/addons/portal/ui_portal_inner.cljc
clojure
(ns com.fulcrologic.semantic-ui.addons.portal.ui-portal-inner (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$PortalInner" :as PortalInner]))) (def ui-portal-inner "An inner component that allows you to render children outside their parent. Props: - child...
014fb23504138e1086b866e7ecf74861fb358f0ce7a87d04f6efb121b27d29d3
EasyCrypt/easycrypt
ecPhlSp.ml
(* -------------------------------------------------------------------- *) open EcUtils open EcTypes open EcModules open EcFol open EcParsetree open EcEnv open EcCoreGoal open EcLowPhlGoal * SP carries four elements , * - bds : a set of existential binders * - assoc : a set of pairs ( x , e ) such that ...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/f87695472e70c313ef2966e20979b1afcc2e543e/src/phl/ecPhlSp.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- ------------------------------------------------------------------ ------------------------------------------------------------------ ---------------------------------------...
open EcUtils open EcTypes open EcModules open EcFol open EcParsetree open EcEnv open EcCoreGoal open EcLowPhlGoal * SP carries four elements , * - bds : a set of existential binders * - assoc : a set of pairs ( x , e ) such that x = e holds * for instance after an assignment x < - e * ...
49810fad63e9f95645acc57a084d595ee92b344f04d3eb8fef2c1c70cac0542a
nathell/smyrna
huffman.clj
(ns smyrna.huffman (:require [smyrna.bitstream :as bitstream] [clojure.data.csv :as csv] [clojure.java.io :as io]) (:import [java.util Arrays] [java.nio IntBuffer] [smyrna.bitstream IBitSink IBitSource])) (defn extendv ([v] (extendv v 64 0)) ([v n x] (let [l (co...
null
https://raw.githubusercontent.com/nathell/smyrna/7ceb648d9ab9dfcf95f3197af27191b15a96d0e7/src/clj/smyrna/huffman.clj
clojure
(ns smyrna.huffman (:require [smyrna.bitstream :as bitstream] [clojure.data.csv :as csv] [clojure.java.io :as io]) (:import [java.util Arrays] [java.nio IntBuffer] [smyrna.bitstream IBitSink IBitSource])) (defn extendv ([v] (extendv v 64 0)) ([v n x] (let [l (co...
d86a55cd9217e6de572b5e6fa650c6528237563d4e8bd1678bb4780dd74ef802
TheLortex/mirage-monorepo
quoter.mli
* Generate expressions in a hygienic way . The idea is that whenever we want to refer to an expression in generated code we first quote it . The result will be an identifier that is guaranteed to refer to the expression it was created from . This way it is impossible for quoted fragments to ref...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/src/quoter.mli
ocaml
* Creates a quoter. A quoter guarantees to give names that do not clash with any other names used before * [quote t e] returns the expression that is safe to use in place of [e] in generated code * [sanitize t e] Returns [e] wrapped with bindings for all quoted expressions in the quoter [t]
* Generate expressions in a hygienic way . The idea is that whenever we want to refer to an expression in generated code we first quote it . The result will be an identifier that is guaranteed to refer to the expression it was created from . This way it is impossible for quoted fragments to ref...
4a0133782076b76203771cb82f92d681ffb08729e6e5d1376682d2582954eae9
darkleaf/publicator
show.clj
(ns publicator.web.responders.post.show (:require [publicator.use-cases.interactors.post.show :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.presenters.post.show :as presenter])) (defmethod responders.base/result->resp ::inter...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/src/publicator/web/responders/post/show.clj
clojure
(ns publicator.web.responders.post.show (:require [publicator.use-cases.interactors.post.show :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.presenters.post.show :as presenter])) (defmethod responders.base/result->resp ::inter...
fc5b456a2e5f40af77b7d1d16ee4690591da106eeedeb4c80d50a5b583b4e0f9
mirage/irmin
store_graph.mli
* Copyright ( c ) 2013 - 2022 < > * * 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...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin-test/store_graph.mli
ocaml
* Copyright ( c ) 2013 - 2022 < > * * 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...
23e4bce7b746f13f663d67530168c1cd301933350279f9130ff59f828db44691
dhleong/wish
header.cljs
(ns wish.sheets.dnd5e.views.header (:require [clojure.string :as str] [spade.core :refer [defattrs]] [wish.style :refer [text-primary-on-dark]] [wish.style.flex :as flex :refer [flex]] [wish.style.media :as media] [wish.util :refer [<sub click>evt]] ...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/sheets/dnd5e/views/header.cljs
clojure
======= Top bar ========================================== ======= public interface ================================
(ns wish.sheets.dnd5e.views.header (:require [clojure.string :as str] [spade.core :refer [defattrs]] [wish.style :refer [text-primary-on-dark]] [wish.style.flex :as flex :refer [flex]] [wish.style.media :as media] [wish.util :refer [<sub click>evt]] ...
8e5f74f0e07b89c2c5449d73423ef4ad94fef7534d63427cb1b44694cffbd9ef
mbj/stratosphere
FileSystemConfigProperty.hs
module Stratosphere.SageMaker.AppImageConfig.FileSystemConfigProperty ( FileSystemConfigProperty(..), mkFileSystemConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratospher...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/AppImageConfig/FileSystemConfigProperty.hs
haskell
module Stratosphere.SageMaker.AppImageConfig.FileSystemConfigProperty ( FileSystemConfigProperty(..), mkFileSystemConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratospher...
7c98cd607246c5774aef16b98e2ea9e1aad4765c027cbcdb8d9b64a89f54d1f7
heyoka/faxe
esp_mongo_query.erl
Date : 23.07.2021 Mongo DB find Ⓒ 2021 heyoka %% -module(esp_mongo_query). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(df_component). %% API -export([ init/3, process/3, options/0, handle_info/2, metrics/0, shutdown/1, check_options/0]). -record(state, { host :: string(), port ...
null
https://raw.githubusercontent.com/heyoka/faxe/aa0414cd7d80e492c21fd3f57dd06d5a9ebb9e8d/apps/faxe/src/components/esp_mongo_query.erl
erlang
API Schema json string we need to trap exists form the result cursors read on incoming data-items do query TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Date : 23.07.2021 Mongo DB find Ⓒ 2021 heyoka -module(esp_mongo_query). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(df_component). -export([ init/3, process/3, options/0, handle_info/2, metrics/0, shutdown/1, check_options/0]). -record(state, { host :: string(), port :: non_neg...
12ea57f425a334c053590db5ef23a93576279ba6c9ecbbbad67b9da25e71e5c0
haskell-cryptography/libsodium-bindings
Signing.hs
# LANGUAGE DerivingStrategies # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- | -- -- Module: Sel.Hashing.Signing -- Description: Public-key signatures with the Ed25519 algorithm Copyright : ( C ) Hécate Moonlight 2022 -- License: BSD-3-Clause Maintainer : The Haskel...
null
https://raw.githubusercontent.com/haskell-cryptography/libsodium-bindings/127113199e7b3f91305cc34b169b06a2622d65da/sel/src/Sel/Signing.hs
haskell
| Module: Sel.Hashing.Signing Description: Public-key signatures with the Ed25519 algorithm License: BSD-3-Clause ** Introduction $introduction ** Key Pair generation ** Message Signing ** Constructing and Deconstructing $introduction Verifiers need to already know and ultimately trust a public key befor...
# LANGUAGE DerivingStrategies # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # Copyright : ( C ) Hécate Moonlight 2022 Maintainer : The Haskell Cryptography Group Portability : GHC only module Sel.Signing PublicKey , SecretKey , SignedMessage , generateKeyPa...
546fea0ffa44fffa94ba37cb388281900fc7ee8ac204cdd7bccfca7f7790a714
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Volume.RU...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Volume/RU/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Volume.RU.Rules ( rules ) where import Data.String import Data.Text (Text) import Prelude import Duckling.Dimensions.Types import Duckling.Types import Duckling.Regex.Types import Duckling.Volume.Helpers import Duckling....
78cf4fa9321bd25bbe21ca6345f12e8128149fad0bf5caf1cf3b77849ce6cfd6
nojb/ppx_ocamllex
lexing_plus.ml
let init_lexbuf lexbuf mem_size = let pos = lexbuf.Lexing.lex_curr_pos in lexbuf.Lexing.lex_mem <- Array.make mem_size (-1); lexbuf.Lexing.lex_start_pos <- pos; lexbuf.Lexing.lex_last_pos <- pos; lexbuf.Lexing.lex_last_action <- -1 let rec next_char lexbuf = if lexbuf.Lexing.lex_curr_pos >= lexbuf.Lexing.l...
null
https://raw.githubusercontent.com/nojb/ppx_ocamllex/f802000c4ff984d3158a217c480294d85b3452db/lib/lexing_plus.ml
ocaml
let init_lexbuf lexbuf mem_size = let pos = lexbuf.Lexing.lex_curr_pos in lexbuf.Lexing.lex_mem <- Array.make mem_size (-1); lexbuf.Lexing.lex_start_pos <- pos; lexbuf.Lexing.lex_last_pos <- pos; lexbuf.Lexing.lex_last_action <- -1 let rec next_char lexbuf = if lexbuf.Lexing.lex_curr_pos >= lexbuf.Lexing.l...
8cc21fcc1e6c2a73e76832aaa29ad44965cc7d8345bbcc48d4ccf3c1ce3032ca
ocurrent/ocurrent
current_git.mli
(** Integration with Git. *) module Commit_id : sig include Set.OrderedType val v : repo:string -> gref:string -> hash:string -> t (** [v ~repo ~gref ~hash] identifies a commit that can be fetched from [repo] using [gref] as the reference name and has hash [hash]. *) val repo : t -> string (** [repo ...
null
https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/plugins/git/current_git.mli
ocaml
* Integration with Git. * [v ~repo ~gref ~hash] identifies a commit that can be fetched from [repo] using [gref] as the reference name and has hash [hash]. * [repo t] is the Git URI of the repository. * Display a Git command a user could run to get this commit. * [pp_short] shows just the start of the hash. ...
module Commit_id : sig include Set.OrderedType val v : repo:string -> gref:string -> hash:string -> t val repo : t -> string val gref : t -> string val hash : t -> string [ hash t ] is the commit hash . val equal : t -> t -> bool val pp : t Fmt.t val pp_user_clone : t Fmt.t val digest : t -...
2e59da5b156a460ebda3f720a7ba0d27df8b674dd3a13aed27919e6ba68523a1
tuura/plato
Main.hs
module Main (main) where import Data.Char import qualified Data.Text as Text import System.Directory import Control.Exception import System.Environment import System.IO.Error import Tuura.Concept import Tuura.Concept.Simulation import qualified Language.Haskell.Interpreter as GHC import qualified Language.Haskell.In...
null
https://raw.githubusercontent.com/tuura/plato/4b528f73ad677cf634dde7644a0ec5c759114baf/simulate/Main.hs
haskell
Exported names in the user's haskell module (file) Helper functions because we deal with String, not Text. Load user's module to gather info. Use the circuit's type to gather how many signals it takes. Load the generated module too. Fetch our signals. Obtain the circuit in terms of any signal (takes them a...
module Main (main) where import Data.Char import qualified Data.Text as Text import System.Directory import Control.Exception import System.Environment import System.IO.Error import Tuura.Concept import Tuura.Concept.Simulation import qualified Language.Haskell.Interpreter as GHC import qualified Language.Haskell.In...
efa3703feceec51a0e2877f71f7982169f7ad31931011bc375721c828e1fb7af
cxphoe/SICP-solutions
4.11.rkt
; environment operations (define (enclosing-environment env) (cdr env)) (define (first-frame env) (car env)) (define the-empty-environment '()) (define (make-frame var-val-pairs) (cons '*table* (var-val-pairs))) (define (frame-pairs frame) (cdr frame)) (define (first-pair frame) (car (frame-pairs frame))) (defin...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%204-Metalinguistic%20Abstraction/1.The%20Meta-cycle%20Evaluator/4.11.rkt
racket
environment operations
(define (enclosing-environment env) (cdr env)) (define (first-frame env) (car env)) (define the-empty-environment '()) (define (make-frame var-val-pairs) (cons '*table* (var-val-pairs))) (define (frame-pairs frame) (cdr frame)) (define (first-pair frame) (car (frame-pairs frame))) (define (rest-pairs frame) (cdr...
a1aebab3f9aa6026cc2c2ca98a9cad85c408a96574ac50bcd96f08583f55e790
metareflection/poof
info.rkt
#lang info ;; --------------------------------------------------------- ;; Package Info (define collection "poof") (define deps '("base" "scribble-lib" "rackunit-lib" "scribble-abbrevs" "scribble-minted" "scribble-math")) ;; --------------------------------------------------------- ;; Collection Info ...
null
https://raw.githubusercontent.com/metareflection/poof/1a03c5e31c16dd971d698c8457ff6e4a8748d8f1/info.rkt
racket
--------------------------------------------------------- Package Info --------------------------------------------------------- Collection Info
#lang info (define collection "poof") (define deps '("base" "scribble-lib" "rackunit-lib" "scribble-abbrevs" "scribble-minted" "scribble-math")) (define compile-omit-paths 'all) (define compile-include-files '("main.rkt" "poof.scrbl" "util/examples-module.rkt" "util/eval-check.rkt"))
cbfaa64f54a7e1cabf954c56b50cd52c46542600cd0c970038abd8a3ae6ba4b7
seandepagnier/cruisingplot
task.scm
Copyright ( C ) 2011 < > ;; This Program is free software ; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . ; define our own scheduler so w...
null
https://raw.githubusercontent.com/seandepagnier/cruisingplot/d3d83e7372e2c5ce1a8e8071286e30c2028088cf/task.scm
scheme
you can redistribute it and/or modify it under the terms of the GNU General Public either define our own scheduler so we can process concurrent events, but get reliable timing, implemented using call/cc list of tasks task currently running continuation to exit current task sleep for the task period if seconds...
Copyright ( C ) 2011 < > version 3 of the License , or ( at your option ) any later version . (declare (unit task)) (declare (uses srfi-1 srfi-18 utilities)) (define tasks '()) (define task-info first) (define task-period second) (define task-sleep-until third) (define task-thunk fourth) (define task-continu...
f6a3a4461808f34ee86d547edc133789bb2fbc2065a3ab432a6d8347d46705f0
typelead/etlas
DescribeUnitId.hs
{-# LANGUAGE Rank2Types #-} # LANGUAGE FlexibleContexts # module Distribution.Backpack.DescribeUnitId where import Prelude () import Distribution.Compat.Prelude import Distribution.Types.PackageId import Distribution.Types.ComponentName import Distribution.Compat.Stack import Distribution.Verbosity import Distributio...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Backpack/DescribeUnitId.hs
haskell
# LANGUAGE Rank2Types # Unit identifiers have a well defined, machine-readable format, but this format isn't very user-friendly for users. This module defines some functions for solving common rendering problems one has for displaying these. - Users don't want to see the raw component identifier, which us...
# LANGUAGE FlexibleContexts # module Distribution.Backpack.DescribeUnitId where import Prelude () import Distribution.Compat.Prelude import Distribution.Types.PackageId import Distribution.Types.ComponentName import Distribution.Compat.Stack import Distribution.Verbosity import Distribution.ModuleName import Distribu...
12d02cb7c0f02252bf7b206f5137e231575e6bb7c14382c926d3ec1d5e3e5597
CicadaBank/bips
deploy.clj
;; based on: -lib-deployer/blob/master/deploy-lein.bb updated for clj - tools : g - krisztian (def release (edn/read-string (slurp "release.edn"))) (println release) (def project (format "%s/%s" (:group-id release) (:artifact-id release))) (println "Project: " project) (def version (:version release)) (pr...
null
https://raw.githubusercontent.com/CicadaBank/bips/0d68f8d441cf6deb18ff12bfc9fe41ce02a7793b/generators/deploy.clj
clojure
based on: -lib-deployer/blob/master/deploy-lein.bb
updated for clj - tools : g - krisztian (def release (edn/read-string (slurp "release.edn"))) (println release) (def project (format "%s/%s" (:group-id release) (:artifact-id release))) (println "Project: " project) (def version (:version release)) (println "Version: " version) (defn- can-deploy? [] (l...
626d4965b5d34418187eca0e35e8c0f6598a1f6f6bdab4d1947e0be0a26fd46e
Z572/gwwm
monitor.scm
(define-module (gwwm monitor) #:autoload (gwwm) (gwwm-output-layout) #:use-module (srfi srfi-1) #:use-module (ice-9 format) #:use-module (ice-9 q) #:use-module (oop goops) #:use-module (util572 box) #:use-module (wayland list) #:use-module (wlroots types) #:use-module (wlroots types output) #:use-mo...
null
https://raw.githubusercontent.com/Z572/gwwm/6267afa8efcd4174d7ae12cc3fe3a6d3842bb628/gwwm/monitor.scm
scheme
dir ^ (WLR_DIRECTION_LEFT|WLR_DIRECTION_RIGHT)
(define-module (gwwm monitor) #:autoload (gwwm) (gwwm-output-layout) #:use-module (srfi srfi-1) #:use-module (ice-9 format) #:use-module (ice-9 q) #:use-module (oop goops) #:use-module (util572 box) #:use-module (wayland list) #:use-module (wlroots types) #:use-module (wlroots types output) #:use-mo...
1e251f0169acc92e40930052c3e9ad8e0b0a50632061d90dea538c74a630da22
McCLIM/McCLIM
text-editor-pane.lisp
(cl:defpackage #:mcclim.text-editor-pane-test (:use #:cl #:clim) (:shadowing-import-from #:clim #:interactive-stream-p)) (cl:in-package #:mcclim.text-editor-pane-test) (defclass text-editor-with-syntax-pane (text-editor-pane) ()) (defmethod initialize-instance :after ((instance text-editor-with-synta...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Tests/text-editor-pane.lisp
lisp
(cl:defpackage #:mcclim.text-editor-pane-test (:use #:cl #:clim) (:shadowing-import-from #:clim #:interactive-stream-p)) (cl:in-package #:mcclim.text-editor-pane-test) (defclass text-editor-with-syntax-pane (text-editor-pane) ()) (defmethod initialize-instance :after ((instance text-editor-with-synta...
2388165cc9334f9b7af76a890be53b4ce7f67696cb94b988c95dccc34152ace7
IG-Group/Havoc
core.clj
(ns fake.core (:require [compojure.core :refer [defroutes ANY GET]] [ring.adapter.jetty :as jetty] [ig.havoc.evil-http-server-mw :as evil] [clojure.tools.nrepl.server :refer (start-server)] [franzy.serialization.serializers :as serializers] [franzy.clients.producer.client :as client] [fran...
null
https://raw.githubusercontent.com/IG-Group/Havoc/24c9d8409b273d791370593d131525f04ba2c9a1/example/fake/src/fake/core.clj
clojure
(ns fake.core (:require [compojure.core :refer [defroutes ANY GET]] [ring.adapter.jetty :as jetty] [ig.havoc.evil-http-server-mw :as evil] [clojure.tools.nrepl.server :refer (start-server)] [franzy.serialization.serializers :as serializers] [franzy.clients.producer.client :as client] [fran...
c3fe86e1d347c93fa47f70ce086b164c4af144a9cf897beb5bc098781e1e1055
lopec/LoPEC
taskFetcher.erl
%%%------------------------------------------------------------------- @author < > @author < > ( C ) 2009 , Bjorn Dahlman & %%% @doc %%% The taskFetcher is responsible for fetching and adding tasks. %%% @end Created : 29 Sep 2009 by < > %%%------------------------------------------------------------...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/slave/src/taskFetcher.erl
erlang
------------------------------------------------------------------- @doc The taskFetcher is responsible for fetching and adding tasks. @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =========...
@author < > @author < > ( C ) 2009 , Bjorn Dahlman & Created : 29 Sep 2009 by < > -module(taskFetcher). -behaviour(gen_server). -export([start_link/0, task_done/1, error/1, new_task/5]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2...
46db405fbce84ce36363908c632f945e3fdf5385f4647858b81dccce30603c8a
taruen/apertiumpp
get-bible.rkt
#lang racket A script to download Bible translations from bible.com (require net/url html-parsing sxml/sxpath) (module+ test (require rackunit)) (define ROOT "") (define LANGS-PAGE (string-append ROOT "/languages")) (define REQUEST-HEADERS '("User-agent: Mozilla/5.0 (compatible; Taruenbot/0.1...
null
https://raw.githubusercontent.com/taruen/apertiumpp/73eeacc19015170e54c77824e015224f6456cf3e/apertiumpp/cookbook/get-bible.rkt
racket
second(s) between requests given LANGS-PAGE, return language codes for which String -> (listof Verse) given a 'versions' page url, e.g. -kjv-king-james-version return a list of verses from that translation given a 'versions' page url, e.g. -kjv-king-james-version given a <span class="verse"> element, retur...
#lang racket A script to download Bible translations from bible.com (require net/url html-parsing sxml/sxpath) (module+ test (require rackunit)) (define ROOT "") (define LANGS-PAGE (string-append ROOT "/languages")) (define REQUEST-HEADERS '("User-agent: Mozilla/5.0 (compatible; Taruenbot/0.1...