_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
1843a61d654dffc8a1057cf98db26596731e6b949700dc58fb1d7c57a9c33386
ferd/backoff
prop_backoff_statem.erl
-module(prop_backoff_statem). -include_lib("proper/include/proper.hrl"). -export([initial_state/0]). -export([command/1]). -export([precondition/2]). -export([next_state/3]). -export([postcondition/3]). -record(state, {backoff, type=normal, delay, start, max}). init_args() -> ?SUCHTHAT([X,Y], [pos_integer(), one...
null
https://raw.githubusercontent.com/ferd/backoff/dfb19a20c37b73af067edc3c335624bdf9517396/test/prop_backoff_statem.erl
erlang
-module(prop_backoff_statem). -include_lib("proper/include/proper.hrl"). -export([initial_state/0]). -export([command/1]). -export([precondition/2]). -export([next_state/3]). -export([postcondition/3]). -record(state, {backoff, type=normal, delay, start, max}). init_args() -> ?SUCHTHAT([X,Y], [pos_integer(), one...
70fbb0699fba18618d697f2276f114130eff23531e53cdf056606f3fc9907f5f
nobutaka/nanopass
tests-1.2-req.scm
(add-tests-with-string-output "immediate constants" [#f => "#f\n"] [#t => "#t\n"] ['() => "()\n"] [#\tab => "#\\tab\n"] [#\newline => "#\\newline\n"] [#\space => "#\\space\n"] [#\! => "#\\!\n"] [#\" => "#\\\"\n"] [#\# => "#\\#\n"] [#\$ => "#\\$\n"] [#\% => "#\\%\n"] [#\& => "#\\&\n"] [#\' => "...
null
https://raw.githubusercontent.com/nobutaka/nanopass/80e0344a1f143832a75d798be903e05b5dbdd079/tests/tests-1.2-req.scm
scheme
=> "#\\;\n"]
(add-tests-with-string-output "immediate constants" [#f => "#f\n"] [#t => "#t\n"] ['() => "()\n"] [#\tab => "#\\tab\n"] [#\newline => "#\\newline\n"] [#\space => "#\\space\n"] [#\! => "#\\!\n"] [#\" => "#\\\"\n"] [#\# => "#\\#\n"] [#\$ => "#\\$\n"] [#\% => "#\\%\n"] [#\& => "#\\&\n"] [#\' => "...
229b8d2927a520b774f80420e170d21d76a0fe39347d12ec2907c7e4ea37389a
RefactoringTools/wrangler
refac_fold_expression.erl
Copyright ( c ) 2010 , , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/7f4c120e4bf06a39d8762caa60b4c88ef03086b0/src/refac_fold_expression.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2010 , , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR finishes ; otherwise , Wrangler will go through the found candidate expressions one by one asking If the user answers ' yes ' to...
74355b5a0657af1cadd0cffb980ba7456569c32dc9c8a3347c4c2fbf2ea63377
niklasl/clj-rdfa
project.clj
(defproject rdfa "0.5.1-SNAPSHOT" :description "A Clojure library for extracting triples from RDFa 1.1 in HTML/XHTML/SVG/XML" :url "-rdfa" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo} :min-lein-version "2.0.0" :dependencies [[org.clojure/cloj...
null
https://raw.githubusercontent.com/niklasl/clj-rdfa/5b49a2106bb7ebb2497b156bb27ec479fb4d66ec/project.clj
clojure
(defproject rdfa "0.5.1-SNAPSHOT" :description "A Clojure library for extracting triples from RDFa 1.1 in HTML/XHTML/SVG/XML" :url "-rdfa" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo} :min-lein-version "2.0.0" :dependencies [[org.clojure/cloj...
191b001902519c9856b07277ee8dce4be7ad919d9392fa80e48bf01bd1c732da
mput/sicp-solutions
1_18.rkt
#lang racket Solution for exercise 1_18 . (require rackunit "../solutions/1_17.rkt") (provide fast-mult-iter) (define (fast-mult-iter a b) (define (helper-iter acc a b) (cond ((= b 0) acc) ((even? b) (helper-iter acc (double a) (halve b))) (else (helper-iter (+ acc a) a (- b 1))))) (help...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/solutions/1_18.rkt
racket
#lang racket Solution for exercise 1_18 . (require rackunit "../solutions/1_17.rkt") (provide fast-mult-iter) (define (fast-mult-iter a b) (define (helper-iter acc a b) (cond ((= b 0) acc) ((even? b) (helper-iter acc (double a) (halve b))) (else (helper-iter (+ acc a) a (- b 1))))) (help...
8d627de972eab12f1335c6578c90b416c7a0d5b4ec4551406b0ef92577bd08dd
arohner/spectrum
loop_change_type.clj
(ns spectrum.examples.bad.loop-change-type (:require [clojure.spec.alpha :as s])) (s/fdef foo :args (s/cat :i int?) :ret int?) (defn foo [x] (loop [x x] (if (even? x) (recur (str x)) (inc x))))
null
https://raw.githubusercontent.com/arohner/spectrum/72b47a91a5ce4567eed547507d25b2528f48c2d1/test/spectrum/examples/bad/loop_change_type.clj
clojure
(ns spectrum.examples.bad.loop-change-type (:require [clojure.spec.alpha :as s])) (s/fdef foo :args (s/cat :i int?) :ret int?) (defn foo [x] (loop [x x] (if (even? x) (recur (str x)) (inc x))))
82ce177c7f36ed94feb459b482633640522babead88bcd65f9015016d03f5cd1
skanev/playground
96.scm
SICP exercise 2.96 ; ; a. Implement the procedure pseudoremainder-terms, which is just like ; remainder-terms except that it multiplies the dividend by the integerizing factor described above before calling div - terms . Modify gcd - terms to use ; pseudoremainder-terms and verify that greatest-common-divisor now p...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/96.scm
scheme
a. Implement the procedure pseudoremainder-terms, which is just like remainder-terms except that it multiplies the dividend by the integerizing pseudoremainder-terms and verify that greatest-common-divisor now produces of the answer by dividing all the coefficients by their (integer) greated common divisor. Her...
SICP exercise 2.96 factor described above before calling div - terms . Modify gcd - terms to use an answer with integer coefficients on the example in exercise 2.95 . b. The GCD now has integer coefficients , but they are larger than those of P₁. - terms so that it removes common factors from the coefficien...
424b720837e6d2f1236f23de10a805846816b02aa061ff41265b2255f24750ae
yetanalytics/xapi-schema
core_test.cljc
(ns xapi-schema.core-test (:require [clojure.test :refer [deftest is testing] :include-macros true] [xapi-schema.support.data :as d :refer [long-statement]] [xapi-schema.core :refer [statement-checker statements-checker validate-statement ...
null
https://raw.githubusercontent.com/yetanalytics/xapi-schema/77f78d1713e50e7b8610f58b5137695b0fccddaa/test/xapi_schema/core_test.cljc
clojure
(ns xapi-schema.core-test (:require [clojure.test :refer [deftest is testing] :include-macros true] [xapi-schema.support.data :as d :refer [long-statement]] [xapi-schema.core :refer [statement-checker statements-checker validate-statement ...
47b82ff82a5dc8a8f6b2648352a72518783f8b1fe1efee40baf82aff4e4fadc0
input-output-hk/project-icarus-importer
TxMeta.hs
-- | Transaction metadata conform the wallet specification module Cardano.Wallet.Kernel.DB.TxMeta ( -- * Transaction metadata TxMeta(..) -- ** Lenses , txMetaId , txMetaAmount , txMetaInputs , txMetaOutputs , txMetaCreationAt , txMetaIsLocal , txMetaIsOutgoing ) where import Unive...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet-new/src/Cardano/Wallet/Kernel/DB/TxMeta.hs
haskell
| Transaction metadata conform the wallet specification * Transaction metadata ** Lenses ------------------------------------------------------------------------------ Transaction metadata ------------------------------------------------------------------------------ | Transaction metadata | Transaction ID | T...
module Cardano.Wallet.Kernel.DB.TxMeta ( TxMeta(..) , txMetaId , txMetaAmount , txMetaInputs , txMetaOutputs , txMetaCreationAt , txMetaIsLocal , txMetaIsOutgoing ) where import Universum import Control.Lens.TH (makeLenses) import qualified Pos.Core as Core NOTE : This doe...
d9c699c03210d23c872eb31493bf5634b61c6aee097da600130ea566c6431733
ofmooseandmen/Aeromess
DepartureMessageSpec.hs
module Data.Icao.DepartureMessageSpec ( spec ) where import Data.Either () import Data.Function ((&)) import Data.Icao.AtsMessage import Data.Maybe (fromJust) import Test.Hspec spec :: Spec spec = describe "Departure (DEP) message parser" $ do it "parses a DEP message containing only the mandatory...
null
https://raw.githubusercontent.com/ofmooseandmen/Aeromess/765f3ea10073993e43c71b6b6955b9f0d234a4ef/test/Data/Icao/DepartureMessageSpec.hs
haskell
module Data.Icao.DepartureMessageSpec ( spec ) where import Data.Either () import Data.Function ((&)) import Data.Icao.AtsMessage import Data.Maybe (fromJust) import Test.Hspec spec :: Spec spec = describe "Departure (DEP) message parser" $ do it "parses a DEP message containing only the mandatory...
cfd62e3c3aecbf791ed2afff7ca4cbee68494dbd52ce839958543f08839ef308
monadfix/ormolu-live
CoreStats.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 2015 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-2015 -} -- | Functions to computing the statistics reflective of the "size" of a Core expression module CoreStats ( ...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/coreSyn/CoreStats.hs
haskell
| Functions to computing the statistics reflective of the "size" * Expression and bindings size Terms Types Local value bindings Local join bindings Charge one for the alternative, not for each binder We use coreBindStats for user printout but this one is a quick and dirty basis for the simplifier's tick limi...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 2015 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-2015 -} of a Core expression module CoreStats ( coreBindsSize, exprSize, CoreStats(..), coreBindsStats, ...
e2c7b7a07345856b1fc7a365fdcee218e58b8a4c6d6b9e7560ad5c650db0824f
Leonidas-from-XIV/escalate
dump_zlib.ml
open Inflate let compression_level = function | Fastest -> "Fastest" | Fast -> "Fast" | Default -> "Default" | Maximum -> "Maximum" let final = function | Last -> " (final)" | Continues -> "" let encoding = function | FixedHuffman _ -> "fixed Huffman" | DynamicHuffman -> "dynamic Huffman" | Uncompr...
null
https://raw.githubusercontent.com/Leonidas-from-XIV/escalate/aed7c646cd81419ffe997647bfb3bfddc39920d5/src/dump_zlib.ml
ocaml
open Inflate let compression_level = function | Fastest -> "Fastest" | Fast -> "Fast" | Default -> "Default" | Maximum -> "Maximum" let final = function | Last -> " (final)" | Continues -> "" let encoding = function | FixedHuffman _ -> "fixed Huffman" | DynamicHuffman -> "dynamic Huffman" | Uncompr...
adfbe5bb09283989daa67e1ea6e714e21f882743a040581e3878b1a68a11829e
KaroshiBee/weevil
dap_response_tests.ml
open Dap_response module D = Dap_messages.Data module ResponseTests = struct let equal ~equal_body t1 t2 = let equal_f = Message.equal ~equal_body in eval @@ equal ~equal_f t1 t2 let tester ~count ~name ~equal_body (ctor, gen, enc) = let arb = QCheck.make gen in QCheck.Test.make ~long_factor:100 ~...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/1b166ba053062498c1ec05c885e04fba4ae7d831/lib/dapper/tests/dap_unit_tests/dap_response_tests.ml
ocaml
this one takes ages to run let test_cancelResponse = tester ~count ~name:"cancelResponse" ~equal_arguments:(Option.equal D.CancelArguments.equal) gen_cancelResponse
open Dap_response module D = Dap_messages.Data module ResponseTests = struct let equal ~equal_body t1 t2 = let equal_f = Message.equal ~equal_body in eval @@ equal ~equal_f t1 t2 let tester ~count ~name ~equal_body (ctor, gen, enc) = let arb = QCheck.make gen in QCheck.Test.make ~long_factor:100 ~...
c58faf6817cb444c74e65f9b073ffbfdf29e08c885679f2ad13e038bbc0852e2
laser/cis-194-winter-2016
Week11Spec.hs
{-# LANGUAGE OverloadedStrings #-} module Homework.Week11Spec ( main, spec ) where import Data.Maybe (fromJust) import Test.Hspec import Homework.Week11.Assignment (ReaderT (..), close, dbName, deleteUserById, getUserById,...
null
https://raw.githubusercontent.com/laser/cis-194-winter-2016/6a9b7c958c896cd9f31a5d1dffb3f03145efb597/test/Homework/Week11Spec.hs
haskell
# LANGUAGE OverloadedStrings # lifecycle This set of tests asserts the behavior of our legacy database library. The library opens and closes a connection for each database call, which is not optimal. set up the database ensure no rows already exist insert some users load by id delete by id This set of tests h...
module Homework.Week11Spec ( main, spec ) where import Data.Maybe (fromJust) import Test.Hspec import Homework.Week11.Assignment (ReaderT (..), close, dbName, deleteUserById, getUserById, ...
a852dd63a2de96d31b8e7a68a554bbbb739354a2b0ee5dc037f1ae17dffe6c87
danelahman/haskell-coop
MLFPStateFwdTests.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} | Module : MLFPStateFwdTests Description : Example use cases of the runner for footprint - based use of ML - style state from ` Control . Runner . MLFPStateFwd ` Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental ...
null
https://raw.githubusercontent.com/danelahman/haskell-coop/95ddb0f340313a25f2e006c75dab8e2c93add8f8/examples/without_signals/MLFPStateFwdTests.hs
haskell
# LANGUAGE GADTs # expected result ("foobar","bar","foo",True)
# LANGUAGE DataKinds # | Module : MLFPStateFwdTests Description : Example use cases of the runner for footprint - based use of ML - style state from ` Control . Runner . MLFPStateFwd ` Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental This module provides...
cce41fef0b4fd36db100fda69046f01c6bdc1603da7624f54fb49343706850fc
Gizra/ihp-simple-seat-reservation
Edit.hs
module Web.View.Venues.Edit where import Web.View.Prelude data EditView = EditView { venue :: Venue } instance View EditView where html EditView { .. } = [hsx| {breadcrumb} <h1>Edit Venue</h1> {renderForm venue} |] where breadcrumb = renderBreadcrumb ...
null
https://raw.githubusercontent.com/Gizra/ihp-simple-seat-reservation/9861a276574b1c9a6659ac4bccab93cfb4716030/Web/View/Venues/Edit.hs
haskell
module Web.View.Venues.Edit where import Web.View.Prelude data EditView = EditView { venue :: Venue } instance View EditView where html EditView { .. } = [hsx| {breadcrumb} <h1>Edit Venue</h1> {renderForm venue} |] where breadcrumb = renderBreadcrumb ...
cb96eeeb9612b82d1f0d03f408a2df7819967a603b5e166665bbf9809cba8cdf
orbitz/oort
builder.erl
%%%---------------------------------------------------------------------- %%% File : builder.erl Author : Mats < > : < > Purpose : Simplify build of OTP applications & boot scripts Created : 2 Jan 2001 by Mats < etxmacr@avc386 > %%%-----------------------------------------------------------------...
null
https://raw.githubusercontent.com/orbitz/oort/a61ec85508917ae9a3f6672a0b708d47c23bb260/manderlbot-0.9.2/priv/builder.erl
erlang
---------------------------------------------------------------------- File : builder.erl ---------------------------------------------------------------------- <p>This program compiles .rel, .script, .boot and sys.config files and is intended to be (much) easier and safer to use than doing it all files.</p> ...
Author : Mats < > : < > Purpose : Simplify build of OTP applications & boot scripts Created : 2 Jan 2001 by Mats < etxmacr@avc386 > @doc OTP release script builder . for erlang applications . It supports incremental and recursive builds , manually . This program does not generate beam code ...
3f251da17623b340324377e1d311b0ddaa50bd50539b5f4972af026c9287ef12
AdRoll/rebar3_hank
single_use_hrls_SUITE.erl
-module(single_use_hrls_SUITE). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([only_hrls/1, single_use/1, respects_ignore/1, ignores_missing_files/1, alltogether/1]). all() -> [only_hrls, single_use, respects_ignore, ignores_missing_files, alltogether]. init_per_testcase(_, Config) ...
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/7a854eb4b8bdc205eca4ceaa797f64435db83808/test/single_use_hrls_SUITE.erl
erlang
-module(single_use_hrls_SUITE). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([only_hrls/1, single_use/1, respects_ignore/1, ignores_missing_files/1, alltogether/1]). all() -> [only_hrls, single_use, respects_ignore, ignores_missing_files, alltogether]. init_per_testcase(_, Config) ...
909269576f4bb742018e0e813d68005d8ae16733c9b9680a724543a8e7246985
albertoruiz/easyVision
lissajous.hs
import EasyVision import Graphics.UI.GLUT hiding (Point) deltaf = 2*pi/1000 sz = mpSize 20 vert a b f t = vertex $ Point (0.6*cos (a*t-f)) (0.6*sin (b*t)) fi n = fromIntegral (n::Int) main = do prepare w <- evWindow 0 "Curve" sz Nothing (const kbdQuit) lineSmooth $= Enabled lineWidth $= 5 setCo...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/synth/lissajous.hs
haskell
import EasyVision import Graphics.UI.GLUT hiding (Point) deltaf = 2*pi/1000 sz = mpSize 20 vert a b f t = vertex $ Point (0.6*cos (a*t-f)) (0.6*sin (b*t)) fi n = fromIntegral (n::Int) main = do prepare w <- evWindow 0 "Curve" sz Nothing (const kbdQuit) lineSmooth $= Enabled lineWidth $= 5 setCo...
6f29ded0926eb0a1ca3610002d281a0f99f97e7de2d7f08a711a4edb00509be0
webyrd/2012-scheme-workshop-quines-paper-code
replacestar.scm
(define replace* (lambda (al x) (cond [(null? x) '()] [(symbol? x) (cond [(assq x al) => cdr] [else x])] [(pair? x) (cons (replace* al (car x)) (replace* al (cdr x)))] [(boolean? x) x] [(string? x) x] [else (...
null
https://raw.githubusercontent.com/webyrd/2012-scheme-workshop-quines-paper-code/3d160707f6ea6f60a08ec271abea1bfdaf63fd41/replacestar.scm
scheme
(define replace* (lambda (al x) (cond [(null? x) '()] [(symbol? x) (cond [(assq x al) => cdr] [else x])] [(pair? x) (cons (replace* al (car x)) (replace* al (cdr x)))] [(boolean? x) x] [(string? x) x] [else (...
38e4223c1ae2b9d972de5d743cd6793a4e35f7f3c0a618946b268b086b1803a6
LibertasSpZ/adcompile
main.ml
open Printf open Ast open Compiler * * Below are a few helper functions to connect the parsed progs ( Ast . ) to the programs for compiler ( Compiler . ) * * (Ast.) to the programs for compiler (Compiler.) ***) let astqubit_to_str qub = match qub with | Ast.Q num -> let snum = string_of_int(n...
null
https://raw.githubusercontent.com/LibertasSpZ/adcompile/a5dc2f1fa6285c8cd380e6567551896e547b1bb0/main.ml
ocaml
** The above: mapping btw parser to compler ** ** Read in the file ** ** automate_qiuDao is a driver for code-transformation. ** ** Below: Final driver, calls automate_qiuDao to print the code transformation result, then applies compilation rules to obtain the compiled set of programs Compile(P), and finally prints ...
open Printf open Ast open Compiler * * Below are a few helper functions to connect the parsed progs ( Ast . ) to the programs for compiler ( Compiler . ) * * (Ast.) to the programs for compiler (Compiler.) ***) let astqubit_to_str qub = match qub with | Ast.Q num -> let snum = string_of_int(n...
2bc20ff3f49b3647d06068a55b0791707ce0a6b1b7f12cd54892d0c0ddf0239b
fccm/glMLite
xmlm.ml
--------------------------------------------------------------------------- Copyright ( c ) 2007 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/SRC/xmlm.ml
ocaml
for character stream, internal only. newline carriage return space quote # & ' - / : ; < = > ? ! [ ] x BOM D Basic types and values Input XML is odd to parse. '<' qname '</' qname whitespace* '<?' qname '<!--' '<!' other character End of input Expected en...
--------------------------------------------------------------------------- Copyright ( c ) 2007 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
e807939f75d27067085fecf0b303152e19dcb783c9d609a3f149331a8bff2970
tnelson/Forge
far_fixed.rkt
#lang forge option run_sterling off option problem_type target option solver PMaxSAT4J option verbose 0 -- stay as far as possible from first instance -- TODO: currently not functional without a provided target option target_mode far_noretarget sig Node { edges: set Node } test expect { cover_runs: {} for 3 is sat...
null
https://raw.githubusercontent.com/tnelson/Forge/a7187ef110f46493c1d45011035b05646b9ccd22/forge/tests/forge/target/far_fixed.rkt
racket
#lang forge option run_sterling off option problem_type target option solver PMaxSAT4J option verbose 0 -- stay as far as possible from first instance -- TODO: currently not functional without a provided target option target_mode far_noretarget sig Node { edges: set Node } test expect { cover_runs: {} for 3 is sat...
d9dcd91bb56626f99764438950ae3619e29a18290131d7ff90fbf7c78567db50
kepler16/gx.cljc
error_context.clj
(ns k16.gx.beta.error-context) (defmacro with-err-ctx "Creates error context by merging value to `k16.gx.beta.error/*err-ctx*`" [ctx & body] `(binding [~'k16.gx.beta.errors/*err-ctx* (merge ~'k16.gx.beta.errors/*err-ctx* ~ctx)] ~@body))
null
https://raw.githubusercontent.com/kepler16/gx.cljc/33e76e64cca6bc4adea4c19eec734b8444a69642/src/k16/gx/beta/error_context.clj
clojure
(ns k16.gx.beta.error-context) (defmacro with-err-ctx "Creates error context by merging value to `k16.gx.beta.error/*err-ctx*`" [ctx & body] `(binding [~'k16.gx.beta.errors/*err-ctx* (merge ~'k16.gx.beta.errors/*err-ctx* ~ctx)] ~@body))
b56a7af9e713a565b7648f0c8428a97a1fbd11622aa4f3fe27001a3cf7144a5e
ijp/guildhall
let-optionals.scm
;;; let-optionals.scm --- Optional arguments Copyright ( c ) 2001 ;; This program is free software, you can redistribute it and/or modify it under the terms of the new - style BSD license . You should have received a copy of the BSD license along with this ;; program. If not, see <>. ;;; Commentary: ;;; Co...
null
https://raw.githubusercontent.com/ijp/guildhall/2fe2cc539f4b811bbcd69e58738db03eb5a2b778/guildhall/ext/let-optionals.scm
scheme
let-optionals.scm --- Optional arguments This program is free software, you can redistribute it and/or program. If not, see <>. Commentary: Code: @ Optional arguments. The following code is taken from scsh, file scsh/let-opt.scm. @ Bind arguments from an argument rest-list to variables. Typical usage is like t...
Copyright ( c ) 2001 modify it under the terms of the new - style BSD license . You should have received a copy of the BSD license along with this #!r6rs (library (guildhall ext let-optionals) (export let-optionals*) (import (rnrs base) (rnrs lists)) ( define ( foo arg1 arg2 . ) ...
4f54af6b1cf49856ace0bb36e189328c0004ab4f85d0690752b41114a58c5f3f
qkrgud55/ocamlmulti
trace.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/toplevel/trace.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : trace.mli 11156 2011 - 07 - 2...
7ba6022e267cc7273c70457692ab98733843e0f5a08df742eb4dca2049543737
Drezil/neat
Settings.hs
# LANGUAGE ScopedTypeVariables # module Handler.Settings where import Import import qualified Network.HTTP.Conduit as HTTP import Text.XML.Lens import Data.Bits import Text.XML (parseText) import qualified Data.Text.Lazy as T import qualified Data.ByteString.Lazy.Char8 as B getSettingsR :: Handler Html getSettingsR ...
null
https://raw.githubusercontent.com/Drezil/neat/671b5050aa6b217d381ffa8eb9f2b46d4cddf82e/Handler/Settings.hs
haskell
# LANGUAGE ScopedTypeVariables # module Handler.Settings where import Import import qualified Network.HTTP.Conduit as HTTP import Text.XML.Lens import Data.Bits import Text.XML (parseText) import qualified Data.Text.Lazy as T import qualified Data.ByteString.Lazy.Char8 as B getSettingsR :: Handler Html getSettingsR ...
dbc3dfec8732e65f994db451c6a55f14fead136faa41b28ca51f23ca03e50c2e
sjoerdvisscher/data-category
Preorder.hs
# LANGUAGE GADTs , TypeFamilies , PatternSynonyms , ScopedTypeVariables , RankNTypes , TypeOperators # module Data.Category.Preorder where import Prelude hiding ((.), id, Functor) import Data.Category import Data.Category.Limit import Data.Category.CartesianClosed import Data.Category.Functor import Data.Category.Adj...
null
https://raw.githubusercontent.com/sjoerdvisscher/data-category/59fbed3a3d06c824a67083e59456a354dc541ec9/Data/Category/Preorder.hs
haskell
# COMPLETE Obj # Note: only complete for identity arrows `Obj Preorder a` | `ordExp a b` is the largest x such that min x a <= b
# LANGUAGE GADTs , TypeFamilies , PatternSynonyms , ScopedTypeVariables , RankNTypes , TypeOperators # module Data.Category.Preorder where import Prelude hiding ((.), id, Functor) import Data.Category import Data.Category.Limit import Data.Category.CartesianClosed import Data.Category.Functor import Data.Category.Adj...
b82a4135f6cf73b0a68a533d0150960084d388dc64f86d1b9b4ddfbfff3f0f24
alex-hhh/ActivityLog2
edit-seasons.rkt
#lang racket/base ;; edit-seasions.rkt -- manage the seasons in the database (add, edit, ;; delete). Seasons are defined date ranges which can be used to filter ;; activities and reports. ;; ;; This file is part of ActivityLog2, an fitness activity tracker Copyright ( C ) 2015 ( ) ;; ;; This program is free softw...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/36a4bb8af45db19cea02e982e22379acb18d0c49/rkt/dialogs/edit-seasons.rkt
racket
edit-seasions.rkt -- manage the seasons in the database (add, edit, delete). Seasons are defined date ranges which can be used to filter activities and reports. This file is part of ActivityLog2, an fitness activity tracker This program is free software: you can redistribute it and/or modify it any later versi...
#lang racket/base Copyright ( C ) 2015 ( ) under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) (require db/base racket/class racket/gui/base racket/list "../dbutil.rkt" ...
265cfe9a6a0d730b0d001fba0deea5f9a6753870ac5c7c1282dbb9436e28c1dc
anoma/juvix
Base.hs
module Juvix.Compiler.Asm.Extra.Base where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Asm.Data.InfoTable import Juvix.Compiler.Asm.Language mkInstr :: Instruction -> Command mkInstr = Instr . CmdInstr emptyInfo mkBinop :: Opcode -> Command mkBinop = mkInstr . Binop mkInstr' :: Maybe Locat...
null
https://raw.githubusercontent.com/anoma/juvix/9d4f843262b7bf14ad8f943988bf1cc5bffdc887/src/Juvix/Compiler/Asm/Extra/Base.hs
haskell
module Juvix.Compiler.Asm.Extra.Base where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Asm.Data.InfoTable import Juvix.Compiler.Asm.Language mkInstr :: Instruction -> Command mkInstr = Instr . CmdInstr emptyInfo mkBinop :: Opcode -> Command mkBinop = mkInstr . Binop mkInstr' :: Maybe Locat...
00f52fa13e91c12b9326a5c36814d99866183523720b8076909d29938c17b5f2
xhtmlboi/yocaml
try.ml
type 'a t = ('a, Error.t) Preface.Result.t let ok x = Ok x let error e = Error e let pp inner_pp = Preface.Result.pp inner_pp Error.pp let equal inner_eq = Preface.Result.equal inner_eq Error.equal let to_validate = function | Ok x -> Preface.Validation.Valid x | Error err -> Error.to_validate err ;; let from_va...
null
https://raw.githubusercontent.com/xhtmlboi/yocaml/3d169cdaaec6f84f841b4212d232c1ee6f749b01/lib/yocaml/try.ml
ocaml
type 'a t = ('a, Error.t) Preface.Result.t let ok x = Ok x let error e = Error e let pp inner_pp = Preface.Result.pp inner_pp Error.pp let equal inner_eq = Preface.Result.equal inner_eq Error.equal let to_validate = function | Ok x -> Preface.Validation.Valid x | Error err -> Error.to_validate err ;; let from_va...
e46c600502448cd2a1d4cf463d77348fe271f7792808e3540afa5b818b734116
deadpendency/deadpendency
RubyGemsPackage.hs
module DF.Effect.FetchRegistryRepoInfo.Backend.LanguageRegistryFiles.RubyGems.RubyGemsPackage ( RubyGemsPackage (..), ) where import Common.Model.Dependency.Registry.DependencyRegistryInfo import Common.Model.Dependency.Registry.RegistryAlivenessStatus import Common.Model.Ecosystem.Registry import Common.Model.Git...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/dependency-fetcher/src/DF/Effect/FetchRegistryRepoInfo/Backend/LanguageRegistryFiles/RubyGems/RubyGemsPackage.hs
haskell
ignores the `tree/v6.0.3.1` bit at the end
module DF.Effect.FetchRegistryRepoInfo.Backend.LanguageRegistryFiles.RubyGems.RubyGemsPackage ( RubyGemsPackage (..), ) where import Common.Model.Dependency.Registry.DependencyRegistryInfo import Common.Model.Dependency.Registry.RegistryAlivenessStatus import Common.Model.Ecosystem.Registry import Common.Model.Git...
bdb54d6da0ba9e43b19b0bf98e4005da23d17da0e722524f3b66497847d1ca6c
hemmi/coq2scala
envars.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/lib/envars.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The following only makes sense when...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file gathers environme...
a4d2460bad919af6776fb159e6f9b6d253f0bbd7c34179e49df618ea0cb7c81a
thheller/shadow-cljs
http.clj
(ns demo.http) (defn loud-404s [req] {:status 404 :body "NOT FOUND YO!"}) (defn proxy-predicate [ex config] (tap> [:proxy-predicate ex config]) true)
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/demo/http.clj
clojure
(ns demo.http) (defn loud-404s [req] {:status 404 :body "NOT FOUND YO!"}) (defn proxy-predicate [ex config] (tap> [:proxy-predicate ex config]) true)
162ecf37a8fe18cb87bf217b7535370cb980240e9eb618ffcc3a6b516f966926
dalaing/little-languages
Main.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where -- from 'transformers' import ...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/n/repl/Main.hs
haskell
from 'transformers' from 'haskeline' from 'ansi-wl-pprint' local | Parses a string into a term, typechecks the term, and then evaluates it.
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where import Control.Monad.IO.Clas...
6ee0a67cb7ced1ac5f4b6f1bf84febbc847533d43b0cba2c98f3e9eb144af2c9
lojic/RacketCon2020
axio-database.rkt
#lang racket/base (require "./axio-env.rkt") (require db gregor racket/contract racket/string) (provide db-connect db-maybe-date db-maybe-timestamptz db-safe-str db-write-date db-write-timestamptz sql-timestamp->moment where-st...
null
https://raw.githubusercontent.com/lojic/RacketCon2020/310e0ab01d8c3e1546029720f6bb66e6d1a5fb1e/TodoApp/axio/axio-database.rkt
racket
-------------------------------------------------------------------------------------------- Public Interface -------------------------------------------------------------------------------------------- row : vector? (db-maybe-timestamptz row idx) -> (or/c moment-provider? #f) row : vector? row : vector? (db-wr...
#lang racket/base (require "./axio-env.rkt") (require db gregor racket/contract racket/string) (provide db-connect db-maybe-date db-maybe-timestamptz db-safe-str db-write-date db-write-timestamptz sql-timestamp->moment where-st...
ad7edd6b8be072f1fb627cf42fee38c2d18cd9ebc2954ee1ba7250d616755fb8
thephoeron/black-stone
qobjects.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- ;;;; file: qclambda/qobjects.lisp Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > ;;;; See LICENSE for additional information. (in-package :black-stone) ;; We define a number of qobjects to capture circuit d...
null
https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/qclambda/qobjects.lisp
lisp
Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- file: qclambda/qobjects.lisp See LICENSE for additional information. We define a number of qobjects to capture circuit definitions namely, quantum functions, structs, classes, generic functions and methods
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > (in-package :black-stone) EOF
15a753f6e47f4cd7a0eb5935b0139d539faf45a26cd5d57946d6138cadf00b75
GaloisInc/parameterized-utils
List.hs
| Description : A type - indexed parameterized list Copyright : ( c ) Galois , Inc 2017 - 2019 Maintainer : < > This module defines a list over two parameters . The first is a fixed type - level function @k - > * @ for some kind @k@ , and the second is a list of types with kind @k@ that provide t...
null
https://raw.githubusercontent.com/GaloisInc/parameterized-utils/5dc4724e4327cfa6ebf8d04661ceede11e56fd6a/src/Data/Parameterized/List.hs
haskell
That That # LANGUAGE GADTs # # LANGUAGE RankNTypes # * Constants | Parameterized list of elements. Unlike a derived 'Show' instance, we don't print parens implied by right associativity. | Apply function to list to yield a parameterized list. | Apply monadic action to list to yield a parameterized list. | Map...
| Description : A type - indexed parameterized list Copyright : ( c ) Galois , Inc 2017 - 2019 Maintainer : < > This module defines a list over two parameters . The first is a fixed type - level function @k - > * @ for some kind @k@ , and the second is a list of types with kind @k@ that provide t...
174d2c1347994764943cb447da8af9545fbc12695af14a33f40ee38c526912b8
higherkindness/mu-haskell
Optics.hs
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleContexts # {-# language FlexibleInstances #-} # language FunctionalDependencies # # language GADTs # # language LambdaCase # # language PolyKinds # {-# language ScopedTyp...
null
https://raw.githubusercontent.com/higherkindness/mu-haskell/e41ba786f556cfac962e0f183b36bf9ae81d69e4/core/optics/src/Mu/Schema/Optics.hs
haskell
# language FlexibleInstances # # language ScopedTypeVariables # * Build a term * Re-exported for convenience. * Additional utilities. | Build a Mu record 'Term' from a tuple of its values. # OVERLAPS # | Build a Mu enumeration 'Term' from the name of the choice. Useful utility to check whether a value m...
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleContexts # # language FunctionalDependencies # # language GADTs # # language LambdaCase # # language PolyKinds # # language TypeApplications # # language TypeOperators ...
c373b3c6affcd654d15694e7060895463a29e0df146509cd967a414ed7363acf
alanz/ghc-exactprint
DataFamilies.hs
# LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # -- Based on #Detailed_definition_of_data_families module DataFamilies ( GMap , GMapKey(type GMapK) ) where Type 1 , Top level data family GMap k :: * -> * data family Array e data family ArrayK :: * -> * Type 2 , associated types class ...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/DataFamilies.hs
haskell
Based on #Detailed_definition_of_data_families OK class C a b c where { data T a a :: * } -- Bad: repeated variable class D a where { data T a x :: * } -- Bad: x is not a class variable OK Instances WRONG : These two equations together ... nonsense B = 2 -- ...will produce a type error. ...
# LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # module DataFamilies ( GMap , GMapKey(type GMapK) ) where Type 1 , Top level data family GMap k :: * -> * data family Array e data family ArrayK :: * -> * Type 2 , associated types class GMapKey k where data GMapK k :: * -> * data i...
c56737ea3833c9daa657c5b3ac465a3e025a4793531b7a0b97e0eca94ab292bc
clojure/core.async
timers.cljs
Copyright ( c ) and contributors . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreei...
null
https://raw.githubusercontent.com/clojure/core.async/60fc7ce6072b0d1e505bf75a1479924ccb5b06d9/src/main/clojure/cljs/core/async/impl/timers.cljs
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) and contributors . All rights reserved . (ns cljs.core.async.impl.timers (:require [cljs.core.async.impl.protocols :as impl] [cljs.core.async.impl.channels :as channels] [cljs.core.async.impl.dispatch :as dispatch])) 16 levels (def P (/ 1 2)) (defn random-level ([]...
4a595406b8e12a80a7fe04af7892a8954613a80a806fe0126ec31453fda177a9
conscell/hugs-android
Observe.hs
module Observe( module Hugs.Observe, ) where import Hugs.Observe
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/Observe.hs
haskell
module Observe( module Hugs.Observe, ) where import Hugs.Observe
a03764448be660bf1a0b293f365b04cfeb0e3b165a6ba86e503649fa3ef3d4b9
strojure/fitter
feature_suspend.clj
(ns strojure-fitter-examples.feature-suspend "Example of suspending components." (:require [strojure.fitter.component :as component] [strojure.fitter.system :as system])) (set! *warn-on-reflection* true) ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
null
https://raw.githubusercontent.com/strojure/fitter/734320705a27a12c794309039ffa8697cad23c16/examples/src/strojure_fitter_examples/feature_suspend.clj
clojure
(ns strojure-fitter-examples.feature-suspend "Example of suspending components." (:require [strojure.fitter.component :as component] [strojure.fitter.system :as system])) (set! *warn-on-reflection* true) ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
8e94929cadfee3d5c81b971ba60041111e6e2b354ba6f9cdfd5977962bdc7cb1
mirage/mirage-flow
mirage_flow.mli
* Copyright ( c ) 2011 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyrigh...
null
https://raw.githubusercontent.com/mirage/mirage-flow/f5f6c131a9e72ac473719eb8740058385638a524/src/mirage_flow.mli
ocaml
* The type for generic write errors on flows. * [pp_write_error] is the pretty-printer for write errors. * The type for read results on flows. * [pp_or_eof] is the pretty-printer for {!or_eof} values. * Abstract flow signature. * The type for flow errors. * [pp_error] is the pretty-printer for errors. * The type...
* Copyright ( c ) 2011 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyrigh...
2196614a5b1d2ced508ced67403ae19c4827bc2d7c96e561b6cfa829f7f0c9d0
alesaccoia/festival_flinger
build_clunits.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2005 ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_fem_cg/festvox/build_clunits.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
(defvar cmu_us_fem::dir ".") (require 'clunits_build) Basic voice definition file with voice defines and (load "festvox/cmu_us_fem_clunits.scm") (defvar cluster_feature_filename "all.desc") (set! cmu_us_fem::dt_params (cons in case cmu_us_fem_clunits defines this too , put this at start (list 'db...
ea6daa21e976bc4c8947fff83bd06cb31f96386eb7914454a63cf5f7fbaa3961
lemaetech/wtr
tests.ml
let () = Printexc.record_backtrace false module Fruit = struct type t = Apple | Orange | Pineapple let t : t Wtr.arg = Wtr.arg "Fruit" (function | "apple" -> Some Apple | "orange" -> Some Orange | "pineapple" -> Some Pineapple | _ -> None) end let fruit_page = function | Fruit.Apple...
null
https://raw.githubusercontent.com/lemaetech/wtr/2db23853fe4e9613629fc3c1e6bad1a5a2a3d943/tests/tests.ml
ocaml
let () = Printexc.record_backtrace false module Fruit = struct type t = Apple | Orange | Pineapple let t : t Wtr.arg = Wtr.arg "Fruit" (function | "apple" -> Some Apple | "orange" -> Some Orange | "pineapple" -> Some Pineapple | _ -> None) end let fruit_page = function | Fruit.Apple...
c5815e5e9b6bf4111ed4003815c7960bafac12a011a8ab2b404d1815fd297873
yesodweb/yesod
Widget.hs
# LANGUAGE QuasiQuotes , TypeFamilies , TemplateHaskell , MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances , ViewPatterns # module YesodCoreTest.Widget ( widgetTest , resourcesY ) where import Test.Hspec import Yesod.Core import Network.Wai import Network.Wai.Test d...
null
https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/yesod-core/test/YesodCoreTest/Widget.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes , TypeFamilies , TemplateHaskell , MultiParamTypeClasses # # LANGUAGE FlexibleInstances , ViewPatterns # module YesodCoreTest.Widget ( widgetTest , resourcesY ) where import Test.Hspec import Yesod.Core import Network.Wai import Network.Wai.Test data Y = Y mkMessage "Y" "test" "en...
a896f7fa9b93865922dea2897d7dae008ff38175f92b6115995470a39d669f27
mbj/stratosphere
IntegrationProperty.hs
module Stratosphere.SSMIncidents.ResponsePlan.IntegrationProperty ( module Exports, IntegrationProperty(..), mkIntegrationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SSMIncidents.Respons...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ssmincidents/gen/Stratosphere/SSMIncidents/ResponsePlan/IntegrationProperty.hs
haskell
# SOURCE #
module Stratosphere.SSMIncidents.ResponsePlan.IntegrationProperty ( module Exports, IntegrationProperty(..), mkIntegrationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data Integration...
80542d8b42afa6af036cad3fd774d1acb4631870af55beea842672da5a264df0
pgourlain/vscode_erlang
function_type_spec.erl
-module(function_type_spec). -type fun_type() :: fun((term()) -> ok). -spec f() -> fun_type(). f() -> fun(_) -> ok end.
null
https://raw.githubusercontent.com/pgourlain/vscode_erlang/0af7641f1f4bcfb587094154d9c18a02fdb437e6/syntaxes/test/function_type_spec.erl
erlang
-module(function_type_spec). -type fun_type() :: fun((term()) -> ok). -spec f() -> fun_type(). f() -> fun(_) -> ok end.
77c73a39e07fc9d44d5806cb6faf296cb995ada0d74d4a3208048a752ec7fc0d
LuxLang/lux
analyser.clj
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 /. (ns lux.analyser (:require (clojure [template :refer [do-template]]) clojure.core.match clojure.core.match.array ...
null
https://raw.githubusercontent.com/LuxLang/lux/e6d9fc871f271aed21bc7587d989d26dfec9d6c6/lux-bootstrapper/src/lux/analyser.clj
clojure
[Utils] Standard special forms else Pattern-matching syntax. Function syntax. [Resources]
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 /. (ns lux.analyser (:require (clojure [template :refer [do-template]]) clojure.core.match clojure.core.match.array ...
fc6c8a4220041296fd35b325c5ca4a556c4e16321690a48d8e85b0a44effc118
nuvla/ui
spec.cljs
(ns sixsq.nuvla.ui.deployments-detail.spec (:require [clojure.spec.alpha :as s] [sixsq.nuvla.ui.plugins.events :as events-plugin])) (s/def ::deployment any?) (s/def ::loading? boolean?) (s/def ::module-versions any?) (s/def ::deployment-parameters any?) (s/def ::events any?) (s/def ::node-parameters any?...
null
https://raw.githubusercontent.com/nuvla/ui/c14e09c9fab322ff19a1da62dc4eb76846decef7/code/src/cljs/sixsq/nuvla/ui/deployments_detail/spec.cljs
clojure
(ns sixsq.nuvla.ui.deployments-detail.spec (:require [clojure.spec.alpha :as s] [sixsq.nuvla.ui.plugins.events :as events-plugin])) (s/def ::deployment any?) (s/def ::loading? boolean?) (s/def ::module-versions any?) (s/def ::deployment-parameters any?) (s/def ::events any?) (s/def ::node-parameters any?...
bd7807991e9091914403b6d1b1a88ea5d11f04223fb6af9d16f8266e65ca5109
cbaggers/cepl
funcall-g.lisp
(in-package :cepl.pipelines) ;;------------------------------------------------------------ (defun funcall-g (name &rest args) (if (functionp name) (apply name args) (multiple-value-bind (in-vals uniform-keys-and-vals) (split-args-for-dyn-call args) (let* ((spec (if (typep name 'gpu-fu...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/pipelines/funcall-g.lisp
lisp
------------------------------------------------------------
(in-package :cepl.pipelines) (defun funcall-g (name &rest args) (if (functionp name) (apply name args) (multiple-value-bind (in-vals uniform-keys-and-vals) (split-args-for-dyn-call args) (let* ((spec (if (typep name 'gpu-func-spec) name ...
b791b7abddb8d02d948c9c2bec9ba4ef6ded15973e182e9c642446e6884accd4
korya/efuns
x.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/xlib/x.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Xtypes open Xbuffer open Display open Xproto let send...
e7b4a3aa35f32261e05ccb680cd40aa68393e38af727e91327f174f40fab3a92
jeapostrophe/automata
explain.rkt
#lang racket (require automata/re automata/re-ext automata/machine tests/eli-tester) (define r (re (seq 1 2 3))) (define r0 (r 1)) (machine-accepting? (r0 1)) (machine-explain r0)
null
https://raw.githubusercontent.com/jeapostrophe/automata/6abe851b83b18fcdcb8f2b19ab87cdabc90c71ce/automata-test/tests/explain.rkt
racket
#lang racket (require automata/re automata/re-ext automata/machine tests/eli-tester) (define r (re (seq 1 2 3))) (define r0 (r 1)) (machine-accepting? (r0 1)) (machine-explain r0)
8433c02dd3b03c537de1669c73c8556f384ff4c28d08ca6951354bea43b9fe3e
shirok/Gauche
primitive.scm
(define-module scheme.stream.primitive (use util.stream) (export stream-null stream-cons stream? stream-null? stream-pair? stream-car stream-cdr stream-lambda))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/scheme/stream/primitive.scm
scheme
(define-module scheme.stream.primitive (use util.stream) (export stream-null stream-cons stream? stream-null? stream-pair? stream-car stream-cdr stream-lambda))
7bf3c8813ba354dba72acbd3539938e3a6ea686f9c4c607a12ab2641f1b2744d
lspitzner/brittany
Test256.hs
# LANGUAGE QuasiQuotes # func = [blub| asd qwe|]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test256.hs
haskell
# LANGUAGE QuasiQuotes # func = [blub| asd qwe|]
3b65bddf7dee889a4e95466857959e84a1364661d9a12d2f9d9b3f13e19774f4
haskell-effectful/effectful
Utils.hs
module Utils ( assertBool , assertEqual , assertFailure , assertThrows , Ex(..) ) where import Control.Exception import Control.Monad import GHC.Stack import qualified Test.Tasty.HUnit as T import Effectful assertBool :: (HasCallStack, IOE :> es) => String -> Bool -> Eff es () assertBool msg p = liftIO $...
null
https://raw.githubusercontent.com/haskell-effectful/effectful/cc25dc9ef4d06c8df391ede07642d3bbfbab6aca/effectful/tests/Utils.hs
haskell
module Utils ( assertBool , assertEqual , assertFailure , assertThrows , Ex(..) ) where import Control.Exception import Control.Monad import GHC.Stack import qualified Test.Tasty.HUnit as T import Effectful assertBool :: (HasCallStack, IOE :> es) => String -> Bool -> Eff es () assertBool msg p = liftIO $...
9bcc5bba98b8c2143691b5cef0b3644cea8e99ea33fa331fc97e1fbc9705d3d6
input-output-hk/plutus-apps
Tokens.hs
# LANGUAGE NamedFieldPuns # -- | Dealing with tokens module Ledger.Tokens( -- $tokens token , outputsWith , paidTo ) where import Plutus.V1.Ledger.Contexts import Plutus.V1.Ledger.Value (AssetClass, Value, leq) import Plutus.V1.Ledger.Value qualified as Value -- $tokens The extended UTXO ledger with scrip...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/d637b1916522e4ec20b719487a8a2e066937aceb/plutus-ledger/src/Ledger/Tokens.hs
haskell
| Dealing with tokens $tokens $tokens native user-defined currencies. Tokens are user-defined currencies a 'Currency'. | A value that contains exactly the token. currency. | The total 'Value' paid by the pending transaction to outputs
# LANGUAGE NamedFieldPuns # module Ledger.Tokens( token , outputsWith , paidTo ) where import Plutus.V1.Ledger.Contexts import Plutus.V1.Ledger.Value (AssetClass, Value, leq) import Plutus.V1.Ledger.Value qualified as Value The extended UTXO ledger with scripts that runs on supports with an issuance of e...
973f87418483e23078dad5114877d044251a824ea5d53fff53afb75ba11d1497
morpheusgraphql/morpheus-graphql
TypeRef.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Client.Schema.JSON.TypeRef ( TypeRef (..), ) where import Data.Aeson (FromJSON) import Data.Morpheus.Types.Internal.AST ( TypeName, ) import Relude newtype TypeRef = TypeRef {name :: TypeName} der...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/f9684d1451fd4ee3aabdb821424fd352003a3982/morpheus-graphql-client/src/Data/Morpheus/Client/Schema/JSON/TypeRef.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Client.Schema.JSON.TypeRef ( TypeRef (..), ) where import Data.Aeson (FromJSON) import Data.Morpheus.Types.Internal.AST ( TypeName, ) import Relude newtype TypeRef = TypeRef {name :: TypeName} deriving (Generic, Show, FromJSON)
319819d4d84c88096872c8d69527cb7dcb8894860f09e293f40c05cd3a2d97c5
haskell-servant/servant-swagger
TodoSpec.hs
# OPTIONS_GHC -fno - warn - orphans # module TodoSpec where import Prelude () import Prelude.Compat import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as BL8 import Paths_example import Servant.Swagger.Test import Test.Hspec import Test.QuickCheck import ...
null
https://raw.githubusercontent.com/haskell-servant/servant-swagger/1909e44e965dca24cb1f5cee4b08c0781dfdbff6/example/test/TodoSpec.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module TodoSpec where import Prelude () import Prelude.Compat import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as BL8 import Paths_example import Servant.Swagger.Test import Test.Hspec import Test.QuickCheck import ...
0986f4659a5fbf7714eb843769034812d60e81f63652d47f95aeb65975542912
haskell-compat/deriving-compat
ShowSpec.hs
# LANGUAGE CPP # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE EmptyCase # #endif | Module : ShowSpec Copyright : ( C ) 2015 -...
null
https://raw.githubusercontent.com/haskell-compat/deriving-compat/7310405319aa274718c71d94620863bfc459c9b9/tests/ShowSpec.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # ----------------------------------------------------------------------------- Data families ----------------------------------------------------------------------------- Use EmptyCase here Data families -----------------------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE KindSignatures # # LANGUAGE MagicHash # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE EmptyCase # #endif | Module : ShowSpec Copyright : ( C ) 2015 - 2017 License : BSD - style ( see the file...
1ea9c7fbdfb51bbc0936a36a1f90e85bf9a0b5b35302c7319e9b19b763e7e734
geoffder/dometyl-keyboard
hand.ml
open OCADml open OSCADml module Bone = struct type t = { scad : Scad.d3 ; base : V3.t ; tip : V3.t ; joint : V3.t [@cad.unit] ; normal : V3.t [@cad.unit] } [@@deriving cad] let bend a t = let q = Quaternion.make t.joint a in { t with scad = Scad.quaternion ~about:t.base q t...
null
https://raw.githubusercontent.com/geoffder/dometyl-keyboard/d6af46ea157a38167b50cc492e16428644806ddb/lib/hand.ml
ocaml
open OCADml open OSCADml module Bone = struct type t = { scad : Scad.d3 ; base : V3.t ; tip : V3.t ; joint : V3.t [@cad.unit] ; normal : V3.t [@cad.unit] } [@@deriving cad] let bend a t = let q = Quaternion.make t.joint a in { t with scad = Scad.quaternion ~about:t.base q t...
8ea2e80a82876247be309a58fd1e717a1055159b891a81fb01c7032b2e21549a
qkrgud55/ocamlmulti
misc.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/utils/misc.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : misc.mli 12511 2012 - 05 - 30...
75102f0e7325b55ec431a31c1905c65bbd5fb80f4b1a3bd463faecc6fffa97fd
mkoppmann/eselsohr
Test.hs
module Main where import Test.Tasty ( defaultMain , testGroup ) import Test.Integration (integrations) import Test.Mock (mocks) import Test.Property (props) import Test.Unit (specs) main :: IO () main = do unit <- specs mock <- mocks integration <- integrations defaultMain $ testGroup "Te...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/test/Test.hs
haskell
module Main where import Test.Tasty ( defaultMain , testGroup ) import Test.Integration (integrations) import Test.Mock (mocks) import Test.Property (props) import Test.Unit (specs) main :: IO () main = do unit <- specs mock <- mocks integration <- integrations defaultMain $ testGroup "Te...
631af09ff35b41e18f178f5073832b1645e615e48ef8e0bc718ebd3a4cc31373
CryptoKami/cryptokami-core
Test.hs
import Spec (spec) import Test.Hspec (hspec) import Universum main :: IO () main = hspec spec
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/test/Test.hs
haskell
import Spec (spec) import Test.Hspec (hspec) import Universum main :: IO () main = hspec spec
162005a7bfc6219b97c4b7a39f34b7c411e571de8e71f10df66bc2dfc5763cda
tweag/pirouette
Internal.hs
-- | This module implements a persistent union-find data structure. This -- structure reprensents a map from equivalence classes of keys to values. The equivalence relation is irrelevant . The structure primarily provides two -- operations: -- - @union@ takes two keys and merges their equivalence classes , returnin...
null
https://raw.githubusercontent.com/tweag/pirouette/35c88ead8bc0b2222d94b1349fe42cf3ea3b1fa5/src/UnionFind/Internal.hs
haskell
| This module implements a persistent union-find data structure. This structure reprensents a map from equivalence classes of keys to values. The operations: new structure. Because both keys might be associated to a value, this operation must also be told how to reconcile both values into one. - @find@ take...
equivalence relation is irrelevant . The structure primarily provides two - @union@ takes two keys and merges their equivalence classes , returning a module UnionFind.Internal where import Data.Default (Default, def) import Data.Map (Map) import qualified Data.Map as Map data UnionFindCell key value = ChildOf k...
fea752f9be8d51dcd940a9f16a1304f74704e1a09825cf95c6713cab44972c5e
pgj/mirage-kfreebsd
console.mli
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-platform/lib/console.mli
ocaml
* Text console input/output operations. * Abstract type of a console instance * The default console, attached from the start of the program * Create an additional console. Not implemented yet. * Write a string with offset/length to the console * Same as {!OS.Console.write} except that the operation is synchronous
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
fd886d6fbcb0ee6bb01b3b544f24f882207e0005f7e11c85bec672ccae618b97
google/rysim
num_gen.erl
%%%------------------------------------------------------------------- Copyright 2014 The RySim Authors . All rights reserved . %%% 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 %...
null
https://raw.githubusercontent.com/google/rysim/afe19cea6415eb9d17e97f2f67280cf0b92eaa6e/erlang/rysim_des/src/num_gen.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 im...
Copyright 2014 The RySim Authors . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , < em > > is a list of floats provided as the control < li > = 2</li > < li > exponential = 1</li > < li > fl...
e40ad64d8791443111d21a7d69bce81047d9a530a942ebbb0e6b247e5a040dc6
hackwaly/ocamlearlybird
lwt_unix.ml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
null
https://raw.githubusercontent.com/hackwaly/ocamlearlybird/165174e3cc749ba416ec7ebfb4b521e5fac744db/src/ground/lwt_unix.ml
ocaml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
31f4d675bf416d9116c2f339f3f51ef005d7e4c8f77bd920ecef2d01cbf0b3ab
jordanthayer/ocaml-search
plot_sheet.ml
* A sheet of plots . TODO : Change located plots to use a record instead of a 4 - tuple @author eaburns @since 2010 - 09 - 08 TODO: Change located plots to use a record instead of a 4-tuple @author eaburns @since 2010-09-08 *) open Printf open Drawing open Geometry open Verbosity (...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt/src/plot_sheet.ml
ocaml
* A located plot. * [plot_size ctx theta plot] gets the width and height of the plot when rotated at the given angle. * [draw_plot ctx plot ~x ~y ~theta] draws the given plot centered at [x],[y]. [theta] is in radians. * [centered_on ~w ~h ~pad plot] centers [plot] on a sheet of size [w]x[h] with [pad] ...
* A sheet of plots . TODO : Change located plots to use a record instead of a 4 - tuple @author eaburns @since 2010 - 09 - 08 TODO: Change located plots to use a record instead of a 4-tuple @author eaburns @since 2010-09-08 *) open Printf open Drawing open Geometry open Verbosity t...
27d07ac0c294270e909e3e66ff700898e363b8f4059945224f4cf0b86930f5e3
hypernumbers/LuvvieScript
demo.erl
-file("test/passing/src/demo.erl", 1). -module(demo). -export([test/0]). test() -> A = first(), B = second(), C = third(), A + B / C. first() -> 1. second() -> 2. third() -> 3.
null
https://raw.githubusercontent.com/hypernumbers/LuvvieScript/d10da50e0719ff26690749570c75e1e614214381/priv/demo/test/passing/psrc/demo.erl
erlang
-file("test/passing/src/demo.erl", 1). -module(demo). -export([test/0]). test() -> A = first(), B = second(), C = third(), A + B / C. first() -> 1. second() -> 2. third() -> 3.
d3a8334e0fa66e8a572e866e88c3f88a1b0e4822db7ac3a9149da6490873edc3
tmattio/spin
local_template.mli
val read_spin_file : string -> (Dec_template.t, Spin_error.t) Result.t val files_with_content : string -> (string * string) list
null
https://raw.githubusercontent.com/tmattio/spin/092ab5979d4f1d01f538743443b70465a2d5ed23/lib/spin/template_sources/local_template.mli
ocaml
val read_spin_file : string -> (Dec_template.t, Spin_error.t) Result.t val files_with_content : string -> (string * string) list
8e4492208fcf3c4436a68883a679e72b23d6d7fa6d8bf3fc5b9611f3f781fae0
asr/apia
Common.hs
-- | Common types. module Apia.Common ( ATP(CVC4, E, Equinox, IleanCoP, Metis, OnlineATP, SPASS, Vampire, Z3) , Lang(SMT2, TPTP) ) where ------------------------------------------------------------------------------ import Apia.Prelude import Apia.Utils.PrettyPrint ( Pretty(pretty), text ) ---------------...
null
https://raw.githubusercontent.com/asr/apia/a66c5ddca2ab470539fd68c42c4fbd45f720d682/src/Apia/Common.hs
haskell
| Common types. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- | Target languages.
module Apia.Common ( ATP(CVC4, E, Equinox, IleanCoP, Metis, OnlineATP, SPASS, Vampire, Z3) , Lang(SMT2, TPTP) ) where import Apia.Prelude import Apia.Utils.PrettyPrint ( Pretty(pretty), text ) | The ( first - order and SMT solvers ) . data ATP = CVC4 | E | Equinox | IleanCoP...
7fdc423eaa5742340d2208518cfe1db2d49bffd728dbe0966eb1ccddbfc7a980
danieljharvey/mimsa
Prelude.hs
{-# LANGUAGE OverloadedStrings #-} module Test.Data.Prelude (prelude, preludeHash) where hard coded basic Prelude module used for tests import Data.Functor import qualified Data.Map.Strict as M import qualified Data.Set as S import Language.Mimsa.Core import Language.Mimsa.Modules.HashModule import Test.Utils.Help...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/test/Test/Data/Prelude.hs
haskell
# LANGUAGE OverloadedStrings #
module Test.Data.Prelude (prelude, preludeHash) where hard coded basic Prelude module used for tests import Data.Functor import qualified Data.Map.Strict as M import qualified Data.Set as S import Language.Mimsa.Core import Language.Mimsa.Modules.HashModule import Test.Utils.Helpers preludeHash :: ModuleHash prel...
1deab0df6168a3c88bc1aab230ad460886ab2e363fc1a78a648033e39d1b48f1
masatoi/cl-igo
char-category.lisp
(defpackage igo.char-category (:use :common-lisp) (:shadow load) (:export load category category-set compatible? category-trie-id category-length category-invoke? category-group?)) (in-package :igo.char-category) ;;;;;;;;;;; ;;; declaim (declaim (inline category compatible?)) ;;;;;;;...
null
https://raw.githubusercontent.com/masatoi/cl-igo/deac2618517f8ba7074798798f39b1162a3e6049/char-category.lisp
lisp
declaim struct internal function external-function
(defpackage igo.char-category (:use :common-lisp) (:shadow load) (:export load category category-set compatible? category-trie-id category-length category-invoke? category-group?)) (in-package :igo.char-category) (declaim (inline category compatible?)) (defstruct category (trie-id ...
6d67bc4a5afc9afcd825b173390069bd73120a84388886d3df6e6c3a5e31f9c9
lexi-lambda/racket-tulip
curry.rkt
#lang racket/base This module implements static currying , which is useful for providing Racket functions to Tulip code . It is simpler than tulip / racket / ffi because it does not need to cooperate with Tulip ’s ; always-curried function application syntax. (require (for-syntax racket/base ...
null
https://raw.githubusercontent.com/lexi-lambda/racket-tulip/1613cfd4d7e8dbc8ceb86cf33479375147f42b2f/tulip-lib/private/util/curry.rkt
racket
always-curried function application syntax.
#lang racket/base This module implements static currying , which is useful for providing Racket functions to Tulip code . It is simpler than tulip / racket / ffi because it does not need to cooperate with Tulip ’s (require (for-syntax racket/base racket/provide-transform ...
4ac157cd5b2aa00b2f6b70b197abf287187d8975cf31730c086c8155e402d28b
Javran/advent-of-code
Day4.hs
module Javran.AdventOfCode.Y2016.Day4 ( ) where import Control.Monad import Data.Char import Data.List import qualified Data.Map.Strict as M import Data.Semigroup import Javran.AdventOfCode.Prelude import Javran.AdventOfCode.TestExtra import Text.ParserCombinators.ReadP hiding (count, get, many) data Day4 deriving ...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2016/Day4.hs
haskell
module Javran.AdventOfCode.Y2016.Day4 ( ) where import Control.Monad import Data.Char import Data.List import qualified Data.Map.Strict as M import Data.Semigroup import Javran.AdventOfCode.Prelude import Javran.AdventOfCode.TestExtra import Text.ParserCombinators.ReadP hiding (count, get, many) data Day4 deriving ...
cadceddaf4dab9aad68a6b6552de1eb68b071b95d7b3ccaeb35a388897b106c2
pedestal/pedestal-app
flow.cljs
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing to be bound by ; the terms of this licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/src/io/pedestal/app/flow.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. T...
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.app.flow (:require [io.pedestal.app.model :as model] [io.pedestal.app.map :as mapper]) (:use [cljs.core.async :only [chan <! >!]]) (:require-macros [cljs.core.async.macros :refer [go]])) (def ^:private marker [[[::m...
b4f34ce0468be2ba8d8468d652dafe11164b5faf819884fb6904bddabb9a62ac
Mattiemus/LaneWars
Client.hs
{-# LANGUAGE Arrows #-} module Main where import Control.Monad.Loops import FRP.Yampa as Yampa import FRP.Yampa.Geometry import Graphics.UI.SDL as SDL import Graphics.UI.SDL.Events as SDL.Events import Graphics.UI.SDL.Keysym as SDL.Keysym import Data.IORef import Data.Maybe import Data.Serializ...
null
https://raw.githubusercontent.com/Mattiemus/LaneWars/4c4a0a11f49cbd9ff722aedf3e0f352e49b140fe/Client.hs
haskell
# LANGUAGE Arrows # Based on code at: |Initialises the client environment, creating the game window ^The client socket ^The initial player and network input data Setup SDL Start listening Gather up events and return them |Performs input handling for the reactimate loop, returning both all player input e...
module Main where import Control.Monad.Loops import FRP.Yampa as Yampa import FRP.Yampa.Geometry import Graphics.UI.SDL as SDL import Graphics.UI.SDL.Events as SDL.Events import Graphics.UI.SDL.Keysym as SDL.Keysym import Data.IORef import Data.Maybe import Data.Serialize import Network.Socket...
8a9539f27491ab68a06a421c9a57110c88baf6080a518cd30f7e325164a58e6c
exercism/babashka
annalyns_infiltration_test.clj
(ns annalyns-infiltration-test (:require [clojure.test :refer [deftest testing is]] annalyns-infiltration)) (deftest fast-attack-awake-test (testing "Fast attack if knight is awake" (is (= false (annalyns-infiltration/can-fast-attack? true))))) (deftest fast-attack-asleep-test (testing "Fast att...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/concept/annalyns-infiltration/test/annalyns_infiltration_test.clj
clojure
(ns annalyns-infiltration-test (:require [clojure.test :refer [deftest testing is]] annalyns-infiltration)) (deftest fast-attack-awake-test (testing "Fast attack if knight is awake" (is (= false (annalyns-infiltration/can-fast-attack? true))))) (deftest fast-attack-asleep-test (testing "Fast att...
dc861c3bae231fd4427d1f594f15dc711c2a9844bfa3ed8f5051af2faa0be2dd
mirage/mirage-skeleton
unikernel.ml
module Main (CON : Conduit_mirage.S) = struct let src = Logs.Src.create "conduit_server" ~doc:"Conduit HTTP server" module Log = (val Logs.src_log src : Logs.LOG) module H = Cohttp_mirage.Server.Make (CON) let start conduit = let http_callback _conn_id req _body = let path = Uri.path (Cohttp.Request...
null
https://raw.githubusercontent.com/mirage/mirage-skeleton/144d68992a284730c383eb3d39c409a061bc452e/device-usage/conduit_server/unikernel.ml
ocaml
module Main (CON : Conduit_mirage.S) = struct let src = Logs.Src.create "conduit_server" ~doc:"Conduit HTTP server" module Log = (val Logs.src_log src : Logs.LOG) module H = Cohttp_mirage.Server.Make (CON) let start conduit = let http_callback _conn_id req _body = let path = Uri.path (Cohttp.Request...
fd76a1b0d5490c575f74bfbe6c7ee7c1fc29ac87b535f28a2c3eb30ad652c290
duncanatt/detecter
cowboy_compress_h.erl
Copyright ( c ) 2017 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/duncanatt/detecter/95b6a758ce6c60f3b7377c07607f24d126cbdacf/experiments/coordination_2022/src/cowboy/cowboy_compress_h.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2017 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cowboy_compress_h). -behavior(cowboy_stream). -expo...
64bd4f3bdf32e58591cc2de6905f8937448240fdf8dca6fc1d94456767602748
ninenines/ranch
proxy_protocol.erl
-module(proxy_protocol). -behaviour(ranch_protocol). -export([start_link/3]). -export([init/3]). start_link(Ref, Transport, Opts) -> Pid = spawn_link(?MODULE, init, [Ref, Transport, Opts]), {ok, Pid}. init(Ref, Transport, _Opts = []) -> {ok, ProxyInfo} = ranch:recv_proxy_header(Ref, 1000), {ok, Socket} = ranch:h...
null
https://raw.githubusercontent.com/ninenines/ranch/4a1d16242c6fa9865fd7499d301d90b9ca65d6b1/test/proxy_protocol.erl
erlang
-module(proxy_protocol). -behaviour(ranch_protocol). -export([start_link/3]). -export([init/3]). start_link(Ref, Transport, Opts) -> Pid = spawn_link(?MODULE, init, [Ref, Transport, Opts]), {ok, Pid}. init(Ref, Transport, _Opts = []) -> {ok, ProxyInfo} = ranch:recv_proxy_header(Ref, 1000), {ok, Socket} = ranch:h...
1206fd89b5628875928350ba878730d42fbcaf13103171a5351df0896f7c8abc
esl/MongooseIM
nodetree_dag.erl
%%% XEP-0248: PubSub Collection Nodes DAG stands for Directed Acyclic Graph %%% %%% ==================================================================== ` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %%% compliance w...
null
https://raw.githubusercontent.com/esl/MongooseIM/b43080405942302f7d2c9abc1dcf52d1ac6c5206/src/pubsub/nodetree_dag.erl
erlang
XEP-0248: PubSub Collection Nodes ==================================================================== compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND...
DAG stands for Directed Acyclic Graph ` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " @author < > -module(nodetree_dag). -behaviour(gen_pub...
01fd865918180ba431c78784499a7d24222ba44c61f615edff31725cee197284
tomhanika/conexp-clj
snapshots.clj
(ns conexp.gui.draw.control.snapshots (:require [conexp.base :refer :all] [conexp.gui.draw.control.util :refer :all] [conexp.gui.draw.scene-layouts :refer :all] [conexp.gui.draw.scenes :refer :all] [seesaw.core :refer [listen]]) (:import [javax.swing JButton JComboBox...
null
https://raw.githubusercontent.com/tomhanika/conexp-clj/5e4c15697f06446f925f53d1d143528155d7dd3a/src/main/clojure/conexp/gui/draw/control/snapshots.clj
clojure
(ns conexp.gui.draw.control.snapshots (:require [conexp.base :refer :all] [conexp.gui.draw.control.util :refer :all] [conexp.gui.draw.scene-layouts :refer :all] [conexp.gui.draw.scenes :refer :all] [seesaw.core :refer [listen]]) (:import [javax.swing JButton JComboBox...
90e6347dccc69f80669f1327a9a5ab0cc874fd6dbff2a1dd8f3c27544030d597
inhabitedtype/ocaml-aws
listTrafficPolicyInstancesByHostedZone.mli
open Types type input = ListTrafficPolicyInstancesByHostedZoneRequest.t type output = ListTrafficPolicyInstancesByHostedZoneResponse.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/route53/lib/listTrafficPolicyInstancesByHostedZone.mli
ocaml
open Types type input = ListTrafficPolicyInstancesByHostedZoneRequest.t type output = ListTrafficPolicyInstancesByHostedZoneResponse.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
8aa457520a8e90f6ec2b2f91236d8396af73c8b66eaae1b0d611ee277444d839
mirage/ocaml-dns
dns_client_unix.ml
{ ! Transport } provides the implementation of the underlying flow that is in turn used by { ! } to provide the blocking Unix convenience module : that is in turn used by {!Dns_client.Make} to provide the blocking Unix convenience module: *) module Transport : Dns_client.S with type io_addr = ...
null
https://raw.githubusercontent.com/mirage/ocaml-dns/15fa1a62b613c218bc29a45829afa25fefee4357/unix/client/dns_client_unix.ml
ocaml
there is no connect timeouts, just a request timeout (unix: receive timeout) Now that we have our {!Transport} implementation we can include the logic that goes on top of it:
{ ! Transport } provides the implementation of the underlying flow that is in turn used by { ! } to provide the blocking Unix convenience module : that is in turn used by {!Dns_client.Make} to provide the blocking Unix convenience module: *) module Transport : Dns_client.S with type io_addr = ...
df62bfec84b7da26e23b67d6ad0506f18a2060bebefb7d94858a9795a5f0292b
8c6794b6/guile-tjit
t-box-02.scm
(define (loop n) (let ((res 0)) (do ((i 0 (+ i 1))) ((= i n)) (set! res (+ res 0.12))) res)) (loop #e1e5)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-box-02.scm
scheme
(define (loop n) (let ((res 0)) (do ((i 0 (+ i 1))) ((= i n)) (set! res (+ res 0.12))) res)) (loop #e1e5)
7ce60909d0b1bfe79fa01d3c1234d32367e5ecdadc00f6cc181e05d9e8a50c89
owickstrom/komposition
Sox.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrin...
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/Import/Audio/Sox.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # Temporary directory to save normalized file in Source path Action with progress updates, returning the normalized fil...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # module Komposition.Import.Audio.Sox (runSoxAudioImport) where import Komposition.Prelude hiding (b...
f5218468b9ca5200808edfd553754dd111c1704f1b1ea3dd8a2d70dcaf599c28
tonsky/tongue
inst.cljc
(ns tongue.inst (:require [clojure.string :as str] [tongue.macro :as macro] #?(:clj [clojure.future :refer :all]) #?(:clj [clojure.spec.alpha :as spec])) #?(:clj (:import [java.util Calendar]))) (defn- pad2 [i] (if (< i 10) (str "0" i) (str i))) (defn- pad3 [i] (cond ...
null
https://raw.githubusercontent.com/tonsky/tongue/cde5f93726161efb4e9a1e4db8c4becea74e7418/src/tongue/inst.cljc
clojure
(ns tongue.inst (:require [clojure.string :as str] [tongue.macro :as macro] #?(:clj [clojure.future :refer :all]) #?(:clj [clojure.spec.alpha :as spec])) #?(:clj (:import [java.util Calendar]))) (defn- pad2 [i] (if (< i 10) (str "0" i) (str i))) (defn- pad3 [i] (cond ...
997799bf9470f5c3e8e2863c023ac0a94db67a81bc622a62dcf2ab4e7c8e8aed
haskell-compat/base-compat
Repl.hs
{-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Control . Concurrent . MVar . Compat " -- from a globally unique namespace. module Control.Concurrent.MVar.Compat.Repl ( module Control.Concurrent.MVar.Compat ) where import "this" Control.Conc...
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Control/Concurrent/MVar/Compat/Repl.hs
haskell
# LANGUAGE PackageImports # from a globally unique namespace.
# OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Control . Concurrent . MVar . Compat " module Control.Concurrent.MVar.Compat.Repl ( module Control.Concurrent.MVar.Compat ) where import "this" Control.Concurrent.MVar.Compat
c05f015c7b356c0ea9444fbbc0bb537ee69422eb02110a47f6935188e57dcadc
elastic/eui-cljs
icon_brush.cljs
(ns eui.icon-brush (:require ["@elastic/eui/lib/components/icon/assets/brush.js" :as eui])) (def brush eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_brush.cljs
clojure
(ns eui.icon-brush (:require ["@elastic/eui/lib/components/icon/assets/brush.js" :as eui])) (def brush eui/icon)
f689f17a1ad5e60669e7c98a978e5fe39859eaf58d4b0742ba5cf664f79423b4
onedata/op-worker
view_links.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Util functions for operating on in...
null
https://raw.githubusercontent.com/onedata/op-worker/e6a44460ef2887de009f6217cb1ada322c1cf179/src/modules/view/view_links.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Util functions for operating on index links trees. @end ------------------------------------------------------------------- API =========================================...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(view_links). -author("Bartosz Walkowicz"). -author("Jakub Kudzia"). -include("modules/datastore/datastore_runner.hrl"). -include("modules/fslogic/fslogic_suffix.hrl"). -include_lib("ctool/i...
3585d6f3f729a4f01eb541175a7884aaf9f090a399d8554e9a6015acfb00ae56
CatalaLang/catala
date.ml
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2022 , 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/07edff2cd2371581ba0e5664aa32bcf06650bd0e/french_law/catala_legifrance/date.ml
ocaml
* Helper functions to interact with {!Unix.tm} dates * [date_compare d1 d2] compares the timestamps of [d1] and [d2]
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2022 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
df343235b4c84f3c728564ae7c43dccee414bb6b985d225b6cf37181d17bb272
RolfRolles/PandemicML
DerivedWisdom.ml
let i = { pref = []; instr = (Rcl,[GeneralReg(Gb(Al));GeneralReg(Gb(Cl))]); } in let me = Binop(X86Reg(X86.Gb(X86.Cl)),And,Imm(X86.Ib(31l))) in let count = ITE(Binop(me,Ult,Imm(X86.Ib( 9l))),me, ITE(Binop(me,Ult,Imm(X86.Ib(18l))),Binop(me,Sub,Imm(X86.Ib( 9l))), ITE(Binop(me,Ult,Imm(X86.Ib(27l))),B...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Test/attic/DerivedWisdom.ml
ocaml
Result OF For each f/is/os tuple
let i = { pref = []; instr = (Rcl,[GeneralReg(Gb(Al));GeneralReg(Gb(Cl))]); } in let me = Binop(X86Reg(X86.Gb(X86.Cl)),And,Imm(X86.Ib(31l))) in let count = ITE(Binop(me,Ult,Imm(X86.Ib( 9l))),me, ITE(Binop(me,Ult,Imm(X86.Ib(18l))),Binop(me,Sub,Imm(X86.Ib( 9l))), ITE(Binop(me,Ult,Imm(X86.Ib(27l))),B...
07444ae6aa317ab6b79b700309c7fe8978d77da17d87733bee9bb7cccb3676f6
erlangonrails/devdb
ejabberd_socket.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_socket.erl Author : < > Purpose : Socket with zlib and TLS support library Created : 23 Aug 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/exmpp-0.9.5/src/compat/ejabberd_socket.erl
erlang
---------------------------------------------------------------------- File : ejabberd_socket.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ev...
Author : < > Purpose : Socket with zlib and TLS support library Created : 23 Aug 2006 by < > ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have recei...
4d928c8a8ffa39f96b4f86a77be247a954865299f962ed06568efaf0121977b5
monadfix/ormolu-live
HaddockUtils.hs
module HaddockUtils where import GhcPrelude import GHC.Hs import SrcLoc import Control.Monad -- ----------------------------------------------------------------------------- -- Adding documentation to record fields (used in parsing). addFieldDoc :: LConDeclField a -> Maybe LHsDocString -> LConDeclField a addField...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/parser/HaddockUtils.hs
haskell
----------------------------------------------------------------------------- Adding documentation to record fields (used in parsing).
module HaddockUtils where import GhcPrelude import GHC.Hs import SrcLoc import Control.Monad addFieldDoc :: LConDeclField a -> Maybe LHsDocString -> LConDeclField a addFieldDoc (L l fld) doc = L l (fld { cd_fld_doc = cd_fld_doc fld `mplus` doc }) addFieldDocs :: [LConDeclField a] -> Maybe LHsDocString -> [LCon...
46d2567d826268d1924250934d12e379ef26a2c4a8a759a4f317bc9fedee4689
raehik/binrep
Wav.hs
module Binrep.Example.Wav where import Binrep import Binrep.Generic import Binrep.Type.Common ( Endianness(..) ) import Binrep.Type.Int import Binrep.Type.Magic import GHC.Generics ( Generic ) import Data.Data ( Data ) type End = 'LE type W32 = I 'U 'I4 End type W16 = I 'U 'I2 End data WavHeader = WavHeader { wav...
null
https://raw.githubusercontent.com/raehik/binrep/4c60cdc59f60444c3dbfc708a13968b79d52c82d/src/Binrep/Example/Wav.hs
haskell
module Binrep.Example.Wav where import Binrep import Binrep.Generic import Binrep.Type.Common ( Endianness(..) ) import Binrep.Type.Int import Binrep.Type.Magic import GHC.Generics ( Generic ) import Data.Data ( Data ) type End = 'LE type W32 = I 'U 'I4 End type W16 = I 'U 'I2 End data WavHeader = WavHeader { wav...
d5811527e2ac3d2621d3ef63c0ac947acafee8122499f8d4729f976e8222dd6a
gree/haskell-test-sandbox
test.hs
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # import Test.Hspec hiding (shouldReturn,shouldBe) import Test.Hspec.Expectations.Lifted import Test.QuickCheck import Test.QuickCheck.Monadic (assert,monadicI...
null
https://raw.githubusercontent.com/gree/haskell-test-sandbox/ed3f3763178964d0faa52d0e52dd555798a806ce/test-sandbox/test/test.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE OverloadedStrings # liftIO $ setExecuteMode file # LANGUAGE OverloadedStrings # liftIO $ setExecuteMode file
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # # LANGUAGE LambdaCase # import Test.Hspec hiding (shouldReturn,shouldBe) import Test.Hspec.Expectations.Lifted import Test.QuickCheck import Test.QuickCheck.Monadic (assert,monadicIO) import Test.Sandbox import quali...
d57396daf5ae25d622162185c210017ea82e4ae9c1d11a1ed61cf6cc662bd0de
ds-wizard/engine-backend
List_GET.hs
module Wizard.Api.Handler.DocumentTemplate.List_GET where import Servant import Shared.Api.Handler.Common import Shared.Model.Common.Page import Shared.Model.Common.Pageable import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimple...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Handler/DocumentTemplate/List_GET.hs
haskell
module Wizard.Api.Handler.DocumentTemplate.List_GET where import Servant import Shared.Api.Handler.Common import Shared.Model.Common.Page import Shared.Model.Common.Pageable import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimple...