_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
21195f7d21f69211182feae7e2d5aec9410b954c433cfeb7a458de30f2cd6a76
rentpath/rp-jackdaw-clj
integration_test.clj
(ns rp.jackdaw.integration-test (:require [clojure.test :refer :all] [rp.jackdaw.processor :as processor] [rp.jackdaw.topic-registry :as registry] [jackdaw.streams :as streams] [com.stuartsierra.component :as component] [cheshire.core :as json])) ;; ;; This...
null
https://raw.githubusercontent.com/rentpath/rp-jackdaw-clj/bec14f6220b256238b77ada3890d3b6b2bceafd0/test/rp/jackdaw/integration_test.clj
clojure
This demonstrates how one might test a Processor component's topology-builder-fn. The example topology takes a stream of inputs where each has a number `n`. It outputs a stream with the running total, count and average for each key. Note that a real Processor would also need `:app-config` with at least `"applica...
(ns rp.jackdaw.integration-test (:require [clojure.test :refer :all] [rp.jackdaw.processor :as processor] [rp.jackdaw.topic-registry :as registry] [jackdaw.streams :as streams] [com.stuartsierra.component :as component] [cheshire.core :as json])) It uses ...
6ed53b50a5d804c0b4d678d200fcd2a799aa3174a95c7927d740f5f776e056ee
mk270/archipelago
workqueue.mli
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
null
https://raw.githubusercontent.com/mk270/archipelago/4241bdc994da6d846637bcc079051405ee905c9b/src/game/workqueue.mli
ocaml
val pump_one : unit -> unit val pump_all : unit -> unit
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
9e8225c60f32de21e9b2ed22921cc75813dc69581e3711cbc9b9b8aa6d980eb5
alphagov/govuk-guix
rails.scm
(define-module (gds build-system rails) #:use-module (guix store) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix derivations) #:use-module (guix search-paths) #:use-module (guix build-system) #:use-module (guix build-system gnu) #:use-module (ice...
null
https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/build-system/rails.scm
scheme
Build side modules imported by default XXX: no cross-compilation Rails seems to have a transtive dependency on interpreter Keep the standard inputs of 'gnu-build-system'. the default
(define-module (gds build-system rails) #:use-module (guix store) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix derivations) #:use-module (guix search-paths) #:use-module (guix build-system) #:use-module (guix build-system gnu) #:use-module (ice...
8c192f1e176e55b093952b44e94bd516550c602ff48775d12558e2dc20b511ab
mbj/stratosphere
WorkmailActionProperty.hs
module Stratosphere.SES.ReceiptRule.WorkmailActionProperty ( WorkmailActionProperty(..), mkWorkmailActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data Wo...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ses/gen/Stratosphere/SES/ReceiptRule/WorkmailActionProperty.hs
haskell
module Stratosphere.SES.ReceiptRule.WorkmailActionProperty ( WorkmailActionProperty(..), mkWorkmailActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data Wo...
cc0bd6ffab708b2105bd35f5f20ca3b2881d2bdfd0cb4c1f82cddd38914b9e63
stylefruits/rib
rib_parse_tests.erl
-module(rib_parse_tests). -include_lib("eunit/include/eunit.hrl"). parse_uri_test_() -> Cases = [{<<"/foo">>, [{binary, <<"/foo">>}]}, {<<"/foo/{result=prev:$.data.id}-bar">>, [{binary, <<"/foo/">>}, {reference, #{parent => <<"prev">>, ...
null
https://raw.githubusercontent.com/stylefruits/rib/12db75ac93eea8a432d61afb098d9b0410adbe7b/test/rib_parse_tests.erl
erlang
-module(rib_parse_tests). -include_lib("eunit/include/eunit.hrl"). parse_uri_test_() -> Cases = [{<<"/foo">>, [{binary, <<"/foo">>}]}, {<<"/foo/{result=prev:$.data.id}-bar">>, [{binary, <<"/foo/">>}, {reference, #{parent => <<"prev">>, ...
c7f38a3dbd7d90623db509c25374b7f38082119a664076378314f4c41fe38bd5
ggreif/thebook-haskell
Types.hs
# LANGUAGE GeneralizedNewtypeDeriving # ----------------------------------------------------------------------------- -- | -- Module : Data.ITCH Copyright : ( c ) 2014 , License : MIT -- -- Maintainer : -- -- This module specifies types used in ITCH messages and their serialisers, -- as per t...
null
https://raw.githubusercontent.com/ggreif/thebook-haskell/932e281fc00258af38dbc0585fdbebc2af70e4ed/src/Data/ITCH/Types.hs
haskell
--------------------------------------------------------------------------- | Module : Data.ITCH Maintainer : This module specifies types used in ITCH messages and their serialisers, as per the specs at <-and-services/millennium-exchange/technicalinformation/technicalinformation.htm>, specifically: <...
# LANGUAGE GeneralizedNewtypeDeriving # Copyright : ( c ) 2014 , License : MIT Serialisation of dates and times currently relies on ` Data . Time . Format ` module Data.ITCH.Types ( Alpha, BitField, Date(..), Time(..), UInt8, UInt16, UInt32, UInt64, Byte, Price, uint32 , getMessageLength...
1ba0bb45afd33a440edce1a952379dd9edf622c70d7a9b134f91fb098409035c
sebnow/haskell-network-address
IP.hs
Copyright ( c ) 2011 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish ...
null
https://raw.githubusercontent.com/sebnow/haskell-network-address/9c5cffec6f43cc0d2fef8d12b3b123a27e879ed9/Data/Network/Address/IP.hs
haskell
|The byte representation of an IP network mask. |The abstract data structure to represent an IPv6 address. |The abstract data structure to represent an IP subnetwork. |Convert the byte representation to an IP 'Address'. |Return the byte representation of an IP 'Address'. |Parse a textual representation of an IP '...
Copyright ( c ) 2011 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish ...
6c1aec2863f9a43308746d1a123c8f269fddf027b97569b1c5a44a8aab1663f8
8c6794b6/haskell-sc-scratch
THSrc.hs
# LANGUAGE TemplateHaskell # ------------------------------------------------------------------------------ -- | -- Module : $Header$ CopyRight : ( c ) 8c6794b6 -- License : BSD3 Maintainer : -- Stability : unstable Portability : non - portable ( concurrency specific to ghc ) -- Playing with ...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/TH/THSrc.hs
haskell
---------------------------------------------------------------------------- | Module : $Header$ License : BSD3 Stability : unstable | To see pretty printed representation, try: m2 = match (tupP (replicate n wildP)) (normalB (listE [])) [] fun01'd2 = [d| $fun01 |]
# LANGUAGE TemplateHaskell # CopyRight : ( c ) 8c6794b6 Maintainer : Portability : non - portable ( concurrency specific to ghc ) Playing with , printf . module THSrc where import Language.Haskell.TH printf :: String -> ExpQ printf s = gen (parse s) [| "" |] data Format = D | S | L String ...
b1b2c312f5e883cbf4f39f4122ddd1c6d1a8da2d0bafbcedb30a3270749870d1
liarokapisv/danac
Parser.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE PatternSynonyms # module Danac.Parser where import Text.Megaparsec import qualified Text.Megaparsec.Char.Lexer as L import qualified Text.Megaparsec.Char as C import Control.Monad.Combinators....
null
https://raw.githubusercontent.com/liarokapisv/danac/662408790ea1bd18ef2462dce45b947e3b8efa74/src/Danac/Parser.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE PatternSynonyms # module Danac.Parser where import Text.Megaparsec import qualified Text.Megaparsec.Char.Lexer as L import qualified Text.Megaparsec.Char as C import Control.Monad.Combinators.Expr import Data.Text import Data.V...
d3c8d6f0e0cbabc44e34f5be1d32090b589d3a57cdb50520f4a1e1f32db7d66b
haskell-suite/base
Marshal.hs
# LANGUAGE Unsafe # # LANGUAGE CPP , NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Foreign.Marshal Copyright : ( c ) The FFI task force 2003 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : -- Sta...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Foreign/Marshal.hs
haskell
--------------------------------------------------------------------------- | Module : Foreign.Marshal License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable Marshalling support -------------------------------------------------------------------...
# LANGUAGE Unsafe # # LANGUAGE CPP , NoImplicitPrelude # Copyright : ( c ) The FFI task force 2003 Maintainer : module Foreign.Marshal ( @Foreign . Marshal@ hierarchy : module Foreign.Marshal.Safe ) where import Foreign.Marshal.Safe
29e62bf6dcbd19cc4502f0f86de75f0cb5dc2b36aeb2ad09adfa4a44f866bbfb
S8A/htdp-exercises
ex481.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex481) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex481.rkt
racket
about the language level of this file in a form that our tools can easily process. (make-posn CI CI) interpretation (make-posn c r) denotes the square at data examples: QP data examples: [List-of QP] N -> [Maybe [List-of QP]] finds a solution to the n queens problem (place-queens (board0 n) n)) (check-sati...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex481) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "image.rkt" "teachpac...
e78e243625ab23f9ff72f599d1451031991c62b86bcf89f1f4a6501fe2cc45a7
dgtized/shimmers
gravity_well.cljs
(ns shimmers.sketches.gravity-well (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.common.particle-system :as particles] [shimmers.sketch :as sketch :include-macros true] [thi.ng.geom.core :as g] [thi.ng.geom.vector :as ...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/gravity_well.cljs
clojure
(ns shimmers.sketches.gravity-well (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.common.particle-system :as particles] [shimmers.sketch :as sketch :include-macros true] [thi.ng.geom.core :as g] [thi.ng.geom.vector :as ...
177b3a608233e315e4e99b8d69bc28f8e9c1e9a3614814071efbc048176c87df
metosin/reitit
project.clj
(defproject metosin/reitit-swagger "0.6.0" :description "Reitit: Swagger-support" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url "" :dir "../.."} :plugins [[lein-parent "0.3.2"]] :parent-project {:path "../../project.clj" ...
null
https://raw.githubusercontent.com/metosin/reitit/47f1ee0c8407cdc6a6dbf7bf58b6eb682531a3f7/modules/reitit-swagger/project.clj
clojure
(defproject metosin/reitit-swagger "0.6.0" :description "Reitit: Swagger-support" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url "" :dir "../.."} :plugins [[lein-parent "0.3.2"]] :parent-project {:path "../../project.clj" ...
9ea6e8a12cfdc55501c24156846807bbc8083d08456211a3b0d8184d022c9f84
fold-lang/pratt
Test_lispy.ml
open Local let inspect pp = Format.fprintf Fmt.stderr "@[%a@.@]" pp let log fmt = Format.kfprintf (fun f -> Format.pp_print_newline f ()) Fmt.stderr fmt let _1 = fst module Stream = Pratt.Stream module P = Pratt.Make(Lispy_lexer.Token) module G = P.Grammar let (>>=) = P.(>>=) module E = struct type t = [ `s...
null
https://raw.githubusercontent.com/fold-lang/pratt/8a8d2fd439e5e30b5ae587bd71e810c8bc6adf42/tests/Test_lispy.ml
ocaml
Basic calculator grammar. Helper testing function that parses the input and checks the result. Tests
open Local let inspect pp = Format.fprintf Fmt.stderr "@[%a@.@]" pp let log fmt = Format.kfprintf (fun f -> Format.pp_print_newline f ()) Fmt.stderr fmt let _1 = fst module Stream = Pratt.Stream module P = Pratt.Make(Lispy_lexer.Token) module G = P.Grammar let (>>=) = P.(>>=) module E = struct type t = [ `s...
83a6828e6079819a998c06fe93072d308ef827544250c00002e3cfc9b21fc33e
patrikja/AFPcourse
ArrayBug.hs
# LANGUAGE TypeFamilies , FlexibleInstances , FlexibleContexts # module Array where {- A type family is like a function on the type level where you can pattern match on the type arguments. An important difference is that it's /open/ which means that you can add more equations to the function at any time. In ...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L13/src/ArrayBug.hs
haskell
A type family is like a function on the type level where you can pattern match on the type arguments. An important difference is that it's /open/ which means that you can add more equations to the function at any time. In this example we will implement a type family of efficient array implementations. ...
# LANGUAGE TypeFamilies , FlexibleInstances , FlexibleContexts # module Array where type SuperEfficientByteArray = [Int] data family Array a lengths of the subarrays . newtype instance Array Int = ArrInt SuperEfficientByteArray data instance Array (a, b) = ArrPair (Array a) (Array b) data instance ...
fb78acc9f0125263c5b9d199ffe81097cd6298d79e5b9bae7314e78545b1f13a
privet-kitty/dufy
convert.lisp
;;; Munsell - to- converters The primary converter is MHVC - TO - LCHAB - ILLUM - C ;;; (in-package :dufy/munsell) (declaim (ftype (function * (values (double-float 0d0 360d0) double-float double-float &optional)) mhvc-to-lchab-all-integer-case mhvc-to-lchab-value-chroma-integer-ca...
null
https://raw.githubusercontent.com/privet-kitty/dufy/c6ad03a9fca16a759c1c52449ac88420a536feca/src/munsell/convert.lisp
lisp
actual value equals SCALED-VALUE/5 if DARK is true. use the fact that the chroma and hue of LCh(ab) For development Not exported. "Illuminant D65. (multiple-value-call #'xyz-to-qrgb (munsell-to-xyz munsellspec) :rgbspace rgbspace :clamp clamp))
Munsell - to- converters The primary converter is MHVC - TO - LCHAB - ILLUM - C (in-package :dufy/munsell) (declaim (ftype (function * (values (double-float 0d0 360d0) double-float double-float &optional)) mhvc-to-lchab-all-integer-case mhvc-to-lchab-value-chroma-integer-case ...
ad5e616e50cae4bab189e24cb56f21c0baaa07634ff7f1fbae26b37c9c8a194e
ocaml-gospel/cameleer
fast_exponentiation.ml
(*@ open Power *) let rec fast_exp x n = if n = 0 then 1 else let r = fast_exp x (n / 2) in if n mod 2 = 0 then r * r else r * r * x @ r = fast_exp x n requires 0 < = n variant n ensures r = x ^ n requires 0 <= n variant n ensures r = x ^ n *)
null
https://raw.githubusercontent.com/ocaml-gospel/cameleer/fcf00fe27e0a41125880043aa9aa633399fc8cc2/examples/fast_exponentiation.ml
ocaml
@ open Power
let rec fast_exp x n = if n = 0 then 1 else let r = fast_exp x (n / 2) in if n mod 2 = 0 then r * r else r * r * x @ r = fast_exp x n requires 0 < = n variant n ensures r = x ^ n requires 0 <= n variant n ensures r = x ^ n *)
13a97d2d07853806e8005bd845bdd43f7f5e211da1c1c2f7b2b4cd9545f7069d
discoproject/disco
ddfs_gc_node.erl
-module(ddfs_gc_node). -export([start_gc_node/5]). -include_lib("kernel/include/file.hrl"). -include("common_types.hrl"). -include("config.hrl"). -include("ddfs.hrl"). -include("ddfs_gc.hrl"). The module contains the node - local portion of the DDFS GC / RR % algorithm. -spec start_gc_node(node(), pid(), erlang:t...
null
https://raw.githubusercontent.com/discoproject/disco/be65272d3eecca184a3c8f2fa911b86ac87a4e8a/master/src/ddfs/ddfs_gc_node.erl
erlang
algorithm. node-local DDFS content across all volumes. (tags and blobs). obj : {Key :: object_name(), Vol :: volume_name(), Size :: non_neg_integer(), in_use :: 'false' | 'true'} Now, dispatch to the phase that is running on the master. GC1) Remove leftover !partial. files GC...
-module(ddfs_gc_node). -export([start_gc_node/5]). -include_lib("kernel/include/file.hrl"). -include("common_types.hrl"). -include("config.hrl"). -include("ddfs.hrl"). -include("ddfs_gc.hrl"). The module contains the node - local portion of the DDFS GC / RR -spec start_gc_node(node(), pid(), erlang:timestamp(), p...
c376d4d997385802a4062e8abcf96285ea1edf5a0bd3f2d4773d16db8c44bc4a
andrewthad/sockets
Indefinite.hs
# language BangPatterns # # language LambdaCase # {-# language MultiWayIf #-} module Stream.Send.Indefinite ( send , sendOnce , sendLoop ) where import Control.Concurrent.STM (TVar) import Foreign.C.Error (Errno(..), eAGAIN, eWOULDBLOCK, ePIPE, eCONNRESET) import Foreign.C.Types (CSize) import Socket.Error (d...
null
https://raw.githubusercontent.com/andrewthad/sockets/90d314bd2ec71b248a90da6ad964c679f75cfcca/src-stream-send/Stream/Send/Indefinite.hs
haskell
# language MultiWayIf # Send the entirely of the buffer, making repeated calls to POSIX @send@ if necessary. This is used for stream sockets. This function is exported but only so that it may be reused TODO: sendOnce and send (along with their recursive helper functions) are extremely similar. Maybe there is a way...
# language BangPatterns # # language LambdaCase # module Stream.Send.Indefinite ( send , sendOnce , sendLoop ) where import Control.Concurrent.STM (TVar) import Foreign.C.Error (Errno(..), eAGAIN, eWOULDBLOCK, ePIPE, eCONNRESET) import Foreign.C.Types (CSize) import Socket.Error (die) import Socket.EventManag...
3f8af180b3e8992ebc9a52528d437fbf7eb51ae7beb3c502ecea136287411de2
8c6794b6/guile-tjit
registers.scm
;;;; Registers used in vm-tjit engine Copyright ( C ) 2015 , 2016 Free Software Foundation , Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the ...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/language/trace/registers.scm
scheme
Registers used in vm-tjit engine This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITN...
Copyright ( C ) 2015 , 2016 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (define-module (language trac...
4736b740078fe60196b97830cb403ff46e0c06b8984f037e5d90e3e0aea8ba74
corecursive/sicp-study-group
ex02_34.scm
* Exercise 2.34 :* Evaluating a polynomial in x at a given value of ;; x can be formulated as an accumulation. We evaluate the polynomial ;; a_n ) r^(n-1 ) + ... + a_1 r + a_0 ;; using a well - known algorithm called " 's rule " , which ;; structures the computation as ;; ;; ...
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/854d5ddf250b6d1f3eb333e42544ec25820fd303/plundaahl/exercises/ex02_34.scm
scheme
x can be formulated as an accumulation. We evaluate the polynomial structures the computation as (... (a_n r + a_(n-1)) r + ... + a_1) r + a_0 In other words, we start with a_n, multiply by x, add a_(n-1), multiply by x, and so on, until we reach a_0.(3) Fill in the following te...
* Exercise 2.34 :* Evaluating a polynomial in x at a given value of a_n ) r^(n-1 ) + ... + a_1 r + a_0 using a well - known algorithm called " 's rule " , which evaluates a polynomial using Horner 's rule . Assume that the a_0 through a_n . ( define ( x coefficient...
7bd6c14728444bc1f944141f0f3d66d90ff503e32bbdf2792f35786cfc3d7425
abdulapopoola/SICPBook
Ex3.38.scm
#lang planet neil/sicp Possible values - 45 , 40 , 50 , 35 If interleaved - 110 , 80 , 50 , 45 , etc
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%203/3.3/Ex3.38.scm
scheme
#lang planet neil/sicp Possible values - 45 , 40 , 50 , 35 If interleaved - 110 , 80 , 50 , 45 , etc
d22d0ff69543b10c20c45d7644f048216ca4c05367e8b1f9d5f175ad2636b77c
silverpond/hat
validations_test.clj
(ns hat.validations_test (:require [clojure.test :refer :all] [vlad.core :refer :all] [hat.common :refer [description]] [hat.validation :as v] [hat.controllers :as c] [ring.util.io :as rio])) (def age-required (equals-value 1 [:age])) (def validation-rul...
null
https://raw.githubusercontent.com/silverpond/hat/4e4a5dd89cac29c0a0cf68e4f02b76523e096276/test/hat/validations_test.clj
clojure
TODO: Parameterise and unify with other handler. TODO: Unify with other implementation.
(ns hat.validations_test (:require [clojure.test :refer :all] [vlad.core :refer :all] [hat.common :refer [description]] [hat.validation :as v] [hat.controllers :as c] [ring.util.io :as rio])) (def age-required (equals-value 1 [:age])) (def validation-rul...
e9ab9ad44e12cc1b95f1e3525a446737d7fe81fcb0206dfa64ce42459c2697cc
evertedsphere/silica
CTypes.hs
----------------------------------------------------------------------------- -- | Module : Silica . Internal . Copyright : ( C ) 2012 - 2016 , ( C ) 2017 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : experimental -- Portability : non-portable -- -...
null
https://raw.githubusercontent.com/evertedsphere/silica/346006f7b58142c6479395e93338134f541034cc/src/Silica/Internal/CTypes.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable In "Silica.Wrapped", we need to muck around with the internals of the newtypes in "Foreign.C.Types". Unfortunately, the exact types...
Module : Silica . Internal . Copyright : ( C ) 2012 - 2016 , ( C ) 2017 Maintainer : < > carte blanche that might be used internally in " Foreign . C.Types " . For module Silica.Internal.CTypes ( module Data.Int , Ptr , module Data.Word ) where import Data.Int import Data.Word ...
f070e9d0e2ff72b1101866348a88846afbd76218cf9b987b15fa6ce1c73399e5
fredrikt/yxa
yxa_app.erl
%%%------------------------------------------------------------------- %%% File : yxa_app.erl @author < > @doc Behaviour definition for YXA applications . %%% @since 01 Sep 2006 by < > %%% @end %%% @hidden %%%------------------------------------------------------------------- -module(yxa_app...
null
https://raw.githubusercontent.com/fredrikt/yxa/85da46a999d083e6f00b5f156a634ca9be65645b/src/yxa_app.erl
erlang
------------------------------------------------------------------- File : yxa_app.erl @end @hidden ------------------------------------------------------------------- -------------------------------------------------------------------- @spec (callbacks) -> [tuple()] @doc Describe all the API functions...
@author < > @doc Behaviour definition for YXA applications . @since 01 Sep 2006 by < > -module(yxa_app). -export([behaviour_info/1 ]). an YXA application must export . List of tuples of the behaviour_info(callbacks) -> [{config_defaults, 0}, {init, 0}, {request, 2},...
c98e6e9894691de2f5fa3d1444fd0c5ee4702d219e0f83117842f0cbce3d5182
bldl/magnolisp
test-simple-1.rkt
#lang magnolisp/2014 (require magnolisp/core) (define int #ap(foreign) (if #f (#%magnolisp 'foreign-type) #f)) (define f #ap(^(fn int int) (export public_f)) (lambda (an-x) an-x)) (f 1)
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/test-simple-1.rkt
racket
#lang magnolisp/2014 (require magnolisp/core) (define int #ap(foreign) (if #f (#%magnolisp 'foreign-type) #f)) (define f #ap(^(fn int int) (export public_f)) (lambda (an-x) an-x)) (f 1)
3416f8b400f393bd6cb89e5f57f648ca79904889e1ea129401e483ade9026544
stchang/macrotypes
fabul-utils.rkt
#lang racket (require syntax/parse turnstile/mode (for-syntax syntax/parse syntax/stx racket/syntax) (for-template macrotypes/typecheck-core (only-in "lin.rkt" linear-mode? make-empty-linear-mode))) (provi...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/linear/fabul-utils.rkt
racket
generates function to convert type into language e.g. (type-converter [ <clauses> ... ] [ A => B ] [ C => D ] <fail-function>)
#lang racket (require syntax/parse turnstile/mode (for-syntax syntax/parse syntax/stx racket/syntax) (for-template macrotypes/typecheck-core (only-in "lin.rkt" linear-mode? make-empty-linear-mode))) (provi...
89de5ae76a9ae58377fd93cf4891b66aa074d19146fb8b12381a3a45d9e13cd9
3b/3bgl-misc
builder.lisp
(in-package #:buffer-builder) ;;; dsl for building VBOs #++ (with-vbo-builder (b 16 size :adjustable t :layout-var layout :layout ((vertex :vec4) (normal :vec3) ;; prev location + 1 (foo ...
null
https://raw.githubusercontent.com/3b/3bgl-misc/e3bf2781d603feb6b44e5c4ec20f06225648ffd9/buffer-builder/builder.lisp
lisp
dsl for building VBOs prev location + 1 (possibly add error option as well?) stores previous value until called again coerce ints to floats, default to x,0,0,1 for vec4 accept sb-cga vec accept typed array + extra element(s) for vec4? set up vertex arrays code fragment to be added to writers, with R...
(in-package #:buffer-builder) #++ (with-vbo-builder (b 16 size :adjustable t :layout-var layout :layout ((vertex :vec4) (foo :vec4) specify location , scale 0 .. 1 to 0 .. 255 ' ub ' clamps to 0 .. 255 before sto...
6a463a2bea462870b8af915655cf30b56fa2ec7606dca799117234490dd94194
jacekschae/learn-re-frame-course-files
recipes.cljs
(ns app.recipes.views.recipes) (defn recipes [] [:div "recipes"])
null
https://raw.githubusercontent.com/jacekschae/learn-re-frame-course-files/a86e6f14b89c595b4389b03459539a9544af4e1d/increments/12-page-nav/src/app/recipes/views/recipes.cljs
clojure
(ns app.recipes.views.recipes) (defn recipes [] [:div "recipes"])
be466856507ee72d752f37fe0f95dd46ce1cdc48404942607a221e011f03101c
metaocaml/ber-metaocaml
show_short_paths.ml
(* TEST flags = " -short-paths " * expect *) (* This is currently just a regression test for the bug reported here: *) #show list;; [%%expect {| type nonrec 'a list = [] | (::) of 'a * 'a list |}];; type 'a t;; #show t;; [%%expect {| type 'a t type nonrec 'a t |}];;
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-toplevel/show_short_paths.ml
ocaml
TEST flags = " -short-paths " * expect This is currently just a regression test for the bug reported here:
#show list;; [%%expect {| type nonrec 'a list = [] | (::) of 'a * 'a list |}];; type 'a t;; #show t;; [%%expect {| type 'a t type nonrec 'a t |}];;
4f8ed9a91f60b82b0726384cb2d4487c460f61e7d1163ed6314e06f1ccc0ab2c
protojure/lib
grpc_web.clj
Copyright © 2019 State Street Bank and Trust Company . All rights reserved Copyright © 2019 - 2022 Manetu , Inc. All rights reserved ;; SPDX - License - Identifier : Apache-2.0 (ns protojure.pedestal.interceptors.grpc-web "A [Pedestal](/) [interceptor]() for the [GRPC-WEB](-WEB.md) protocol" (:require [i...
null
https://raw.githubusercontent.com/protojure/lib/795080d2f608eac3f25ddc143e9b1ea9344e3b61/modules/grpc-server/src/protojure/pedestal/interceptors/grpc_web.clj
clojure
Copyright © 2019 State Street Bank and Trust Company . All rights reserved Copyright © 2019 - 2022 Manetu , Inc. All rights reserved SPDX - License - Identifier : Apache-2.0 (ns protojure.pedestal.interceptors.grpc-web "A [Pedestal](/) [interceptor]() for the [GRPC-WEB](-WEB.md) protocol" (:require [io.p...
72a9119224d9d53a8db9ed18d96d58fe4633afe99d5f974f4517c454d78ca3bd
jaked/ocamljs
jslib_ast.ml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jslib/jslib_ast.ml
ocaml
I don't really understand what's going on here but this is how Camlp4Ast.mlast does it. XXX translate the argument location XXX translate the argument location?
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
62f2197dea346de91b8cfdfd7675c995f0b38636ec5f1cfb610b0d4c86191fe4
xapi-project/xen-api-libs
fe_main.ml
(** We write our PID here when we're ready to receive connections. *) let default_pidfile = "/var/run/fe.pid" open Fe_debug let setup sock cmdargs id_to_fd_map syslog_stdout env = let fd_sock_path = Printf.sprintf "/var/xapi/forker/fd_%s" (Uuid.to_string (Uuid.make_uuid ())) in let fd_sock = Fecomms.open_un...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/forking_executioner/fe_main.ml
ocaml
* We write our PID here when we're ready to receive connections. Grandchild Child Parent At this point the init.d script should return and we are listening on our socket.
let default_pidfile = "/var/run/fe.pid" open Fe_debug let setup sock cmdargs id_to_fd_map syslog_stdout env = let fd_sock_path = Printf.sprintf "/var/xapi/forker/fd_%s" (Uuid.to_string (Uuid.make_uuid ())) in let fd_sock = Fecomms.open_unix_domain_sock () in Unixext.unlink_safe fd_sock_path; debug "Abou...
96979031aa70f9e68d08c873a31338735b16a157fd082e336da205d776ce98b3
tschady/advent-of-code
d25_test.clj
(ns aoc.2015.d25-test (:require [aoc.2015.d25 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= 8997277 (sut/part-1 sut/input))))
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2015/d25_test.clj
clojure
(ns aoc.2015.d25-test (:require [aoc.2015.d25 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= 8997277 (sut/part-1 sut/input))))
8a6e42f011b0f0ced7f9153f9751fbce8f1921e81c9f44c9d9715d013bdc24a2
freizl/hoauth2
Internal.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module Network.OAuth.OAuth2.Internal where import Control.Arrow (second) import Control.Monad.Catch import Data.Aeson import Data.Aeson.Types (Parser, explicitPar...
null
https://raw.githubusercontent.com/freizl/hoauth2/f35f7be3c1f799431059cdf4cb89b407353b6852/hoauth2/src/Network/OAuth/OAuth2/Internal.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------ * Data Types ------------------------------------------------ | Query Parameter Representation | Authorization Code | -editor.org/rfc/rfc6749#section-4.1.4 ^ See -editor.org/rfc/rfc6749#section-5.1. It's required per spec. But OAuth2 p...
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module Network.OAuth.OAuth2.Internal where import Control.Arrow (second) import Control.Monad.Catch import Data.Aeson import Data.Aeson.Types (Parser, explicitParseFieldMaybe) import Data.Binary (B...
5c4e47b90f94993d4cd7a669564934ee1cedfe526b027b4c46a996ee5e7a5d7d
ghc/ghc
T22728b.hs
{-# LANGUAGE Safe #-} {-# LANGUAGE Haskell2010 #-} # OPTIONS_GHC -Werror = inferred - safe - imports # module T22728b (module T22728b_B) where import T22728b_B
null
https://raw.githubusercontent.com/ghc/ghc/c79b2b65fff93b4f4e38e5d124f0cb8c6ef704c0/testsuite/tests/safeHaskell/warnings/T22728b.hs
haskell
# LANGUAGE Safe # # LANGUAGE Haskell2010 #
# OPTIONS_GHC -Werror = inferred - safe - imports # module T22728b (module T22728b_B) where import T22728b_B
425729bd97f2011ca6dbaf59caf9de305bb500c6214b7d12cd2724965fdd718a
ktakashi/sagittarius-scheme
keystore.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; sagittarius / crypto / pkix / keystore.scm - PKCS#12 keystore ;;; Copyright ( c ) 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/80d73e019394331afbb6c7b6bf6a6efc0af8ed6e/ext/crypto/sagittarius/crypto/pkcs/keystore.scm
scheme
coding : utf-8 ; -*- 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 and the following disclaimer. 2...
sagittarius / crypto / pkix / keystore.scm - PKCS#12 keystore 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 ...
560a6d81b2f76dbaef88094282dc2c0e500c93763fffbb366147c873bddb93c8
clj-kondo/clj-kondo
instance_invocations_test.clj
(ns clj-kondo.analysis.instance-invocations-test (:require [clj-kondo.core :as clj-kondo] [clj-kondo.impl.utils :refer [err]] [clj-kondo.test-utils :refer [assert-submaps]] [clojure.test :as t :refer [deftest is testing]])) (defn analyze ([paths] (analyze paths nil)) ([paths config] (:analysis ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/7967d2e26f75fb39c2eae1eada327f9b27fe048c/test/clj_kondo/analysis/instance_invocations_test.clj
clojure
(ns clj-kondo.analysis.instance-invocations-test (:require [clj-kondo.core :as clj-kondo] [clj-kondo.impl.utils :refer [err]] [clj-kondo.test-utils :refer [assert-submaps]] [clojure.test :as t :refer [deftest is testing]])) (defn analyze ([paths] (analyze paths nil)) ([paths config] (:analysis ...
e6d015dfdcb95a5cf0b3917b51ccebae546eba03758cc54354837a14f1ecafed
charlieg/Sparser
form.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1992,1993,1994,1995 -- all rights reserved ;;; ;;; File: "form" ;;; Module: "objects;model:tree-families:" version : 0.7 July 1995 initiated 8/4/92 v2.3 , fleshed out 8/10 0.1 ( 10/24 ) Added processing of rule cases ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/model/tree-families/form.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "form" Module: "objects;model:tree-families:" categories they may mention (they're not all substitution terms!) and made them explictly decoded since they have to change to work at runtime (5/3/94) fixed bug in treatment of ...
copyright ( c ) 1992,1993,1994,1995 -- all rights reserved version : 0.7 July 1995 initiated 8/4/92 v2.3 , fleshed out 8/10 0.1 ( 10/24 ) Added processing of rule cases because of the words and 0.2 ( 6/12/93 ) removed ' edge ' symbols from the substitution terms list 0.3 ( 5/17 ) put in explicit...
2c03ca3cf6e54ee7067e07bc1807eaf7a85fdfb6913fffa508782e83bd382351
bobzhang/fan
fan_warnings.mli
type t = Locf.t -> string -> unit val emit : Locf.position -> string -> unit val emitf : Locf.position -> ('a, unit, string, unit) format4 -> 'a val default : t val current : t ref val print : t
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/common/fan_warnings.mli
ocaml
type t = Locf.t -> string -> unit val emit : Locf.position -> string -> unit val emitf : Locf.position -> ('a, unit, string, unit) format4 -> 'a val default : t val current : t ref val print : t
a5303c5d895721e313269d999dedc82349102ad51e57f0c933cbb6086cdf67f0
godfat/sandbox
banana.hs
module Main where import Control.Monad (forever) cabal import System.Console.ANSI (setCursorPosition, clearScreen) -- cabal install reactive-banana import Reactive.Banana (Event, Moment, stepper) import Reactive.Banana.Frameworks help :: IO () help = clearScreen >> setCursorPosition 0 0 >> putStrLn "Input a ...
null
https://raw.githubusercontent.com/godfat/sandbox/eb6294238f92543339adfdfb4ba88586ba0e82b8/haskell/reactive/banana.hs
haskell
cabal install reactive-banana setup data dependency register event handlers
module Main where import Control.Monad (forever) cabal import System.Console.ANSI (setCursorPosition, clearScreen) import Reactive.Banana (Event, Moment, stepper) import Reactive.Banana.Frameworks help :: IO () help = clearScreen >> setCursorPosition 0 0 >> putStrLn "Input a number:" main :: IO () main = d...
23e77d97d57018efded0ea3c7b9c85c5182334f94d4a7c5f1bedb292c13ce576
hcvst/erlang-dns
simple_backend.erl
%%%---------------------------------------------------------------------------- @doc Erlang DNS ( EDNS ) OTP application %%% The simple backend demonstrates how to provide a callback module to the DNS server . %%% %%% Callback modules are registered with the server using %%% ends:register_...
null
https://raw.githubusercontent.com/hcvst/erlang-dns/cac34b16d565d228a11acfad670d7bba321a3ddc/src/simple_backend.erl
erlang
---------------------------------------------------------------------------- The simple backend demonstrates how to provide a callback module to Callback modules are registered with the server using ends:register_zone_provider/2. and are expected to return a list of #dns_rr records. ...
@doc Erlang DNS ( EDNS ) OTP application the DNS server . @author v. Stockhausen < > -module(simple_backend). -export([get_zone/1]). get_zone(Zone) -> {ok, Zone}.
e5373a111d11a5c043799d9e0a1cdc544add6a11ba8211d24b72807b5875f02c
taktoa/hsdm
GTK3.hs
{-# LANGUAGE PackageImports #-} ----------------------------------------------------------------------------- -- | -- Module : Control.FRPNow.GTK3 Copyright : ( c ) 2015 -- License : BSD-style -- Maintainer : -- Stability : provisional -- Portability : portable -- This module provides in...
null
https://raw.githubusercontent.com/taktoa/hsdm/e088ddbd20da76ac40450ae4cca9b1f87d042c58/haskell/src/Control/FRPNow/GTK3.hs
haskell
# LANGUAGE PackageImports # --------------------------------------------------------------------------- | Module : Control.FRPNow.GTK3 License : BSD-style Maintainer : Stability : provisional Portability : portable * General interface * Utility functions attribute is updated. > IO () and...
Copyright : ( c ) 2015 This module provides interoperability of FRPNow and the GTK system . module Control.FRPNow.GTK3 runNowGTK, setAttr, getSignal , getUnitSignal, getSimpleSignal , getClock , createLabel, createButton , createProgressBar, createSlider ) where import Control.Ap...
c32e87c83136e2d5c8c785abb0c8789c721f369aeb43a471885bbeec9f099ad4
racket/htdp
clauses-spec-aux.rkt
#lang racket/base ;; --------------------------------------------------------------------------------------------------- ;; provides constants and functions for specifying the shape of clauses in big-bang and universe (provide port> nat> opt-nat> nat? proc> bool> num> ip> string> symbol> display-mode> string-or-sym...
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-lib/2htdp/private/clauses-spec-aux.rkt
racket
--------------------------------------------------------------------------------------------------- provides constants and functions for specifying the shape of clauses in big-bang and universe Symbol X -> X : boolean? Symbol X -> X : string? Symbol X -> X : symbol? Symbol X -> X : symbol? Symbol X -> X : sy...
#lang racket/base (provide port> nat> opt-nat> nat? proc> bool> num> ip> string> symbol> display-mode> string-or-symbol> any> K False True) (require racket/format racket/string htdp/error "check-aux.rkt") (define (K w . r) w) (define (False w) #f) (define (True w) #t) Symbol X - > X : ? (define (port> tag x) ...
36d3d18aebd7c99c3ce272ea79a3c122a76db8197442bac1527e3b04b90ce1b0
ogri-la/strongbox
toc_test.clj
(ns strongbox.toc-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [strongbox [zip :as zip] [constants :as constants] [utils :as utils :refer [join]] [toc :as toc] [test-helper :as helper]] [me.raynes.fs :as fs])) (use-fixtures :each helper/fixture-tempcwd) (def to...
null
https://raw.githubusercontent.com/ogri-la/strongbox/11cf358df13e42f5295e5f58c5807cf79a774b99/test/strongbox/toc_test.clj
clojure
no gap between comment and attribute no gap between attribute and value n-comments duplicate attributes are overwritten comment-comments used in templating .toc files #L1-L6 all of this can be derived from the directory name and sensible defaults empty/no title classic interface version gets a :classic game-t...
(ns strongbox.toc-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [strongbox [zip :as zip] [constants :as constants] [utils :as utils :refer [join]] [toc :as toc] [test-helper :as helper]] [me.raynes.fs :as fs])) (use-fixtures :each helper/fixture-tempcwd) (def to...
e736443845568f04bb89862cefa0d4913f13d53b4b56dd689a48cec918341767
schemedoc/implementation-metadata
racket.scm
(title "Racket") (alternative-title "PLT Scheme") (alternative-title "MzScheme") (alternative-title "DrScheme") (based-on "libscheme") (group "PLT") (person "Matthew Flatt") (person "Eli Barzilay") (person "Robby Findler") (person "Sam Tobin-Hochstadt") (academy "Northwestern University") (academy "University of Utah"...
null
https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/racket.scm
scheme
(title "Racket") (alternative-title "PLT Scheme") (alternative-title "MzScheme") (alternative-title "DrScheme") (based-on "libscheme") (group "PLT") (person "Matthew Flatt") (person "Eli Barzilay") (person "Robby Findler") (person "Sam Tobin-Hochstadt") (academy "Northwestern University") (academy "University of Utah"...
b7c9caa13d353ca118bfc0b54dc37b76838596fee2bf169cc8e24c11926a6661
degree9/uikit-hl
upload.cljs
(ns uikit-hl.upload (:require [hoplon.core :as h] [hoplon.jquery] [uikit-hl.core :as uk])) (defmulti uk-upload! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-upload! elem key val)) (defn- format-upload [upload] (str "uk-upload-" upload)) (defmethod...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/upload.cljs
clojure
(ns uikit-hl.upload (:require [hoplon.core :as h] [hoplon.jquery] [uikit-hl.core :as uk])) (defmulti uk-upload! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-upload! elem key val)) (defn- format-upload [upload] (str "uk-upload-" upload)) (defmethod...
46558cdb1ae2d60839f246ef44bf67ea4942ef1b9ae98ffc6f9c080be1a8e002
tisnik/clojure-examples
core_test.clj
(ns clojure8-test.core-test (:require [clojure.test :refer :all] [clojure8-test.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/clojure8-test/test/clojure8_test/core_test.clj
clojure
(ns clojure8-test.core-test (:require [clojure.test :refer :all] [clojure8-test.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
f243f5f4f52a4dbd6056a90f02443bb7fc2fb31ba34a7262036f72ec4a06d3b8
hopv/MoCHi
predVar.mli
(** Predicate variables *) (** @invariant for any P(x1,...,xn), xi are are different from each other *) type t * { 6 Printers } val pr : Format.formatter -> t -> unit val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Idnt.t -> TypEnv.t -> t val of_type : Idnt.t -> Type.t -> t ...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/predVar.mli
ocaml
* Predicate variables * @invariant for any P(x1,...,xn), xi are are different from each other * [pat_match pv1 pv2] matches pv2 with pv1
type t * { 6 Printers } val pr : Format.formatter -> t -> unit val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Idnt.t -> TypEnv.t -> t val of_type : Idnt.t -> Type.t -> t * { 6 Auxiliary destructors } val to_formula : t -> Formula.t * { 6 } val fold : (Idnt.t -> TypEnv.t ->...
54432fd389bb44e9db7ca2c58e292b577b748c8fe7a133f7851c3e632ca6039c
jepsen-io/jepsen
postgres_rds.clj
(ns jepsen.postgres-rds "Tests for Postgres RDS" (:require [clojure.tools.logging :refer :all] [clojure.core.reducers :as r] [clojure.java.io :as io] [clojure.string :as str] [clojure.pprint :refer [pprint]] [knossos.op :as op] [jepsen [client ...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/postgres-rds/src/jepsen/postgres_rds.clj
clojure
Postgres MariaDB Create table Create initial accts
(ns jepsen.postgres-rds "Tests for Postgres RDS" (:require [clojure.tools.logging :refer :all] [clojure.core.reducers :as r] [clojure.java.io :as io] [clojure.string :as str] [clojure.pprint :refer [pprint]] [knossos.op :as op] [jepsen [client ...
926cfe32fe99927dbfddc32e11b55f988403f53d27f74b74f29b472e3443f10f
arachne-framework/valuehash
bench.clj
(ns valuehash.bench (:require [valuehash.api :as api] [criterium.core :as c] [clojure.test.check.generators :as gen] [clojure.test.check.random :as random] [clojure.test.check.rose-tree :as rose])) (defn- sample-seq "Return a sequence of realized values from `generat...
null
https://raw.githubusercontent.com/arachne-framework/valuehash/ff1d4b7f1260daf41c786a61cb45d02871b7baf9/test/valuehash/bench.clj
clojure
(ns valuehash.bench (:require [valuehash.api :as api] [criterium.core :as c] [clojure.test.check.generators :as gen] [clojure.test.check.random :as random] [clojure.test.check.rose-tree :as rose])) (defn- sample-seq "Return a sequence of realized values from `generat...
6c00aa32145f2c2b9c25288f47b1601a973863d7115c09df8e2b841284ed2986
gedge-platform/gedge-platform
quantile.erl
-module(quantile). -author('Florian Odronitz <>'). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -export([ceil/1]). -define(DEBUG, true). -endif. -type sample() :: number(). -type samples() :: [sample()]. -export([quantile/2]). -export([rank_average/2]). -spec quantile(float(), samples()) -> sample(). quan...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/quantile_estimator/src/quantile.erl
erlang
TESTS
-module(quantile). -author('Florian Odronitz <>'). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -export([ceil/1]). -define(DEBUG, true). -endif. -type sample() :: number(). -type samples() :: [sample()]. -export([quantile/2]). -export([rank_average/2]). -spec quantile(float(), samples()) -> sample(). quan...
8c44ee48f4319157e9d63976277dc6b53741d7eea082df5981f4f24bc3cea7c1
fakedata-haskell/fakedata
ElectricalComponents.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.ElectricalComponents where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Fak...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/ElectricalComponents.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.ElectricalComponents where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Fak...
2be8fbc20f04a884044f499e75b441b58950c8f924dc56ee43fdb79636ec4653
lemmaandrew/CodingBatHaskell
noTeen.hs
From Given a list of integers , return a list of those numbers , omitting any that are between 13 and 19 inclusive . Given a list of integers, return a list of those numbers, omitting any that are between 13 and 19 inclusive. -} import Test.Hspec ( hspec, describe, it, shouldBe ) noTeen :: [Integer] -> [Int...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Functional-2/noTeen.hs
haskell
From Given a list of integers , return a list of those numbers , omitting any that are between 13 and 19 inclusive . Given a list of integers, return a list of those numbers, omitting any that are between 13 and 19 inclusive. -} import Test.Hspec ( hspec, describe, it, shouldBe ) noTeen :: [Integer] -> [Int...
a4df6a08cf35705f10501a553166356b728e8ee617c377fb00df74a793f52a89
rtoy/ansi-cl-tests
add-method.lsp
;-*- Mode: Lisp -*- Author : Created : We d Jun 4 19:12:25 2003 ;;;; Contains: Tests for ADD-METHOD (in-package :cl-test) (defgeneric add-method-gf-01 (x) (:method ((x t)) 'a)) (defgeneric add-method-gf-02 (x)) ;;; Cannot add a method that's already in another method (deftest add-method.error.1 ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/add-method.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for ADD-METHOD Cannot add a method that's already in another method The lambda lists must be congruent Non-error tests An existing method is replaced. Must add tests for: :around methods, :before methods, :after methods, nonstandard method combinations
Author : Created : We d Jun 4 19:12:25 2003 (in-package :cl-test) (defgeneric add-method-gf-01 (x) (:method ((x t)) 'a)) (defgeneric add-method-gf-02 (x)) (deftest add-method.error.1 (let ((method (find-method #'add-method-gf-01 nil (list (find-class t))))) (handler-case (add-method #'add...
01e919d48caf836492a3bc216f88d3ab71740f21c992dc1e6bdfd68d8ef478d4
nuvla/api-server
credential.cljc
(ns sixsq.nuvla.server.resources.spec.credential (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.credential-api-key :as api-key] [sixsq.nuvla.server.resources.spec.credential-hashed-password :as hashed-password] [sixsq.nuvla.server.resources.spec.credential-infrastructure-servi...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/credential.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.credential (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.credential-api-key :as api-key] [sixsq.nuvla.server.resources.spec.credential-hashed-password :as hashed-password] [sixsq.nuvla.server.resources.spec.credential-infrastructure-servi...
d3fec9707041fb22eeb6070736c68160bcab2d2506531b287e95df3cd4c9d1ff
mirage/capnp-rpc
capTP_capnp.mli
* Provides the RPC layer on top of some network . module Make (N : S.NETWORK) : sig type t (** A Cap'n Proto RPC protocol handler. *) val connect : restore:Restorer.t -> ?tags:Logs.Tag.set -> Endpoint.t -> t * [ connect ~restore ~switch endpoint ] is fresh CapTP protocol handler that sends and receives ...
null
https://raw.githubusercontent.com/mirage/capnp-rpc/f04fa96a583994b71731bc1288833f8304c9ce81/capnp-rpc-net/capTP_capnp.mli
ocaml
* A Cap'n Proto RPC protocol handler. * [bootstrap t object_id] is the peer's bootstrap object [object_id], if any. Use [object_id = ""] for the main, public object. * [disconnect t reason] releases all resources used by the connection. * [disconnecting t] the connection is shutting down (or has shut down). *...
* Provides the RPC layer on top of some network . module Make (N : S.NETWORK) : sig type t val connect : restore:Restorer.t -> ?tags:Logs.Tag.set -> Endpoint.t -> t * [ connect ~restore ~switch endpoint ] is fresh CapTP protocol handler that sends and receives messages using [ endpoint ] . [ resto...
3003fc063a43e1f13d5477e607bffe8a8efef79197d4127a84779316ed2d7793
erlcloud/erlcloud
erlcloud_mturk.erl
-module(erlcloud_mturk). Library initialization . -export([configure/2, configure/3, new/2, new/3]). -export([decode_xml/1]). %% Mechanical Turk API Functions -export([ approve_assignment/2, approve_assignment/3, assign_qualification/2, assign_qualification/3, assign_qualification/4, ass...
null
https://raw.githubusercontent.com/erlcloud/erlcloud/2ffddcd0527414580e9956bea24cebc2953a088b/src/erlcloud_mturk.erl
erlang
Mechanical Turk API Functions
-module(erlcloud_mturk). Library initialization . -export([configure/2, configure/3, new/2, new/3]). -export([decode_xml/1]). -export([ approve_assignment/2, approve_assignment/3, assign_qualification/2, assign_qualification/3, assign_qualification/4, assign_qualification/5, blo...
e7b1c3ffd00f2e80a2a459cd4fe745d19534352807331e502222478fb498f62a
erlio/vmq_server
vmq_retain_srv.erl
Copyright 2014 Erlio GmbH Basel Switzerland ( ) %% 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, sof...
null
https://raw.githubusercontent.com/erlio/vmq_server/d008c6dcc62fe985d08456caa4024750e1febf38/src/vmq_retain_srv.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2014 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_retain_srv). -behaviour(gen_server2). -export([start_link/0, insert/3, delete/2, mat...
4bc4629044397648b1fb11df334279a529582fcdebf40d4918a9086d3cf96b43
CatalaLang/catala
fill_positions.mli
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
null
https://raw.githubusercontent.com/CatalaLang/catala/efdf653ec7af75c6da50a405eaa9c5a9c26402c9/compiler/surface/fill_positions.mli
ocaml
* Fills the position tags in the AST with info about the legislative article this position belongs to.
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
a63eb1d1d1644a169a75f351a915a9e95fcf4416e7057e4b8f09a4c635cd6d17
play-co/hermes
io_test.clj
(ns hermes.memory.io-test (:use clojure.test) (:require [hermes.core :as g] [hermes.io :as io] [hermes.type :as t] [hermes.vertex :as v] [hermes.edge :as e] [clojure.java.io :as clj-io])) (defn has-n-vertices [n] (is (= n (count (seq (.getVertices g/*gr...
null
https://raw.githubusercontent.com/play-co/hermes/9d203ec7b239e7800c89e6ee161486f35dabd110/test/hermes/memory/io_test.clj
clojure
Delete file *silently* (no failure if it don't exist). Open new graph and read it Delete file *silently* (no failure if it don't exist). Open new graph and read it Delete file *silently* (no failure if it don't exist). Open new graph and read it Delete files *silently* (no failure if it don't exist). Write one ...
(ns hermes.memory.io-test (:use clojure.test) (:require [hermes.core :as g] [hermes.io :as io] [hermes.type :as t] [hermes.vertex :as v] [hermes.edge :as e] [clojure.java.io :as clj-io])) (defn has-n-vertices [n] (is (= n (count (seq (.getVertices g/*gr...
44e2edfdcf5bf5e2be74a948243d1d0db703e32fe9579d840efaa2f817507c69
sgimenez/laby
gfx.mli
* Copyright ( C ) 2007 - 2014 The laby team * You have permission to copy , modify , and redistribute under the * terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . * Copyright (C) 2007-2014 The laby team * You have permission to copy, modify, and redistribute under the * terms of the GPL...
null
https://raw.githubusercontent.com/sgimenez/laby/47f9560eb827790d26900bb553719afb4b0554ea/src/gfx.mli
ocaml
* Copyright ( C ) 2007 - 2014 The laby team * You have permission to copy , modify , and redistribute under the * terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . * Copyright (C) 2007-2014 The laby team * You have permission to copy, modify, and redistribute under the * terms of the GPL...
ce2d16daac6bf37fc235a0eb5463300ba290fa9d5d3095ab7cfc76842a6ebdeb
cxphoe/SICP-solutions
4.02.rkt
(define (eval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((lambda? exp) (make-procedure (lambda-parameters exp) (lambda-body exp) env)) ...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%204-Metalinguistic%20Abstraction/1.The%20Meta-cycle%20Evaluator/4.02.rkt
racket
(define (eval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((lambda? exp) (make-procedure (lambda-parameters exp) (lambda-body exp) env)) ...
4b79e3b2796ff76801d05d6ff231b414d69baaf67b371cddeb6fa1e2c79b8e29
fukamachi/utopian
exceptions.lisp
(defpackage #:utopian/exceptions (:use #:cl) (:export #:http-exception #:http-redirect #:http-exception-code #:http-redirect-to #:http-redirect-code #:throw-code #:redirect-to)) (in-package #:utopian/exceptions) (defparameter *http-status* (loop w...
null
https://raw.githubusercontent.com/fukamachi/utopian/532431b4c5e958995ba2d812751b779f814f9810/src/exceptions.lisp
lisp
(defpackage #:utopian/exceptions (:use #:cl) (:export #:http-exception #:http-redirect #:http-exception-code #:http-redirect-to #:http-redirect-code #:throw-code #:redirect-to)) (in-package #:utopian/exceptions) (defparameter *http-status* (loop w...
2ecf0e1b82accb814c60e4ec93d57875f84d7f7b985e9c2d09cb22ad2360becd
argp/bap
util.mli
* Utility functions that are not BAP specific . @author @author Ivan Jager *) (** The timeout exception, which is raised by [timeout]. *) exception Timeout (** The identity function *) val id : 'a -> 'a * a tupled function val curry : ('a * 'b -> 'c) -> 'a -> 'b -> 'c (** The opposite of [curry] *)...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/util.mli
ocaml
* The timeout exception, which is raised by [timeout]. * The identity function * The opposite of [curry] * [(f <@ g) x] = [f (g x)] * Return the head and tail of a list * [foldn f i n] is f (... (f (f i n) (n-1)) ...) 0 * [gc_keepalive e] keeps the objects reachable in [e] from being garbage collected. This ...
* Utility functions that are not BAP specific . @author @author Ivan Jager *) exception Timeout val id : 'a -> 'a * a tupled function val curry : ('a * 'b -> 'c) -> 'a -> 'b -> 'c val uncurry : ('a -> 'b -> 'c) -> ('a * 'b -> 'c) val ( <@ ) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b val hd_tl : 'a li...
ebf8d4bf736a4b7946d73296c93f44c983e95dce19ea9fc9dfd7d271ab7b8b3a
linoscope/caml8
cpu.mli
open Ints type t val create : rom:bytes -> t val tick : t -> unit val get_gfx : t -> bool array val set_key : t -> uint8 option -> unit
null
https://raw.githubusercontent.com/linoscope/caml8/7a2e82616ef2117f6c72b5ae1efa05ecc93041ef/lib/cpu.mli
ocaml
open Ints type t val create : rom:bytes -> t val tick : t -> unit val get_gfx : t -> bool array val set_key : t -> uint8 option -> unit
f24f88dc4b0efe477d855dbdb2b6b63494e95c877a875c96cbf015424dcf3f2d
pepeiborra/narradar
Ppr.hs
# LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances , TypeSynonymInstances , FlexibleInstances # module Narradar.Framework.Ppr ( module Narradar.Framework.Ppr , module MuTerm.Framework.Output , module Text.PrettyPrint.HughesPJClass) where impor...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/src/Narradar/Framework/Ppr.hs
haskell
# LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances , TypeSynonymInstances , FlexibleInstances # module Narradar.Framework.Ppr ( module Narradar.Framework.Ppr , module MuTerm.Framework.Output , module Text.PrettyPrint.HughesPJClass) where impor...
49823a7a6e017482b0bd57d4d314c5c69c487965f1ae36600adc849454574cce
metametadata/aide
view_model.cljs
(ns app.view-model (:require [reagent.ratom :refer [reaction]])) (defn view-model [*model] {:*query (reaction (:query @*model)) :*friends (reaction (:friends @*model))})
null
https://raw.githubusercontent.com/metametadata/aide/0828b53503e8c7f54f84e1b140a1d02ad80aff36/examples/friend-list/src/app/view_model.cljs
clojure
(ns app.view-model (:require [reagent.ratom :refer [reaction]])) (defn view-model [*model] {:*query (reaction (:query @*model)) :*friends (reaction (:friends @*model))})
c08625e0f406469d6ac4218f470c99778266fdbd2153435bd22704fb4db908d8
OctopiChalmers/haski
Pretty.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE QuantifiedConstraints # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE AllowAmbiguousTypes # module Haski.Pretty where import Prelude hiding ((<>)) import Data.List import Data.Maybe (fromMaybe) import Data.C...
null
https://raw.githubusercontent.com/OctopiChalmers/haski/97835d6d90d0c82d29864db03955db0aaaf08c67/src/Haski/Pretty.hs
haskell
# OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING #
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE QuantifiedConstraints # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE AllowAmbiguousTypes # module Haski.Pretty where import Prelude hiding ((<>)) import Data.List import Data.Maybe (fromMaybe) import Data.C...
33d6a6500732fa8973876a4185cf50371bba042a946d133500595ac7abc6ced2
TDacik/Deadlock
exit_points.ml
In intermediate representation used by Frama - C , all functions have a single exit point that * can be preceeded by unbounded numbers of Leave edges . Purpose of this module is to compute * actual exit points . * * TODO : caching * * Author : ( ) , 2021 * can be preceeded by unbounded number...
null
https://raw.githubusercontent.com/TDacik/Deadlock/e241195e08d337c7de175bd44d7e5c7ea90886aa/src/cfa_analysis/exit_points.ml
ocaml
* Return true, if edge has no effect * Compute exit points using backward reachability from automaton's exit point via edges that has no effect. true iff V is exit point
In intermediate representation used by Frama - C , all functions have a single exit point that * can be preceeded by unbounded numbers of Leave edges . Purpose of this module is to compute * actual exit points . * * TODO : caching * * Author : ( ) , 2021 * can be preceeded by unbounded number...
23a1b70ef67734b1a589323d7a5946698bfdcb030334fb8912d01e667202d6d2
kaoskorobase/hsc3-server
SetAllocator.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Sound.SC3.Server.Allocator.SetAllocator ( SetAllocator , cons ) where import Control.Failure (Failure, failure) import qualified Data.BitSet as Set import Sound.SC3.Server.Allocator (AllocFailure(..),...
null
https://raw.githubusercontent.com/kaoskorobase/hsc3-server/7e87e59619a23d44367c98cfdb21ca263a3aa8f9/Sound/SC3/Server/Allocator/SetAllocator.hs
haskell
# LANGUAGE BangPatterns # # UNPACK # | Convert an id to a bit index.
# LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Sound.SC3.Server.Allocator.SetAllocator ( SetAllocator , cons ) where import Control.Failure (Failure, failure) import qualified Data.BitSet as Set import Sound.SC3.Server.Allocator (AllocFailure(..), IdAllocator(..), Statistics(....
459279a7e3a4928d3fba56547a270b1fe763d430fc78fab5e6d5c6a566cd1565
brendanhay/terrafomo
Resources.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : . Librato . Resources Copyright : ( c ) 2017 - 2018 License ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-librato/gen/Terrafomo/Librato/Resources.hs
haskell
This module is auto-generated. | Stability : auto-generated * librato_alert * librato_metric * librato_service * librato_space_chart * librato_space | The main @librato_alert@ resource definition. ^ @active@ - (Default __@true@__) ^ @attributes@ - (Optional) ^ @condition@ - (Optional) ^ @description@...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Module : . Librato . Resources Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . M...
ad28ac4936b56aeaf9d980467093386f4b488a1488a6aff0b28c8f7a60b534bb
maxlapshin/erack
controller_cookiestore.erl
-module(controller_cookiestore, [Key, Secret]). -export([call/2]). -behaviour(rack_handler). call(App, Request) -> Reply = case proplists:get_value(Key, Request) of undefined -> App:call(Request); Cookie -> App:call(lists:keystore('rack.session', 1, Request, {'rack.session', decode(Cookie)})) end, NewCo...
null
https://raw.githubusercontent.com/maxlapshin/erack/f908427b2fc92db374cc7d1faccc818683fc3536/src/controller_cookiestore.erl
erlang
-module(controller_cookiestore, [Key, Secret]). -export([call/2]). -behaviour(rack_handler). call(App, Request) -> Reply = case proplists:get_value(Key, Request) of undefined -> App:call(Request); Cookie -> App:call(lists:keystore('rack.session', 1, Request, {'rack.session', decode(Cookie)})) end, NewCo...
d8263c4a34bde0db84fb17c49f923431ec1fdd7ac60aa94706cd5ecbb47ddc0c
hasktorch/ffi-experimental
Storage.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module ATen.Unmanaged.Type.Storage where import qualified Language.C.Inline.Cpp as C import...
null
https://raw.githubusercontent.com/hasktorch/ffi-experimental/54192297742221c4d50398586ba8d187451f9ee0/ffi/src/ATen/Unmanaged/Type/Storage.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module ATen.Unmanaged.Type.Storage where import qualified Language.C.Inline.Cpp as C import qualified Language.C.Inline.Cpp.Ex...
5ce59de2d4cc3b0646cb913c4d28a98bb13ff0cfac9e562249e879effc612987
softwarelanguageslab/maf
concdb.scm
From D'Osualdo , inspired by (letrec ((db-actor (actor "db" (l) (allocate (key p) (if (lookup key l) Case { succ , V } in benchmark (begin (send p allocated) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/be58e02c63d25cab5b48fdf7b737b68b882e9dca/test/concurrentScheme/actors/contracts/soter/concdb.scm
scheme
In this actor language we can't express the fact that we only receive if p == p2 therefore the benchmark isn't completely equivalent, but we can still show that Client write label Client fail label Client reads label
From D'Osualdo , inspired by (letrec ((db-actor (actor "db" (l) (allocate (key p) (if (lookup key l) Case { succ , V } in benchmark (begin (send p allocated) ...
e4793f0e5b9fe59698c3ef175ccb892f12d20cd0ecba7575de9f8f44693c7936
lanl/APPFL
Unicode.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | Module : Copyright : ( c ) The University of Glasgow , 2003 -- License : see libraries/base/LICENSE -- -- Maintainer : ...
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/prelude/APPFL/Unicode.hs
haskell
# OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | License : see libraries/base/LICENSE Maintainer : Stability : internal Implementations for the character predicates (isLower, isUpper, etc.) and the conversions (toUpper, toLower). The implementat...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # Module : Copyright : ( c ) The University of Glasgow , 2003 Portability : non - portable ( GHC extensions ) module APPFL.Unicode ( isAscii, isLatin1, isControl, isAsciiUpper, isAsciiLower, isPrint, isSpace, is...
4a053091123d95bd976ed9ae030020b2242eabe1ec3e7bde7966b6b581446775
bracevac/corrl
Syntax.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Common/Syntax.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- --------------------------------------------------------------------------- ----------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . Common syntactical constructs ( for Syntax . Syntax and Core . Core ) Common syntactical constructs (for Syntax.Syntax an...
c2498e1caf95be0a3d42473daa064ad735d72dd84a966fe9acdd1d02b85bbd03
schemeorg-community/index.scheme.org
scheme.file.scm
(((name . "call-with-input-file") (signature lambda ((string? string) (procedure? proc)) *) (subsigs (proc (lambda ((input-port? port)) *))) (desc . "call-with-input-file, call-with-output-file It is an error if proc does not accept one argument. These procedures obtain a textual port obtained by opening the name...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/scheme.file.scm
scheme
(((name . "call-with-input-file") (signature lambda ((string? string) (procedure? proc)) *) (subsigs (proc (lambda ((input-port? port)) *))) (desc . "call-with-input-file, call-with-output-file It is an error if proc does not accept one argument. These procedures obtain a textual port obtained by opening the name...
d02169845b791c480b7b1e1d081bd527515839363af8033055e83736b311908c
fragnix/fragnix
HashLocalSlices.hs
module Fragnix.HashLocalSlices ( hashLocalSlices , replaceSliceID , sliceMap , hashSlices2 ) where import Fragnix.Slice ( Slice(Slice),SliceID, Language, Fragment, Use(Use),Reference(OtherSlice,Builtin), Instance(Instance)) import Fragnix.LocalSlice ( LocalSlice(LocalSlice),LocalSliceID, ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/src/Fragnix/HashLocalSlices.hs
haskell
| Hash the given local slices to give each of them a slice ID. The results are a map from local ID to slice ID and the list of slices. | Build up a map from local ID to corresponding local slice for better lookup. | Associate every local ID with its slice ID. This slice ID is a hash of the slice's content. If we i...
module Fragnix.HashLocalSlices ( hashLocalSlices , replaceSliceID , sliceMap , hashSlices2 ) where import Fragnix.Slice ( Slice(Slice),SliceID, Language, Fragment, Use(Use),Reference(OtherSlice,Builtin), Instance(Instance)) import Fragnix.LocalSlice ( LocalSlice(LocalSlice),LocalSliceID, ...
3baae8ed9956ed3296278ed93e654cda8b960eaeb886e14c803780ea1ebfb35b
kind2-mc/kind2
strategy.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 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/639c5f2773b4c23048ebd3710b1d2e4a24b61558/src/strategy.mli
ocaml
* Information used by the strategy module. * Is the system refineable? ([extern] for lustre nodes.) * Does the system have a contract? * Does the system have modes? * Takes some results and some information about (sub)systems, and returns the next monolithic analysis to perform, if any. The information it takes is ...
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 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...
c028a3580fc96fd1ee8106c0bebf8071e87d6f1c944d41f6ec5125fe05dbbe0d
modular-macros/ocaml-macros
topdirs.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/toplevel/topdirs.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Toplevel directives open Format open Misc open Longident open Types open Cmo_format open Trace open To...
c6386db8ec861ff68e8415a6b012775204586969540cb71d942dff4dfa47908e
GOFAI/cl-tesseract
library.lisp
(in-package :cl-tesseract) (cffi:define-foreign-library tesseract (:darwin (:or "libtesseract.3.dylib" "libtesseract.dylib")) (:linux (:or "libtesseract.3.so" "libtesseract.so")) Will this work on Windows ? (cffi:use-foreign-library tesseract) (defparameter *tessdata-directory* #+unix Homebrew ...
null
https://raw.githubusercontent.com/GOFAI/cl-tesseract/24acb402890454a632c2f1f848dc72d33ed4770f/library.lisp
lisp
i.e.
(in-package :cl-tesseract) (cffi:define-foreign-library tesseract (:darwin (:or "libtesseract.3.dylib" "libtesseract.dylib")) (:linux (:or "libtesseract.3.so" "libtesseract.so")) Will this work on Windows ? (cffi:use-foreign-library tesseract) (defparameter *tessdata-directory* #+unix Homebrew ...
e08ef227d23b1307c52658af64c24e2d11f4dc9883302fe4f5959e63c6b7387e
haskell-hint/hint
Internal.hs
-- | In this module we intend to export some internal functions. -- -- __Important note__: the authors of this library imply no assurance whatsoever -- of the stability or functionality of the API exposed here, and compatibility -- may break even by minor version changes. Rely on these at your -- own risk. -- -- The re...
null
https://raw.githubusercontent.com/haskell-hint/hint/097e307dce86e39f5ccab044fd539b413348ece4/src/Hint/Internal.hs
haskell
| In this module we intend to export some internal functions. __Important note__: the authors of this library imply no assurance whatsoever of the stability or functionality of the API exposed here, and compatibility may break even by minor version changes. Rely on these at your own risk. The reason for showing...
module Hint.Internal ( onCompilationError ) where import Hint.Typecheck (onCompilationError) module Hint . Internal ( module ) where import Hint . as ReExport ( onCompilationError )
1d34fd5578b37f00f42c08561b9f8917f1723f5b8a7740d95aa1523041092d37
karamellpelle/grid
ShadeDot.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/Output/Fancy/ShadeDot.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzle.Output.Fancy.ShadeDot ( ...
490a7886e72758e0f8fee4abeeb570df386ae201442601512123c5b62b955b7f
wargrey/w3s
rnc.rkt
#lang typed/racket/base -20021121.html ;;; NOTE: performance is *not* the goal in this module, partially because of the pipeline of reading RNC chars (provide (all-defined-out)) (require racket/unsafe/ops) (require digimon/enumeration) (require digimon/stdio) (require "../digicore.rkt") (require "../tokeniz...
null
https://raw.githubusercontent.com/wargrey/w3s/ce6ef2f019b32be6b458cfd8aca2b48ecbf7a5b5/sgml/digitama/relaxng/rnc.rkt
racket
NOTE: performance is *not* the goal in this module, -20021121.html#nt-identifierOrKeyword for '\'identify -20021121.html#syntax -20021121.html#d0e171 -20021121.html#d0e339 check documentations when dealing with comments -20021121.html#syntax `#\|` itself is a valid char -20021121.html#d0e3920 -2002112...
#lang typed/racket/base -20021121.html partially because of the pipeline of reading RNC chars (provide (all-defined-out)) (require racket/unsafe/ops) (require digimon/enumeration) (require digimon/stdio) (require "../digicore.rkt") (require "../tokenizer.rkt") (require "../tokenizer/port.rkt") (require ".....
97b498ba981c8b430f2380ca2af64655246dfd0e7999b3f62e3a94a929c61bc9
mirage/ocaml-matrix
matrix_common.ml
module Empty = Empty module Events = Events module Message = Message module Null = Null module Push_rule = Push_rule
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-common/matrix_common.ml
ocaml
module Empty = Empty module Events = Events module Message = Message module Null = Null module Push_rule = Push_rule
b67da48069ad1dd827a0b235043bc37fb6868ce72537e39e6754f0fada092c91
onedata/op-worker
dbsync_test_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc This file contains DBSync tests . %%% ...
null
https://raw.githubusercontent.com/onedata/op-worker/80e4d71b0f9a6d5151635bd01a1a76cf8e1b6f1b/test_distributed/dbsync_test_SUITE.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- export for ct tests ==================================================================== Test f...
@author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . This file contains DBSync tests . -module(dbsync_test_SUITE). -author("Krzysztof Trzepla"). -include("modules/datastore/datastore_models.hrl"). -include("proto/oneprovider/dbsync_messages2.hrl"). -...
d62d132a785b2e30d9f73a1e1f80fedeb745c857a1654924512fd87069f94efe
babashka/neil
tests_emacs.clj
(ns tests-emacs (:require [babashka.tasks :as tasks])) (def install-buttercup-routine (str (quote (progn (require 'package) (add-to-list 'package-archives '("melpa-stable" . "") t) (package-install 'buttercup))))) (defn install-buttercup [] (tasks/shell (format "emacs -Q --batch --ev...
null
https://raw.githubusercontent.com/babashka/neil/17ed64da0782a3f469853464901dba2316759ab1/tests_emacs.clj
clojure
(ns tests-emacs (:require [babashka.tasks :as tasks])) (def install-buttercup-routine (str (quote (progn (require 'package) (add-to-list 'package-archives '("melpa-stable" . "") t) (package-install 'buttercup))))) (defn install-buttercup [] (tasks/shell (format "emacs -Q --batch --ev...
2727a8e62541294d860a9539c9c87f41b8156484ed22c024326316676991794d
borkdude/aoc2017
day20.clj
(ns day20 (:require [clojure.edn :as edn] [clojure.string :as str] [util :refer [resource-reducible]] [criterium.core :refer [quick-bench]])) (defn data [] (into [] (comp (map #(str/replace % #"[<>=pva]" "")) (map #(format "[%s]" %)) (map edn/read-string)) (...
null
https://raw.githubusercontent.com/borkdude/aoc2017/0f5bce5e496d65d0e53a8983e71ea3462aa0569c/src/day20.clj
clojure
Scratch 67ms
(ns day20 (:require [clojure.edn :as edn] [clojure.string :as str] [util :refer [resource-reducible]] [criterium.core :refer [quick-bench]])) (defn data [] (into [] (comp (map #(str/replace % #"[<>=pva]" "")) (map #(format "[%s]" %)) (map edn/read-string)) (...
43f37bd44efd3a3a11a77bc49a10247e22420fe21c6a18636c59d968e9942ac8
LLNL/rhizome
solr.clj
(ns rhizome.solr "Solr index interactions" (:use [solrclj :only (add query delete-by-query commit optimize)]) (:use [solrclj.servers :only (create-solr-server)]) (:require [clojure.string :as str])) (defn get-string-from-array "Extract the string result from a Solr Java array restur value" [arrayarg] (if...
null
https://raw.githubusercontent.com/LLNL/rhizome/af8e00ac89a98e2d07fe7a6272857951c2781182/src/rhizome/solr.clj
clojure
(ns rhizome.solr "Solr index interactions" (:use [solrclj :only (add query delete-by-query commit optimize)]) (:use [solrclj.servers :only (create-solr-server)]) (:require [clojure.string :as str])) (defn get-string-from-array "Extract the string result from a Solr Java array restur value" [arrayarg] (if...
fb626faed55d2adcae141d3e30a0e70f31daec7903f200d7675060481fe7e3b6
CoNarrative/precept-devtools
subscriptions.cljs
(ns precept-visualizer.views.subscriptions (:require [reagent.core :as r] [precept.core :as precept] [precept-visualizer.event-parser :as event-parser] [precept.spec.sub :as sub])) (defn facts-with-attr-at-state-num [states attr n] (let [state (if (number? n) (n...
null
https://raw.githubusercontent.com/CoNarrative/precept-devtools/0c69c090db2159c4d1f5ce783cecd9d5426c5fe0/precept-visualizer/src/cljs/precept_visualizer/views/subscriptions.cljs
clojure
(ns precept-visualizer.views.subscriptions (:require [reagent.core :as r] [precept.core :as precept] [precept-visualizer.event-parser :as event-parser] [precept.spec.sub :as sub])) (defn facts-with-attr-at-state-num [states attr n] (let [state (if (number? n) (n...
1999c3db1b918b383c21aa85ee6afef93890b810dc6d8eabc6bf5be6ca405320
haskell-suite/haskell-src-exts
TrailingWhere.hs
fail = x where broken = 24 where x = 413
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/TrailingWhere.hs
haskell
fail = x where broken = 24 where x = 413
58016c9b5cc77c06e5c9f2329b9e53fb08d0f6719a4163f18ebd6bfd97bccb6f
haskell-suite/base
UTF16.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , NondecreasingIndentation , MagicHash # , NoImplicitPrelude , BangPatterns , NondecreasingIndentation , MagicHash #-} # OPTIONS_GHC -funbox ...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/GHC/IO/Encoding/UTF16.hs
haskell
--------------------------------------------------------------------------- | Module : GHC.IO.Encoding.UTF16 License : see libraries/base/LICENSE Maintainer : Stability : internal Portability : non-portable --------------------------------------------------------------------------- -------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , NondecreasingIndentation , MagicHash # , NoImplicitPrelude , BangPatterns , NondecreasingIndentation , MagicHash #-} # OPTIONS_GHC -funbox ...
3a4c0bda00a79d90bac08d29ca5e5e929c705953ae543c1ee18f66416967ae59
bmeurer/ocamljit2
tbuffer.ml
(* Dummy substitute function. *) open Testing;; open Buffer;; let identity s = s;; let b = Buffer.create 100;; (* Pattern with a '\\' character in it. *) let pat0 = "\\\\a" in let n0 = String.length pat0 in Buffer.add_substitute b identity pat0; test (String.length (Buffer.contents b) = n0) ;; (* Pattern with a ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/basic-more/tbuffer.ml
ocaml
Dummy substitute function. Pattern with a '\\' character in it. Pattern with a '\\' character at the end.
open Testing;; open Buffer;; let identity s = s;; let b = Buffer.create 100;; let pat0 = "\\\\a" in let n0 = String.length pat0 in Buffer.add_substitute b identity pat0; test (String.length (Buffer.contents b) = n0) ;; let pat1 = "b\\" in let n1 = String.length pat1 in Buffer.clear b; Buffer.add_substitute b id...
db957d9e3218b5dc93558be4daa38dcf42798f00cd036b139298d66f109fe85c
skeet70/pascal-compiler
scannerDriver.hs
Authored by : , Date : 1/24/2013 -- Adapted from -and-output -- This file takes in one argument and throws away the rest . -- It's also extensible enough to allow for more arguments by -- modifying the pattern-matching at the start of the "do" -- function -- -- The driver function then reads the file into...
null
https://raw.githubusercontent.com/skeet70/pascal-compiler/fc8af1a669ac74f495b0ea46adc4686cd41169a9/scannerDriver.hs
haskell
Adapted from -and-output It's also extensible enough to allow for more arguments by modifying the pattern-matching at the start of the "do" function The driver function then reads the file into a string, and calls
Authored by : , Date : 1/24/2013 This file takes in one argument and throws away the rest . getToken with the default values . import System.Environment import System.IO import System.Directory import Prelude hiding (catch) import Control.Exception import Scanner.Dispatcher import Scanner.TokenTable im...
8f280e5cfb836c47b4bfb57a107827041d4b249ce326b75394f72d90dfd1bd34
janestreet/hardcaml
level.mli
(** Specification of a signals level - high or low. *) type t = | High | Low [@@deriving sexp_of, equal] val to_int : t -> int
null
https://raw.githubusercontent.com/janestreet/hardcaml/4176633d734e3fb79d6e95bc85c2a19984ff9594/src/level.mli
ocaml
* Specification of a signals level - high or low.
type t = | High | Low [@@deriving sexp_of, equal] val to_int : t -> int
61924b59a4497ee33d64aa3292a57d2e9cd1de9a886a0c90b5d83a8609776d83
the-dr-lazy/cascade
FilePath.hs
| Module : Cascade . Api . Test . FilePath 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-api/test/Cascade/Api/Test/FilePath.hs
haskell
| Module : Cascade . Api . Test . FilePath 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 ! ! !...
481c9e2dacd3f4f291b65919b0774eba2eb395fb34a6dc9462a1114476e1a3ba
yapsterapp/er-cassandra
project.clj
(defproject employeerepublic/er-cassandra "_" :description "a simple cassandra conector" :url "-cassandra" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-modules-bpk/lein-modules "0.3.13.bpk-20160816.002513-1"]] :pedantic? :abort :exclusions [org.clojure/clojure ...
null
https://raw.githubusercontent.com/yapsterapp/er-cassandra/1d059f47bdf8654c7a4dd6f0759f1a114fdeba81/project.clj
clojure
(defproject employeerepublic/er-cassandra "_" :description "a simple cassandra conector" :url "-cassandra" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-modules-bpk/lein-modules "0.3.13.bpk-20160816.002513-1"]] :pedantic? :abort :exclusions [org.clojure/clojure ...
d426b9b4900bacbbf8760a2fd4f97e9595b6f844ff35ceb287d2e28877427528
icicle-lang/icicle-ambiata
Base.hs
| Source programs have different types than Core and Avalanche : -- In Source, we need to infer which stage of the computation, -- so each type is tagged with a universe describing the stage. -- # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANG...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-source/src/Icicle/Source/Type/Base.hs
haskell
In Source, we need to infer which stage of the computation, so each type is tagged with a universe describing the stage. # LANGUAGE OverloadedStrings #
| Source programs have different types than Core and Avalanche : # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # module Icicle.Source.Type.Base ( Type (..) , typeOfValType , valTypeOfType , Constraint (..) , FunctionType(..) , Annot (....
264a87547122625f52c7131fcc70faf692f593de7a36438c7ac192ce8c7f1e35
gigamonkey/manifest
packages.lisp
(in-package :cl-user) (defpackage :manifest (:use :closer-common-lisp :monkeylib-html :toot :com.gigamonkeys.utilities) (:export :start :stop))
null
https://raw.githubusercontent.com/gigamonkey/manifest/f8a09e2105c26848e639d623325d2f44a1c2def3/packages.lisp
lisp
(in-package :cl-user) (defpackage :manifest (:use :closer-common-lisp :monkeylib-html :toot :com.gigamonkeys.utilities) (:export :start :stop))