_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
a8f66d9a3889d67db70ebd03e3031f9352f98fa55c7715b32d651d42479466c2
sultanov-team/secret-keeper
keeper_test.cljc
(ns secret.keeper-test (:refer-clojure :exclude [read-string]) (:require #?@(:clj [[clojure.edn :refer [read-string]] [clojure.test :refer [deftest testing is]]] :cljs [[cljs.reader :refer [read-string]] [cljs.test :refer [deftest testing is]]]) [secret.keeper :as s...
null
https://raw.githubusercontent.com/sultanov-team/secret-keeper/429a63b712ea1fc824c57a637a45cae082883dea/src/test/clojure/secret/keeper_test.cljc
clojure
(ns secret.keeper-test (:refer-clojure :exclude [read-string]) (:require #?@(:clj [[clojure.edn :refer [read-string]] [clojure.test :refer [deftest testing is]]] :cljs [[cljs.reader :refer [read-string]] [cljs.test :refer [deftest testing is]]]) [secret.keeper :as s...
ef923c8d9db4b737650a519bfc931280ec59cb014c162086526a866f839aa61c
igrishaev/domic
var_manager.clj
(ns domic.var-manager (:refer-clojure :exclude [bound?]) (:require [domic.error :as e])) ;; todo ;; extend print (def ^:dynamic *read-only* nil) (defmacro with-read-only [& body] `(binding [*read-only* true] ~@body)) (defprotocol IVarManager (bind [this var val]) (bound? [this var]) (get...
null
https://raw.githubusercontent.com/igrishaev/domic/92fef292eb58ab485332ea54a039dbd2e1cf6d06/src/domic/var_manager.clj
clojure
todo extend print
(ns domic.var-manager (:refer-clojure :exclude [bound?]) (:require [domic.error :as e])) (def ^:dynamic *read-only* nil) (defmacro with-read-only [& body] `(binding [*read-only* true] ~@body)) (defprotocol IVarManager (bind [this var val]) (bound? [this var]) (get-val [this var])) (def...
e143a47203161ced51f29eb61736e844d0c433c54f673ee17df9f7f08838c992
tyrchen/racket-book
my-2048.rkt
#lang racket (require "shared/utility.rkt" (rename-in 2htdp/image [rotate rotate-1]) 2htdp/universe) (define PIECE_DIST '(2 2 2 2 2 2 2 2 2 4)) (define (make-board n) (make-list n (make-list n 0))) (define (init-board n) (put-random-piece (put-random-piece (make-board n)))) (define (get-a-pie...
null
https://raw.githubusercontent.com/tyrchen/racket-book/2406549e0636685d83b4b1ceb56fcad271ac77b0/code/my-2048.rkt
racket
game
#lang racket (require "shared/utility.rkt" (rename-in 2htdp/image [rotate rotate-1]) 2htdp/universe) (define PIECE_DIST '(2 2 2 2 2 2 2 2 2 4)) (define (make-board n) (make-list n (make-list n 0))) (define (init-board n) (put-random-piece (put-random-piece (make-board n)))) (define (get-a-pie...
b63878b2a23a1385c83ddd800b681632ac59347863a8b0cdf929160f617975cc
hdbc/hdbc
HDBC.hs
| Module : Database . HDBC Copyright : Copyright ( C ) 2005 - 2011 License : BSD3 Maintainer : < > Stability : provisional Portability : portable Welcome to HDBC , the Haskell Database Connectivity library . Written by , jgoerzen\@complete.org Module : Dat...
null
https://raw.githubusercontent.com/hdbc/hdbc/242e806ac32af2e7913aaa719334a37be16462a1/Database/HDBC.hs
haskell
* Introduction $introduction ** Features $features ** Available Drivers $drivers * Typing of transfer data * Database Connections ** Wrapped Connections ** Preparing Queries ** Transaction Handling $transactions ** Connection Inquiries * Statements ** Execution ** Fetching Results ** Statement Inquires...
| Module : Database . HDBC Copyright : Copyright ( C ) 2005 - 2011 License : BSD3 Maintainer : < > Stability : provisional Portability : portable Welcome to HDBC , the Haskell Database Connectivity library . Written by , jgoerzen\@complete.org Module : Dat...
ed36f29d359c4fc18b45831550e554abcf079636d351bc260c15022c471aeb27
c-cube/trustee
render.mli
(** Render to HTML *) open Trustee_opentheory.Common_ module Config : sig type t = { open_namespaces: string list; (** Do not print prefixes for these namespaces *) open_all_namespaces: bool; (** Always strip prefix *) } val make : ?open_namespaces:string list -> ?open_all_namespaces:...
null
https://raw.githubusercontent.com/c-cube/trustee/397841b8ff813255f5643fef43a7187e81db21f5/src/opentheory/tool/render.mli
ocaml
* Render to HTML * Do not print prefixes for these namespaces * Always strip prefix
open Trustee_opentheory.Common_ module Config : sig type t = { open_namespaces: string list; open_all_namespaces: bool; } val make : ?open_namespaces:string list -> ?open_all_namespaces:bool -> unit -> t end val expr_to_html : ?config:Config.t -> K.Expr.t -> Html.elt val proof_to_html :...
3ac2c68ca32309cdc7efe2d2c36ba6a3b6f62bda66ec7691cf308c24a73c1700
m4b/bin2json
MachLoadCommandMacro.ml
open MachLoadCommandTypes open Binary let lc_count = 43 let get_load_command binary offset :load_command = let cmd,o = Binary.u32o binary offset in let cmdsize = Binary.u32 binary o in {cmd;cmdsize;} let get_section binary offset :section = let sectname,o = Binary.stringo binary offset ~num_bytes:16 in le...
null
https://raw.githubusercontent.com/m4b/bin2json/9aeeef017a4446cfc134e593aca76e8ac573b7f7/lib/mach/MachLoadCommandMacro.ml
ocaml
open MachLoadCommandTypes open Binary let lc_count = 43 let get_load_command binary offset :load_command = let cmd,o = Binary.u32o binary offset in let cmdsize = Binary.u32 binary o in {cmd;cmdsize;} let get_section binary offset :section = let sectname,o = Binary.stringo binary offset ~num_bytes:16 in le...
22db1b16947556ddb846121c64e84339f28c7ef09b8fa89b8f3d00b32ae5c2ba
hopv/MoCHi
pva.mli
(** Predicate variable applications *) type t * { 6 Printers } val pr : Format.formatter -> t -> unit val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Idnt.t -> TypTerm.t list -> t val of_tenv : Idnt.t -> TypEnv.t -> t val of_pvar : PredVar.t -> t val of_formula : Formula.t -> t...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/pva.mli
ocaml
* Predicate variable applications * @require [f t] has the type [ty] * [pat_match pv pva] matches pva with pv
type t * { 6 Printers } val pr : Format.formatter -> t -> unit val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Idnt.t -> TypTerm.t list -> t val of_tenv : Idnt.t -> TypEnv.t -> t val of_pvar : PredVar.t -> t val of_formula : Formula.t -> t * { 6 Auxiliary destructors } val to...
a0c696f6809056abadbfa6aff04b78edd06974f2dec61e0b82cccc59a4f5860f
ha-mo-we/Racer
ersatz-racer-server.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are p...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/ersatz-racer-server.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of c...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
3bb146aed099fa04e7235d3b7416fbd85c54c56b1aaeeb4c7b39cd7806603a6e
antono/guix-debian
libidn.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/libidn.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages libidn) #:use-module (gnu packages) #:use-module (guix licenses) #:use-module (...
c2992d042b3b8d54806d4e84e92c860ba20e06eaa201c3fa2e26a97280fc6aa2
JHU-PL-Lab/jaylang
ddse_result.ml
open Core open Dj_common type t = { v : Lookup_key.t; decisions : Id.t Map.M(Rstack).t; cond_decisions : bool Map.M(Lookup_key).t; phis : Phi_set.t; top_stack : Concrete_stack.t option; } let equal t1 t2 = let ans = Lookup_key.compare t1.v t2.v = 0 && Map.equal Id.equal t1.decisions t2.decisions ...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/dbmc/ddse-rule/ddse_result.ml
ocaml
open Core open Dj_common type t = { v : Lookup_key.t; decisions : Id.t Map.M(Rstack).t; cond_decisions : bool Map.M(Lookup_key).t; phis : Phi_set.t; top_stack : Concrete_stack.t option; } let equal t1 t2 = let ans = Lookup_key.compare t1.v t2.v = 0 && Map.equal Id.equal t1.decisions t2.decisions ...
c94e3a558f618fc24b88ad2a356b74259b23a7363f149cf201031393e9df5b29
tommaisey/aeon
free-verb.help.scm
;; (free-verb in mix room damp) ;; (free-verb2 in1 in2 mix room damp) ;; A simple reverb. ;; in, in1, in2 - input signal mix - dry / wet balance ( 0,1 ) room - room size ( 0,1 ) damp - reverb high frequency damping ( 0,1 ) (let* ((i (impulse ar 1 0)) (c (lf-cub ar 1200 0)) ...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/delays/free-verb.help.scm
scheme
(free-verb in mix room damp) (free-verb2 in1 in2 mix room damp) A simple reverb. in, in1, in2 - input signal
mix - dry / wet balance ( 0,1 ) room - room size ( 0,1 ) damp - reverb high frequency damping ( 0,1 ) (let* ((i (impulse ar 1 0)) (c (lf-cub ar 1200 0)) (s (mul3 (decay i 0.25) c 0.1)) (x (mouse-x kr 0 1 0 0.1)) (y (mouse-y kr 0 1 0 0.1)) (r (free-ver...
bd02f207ab704e5d5f6ec2d57f4950c989a08f825b573cc94e2c2d0c7fcd615d
mirkov/cl-grammar-of-graphics
cl-grammar-of-graphics.lisp
;;;; cl-grammar-of-graphics.lisp (in-package #:cl-grammar-of-graphics) ;;; "cl-grammar-of-graphics" goes here. Hacks and glory await!
null
https://raw.githubusercontent.com/mirkov/cl-grammar-of-graphics/5499ae4f3e1d3fd248dc73f7c4f8cbf535acbe35/obsolete/cl-grammar-of-graphics.lisp
lisp
cl-grammar-of-graphics.lisp "cl-grammar-of-graphics" goes here. Hacks and glory await!
(in-package #:cl-grammar-of-graphics)
ab634d86885e267e52b59f02eb7930f96cede639dce038290010cd31616f2a11
conormcd/clj-honeycomb
map_test.clj
(ns clj-honeycomb.util.map-test (:require [clojure.spec.test.alpha :refer (check with-instrument-disabled)] [clojure.test :refer (are deftest is testing)] [clj-honeycomb.fixtures :refer (use-fixtures)] [clj-honeycomb.util.map :as util-map])) (use-fixtures) (deftest stringify-key...
null
https://raw.githubusercontent.com/conormcd/clj-honeycomb/f309bf3b85af2239f4172189fcd934076306240b/test/clj_honeycomb/util/map_test.clj
clojure
(ns clj-honeycomb.util.map-test (:require [clojure.spec.test.alpha :refer (check with-instrument-disabled)] [clojure.test :refer (are deftest is testing)] [clj-honeycomb.fixtures :refer (use-fixtures)] [clj-honeycomb.util.map :as util-map])) (use-fixtures) (deftest stringify-key...
d5cdd6fa537e70874dbac47566656a5ce7c52a60bb49579e052eb52de04118b3
orb/lein-metajar
project.clj
(defproject lein-metajar "0.1.1-SNAPSHOT" :description "Create a METAJAR" :url "-metajar" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true)
null
https://raw.githubusercontent.com/orb/lein-metajar/1b8caf1edc425f76d3b5574a8e519dfcde0895a0/project.clj
clojure
(defproject lein-metajar "0.1.1-SNAPSHOT" :description "Create a METAJAR" :url "-metajar" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true)
aa957c91b33e138e7abdc655240845cb668a98ad71082c506a567049728b0bd6
ndmitchell/catch
HeadCons.hs
module HeadCons where main x = head (box x) box x = [x]
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/examples/Example/HeadCons.hs
haskell
module HeadCons where main x = head (box x) box x = [x]
aa4ee9ed734dc68bec7a7b59c70b10a1a0786ff4217c9bb505031ee1a32b7573
awakesecurity/spectacle
Internal.hs
# LANGUAGE TypeFamilies # -- | Module : Language . Spectacle . Syntax . NonDet . Internal Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE -- -- Stability : stable Portability : non - portable ( GHC extensions ) -- -- TODO: docs -- -- @since 1....
null
https://raw.githubusercontent.com/awakesecurity/spectacle/430680c28b26dabb50f466948180eb59ba72fc8e/src/Language/Spectacle/Syntax/NonDet/Internal.hs
haskell
| Stability : stable TODO: docs @since 1.0.0 ---------------------------------------------------------------------------------------------------------------------
# LANGUAGE TypeFamilies # Module : Language . Spectacle . Syntax . NonDet . Internal Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE Portability : non - portable ( GHC extensions ) module Language.Spectacle.Syntax.NonDet.Internal ( NonDet (Empt...
4e2e50edbeebe0082a18d7eb4a85bdb3294f5b84d79fcba850204aac6b0345bc
ajhc/ajhc
tc105.hs
{-# OPTIONS -fglasgow-exts #-} module ShouldCompile where import Control.Monad.ST import Data.STRef -- (Modified now that we don't have result type signatures) f:: forall s. ST s Int f = do v <- newSTRef 5 let g :: ST s Int -- ^ should be in scope g = readSTRef v g
null
https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/regress/tests/1_typecheck/2_pass/ghc/tc105.hs
haskell
# OPTIONS -fglasgow-exts # (Modified now that we don't have result type signatures) ^ should be in scope
module ShouldCompile where import Control.Monad.ST import Data.STRef f:: forall s. ST s Int f = do v <- newSTRef 5 let g :: ST s Int g = readSTRef v g
90013ccd32c9e2f6e73f920e178e645e79470f121813aaa8039c93601e34c345
ocaml-multicore/ocaml-tsan
float.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/stdlib/float.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the external neg : float -> float = "%negfloat" e...
0e8055fdebfde764a09a7a72de7730c384da68a06f5ab0525cc9b24fbdfd3722
ktakashi/sagittarius-scheme
util.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; text/xml/dom/util.scm - DOM util ;;; Copyright ( c ) 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/f3fe8ea86ec4f760af45d9ac055163b9146677f7/sitelib/text/xml/dom/util.scm
scheme
coding : utf-8 ; -*- text/xml/dom/util.scm - DOM util Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
Copyright ( c ) 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!nounbound (library (text xml dom util) (expor...
1b30c2faae3cca53f7d147467a8ba13afd78795044e40bebd253a4c6e977714f
zotonic/cowmachine
controller.erl
-module(controller). -export([ execute/2, process/4, content_types_provided/1 ]). %% Cowmachine API Middleware export , place this module in the request as controller . execute(Req, Env) -> {ok, Req, Env#{ cowmachine_controller => ?MODULE }}. % Controller export process(<<"GET">>, _Accep...
null
https://raw.githubusercontent.com/zotonic/cowmachine/6252b8cab6daa80f60dd40a5c8b0f6217d34b20d/examples/eventsource/src/controller.erl
erlang
Cowmachine API Controller export io:format("StreamContext=~p~n",[StreamContext]), internal functions
-module(controller). -export([ execute/2, process/4, content_types_provided/1 ]). Middleware export , place this module in the request as controller . execute(Req, Env) -> {ok, Req, Env#{ cowmachine_controller => ?MODULE }}. process(<<"GET">>, _AcceptedCT, _ProvidedCT, Context) -> Path =...
909cd205036dde911c8f3a8ccd7eb4f966ea11e46f57604a2e178664cbf59aff
frenetic-lang/netcore-1.0
OpenFlow.hs
module Frenetic.Switches.OpenFlow ( OpenFlow (..) , toPacket , actnTranslate , ptrnMatchPkt , physicalPortOfPseudoPort , predicateOfMatch ) where import Frenetic.Common import Data.Ord import qualified Data.List as List import qualified Data.Map as Map import qualified Frenetic.NetCore.Types as NetCore i...
null
https://raw.githubusercontent.com/frenetic-lang/netcore-1.0/976b08b740027e8ed19f2d55b1e77f663bee6f02/src/Frenetic/Switches/OpenFlow.hs
haskell
Not all multisets of actions can be translated to lists of OpenFlow actions. For example, consider the set "send to controller." TODO: implement optimizations to handle special cases on the switch. the controller can handle a packet payload, then the controller should be modified to resend packets ...
module Frenetic.Switches.OpenFlow ( OpenFlow (..) , toPacket , actnTranslate , ptrnMatchPkt , physicalPortOfPseudoPort , predicateOfMatch ) where import Frenetic.Common import Data.Ord import qualified Data.List as List import qualified Data.Map as Map import qualified Frenetic.NetCore.Types as NetCore i...
2e0a3de66fe9416f99613569501e7d7c8447b3bb8e40762f1198ae9099588017
the-dr-lazy/cascade
NonEmpty.hs
| Module : Cascade . Data . Text . NonEmpty Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/src/Cascade/Data/Text/NonEmpty.hs
haskell
# LANGUAGE DeriveDataTypeable # # COMPLETE NonEmpty #
| Module : Cascade . Data . Text . NonEmpty Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ...
91cff6598d1b9f0d04209429aa29fd844634c3498960aa64451c61b78398514e
webnf/webnf
filestore.clj
(ns ^{:doc "Blob store with content hashing. We store files by their content hashes. Storage is uncompressed to make zero-copy possible."} webnf.filestore (:import (java.io File InputStream Reader OutputStream PrintWriter OutputStreamWriter) (java.security MessageDigest DigestInputStream DigestOutputStr...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/filestore/src/webnf/filestore.clj
clojure
# Main API ## Writing ## Reading
(ns ^{:doc "Blob store with content hashing. We store files by their content hashes. Storage is uncompressed to make zero-copy possible."} webnf.filestore (:import (java.io File InputStream Reader OutputStream PrintWriter OutputStreamWriter) (java.security MessageDigest DigestInputStream DigestOutputStr...
49f7be8158cc5dc7c328a83433a541c143053b70e21ceb5c8d4477094cbe97d4
rescript-lang/rescript-compiler
bsb_db_decode.ml
Copyright ( C ) 2019 - Present , Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any l...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/bae82e1ddd265e5c8886ce1a6527e031d95416ed/jscomp/bsb_helper/bsb_db_decode.ml
ocaml
string is whole content Char.code '0' TODO: shall we check the consistency of digest which is Bsb_db.case
Copyright ( C ) 2019 - Present , Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any l...
31b83678bdd6d79bdefe851506a0f0e7e47f87a311bc8b25670d6e916810a8c2
ndmitchell/catch
General.hs
module General.General(module General.General, trace) where import Data.List import Control.Monad import System.Environment import System.IO import Debug.Trace import Paths_catch type Result a = (Bool,a) success = (,) True failure = (,) False snub :: Ord a => [a] -> [a] snub = map head . group . sort traceStr...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/catch_1/General/General.hs
haskell
module General.General(module General.General, trace) where import Data.List import Control.Monad import System.Environment import System.IO import Debug.Trace import Paths_catch type Result a = (Bool,a) success = (,) True failure = (,) False snub :: Ord a => [a] -> [a] snub = map head . group . sort traceStr...
f254819b1731445a56e558b15576b71dc42d65d53068aa9bb0cb2b95a7809c88
herd/herdtools7
X86_64Compile_gen.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/36806ac2b4139957a14fd90512727f2d51a1a096/gen/X86_64Compile_gen.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
99e280daf837624a42c038c98f5bab974e8b49c79888d3beddf389405f777ccd
johnwhitington/ocamli
example03.ml
let rec last l = match l with [x] -> x | _::t -> last t
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%207/example03.ml
ocaml
let rec last l = match l with [x] -> x | _::t -> last t
2f71b9d9a940fb4e56c2de63a0785705e2c8856175b9275cc6e919533737c389
fulcrologic/fulcro-native
components.cljc
(ns com.fulcrologic.fulcro-native.alpha.components (:require [com.fulcrologic.fulcro-native.events :as evt] [com.fulcrologic.fulcro.components :as comp :refer [force-children defsc]] #?@(:cljs [[goog.object :as gobj] ["react-native" :as react-native-package] ["react" :as reac...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-native/c42280f98ded16343e7fa23f07084b00e26e6a5f/src/main/com/fulcrologic/fulcro_native/alpha/components.cljc
clojure
copy from natal-shell apis
(ns com.fulcrologic.fulcro-native.alpha.components (:require [com.fulcrologic.fulcro-native.events :as evt] [com.fulcrologic.fulcro.components :as comp :refer [force-children defsc]] #?@(:cljs [[goog.object :as gobj] ["react-native" :as react-native-package] ["react" :as reac...
ac86cafde5c887caddb12a69403fee3c559e95d27a324f44995a792fe1e7d980
coq/coq
ppvernac.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/e64a92e6c5b74ca5631f2bbddcad1172f7325446/vernac/ppvernac.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
421d569136ecda4ff7125d6be55dc5b10e491b9c7f97a73a94c74d52f632fdcf
RBornat/jape
dialogue.mli
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
null
https://raw.githubusercontent.com/RBornat/jape/afe9f207e89e965636b43ef8fad38fd1f69737ae/distrib/camlengine/dialogue.mli
ocaml
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
ba5eb4b988c534957f9a34965fe635d9a3af65e5a6cd4c53f3499fde7993e989
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SubscriptionsResourcePendingUpdate.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema SubscriptionsResourcePendingUpdate module StripeAPI.Types.SubscriptionsReso...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SubscriptionsResourcePendingUpdate.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema SubscriptionsResourcePendingUpdate # SOURCE # | Defines the object schema located at @components.schemas.subscriptions_resource_pending_update@ in the specification. Pending Updates store the changes pending from a...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.SubscriptionsResourcePendingUpdate where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal...
0cf24d704824e4d9635eb981afc78bb5f78a3fba9f0ecc53700001192381e917
AccelerateHS/accelerate-llvm
Object.hs
-- | -- Module : Data.Array.Accelerate.LLVM.PTX.Link.Object Copyright : [ 2017 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- module Data.Array.Accelerate.LLVM.PTX.Link.Object where import D...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/1da65b5951b1410b5e4e1a646fbe1b17bee780a8/accelerate-llvm-ptx/src/Data/Array/Accelerate/LLVM/PTX/Link/Object.hs
haskell
| Module : Data.Array.Accelerate.LLVM.PTX.Link.Object License : BSD3 Stability : experimental | The kernel function table is a list of the kernels implemented by a given CUDA device module # UNPACK # # UNPACK # # UNPACK # # UNPACK # | Object code consists of executable code in the device address sp...
Copyright : [ 2017 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.LLVM.PTX.Link.Object where import Data.Array.Accelerate.Lifetime import Data.ByteString.Short.Char8 ( ShortByteString, unpack...
7c967234b34837489fe3d12f15add2e876d8d1560b27f970314166c8874715a0
typelead/etlas
PrettyUtils.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.PrettyUtils Copyright : ( c ) The University of Glasgow 2004 -- License : BSD3 -- -- Maintainer : -- Portability : portable -- Utilities for pretty printing . {-# OPTIONS_HADDOCK hide #-} ...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/PrettyUtils.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.PrettyUtils License : BSD3 Maintainer : Portability : portable # OPTIONS_HADDOCK hide # * Internal | Pretty-print free-format text, ensuring that it is vertically aligned, and with blank lines re...
Copyright : ( c ) The University of Glasgow 2004 Utilities for pretty printing . module Distribution.PrettyUtils ( Separator, showFilePath, showToken, showTestedWith, showFreeText, indentWith, ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Compile...
71849349284e4a80b5f37b337eef50f433b0c8003b7c6ec28dc4bb1900f40825
huangjs/cl
dqwgtf.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/numerical/slatec/dqwgtf.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
07c9b635deab5df277eba18753f4cc85793cb22be675430c28acfc6c9e17a969
TyOverby/mono
validated_intf.ml
* For making an abstract version of a type that ensures a validation check has passed . Suppose one wants to have a type of positive integers : { [ module Positive_int = Validated . Make ( struct type t = int let here = [ % here ] let validate = Int.validate_pos...
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/janestreet-core/core/src/validated_intf.ml
ocaml
* [here] will appear in validation-failure error messages. * [Make_bin_io_compare_hash_sexp] is useful for stable types.
* For making an abstract version of a type that ensures a validation check has passed . Suppose one wants to have a type of positive integers : { [ module Positive_int = Validated . Make ( struct type t = int let here = [ % here ] let validate = Int.validate_pos...
d353501b59c268c1044415ae721adb75b09f541538bdc2fd2e42ed4443e11d09
talex5/cuekeeper
client.ml
Copyright ( C ) 2015 , the README file for details . * See the README file for details. *) open Lwt.Infix open Ck_utils open Js_of_ocaml open Js_of_ocaml_tyxml module Lwt_js = Js_of_ocaml_lwt.Lwt_js module Lwt_js_events = Js_of_ocaml_lwt.Lwt_js_events (* let () = Log.(set_log_level INFO) *) Random back - ...
null
https://raw.githubusercontent.com/talex5/cuekeeper/ef8c97637627cf90902a0be50c8d39eadacc88b3/js/client.ml
ocaml
let () = Log.(set_log_level INFO)
Copyright ( C ) 2015 , the README file for details . * See the README file for details. *) open Lwt.Infix open Ck_utils open Js_of_ocaml open Js_of_ocaml_tyxml module Lwt_js = Js_of_ocaml_lwt.Lwt_js module Lwt_js_events = Js_of_ocaml_lwt.Lwt_js_events Random back - off for Safari bug work - around module...
5af02d423976c382a58c664c9e5947c4b779e09fb0cd49f26a965217761db4d6
fjvallarino/monomer
CompositeSpec.hs
| Module : . Widgets . : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for Composite widget . Module : Monomer.Widgets.CompositeSpec Copyright : (c) 2018 Francisco Vallarino Licen...
null
https://raw.githubusercontent.com/fjvallarino/monomer/908de6f48eb91d3a7a0405737de30b1ddc3338a2/test/unit/Monomer/Widgets/CompositeSpec.hs
haskell
| Module : . Widgets . : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for Composite widget . Module : Monomer.Widgets.CompositeSpec Copyright : (c) 2018 Francisco Vallarino Licen...
a742b89fa8e0093e77d2294252b2c6bb516887f9e334453bc6de866ea6f58bbd
kind2-mc/kind2
invs.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/c601470eb68af9bd3b88828b04dbcdbd6bd6bbf5/src/terms/invs.ml
ocaml
* Stores invariants. * The empty collection of invariants. * True if no invariants. * Number of invariants. * Bumps invariants. * Filters some invariants. * Remove all the invariants. * Checks if a term is a known invariant. * Returns [Some cert] if [term] is a known invariant, or [None] otherwise. * **Tempora...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
2e1528daf565952111c228c2c5f8e97baf76fdb4cc793bee684ef7a28eac5e20
lspitzner/brittany
Test19.hs
func :: Trither asd lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ( lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd )
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test19.hs
haskell
func :: Trither asd lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ( lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd )
60883f0f101ce202ecef55f4bd3a855017e97b2b2c029f4ad7ec00505f6c980a
serokell/importify
Str.hs
-- | Utilities to work with textual types. module Extended.Data.Str ( -- * Wrapping charWrap , wordWrap ) where import Universum import qualified Data.Text as T -- | Wraps given string into lines non exceeding given length -- splitting by chars. charWrap :: Int -> String -> Text charWr...
null
https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/src/Extended/Data/Str.hs
haskell
| Utilities to work with textual types. * Wrapping | Wraps given string into lines non exceeding given length splitting by chars. | Wraps given string into lines non exceeding given length splitting by words.
module Extended.Data.Str charWrap , wordWrap ) where import Universum import qualified Data.Text as T charWrap :: Int -> String -> Text charWrap n = unlines . T.chunksOf n . toText wordWrap :: Int -> String -> Text wordWrap n = unlines . map unwords . go 0 [] . words . toText where go ...
b1b853f2429050b911c30d1218ff4af00387944d324be11da96a40e223236f34
lambe-lang/mitch
t01_basic.ml
open Mitch.Lang.Term open Mitch.Ir.Objcode open Mitch.Ir.Render open Mitch.System open Preface.Result.Monad (struct type t = string end) let compile s = return s >>= Transpiler.run <&> Expander.run >>= Optimiser.run <&> Simplifier.run <&> Normaliser.run let compile_01 () = let result = compile (Int 1...
null
https://raw.githubusercontent.com/lambe-lang/mitch/2c47f6627c3a219c31afd078836e9e7be3e26719/test/mitch/t01_basic.ml
ocaml
PARTIAL APPLICATION PARTIAL APPLICATION
open Mitch.Lang.Term open Mitch.Ir.Objcode open Mitch.Ir.Render open Mitch.System open Preface.Result.Monad (struct type t = string end) let compile s = return s >>= Transpiler.run <&> Expander.run >>= Optimiser.run <&> Simplifier.run <&> Normaliser.run let compile_01 () = let result = compile (Int 1...
b2b070ee9773a6f940ccb5f58c91ea5f607733c777c827c5bb1ec2541df7eaaa
Carnap/Carnap
Parser.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.ModalPropositional.Parser (modalPropFormulaParser,worldTheoryPropFormulaParser, absoluteModalPropFormulaParser, relativeModalPropFormulaParser, absoluteModalPropFormulaPreParser) where import Carnap.Core.Data.Types (T...
null
https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap/src/Carnap/Languages/ModalPropositional/Parser.hs
haskell
subformulas are either formulas wrapped in parentheses negations of subformulas maybe quantified sentences or atoms
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.ModalPropositional.Parser (modalPropFormulaParser,worldTheoryPropFormulaParser, absoluteModalPropFormulaParser, relativeModalPropFormulaParser, absoluteModalPropFormulaPreParser) where import Carnap.Core.Data.Types (T...
a11c50fa5afa0aff6b273bc832dfa0582b98171dfd426c21b378be77a40cbe50
mbutterick/brag
test-baby-json-hider.rkt
#lang racket/base (require brag/examples/baby-json-hider brag/support rackunit) (define parse-result (parse (list "{" (token 'ID "message") ":" (token 'STRING "'hello world'") ...
null
https://raw.githubusercontent.com/mbutterick/brag/6c161ae31df9b4ae7f55a14f754c0b216b60c9a6/brag-lib/brag/test/test-baby-json-hider.rkt
racket
#lang racket/base (require brag/examples/baby-json-hider brag/support rackunit) (define parse-result (parse (list "{" (token 'ID "message") ":" (token 'STRING "'hello world'") ...
bc42684e7631f9b89c00005c8fdaa7146793e2a6ae4d5924db06bb095c254631
jeffa5/mirage-xmpp
config.ml
open Mirage let port = let doc = Key.Arg.info ~doc:"The TCP port on which to listen for incoming connections." ["port"] in Key.(create "port" Arg.(opt int 8080 doc)) ;; let packages = [package "markup-lwt"; package "core"; package "lwt_ppx"] let main = foreign ~keys:[Key.abstract port] ~packages "Unikernel....
null
https://raw.githubusercontent.com/jeffa5/mirage-xmpp/df3dafecba9081880809d8649ed0727b9f6a9dc7/demos/xml-parsing/src/config.ml
ocaml
open Mirage let port = let doc = Key.Arg.info ~doc:"The TCP port on which to listen for incoming connections." ["port"] in Key.(create "port" Arg.(opt int 8080 doc)) ;; let packages = [package "markup-lwt"; package "core"; package "lwt_ppx"] let main = foreign ~keys:[Key.abstract port] ~packages "Unikernel....
125d73fbc4d8a69db4e44c019b85299a6216a6138538c3e01125ba18a4720d4a
OscarSouth/theHarmonicAlgorithm
Utility.hs
module Utility where import Data.Map (fromListWith, toList) import Data.Set (Set) import qualified Data.Set as Set (fromList, toList, empty, member, insert) import qualified Data.List as List (sort, concat) -- |nCr utility function choose :: (Num a, Eq a) => a -> [b] -> [[b]] choose 0 _ ...
null
https://raw.githubusercontent.com/OscarSouth/theHarmonicAlgorithm/645199e958669becc1d70d9b8e75dc0729ef0e27/src/Utility.hs
haskell
|nCr utility function |helper function to replace |function to reduce data down to ordered list of unique instances |function to count elements in a list |mapping from a list to association list of counts of elements uniqueAnalysis :: Analysis -> Analysis uniqueAnalysis analysis = analysis where testData ::...
module Utility where import Data.Map (fromListWith, toList) import Data.Set (Set) import qualified Data.Set as Set (fromList, toList, empty, member, insert) import qualified Data.List as List (sort, concat) choose :: (Num a, Eq a) => a -> [b] -> [[b]] choose 0 _ = [[]] choose k [] ...
977699b80fe8cb06942a93557382d86997a95fcfd4c454a98885451c868237f8
tonymorris/geo-gpx
Extensions.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances # -- | Complex Type: @extensionsType@ </#type_extensionsType> module Data.Geo.GPX.Type.Extensions( Extensions , extensions , runExtensions ) where import Text.XML.HXT.Arrow.Pickle import Text.XML.HXT.DOM.TypeDefs import Control.Newtype new...
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Type/Extensions.hs
haskell
| Complex Type: @extensionsType@ </#type_extensionsType>
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances # module Data.Geo.GPX.Type.Extensions( Extensions , extensions , runExtensions ) where import Text.XML.HXT.Arrow.Pickle import Text.XML.HXT.DOM.TypeDefs import Control.Newtype newtype Extensions = Extensions XmlTrees deriving (Eq, Show) ...
f2e9af5536007edb51ae6415fd3ddbb603ca9f52042140f2a1ec523795b9e3d7
WormBase/wormbase_rest
tissue_specific_transgenes.clj
(ns rest-api.classes.transgene.widgets.tissue-specific-transgenes (:require [datomic.api :as d] [rest-api.db.main :refer [datomic-conn]] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-fns] [rest-api.formatters.object :as obj :refer [pack-obj]])) (def...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/transgene/widgets/tissue_specific_transgenes.clj
clojure
(map keys)
(ns rest-api.classes.transgene.widgets.tissue-specific-transgenes (:require [datomic.api :as d] [rest-api.db.main :refer [datomic-conn]] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-fns] [rest-api.formatters.object :as obj :refer [pack-obj]])) (def...
47e758d1b15528c36346a48326cd351b01a8a4ea6c005050dd16259d3d30c0c2
c-cube/qcheck
QCheck.mli
QCheck : Random testing for OCaml copyright ( c ) 2013 - 2017 , , , , , , all rights reserved . QCheck: Random testing for OCaml copyright (c) 2013-2017, Guillaume Bury, Simon Cruanes, Vincent Hugot, Jan Midtgaard, Julien Debon, Valentin Chaboche all rights reserved. *) * { 1 Quickcheck inspired ...
null
https://raw.githubusercontent.com/c-cube/qcheck/063c1d74795a24eb77fa661d218c4715382df566/src/core/QCheck.mli
ocaml
* A random generator for values of type 'a. * Random generator with a size bound. * Create a constant generator. * Infix operator for composing a function generator and an argument generator into a result generator. * [map f g] transforms a generator [g] by applying [f] to each generated element. * [map_keep...
QCheck : Random testing for OCaml copyright ( c ) 2013 - 2017 , , , , , , all rights reserved . QCheck: Random testing for OCaml copyright (c) 2013-2017, Guillaume Bury, Simon Cruanes, Vincent Hugot, Jan Midtgaard, Julien Debon, Valentin Chaboche all rights reserved. *) * { 1 Quickcheck inspired ...
f05ac1c0d411f5b1337fb2d79e4d8b21272564ea888ba65eb0265435dbe816de
ConsenSys/constellation
Types.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} module Constellation.Node.Types where import ClassyPrelude import Data.Binary (Binary(put, get)) import Network.HTTP.Conduit (Manager) import qualified Data.HashMap.Strict as HM import qualified D...
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/Constellation/Node/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData #
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module Constellation.Node.Types where import ClassyPrelude import Data.Binary (Binary(put, get)) import Network.HTTP.Conduit (Manager) import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS import Constellation.Enclave.Payload (Encryp...
2813d7e5ca68e6dd4fce55a13ec0e4f82ba3402c9a57113f1201511cf11d402b
erlangonrails/devdb
erlang_js_sup.erl
@author < > 2009 - 2010 Basho Technologies %% 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 ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak-0.11.0/deps/erlang_js/src/erlang_js_sup.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. limitations under the License. the js...
@author < > 2009 - 2010 Basho Technologies Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for the specific language governing permissions and @doc Top level supervisor for erlang_js . It...
f1166f5ce291cc54d0205132521d060c6f64d5e7f330193bc9ffa294f4b2a3b2
shirok/Gauche
u8.scm
(define-module srfi.160.u8 (extend gauche.uvector.u8))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/srfi/160/u8.scm
scheme
(define-module srfi.160.u8 (extend gauche.uvector.u8))
f52966a0944c0cea9f82621afa44f801bb534a6470e452f32e64d31acb3d2600
bcambel/oss.io
redis.clj
(ns hsm.system.redis (:require [taoensso.timbre :as log] [taoensso.carmine :as car :refer (wcar)] [com.stuartsierra.component :as component])) (defrecord Redis [host port conn] component/Lifecycle (start [component] (log/info "Starting Redis Component") (let [conn {:...
null
https://raw.githubusercontent.com/bcambel/oss.io/cddb8b8ba4610084bc2f3c78c7837cdec87a8c76/src/clj/hsm/system/redis.clj
clojure
(ns hsm.system.redis (:require [taoensso.timbre :as log] [taoensso.carmine :as car :refer (wcar)] [com.stuartsierra.component :as component])) (defrecord Redis [host port conn] component/Lifecycle (start [component] (log/info "Starting Redis Component") (let [conn {:...
a86f0fe6835860c0445d6c9aef3b9dce4af8869c7b84a00069c4a297939bd90c
PureIso/ErlangCodes
factorialCalculation.erl
@author ola %% @doc Factional calculation module -module(factorialCalculation). %% ==================================================================== %% API functions %% ==================================================================== -export([factorial_handler/1]). %% =======================================...
null
https://raw.githubusercontent.com/PureIso/ErlangCodes/20066f54079946fcb469dde975d79e8923e8ed96/factorial/src/factorialCalculation.erl
erlang
@doc Factional calculation module ==================================================================== API functions ==================================================================== ==================================================================== Private functions ========================================...
@author ola -module(factorialCalculation). -export([factorial_handler/1]). factorial(Int, Acc) when Int > 0 -> factorial(Int-1,Acc * Int); factorial(0, Acc) -> Acc. factorial(Int, Acc, IoDevice) when Int > 0 -> io:format(IoDevice, "Current Factorial Log: ~p~n",[Acc]), factorial(Int-1,Acc * Int,IoDevice);...
d07745558faa24ed4fee1a8443ebfe06acff6268838f6444a66f06b216d5eb07
racket/racket7
write-with-max.rkt
#lang racket/base (require "../port/string-output.rkt" "../port/bytes-output.rkt" "../port/port.rkt" "../port/output-port.rkt") (provide write-string/max write-bytes/max make-output-port/max output-port/max-max-length) (define (write-string/max str o max...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/print/write-with-max.rkt
racket
For measuring purposes, just treat bytes as characters:
#lang racket/base (require "../port/string-output.rkt" "../port/bytes-output.rkt" "../port/port.rkt" "../port/output-port.rkt") (provide write-string/max write-bytes/max make-output-port/max output-port/max-max-length) (define (write-string/max str o max...
4aa43324b44841a83f86790f3e3f57ec61b924e3dfa67aff6930cd751c2cc2a2
input-output-hk/cardano-explorer
Metrics.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Cardano.TxSubmit.Metrics ( TxSubmitMetrics (..) , makeMetrics , registerMetricsServer ) where import Cardano.Prelude import System.Metrics.Prometheus.Concurrent.RegistryT (RegistryT (..), registerGauge, ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-explorer/3abcb32339edac7c2397114a1d170cc76b82e9b6/cardano-tx-submit/src/Cardano/TxSubmit/Metrics.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Cardano.TxSubmit.Metrics ( TxSubmitMetrics (..) , makeMetrics , registerMetricsServer ) where import Cardano.Prelude import System.Metrics.Prometheus.Concurrent.RegistryT (RegistryT (..), registerGauge, runRegistryT, unRegistryT) i...
23469d4429db56ce265bb4b44781cd5b02ab17e0eb89064f0c7dea218357fe02
rikusalminen/funfun
Parser.hs
module FunFun.Parser ( parser ) where import qualified Data.Set as Set import Text.Parsec import Text.Parsec.Expr import FunFun.Language import FunFun.Values import FunFun.Types import FunFun.AST lambda pos = foldr (\ident expr -> Lambda ident expr pos) application :: [Expression] -> Expression applica...
null
https://raw.githubusercontent.com/rikusalminen/funfun/2d150e59f25f8c8662d1f8e324440d9a4c04cb39/FunFun/Parser.hs
haskell
module FunFun.Parser ( parser ) where import qualified Data.Set as Set import Text.Parsec import Text.Parsec.Expr import FunFun.Language import FunFun.Values import FunFun.Types import FunFun.AST lambda pos = foldr (\ident expr -> Lambda ident expr pos) application :: [Expression] -> Expression applica...
e5c87ff9e0a4b35ec77debb0760089ad83b8cd836eb073f12b4cc30229da7609
polyfy/polylith
indirect_test.clj
(ns polylith.clj.core.change.indirect-test (:require [clojure.test :refer :all] [polylith.clj.core.change.indirect :as indirect])) (def deps [["cli" {"workspace-clj" {:src {:direct ["common" "file" "util"], :indirect []}} "test-runner" {:src {:direct ["common" "file" "util"], :in...
null
https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/components/change/test/polylith/clj/core/change/indirect_test.clj
clojure
(ns polylith.clj.core.change.indirect-test (:require [clojure.test :refer :all] [polylith.clj.core.change.indirect :as indirect])) (def deps [["cli" {"workspace-clj" {:src {:direct ["common" "file" "util"], :indirect []}} "test-runner" {:src {:direct ["common" "file" "util"], :in...
e2fb3bc66cd9a81a3543615353e44decf5619f1ef1c8fe2ba5ee8736c776b04a
mhuebert/re-view
toolbar.cljs
(ns re-view.material.components.toolbar (:require [re-view.core :as v] [re-view.material.mdc :as mdc] [re-view.material.util :as util] ["@material/toolbar/foundation" :as foundation] ["@material/toolbar/constants" :as constants] [goog.dom :as gdom] ...
null
https://raw.githubusercontent.com/mhuebert/re-view/ba38cd09b78b3c6db6a2983f3e2cf1bd6294564f/material/src/re_view/material/components/toolbar.cljs
clojure
free candy to the person who figures out why this only works after a delay
(ns re-view.material.components.toolbar (:require [re-view.core :as v] [re-view.material.mdc :as mdc] [re-view.material.util :as util] ["@material/toolbar/foundation" :as foundation] ["@material/toolbar/constants" :as constants] [goog.dom :as gdom] ...
748ed16c1c707d3f19443d6013a92fdac8b2dfa50de8178a9a14b53343bef5e5
alesaccoia/festival_flinger
acost.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Carnegie Mellon University and ; ; Centre for Speech Technology Research ; ; ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/src/modules/clunits/acost.scm
scheme
;; ; ; ; ; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this software and its documentation without restriction, including ;; withou...
There are five stages to this (require_module 'clunits) (require 'clunits_build) (provide 'acost)
3470073e32dc5de91e6935810759979ee3f3970d8e8b946a7afffa43646f7998
serokell/ariadne
WalletInfo.hs
module Ariadne.UI.Qt.Widgets.WalletInfo ( WalletInfo , initWalletInfo , WalletInfoEvent(..) , handleWalletInfoEvent ) where import Data.Text (toUpper) import Control.Lens (makeLensesWith) import Graphics.UI.Qtah.Signal (connect_) import Graphics.UI.Qtah.Core.Types (QtCursorShape(....
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/WalletInfo.hs
haskell
will be shown only if applicable will be shown only if applicable will be shown once something is selected Buttons will be shown once something is selected `itemNameLabel` stores capitalized text, but we need the original for delete dialog
module Ariadne.UI.Qt.Widgets.WalletInfo ( WalletInfo , initWalletInfo , WalletInfoEvent(..) , handleWalletInfoEvent ) where import Data.Text (toUpper) import Control.Lens (makeLensesWith) import Graphics.UI.Qtah.Signal (connect_) import Graphics.UI.Qtah.Core.Types (QtCursorShape(....
a370efbca68cf0286106dd90bea96ac1993165de0bc2accc553ec8e3794a7213
Storkle/clj-forex
gui.clj
( ' nstools.ns ) (ns forex.interface.gui (:require swank.swank) (:use forex.util.general forex.util.log forex.module.ea forex.util.general clojure.contrib.miglayout forex.util.emacs forex.util.gui forex.interface.tray) (:import (java.awt Dimension Font event.MouseListener even...
null
https://raw.githubusercontent.com/Storkle/clj-forex/1800b982037b821732b9df1e2e5ea1eda70f941f/src/forex/interface/gui.clj
clojure
TODO: all action listeners should be vars for maximum flexibility - because sometimes it all goes away! Useful User Vars LOADING EAS SAVING EAS User Customization no e (add-action-listener selector (bound-fn* on-selector))
( ' nstools.ns ) (ns forex.interface.gui (:require swank.swank) (:use forex.util.general forex.util.log forex.module.ea forex.util.general clojure.contrib.miglayout forex.util.emacs forex.util.gui forex.interface.tray) (:import (java.awt Dimension Font event.MouseListener even...
1e0c4003ef0c20dda15edde75b97a48f7018596fa08f45e51c7b455d58140d1d
lisp/de.setf.amqp
connection.lisp
;;;-* Package: rabbitmq; -*- ;; $Id: //info.ravenbrook.com/user/ndl/lisp/cl-rabbit/connection.lisp#2 $ (in-package :rabbitmq) ;; CONNECTION.LISP , Ravenbrook Limited , 2007 - 09 - 20 , setf.de , 2010 - 02 - 04 ;; 1 . INTRODUCTION ;; ;; The purpose of this doc...
null
https://raw.githubusercontent.com/lisp/de.setf.amqp/03181135ddf15cb3866fbf4285c8b6d3eeeb660e/rabbitmq/connection.lisp
lisp
-* Package: rabbitmq; -*- $Id: //info.ravenbrook.com/user/ndl/lisp/cl-rabbit/connection.lisp#2 $ CONNECTION.LISP The purpose of this document is to implement a lisp interface to AMQP connections consistent with the See Appendix C below for copyright and license. prevent tail call, aid...
(in-package :rabbitmq) , Ravenbrook Limited , 2007 - 09 - 20 , setf.de , 2010 - 02 - 04 1 . INTRODUCTION RabbitMQ API . It emulates the original com.nicklevine.rabbitmq version , which was layered over RabbitMQ / Java 2 . OPEN & CLOSE (defun new-connection (host vhost &rest ...
5b3f4fcc3a9879bb4e0b1814f7298dac8e834fec9e26c20f0ffcc4cf532128fd
heraldry/heraldicon
ribbon_select.cljs
(ns heraldicon.frontend.element.ribbon-select (:require [heraldicon.frontend.filter :as filter] [heraldicon.frontend.repository.entity-list :as entity-list] [heraldicon.frontend.user.session :as session] [re-frame.core :as rf])) (defn- component [ribbons-subscription on-select refresh-fn & {:keys [displa...
null
https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/frontend/element/ribbon_select.cljs
clojure
(ns heraldicon.frontend.element.ribbon-select (:require [heraldicon.frontend.filter :as filter] [heraldicon.frontend.repository.entity-list :as entity-list] [heraldicon.frontend.user.session :as session] [re-frame.core :as rf])) (defn- component [ribbons-subscription on-select refresh-fn & {:keys [displa...
1df53583f72b3413f58b7c7263563525f3878a80e4a904c5722f663242932089
janestreet/memtrace_viewer
location_trie.ml
open! Core open Memtrace_viewer_common module Loc_hitters = Substring_heavy_hitters.Make (Location) let find_heavy_hitters ~trace ~tolerance ~significance_frequency : Loc_hitters.t * Filtered_trace.Call_sites.t = let shh = Loc_hitters.create ~tolerance in let first = ref true in let call_sites = Filtered...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer/280d57dd520ed755497169e46b5fd0b11401d482/server/src/location_trie.ml
ocaml
Always there at the end Make sure we're using the same criteria when pruning the trie or dropping call sites Root node The semantics of the suffix link is defined according to the entire edge. In other words, [suffix] with its *entire* edge represents the suffix of [node] with its *entire* ...
open! Core open Memtrace_viewer_common module Loc_hitters = Substring_heavy_hitters.Make (Location) let find_heavy_hitters ~trace ~tolerance ~significance_frequency : Loc_hitters.t * Filtered_trace.Call_sites.t = let shh = Loc_hitters.create ~tolerance in let first = ref true in let call_sites = Filtered...
290ecf2a9e825a6df3e7efc9d2eb8c33a4e446d2c7e972d91f7adb6c8fddcabc
danx0r/festival
ogi_worldbet_phones.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<--OHSU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Oregon Health & Science University ; ; Division of Biomedical Computer Science ; ; ...
null
https://raw.githubusercontent.com/danx0r/festival/6701715566aee6519a8b7949b567f2fdad1e2772/lib/ogi/ogi_worldbet_phones.scm
scheme
<--OHSU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; ; ; ; ; ;; ; release of the Festival TTS system. ;; ...
(defPhoneSet worldbet (vc + -) (vlng s l d a 0) (vheight 1 2 3 0) (vfront 1 2 3 0) (vrnd + - 0) (ctype s f a n l r 0) (cplace l a p b d v g 0) (cvox + - 0) ) ( bird ? + l 2 4 + 0 0 ...
ccabde4f4947ab9af2c0e01a58d9f79735abc86f773740454f143d040b7c434f
xapi-project/xen-api
test_xapi_cmd_result.ml
* Copyright ( C ) 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 LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e984d34bd9ff60d7224a841270db0fe1dfe42e7a/ocaml/tests/test_xapi_cmd_result.ml
ocaml
* Copyright ( C ) 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 LI...
04fcf8e5081290106ff6522ba27b987b2eaa653a3acccb144ebeb2107c542ba0
gedge-platform/gedge-platform
rabbit_mgmt_wm_node_memory_ets.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_wm_node_memory_ets). -export...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_node_memory_ets.erl
erlang
-------------------------------------------------------------------- --------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_wm_node_memory_ets). -export([init...
77b489d0b1d0261ca6149a0bdd2cdcb057e389b8fb43f44a70dd0dd1fa3413cb
craff/simple_httpd
compile_headers_mli.ml
let filename = if Array.length Sys.argv <> 2 then begin Printf.eprintf "usage: %s path_to_field_names.csv" Sys.argv.(0); exit 1 end; Sys.argv.(1) let ch = open_in filename let _ = input_line ch let rec fn acc = try let line = input_line ch in if String.length line > 0 && Char.lower...
null
https://raw.githubusercontent.com/craff/simple_httpd/2683094688b4e0acac5590c50a72f2d6a49e0cca/src/gen/compile_headers_mli.ml
ocaml
let filename = if Array.length Sys.argv <> 2 then begin Printf.eprintf "usage: %s path_to_field_names.csv" Sys.argv.(0); exit 1 end; Sys.argv.(1) let ch = open_in filename let _ = input_line ch let rec fn acc = try let line = input_line ch in if String.length line > 0 && Char.lower...
15e564c03008b6119b39bb449bdd62b580f09efe85019ff08c6f6d1ff1133c8d
semilin/layoup
Maks-Ex.lisp
(MAKE-LAYOUT :NAME "Maks-Ex" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Maks-Ex.lisp
lisp
(MAKE-LAYOUT :NAME "Maks-Ex" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
3d1b554de0ad8fbff36fcbfac63cd97025c43f42983f9d209f76ab5e81830618
mirage/bechamel
time.ml
open Stdlib type t = int64 type span = int64 let of_uint64_ns x = x let to_uint64_ns x = x let span t0 t1 = if Int64.unsigned_compare t0 t1 < 0 then Int64.sub t1 t0 else Int64.sub t0 t1 let s_to_ns = 1e9 let to_span o x = span (Int64.of_float (s_to_ns *. (x *. o))) 0L let second n = to_span 1. n let millisecond n...
null
https://raw.githubusercontent.com/mirage/bechamel/7a0aebef3c2ec266db97385264be74274bdc4765/lib/time.ml
ocaml
open Stdlib type t = int64 type span = int64 let of_uint64_ns x = x let to_uint64_ns x = x let span t0 t1 = if Int64.unsigned_compare t0 t1 < 0 then Int64.sub t1 t0 else Int64.sub t0 t1 let s_to_ns = 1e9 let to_span o x = span (Int64.of_float (s_to_ns *. (x *. o))) 0L let second n = to_span 1. n let millisecond n...
1285528678df32453ffc1a1fbf47c6a00d8ee2642ad9bff6240811c75f4b6b0f
guildhall/guile-haunt
asset.scm
Haunt --- Static site generator for GNU Copyright © 2015 < > ;;; This file is part of Haunt . ;;; Haunt 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 ;;; (a...
null
https://raw.githubusercontent.com/guildhall/guile-haunt/c67e8e924c664ae4035862cc7b439cd7ec4bcef6/haunt/asset.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or (at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Commentary: Code: Assets ...
Haunt --- Static site generator for GNU Copyright © 2015 < > This file is part of Haunt . under the terms of the GNU General Public License as published by Haunt is distributed in the hope that it will be useful , but You should have received a copy of the GNU General Public License along with Haunt ....
65216b73413a6b3af0ebbda782ba5325d6c60534034740ed06d2fcf5e464e3d6
zadean/xqerl
misc_AnnexE_SUITE.erl
-module('misc_AnnexE_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['annex-1'/1]). -export(['annex-2'/1]). -export(['annex-3'/1]). -export(['annex-4'/1...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/misc/misc_AnnexE_SUITE.erl
erlang
-module('misc_AnnexE_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['annex-1'/1]). -export(['annex-2'/1]). -export(['annex-3'/1]). -export(['annex-4'/1...
da12d3cb13dbf213da62d6af71ae2429dc170eedf191debbd496fd632ec29c8f
awkay/om-tutorial
core.cljs
(ns core (:require devcards.core om-tutorial.tutorial)) (devcards.core/start-devcard-ui!)
null
https://raw.githubusercontent.com/awkay/om-tutorial/83ca10d91380ba62458b98ccaa80fd11b9c8321d/src/prod/core.cljs
clojure
(ns core (:require devcards.core om-tutorial.tutorial)) (devcards.core/start-devcard-ui!)
21641619418f79c363d6acd09705e63bc9ab1ffc90dface9a9321847f73da289
Mathnerd314/stroscot
Types.hs
# LANGUAGE GeneralizedNewtypeDeriving , ScopedTypeVariables , DeriveDataTypeable , ViewPatterns # # LANGUAGE ExistentialQuantification , DeriveFunctor , RecordWildCards , FlexibleInstances # module Development.Shake.Internal.Core.Types( BuiltinRun, BuiltinLint, BuiltinIdentity, RunMode(..), RunResult(..), RunC...
null
https://raw.githubusercontent.com/Mathnerd314/stroscot/08b4cb638369a71e1e52fce5710a11e235e9e120/src/shake/Types.hs
haskell
------------------------------------------------------------------- | The 'Action' monad, use 'liftIO' to raise 'IO' actions into it, and 'Development.Shake.need' to execute files. Action values are used by 'addUserRule' and 'action'. The 'Action' monad tracks the dependencies of a rule. they are very probably all...
# LANGUAGE GeneralizedNewtypeDeriving , ScopedTypeVariables , DeriveDataTypeable , ViewPatterns # # LANGUAGE ExistentialQuantification , DeriveFunctor , RecordWildCards , FlexibleInstances # module Development.Shake.Internal.Core.Types( BuiltinRun, BuiltinLint, BuiltinIdentity, RunMode(..), RunResult(..), RunC...
a35d3a006add13cb72e71034177db7ee9762557438ad5494793fd75178d4178d
pauleve/pint
pintenv.ml
let _ = let pint_bin = Distenv.pint_share_path ^ "/bin" in Unix.putenv "PATH" (pint_bin^":"^Sys.getenv "PATH")
null
https://raw.githubusercontent.com/pauleve/pint/7cf943ec60afcf285c368950925fd45f59f66f4a/pintlib/pintenv.ml
ocaml
let _ = let pint_bin = Distenv.pint_share_path ^ "/bin" in Unix.putenv "PATH" (pint_bin^":"^Sys.getenv "PATH")
4e3ae218879f466faf28dada699269f084dc998c789fc1f35297dce02de709a4
albertoruiz/easyVision
ScatterPlot.hs
----------------------------------------------------------------------------- | Module : ScatterPlot Copyright : ( c ) 2007 - 12 License : GPL Maintainer : ( aruiz at um dot es ) Stability : provisional Show distribution of labeled vectors in space Module : Scat...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/gui/src/Vision/GUI/ScatterPlot.hs
haskell
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
| Module : ScatterPlot Copyright : ( c ) 2007 - 12 License : GPL Maintainer : ( aruiz at um dot es ) Stability : provisional Show distribution of labeled vectors in space Module : ScatterPlot Copyright : (c) Alberto Ruiz 2007-12 License : GPL Maintainer...
ece705a2030fdc37d5a194058e64ac4bed29866d4a0b12c33f317ddff28bf47c
swannodette/mori
extra.cljs
(ns mori.extra (:refer-clojure :exclude [distinct first second next rest seq cons last get-in update-in assoc-in fnil take drop take-nth partition partition-all partition-by iterate merge-with take-while drop-while group-by interpose interleave concat flatten prim-seq lazy-seq keep keep-ind...
null
https://raw.githubusercontent.com/swannodette/mori/46c9194b3c4bc93fc4b402925b9417add3b0a3ba/src/mori/extra.cljs
clojure
The real lazy-seq is a macro, but it just expands its body into a function transducers constructors Predicates Set ops Comparisons HOFs ============================================================================= Node.js Inspection support
(ns mori.extra (:refer-clojure :exclude [distinct first second next rest seq cons last get-in update-in assoc-in fnil take drop take-nth partition partition-all partition-by iterate merge-with take-while drop-while group-by interpose interleave concat flatten prim-seq lazy-seq keep keep-ind...
0fbf361fae2b255f4e71027cd5fe0c85f1f394b95d8805050cbbea94276ad106
clojure-interop/google-cloud-clients
ImageAnnotatorSettings.clj
(ns com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings "Settings class to configure an instance of ImageAnnotatorClient. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automa...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.clj
clojure
"
(ns com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings "Settings class to configure an instance of ImageAnnotatorClient. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automa...
0b9a7078eb33df48dd747956284915c32e28dca4c7728cbff1b3c83fb24bfd16
ocsigen/eliom
eliom_content_core.client.mli
Ocsigen * * Copyright ( C ) 2012 , * * 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 , with linking exception ; * either version 2.1 of the License , or ( at y...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_content_core.client.mli
ocaml
Client side-only Client side-only Client side-only Client side-only (unit -> bool) client_value */* * Building SVG tree. * Typed interface for building valid SVG tree (functional semantics). See {% <<a_api project="tyxml" | module type Svg_sigs.T >> %}. * See {% <<a_api project="tyxml" | module type S...
Ocsigen * * Copyright ( C ) 2012 , * * 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 , with linking exception ; * either version 2.1 of the License , or ( at y...
9041945d2470d20823694df9b8a68af50a247ca0c28b95009fdfab6f8ce3baaa
swlkr/majestic-web
middleware.clj
(ns {{name}}.middleware (:require [buddy.auth :as buddy.auth] [{{name}}.responses :as res] [{{name}}.html :as html])) (defn wrap-auth [handler] (fn [request] (if (buddy.auth/authenticated? request) (handler request) (buddy.auth/throw-unauthorized)))) (defn wrap-exceptions [...
null
https://raw.githubusercontent.com/swlkr/majestic-web/3d247f6b5ccc4ff3662a64544a4ca27beada971b/resources/leiningen/new/majestic_web/middleware.clj
clojure
(ns {{name}}.middleware (:require [buddy.auth :as buddy.auth] [{{name}}.responses :as res] [{{name}}.html :as html])) (defn wrap-auth [handler] (fn [request] (if (buddy.auth/authenticated? request) (handler request) (buddy.auth/throw-unauthorized)))) (defn wrap-exceptions [...
f7b5ed25a8b24c842abb8dec93915844cf38ca156e7473bae5fa7d7266d90861
tamarit/edd
poolboy_test_worker.erl
%% Test Worker for poolboy symptoms %% Simple server for arithmetic operations (only addition) -module(poolboy_test_worker). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). start_link(_Args) ->...
null
https://raw.githubusercontent.com/tamarit/edd/867f287efe951bec6a8213743a218b86e4f5bbf7/examples/Concurrency/poolboy/poolboy_test_worker.erl
erlang
Test Worker for poolboy symptoms Simple server for arithmetic operations (only addition)
-module(poolboy_test_worker). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). start_link(_Args) -> gen_server:start_link(?MODULE, [], []). init([]) -> {ok, #state{}}. handle_call(die,...
91dbe115d3e87ec7fb2a76ec8d4c2dfcfed4ed49ee3b53021cca0a132ef8fad8
TaktInc/fake
Types.hs
module Fake.Types where ------------------------------------------------------------------------------ import Control.Monad import System.Random ------------------------------------------------------------------------------ newtype FGen a = MkFGen { unFGen :: StdGen -> a } instance Functor FGen where fmap f (MkFGe...
null
https://raw.githubusercontent.com/TaktInc/fake/02d1d8219c4bf2958ee92c3b9fc9fe3fb5dd1270/src/Fake/Types.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
module Fake.Types where import Control.Monad import System.Random newtype FGen a = MkFGen { unFGen :: StdGen -> a } instance Functor FGen where fmap f (MkFGen h) = MkFGen (\r -> f (h r)) instance Applicative FGen where pure = return (<*>) = ap instance Monad FGen where return x = MkFGen (\_ -> x) ...
bb8e079fa6acb66f4fe80a48841cfbf1487f3573b9ec3dde92d669b07ef58c6b
jeffshrager/biobike
package.lisp
-*- Package : cl - user ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Biodefs/package.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
d7dce7bc74a12f1b007cdd4639dfe05b86fe63c030884e76e787675b60856967
moquist/datomic-schematode
datomic_schematode.clj
(ns datomic-schematode (:require [datomic.api :as d] [incanter.stats :as stats] [datomic-schema.schema :as dsa] [datomic-schematode.constraints.support :as dsc-support])) (defn expand-fields "fn replacement for datomic-schema.schema/fields. Takes in any number of field vectors...
null
https://raw.githubusercontent.com/moquist/datomic-schematode/b73206fc86bb61bc97ddd5df55f7441bf5fc0447/src/datomic_schematode.clj
clojure
TODO: handle any resource that can be opened by io/reader.
(ns datomic-schematode (:require [datomic.api :as d] [incanter.stats :as stats] [datomic-schema.schema :as dsa] [datomic-schematode.constraints.support :as dsc-support])) (defn expand-fields "fn replacement for datomic-schema.schema/fields. Takes in any number of field vectors...
8458dbf8b8a91feccb81e82255526330d40a2aa4c26a36264db361ec579515a6
erlangonrails/devdb
console_appender.erl
-module(console_appender). -include("../include/log4erl.hrl"). -behaviour(gen_event). %% gen_event callbacks -export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]). init({conf, Conf}) when is_list(Conf) -> CL = lists:foldl(fun(X, List) -> [proplists:get_...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/contrib/log4erl/src/console_appender.erl
erlang
gen_event callbacks in case format doesn't exist
-module(console_appender). -include("../include/log4erl.hrl"). -behaviour(gen_event). -export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]). init({conf, Conf}) when is_list(Conf) -> CL = lists:foldl(fun(X, List) -> [proplists:get_value(X,Conf)|List] ...
669e45495202283d35e891f105bc338bd74d691dda98d9da1317842ceb164a49
liquidz/iced-nrepl
core.clj
(ns iced.nrepl.core (:require [clojure.java.io :as io])) (defn version [] (-> "version.txt" (io/resource) (slurp))) (defn ^{:doc "Returns the version of iced-nrepl middleware." :requires {} :optional {} :returns {"version" "The version of iced-nrepl-middleware." ...
null
https://raw.githubusercontent.com/liquidz/iced-nrepl/99edb12b5810254d8b9cb01abc0b70c501b6a997/src/iced/nrepl/core.clj
clojure
(ns iced.nrepl.core (:require [clojure.java.io :as io])) (defn version [] (-> "version.txt" (io/resource) (slurp))) (defn ^{:doc "Returns the version of iced-nrepl middleware." :requires {} :optional {} :returns {"version" "The version of iced-nrepl-middleware." ...
a25848a71f0f00ba4842e3cfb1c7f827a7c83ffa49b35acd1f048315d9334b85
erlangonrails/devdb
rabbit_tests.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/rabbitmq-server-1.8.0/src/rabbit_tests.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. All Rights Reserved. Contributor(s): __________________________...
The contents of this file are subject to the Mozilla 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 " The Original Code is RabbitMQ . The Initial Developers of the Original Code are LShift Ltd ,...
ce8b0f96dd9d5da9e49af7fb544586588e4851f85711f7a63a946dfce5b45dcb
WhatsApp/eqwalizer
fancy_generics.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(fancy_generics). -export([f/2]). -spec f(T, _U) -> T. f(T, _) -> T.
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/eqwalizer/test_projects/check/src/fancy_generics.erl
erlang
the LICENSE file in the root directory of this source tree.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(fancy_generics). -export([f/2]). -spec f(T, _U) -> T. f(T, _) -> T.
150b3974e18ada92b2cb29d146ee5c3a4cad90c3260dc084655f78cb7fadaca8
logseq/logseq
search.cljs
(ns electron.search "Provides both page level and block level index" (:require ["path" :as path] ["fs-extra" :as fs] ["better-sqlite3" :as sqlite3] [clojure.string :as string] ["electron" :refer [app]] [electron.logger :as logger] [medley.core ...
null
https://raw.githubusercontent.com/logseq/logseq/b78c689458953dbbcf8fd93f09523508aa9040a1/src/electron/electron/search.cljs
clojure
windows add " insert " update "]] add " insert " update "]] TODO: what if a CONFLICT on uuid Should update all values on id conflict TODO: what if a CONFLICT on uuid Should update all values on id conflict [q] (when-not (string/blank? q) "select id, uuid, content from ...
(ns electron.search "Provides both page level and block level index" (:require ["path" :as path] ["fs-extra" :as fs] ["better-sqlite3" :as sqlite3] [clojure.string :as string] ["electron" :refer [app]] [electron.logger :as logger] [medley.core ...
a68eb91282de4009748d37a35c73bcef8fc979f94b5285982ca7b998f90108d7
EFanZh/EOPL-Exercises
exercise-1.36-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-1.36.rkt") (define number-elements (lambda (lst) (if (null? lst) '() (g (list 0 (car lst)) (number-elements (cdr lst)))))) (check-equal? (number-elements '()) '()) (check-equal? (number-elements '(a)) '((0 a))) (check-equal? (number-e...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-1.36-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-1.36.rkt") (define number-elements (lambda (lst) (if (null? lst) '() (g (list 0 (car lst)) (number-elements (cdr lst)))))) (check-equal? (number-elements '()) '()) (check-equal? (number-elements '(a)) '((0 a))) (check-equal? (number-e...
63de3a4d635b7dc97216024a66b4991cf64759276cd9b9e07be32ffd26087514
solsarratea/selfsyn
cosmoshelper.clj
(ns selfsyn.cosmoshelper (:use [overtone.live] [mud.core] [selfsyn.wavs] ) (:require [mud.timing :as time][overtone.studio.fx :as fx][shadertone.tone :as t]) ) (definst plucked [note-buf 0 beat-bus (:count time/beat-1th) beat-trg-bus (:beat time/beat-4th) note_slide 0 note_sl...
null
https://raw.githubusercontent.com/solsarratea/selfsyn/adc4e50f2846bd8ce1f2679152c80de1271b0e63/src/selfsyn/cosmoshelper.clj
clojure
(ns selfsyn.cosmoshelper (:use [overtone.live] [mud.core] [selfsyn.wavs] ) (:require [mud.timing :as time][overtone.studio.fx :as fx][shadertone.tone :as t]) ) (definst plucked [note-buf 0 beat-bus (:count time/beat-1th) beat-trg-bus (:beat time/beat-4th) note_slide 0 note_sl...
a7fc48eff1e41f26435a5239eb2de93118b7a0ead9f5fd21b7549cc446eae09c
scrintal/heroicons-reagent
battery_0.cljs
(ns com.scrintal.heroicons.mini.battery-0) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M1 7.25A2.25 2.25 0 013.25 5h12.5A2.25 2.25 0 0118 7.25v1.085a1.5 1.5 0 011 1.415...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/battery_0.cljs
clojure
(ns com.scrintal.heroicons.mini.battery-0) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M1 7.25A2.25 2.25 0 013.25 5h12.5A2.25 2.25 0 0118 7.25v1.085a1.5 1.5 0 011 1.415...
15ae314a154d9221e0cc8383b6bfd416b7c9a5eb2fb87d37799687bec637eb29
bobzhang/fan
fill.ml
open Astfn (** this is caused by #ant problem, which requires [fill_ant] to be specifiied *) let ant _loc x = x;; %fans{keep off; derive (Fill);};; %ocaml{ %include{ "astfn.ml" };; };; (* local variables: *) compile - command : " cd .. & & pmake main_annot / fill.cmo " (* end: *)
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/main/fill.ml
ocaml
* this is caused by #ant problem, which requires [fill_ant] to be specifiied local variables: end:
open Astfn let ant _loc x = x;; %fans{keep off; derive (Fill);};; %ocaml{ %include{ "astfn.ml" };; };; compile - command : " cd .. & & pmake main_annot / fill.cmo "
5528a50f470c3e1357075b885764bbc85df3fd725a0e9f2d49cc0980ecf136cb
gklijs/bkes-demo
user_event_handlers.clj
(ns nl.openweb.command-handler.user-event-handlers (:require [nl.openweb.command-handler.db :as db]) (:import (nl.openweb.data UserAddedToBankAccountEvent) (org.apache.kafka.clients.consumer ConsumerRecord))) (defn handle-user-added-to-bank-account-event [^UserAddedToBankAccountEvent event] (db/upda...
null
https://raw.githubusercontent.com/gklijs/bkes-demo/b567f6b32ffb9b5fcb9ee3f73b20f653720a2915/command-handler/src/nl/openweb/command_handler/user_event_handlers.clj
clojure
(ns nl.openweb.command-handler.user-event-handlers (:require [nl.openweb.command-handler.db :as db]) (:import (nl.openweb.data UserAddedToBankAccountEvent) (org.apache.kafka.clients.consumer ConsumerRecord))) (defn handle-user-added-to-bank-account-event [^UserAddedToBankAccountEvent event] (db/upda...
d0c5e86a2ac4e1fb71d70cdde5b08b2ac9ee347e56037ad76dc7f68b2a2bc959
strictly-lang/compiler
Main.hs
module Main where import Control.Exception (Exception, throwIO) import System.Directory (getCurrentDirectory) import System.Environment (getArgs) import Compiler.Main (parse, getJs) import Text.Megaparsec (ParseErrorBundle, errorBundlePretty) data NoString = NoString deriving (Show) instance Exception NoString mai...
null
https://raw.githubusercontent.com/strictly-lang/compiler/9845176a41ceadb06cddcab163bd0d4fad974d53/src-exe/Main.hs
haskell
Right parsedContent -> return (True, show parsedContent)
module Main where import Control.Exception (Exception, throwIO) import System.Directory (getCurrentDirectory) import System.Environment (getArgs) import Compiler.Main (parse, getJs) import Text.Megaparsec (ParseErrorBundle, errorBundlePretty) data NoString = NoString deriving (Show) instance Exception NoString mai...
9904af41b6be57bbf716458dc27e2b9530a00a638e3c0e08a03cefc59eb660e8
justinethier/cyclone
test-let-values.scm
An alternate test case for SRFI 1 failing to compile : ;(import (scheme base)) ; ;(define-syntax :optional ; (syntax-rules () ; ((:optional rest default-exp) ; (let ((maybe-arg rest)) ; (cond ((null? maybe-arg) default-exp) ; ((null? (cdr maybe-arg)) (car maybe-arg)) ; (else (err...
null
https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/tests/debug/test-let-values.scm
scheme
(import (scheme base)) (define-syntax :optional (syntax-rules () ((:optional rest default-exp) (let ((maybe-arg rest)) (cond ((null? maybe-arg) default-exp) ((null? (cdr maybe-arg)) (car maybe-arg)) (else (error "too many optional arguments" maybe-arg))))))) (define (alist-...
An alternate test case for SRFI 1 failing to compile : (import (scheme base) (scheme write)) (define-syntax mtrace (syntax-rules () ((mtrace x) (begin (display "Trace: ") (write 'x) (newline) x)))) (define-syntax my-let-values (syntax-rules () ((my-let-values ("step") (binds ...) bi...
bbbe2dee151783b347b1636c2a5e0b150dff239327a64d735041a0a59301cc30
startalkIM/ejabberd
eredis_sub.erl
%% Erlang PubSub Redis client %% -module(eredis_sub). -include("eredis.hrl"). %% Default timeout for calls to the client gen_server Specified in #call-3 -define(TIMEOUT, 5000). -export([start_link/0, start_link/1, start_link/3, start_link/6, stop/1, controlling_process/1, controlling_process/2, controlli...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/eredis/src/eredis_sub.erl
erlang
Default timeout for calls to the client gen_server PUBLIC API @doc: Callback for starting from poolboy @doc: Make the calling process the controlling process. The controlling process received pubsub-related messages, of which eredis client process. This is sent for each pubsub message received by the cl...
Erlang PubSub Redis client -module(eredis_sub). -include("eredis.hrl"). Specified in #call-3 -define(TIMEOUT, 5000). -export([start_link/0, start_link/1, start_link/3, start_link/6, stop/1, controlling_process/1, controlling_process/2, controlling_process/3, ack_message/1, subscribe/2, unsubscri...
a05ee95df9f8e21c142ea6ba58fbd2c6c6c6e48006fa5f5798a7c122781b054a
linkfluence/inventory
zone.clj
(ns com.linkfluence.dns.zone (:import [java.io File] [java.time Instant Duration]) (:require [chime.core :as chime :refer [chime-at]] [clojure.string :as str] [clojure.tools.logging :as log] [com.linkfluence.store :as store] [com.linkfluence.u...
null
https://raw.githubusercontent.com/linkfluence/inventory/b69110494f8db210d14cc7093834c441440cd4e8/src/clj/com/linkfluence/dns/zone.clj
clojure
Sample of a zone object { :type : master/forward/slave :notify: yes/no boolean :also-notify : semi-colon separated ip list :forwarders : semi-colon separated ip list :forward (optional) only | first :masters :semi-colon separated ip list :name: dot separated zone name } Useful things for specs ...
(ns com.linkfluence.dns.zone (:import [java.io File] [java.time Instant Duration]) (:require [chime.core :as chime :refer [chime-at]] [clojure.string :as str] [clojure.tools.logging :as log] [com.linkfluence.store :as store] [com.linkfluence.u...
a231cc635b79d3a9f927db5cf4e8985e11b4d5506182f0bc04758f6fb340d7c8
erlang/sourcer
session_data.erl
-module(session_data). -export([ all_tests/0 ]). all_tests() -> [ {initialize_request(), initialize_response()} ]. initialize_request() -> #{capabilities => #{textDocument => #{codeAction => #{dynamicRegistration => true}, codeLens => #{dynamicR...
null
https://raw.githubusercontent.com/erlang/sourcer/27ea9c63998b9e694eb7b654dd05b831b989e69e/apps/erlang_ls/test/session_data.erl
erlang
-module(session_data). -export([ all_tests/0 ]). all_tests() -> [ {initialize_request(), initialize_response()} ]. initialize_request() -> #{capabilities => #{textDocument => #{codeAction => #{dynamicRegistration => true}, codeLens => #{dynamicR...
cb93cde2297b9b9c273f78ffebc342b373cfe051a70a2100f79cd5958be29c2c
charlieg/Sparser
country-words.lisp
Afghan Afghanistan Afghans Albania Albanian Albanians Algeria Algerian Algerians America American American Samoa American Samoan American Samoans Americans Andorra Andorran Andorrans Angola Angolan Angolans Anguilla Anguillan Anguillans Antarctica Antigua And Barbuda Antiguan Antiguans Argentina Argentine Argentines A...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/model/dossiers/country-words.lisp
lisp
Afghan Afghanistan Afghans Albania Albanian Albanians Algeria Algerian Algerians America American American Samoa American Samoan American Samoans Americans Andorra Andorran Andorrans Angola Angolan Angolans Anguilla Anguillan Anguillans Antarctica Antigua And Barbuda Antiguan Antiguans Argentina Argentine Argentines A...