_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
d09a0fd72f6031898eaac32a8649db3b7f5b8c3f1364f33d65fa749b671cac83
diagrams/diagrams-svg
Gradient.hs
# LANGUAGE NoMonomorphismRestriction , FlexibleContexts , TypeFamilies # import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine stops = mkStops [(gray, 0, 1), (white, 0.5, 1), (purple, 1, 1)] gradient = mkLinearGradient stops ((-0.5) ^& 0) (0.5 ^& 0) GradPad sq1 = square 1 # fillTexture gradient sq2 = square 1 ...
null
https://raw.githubusercontent.com/diagrams/diagrams-svg/67fff83112b25a27460dd9bff95b69292d0f9fd8/examples/Gradient.hs
haskell
# LANGUAGE NoMonomorphismRestriction , FlexibleContexts , TypeFamilies # import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine stops = mkStops [(gray, 0, 1), (white, 0.5, 1), (purple, 1, 1)] gradient = mkLinearGradient stops ((-0.5) ^& 0) (0.5 ^& 0) GradPad sq1 = square 1 # fillTexture gradient sq2 = square 1 ...
e2cf13ab884f7e121fb0755330de1b040785437e97c0c0cb945bda1db216e7fb
smtcoq/smtcoq
smtlib2_ast.mli
(**************************************************************************) (* *) SMTCoq , originally belong to The Alt - ergo theorem prover Copyright ( C ) 2006 - 2010 (* ...
null
https://raw.githubusercontent.com/smtcoq/smtcoq/c0a1b83a76f9cf204de434eca969948c89c44598/3rdparty/alt-ergo/smtlib2_ast.mli
ocaml
************************************************************************ ...
SMTCoq , originally belong to The Alt - ergo theorem prover Copyright ( C ) 2006 - 2010 ...
10db6853934d73ea0054281f1a95c523d2c83cb2a26b3336def5b1d076a50b28
gfngfn/Sesterl
valueAttribute.ml
open MyUtil open Syntax type t = { is_test_suite : bool; } let default = { is_test_suite = false; } let decode (attrs : attribute list) : t * attribute_warning list = let (r, warn_acc) = attrs |> List.fold_left (fun (r, warn_acc) attr -> let Attribute((rng, attr_main)) = attr in match...
null
https://raw.githubusercontent.com/gfngfn/Sesterl/a8700cb36a44a6d9e4a6ada1c505b7d6cda71f04/src/valueAttribute.ml
ocaml
open MyUtil open Syntax type t = { is_test_suite : bool; } let default = { is_test_suite = false; } let decode (attrs : attribute list) : t * attribute_warning list = let (r, warn_acc) = attrs |> List.fold_left (fun (r, warn_acc) attr -> let Attribute((rng, attr_main)) = attr in match...
cb95a4b9f2295f86d4235016732faaefe10718455c228d838594748579968fa7
earl-ducaine/cl-garnet
kr-macros.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : KR ; Base : 10 -*- ;;*******************************************************************;; The Garnet User Interface Development Environment . ; ; ;;*******************************************************************;; ;; This code was written a...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/kr/kr-macros.lisp
lisp
Syntax : Common - Lisp ; Package : KR ; Base : 10 -*- *******************************************************************;; ; *******************************************************************;; This code was written as part of the Garnet project at ;; ; domain. ...
(in-package "COMMON-LISP-USER") (defvar *debug-kr-mode* t) (in-package :kr) (defparameter *kr-version* "2.3.4") (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *special-kr-optimization* '(optimize (speed 0) (safety 3) # + allegro ( safety 1 ) (space 0) (debug 3) # + ...
8db17f5ea3c9e692c02965b036063e911088593841bddf2beee4b98897ef34b6
elaforge/karya
RenderUtil.hs
Copyright 2020 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt # LANGUAGE DataKinds # # LANGUAGE TypeApplications # -- | Functions shared between instrument and effect faust patches. module Synth.Faust.RenderUtil where import qualified Control.Monad....
null
https://raw.githubusercontent.com/elaforge/karya/07bdeac32293a18f9ce982fab18d2802ea26b962/Synth/Faust/RenderUtil.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Functions shared between instrument and effect faust patches. I arrived at the dB by just trying it and seeing how it sounds. * controls | Pull a chunk from each of the controls. Omit the control if its s...
Copyright 2020 # LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Synth.Faust.RenderUtil where import qualified Control.Monad.Trans.Resource as Resource import qualified Data.Map as Map import qualified Data.Vector.Storable as V import qualified GHC.TypeLits as TypeLits import qualified Util.Audio.Audio ...
1deaf73cf846c3e7499eae002e6f020ddda86a134cdf15c8729c8ff67f7d8036
dougalstanton/git-checklist
Main.hs
# LANGUAGE ScopedTypeVariables # module Main where import Control.Exception (IOException, catch) import Control.Monad (when) import Data.List (intersperse, intercalate, sort) import Data.Monoid (mconcat) import Options.Applicative import qualified Text.Parsec as P import qualified Text.Parsec.String import System.E...
null
https://raw.githubusercontent.com/dougalstanton/git-checklist/a67444ea1ff1e504dc7991e73da2e55f14ac9434/src/Main.hs
haskell
Git stuff. Find the branch we're on and the .git directory. Data structures! Loading and saving data (by cheating). quickcheck property: roundtrip Operations: Adding, removing, marking done and not done. Overall control actions join list with blank lines Define command line flags and options can have apply to ...
# LANGUAGE ScopedTypeVariables # module Main where import Control.Exception (IOException, catch) import Control.Monad (when) import Data.List (intersperse, intercalate, sort) import Data.Monoid (mconcat) import Options.Applicative import qualified Text.Parsec as P import qualified Text.Parsec.String import System.E...
bf1cd14b6545569d4163be6a920bccda8edfaca49a11facada38ce291fc8460d
tolysz/ghcjs-stack
Configure.hs
# LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Configure Copyright : ( c ) 2005 , 2005 -- License : BSD-like -- -- Maintainer : -- Portability : portable -- -- High level interface to conf...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/Configure.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Client.Configure License : BSD-like Maintainer : Portability : portable High level interface to configuring a package. --------------------------------------------------------------------------- v...
# LANGUAGE CPP # Copyright : ( c ) 2005 , 2005 module Distribution.Client.Configure ( configure, configureSetupScript, chooseCabalVersion, checkConfigExFlags ) where import Distribution.Client.Dependency import Distribution.Client.Dependency.Types ( Constraint...
e2df29622b72196d10f73756aa4f6551a3eb1d0dfdf5215e47de4b9d02e59e9b
haskell-effectful/effectful
Dynamic.hs
-- | The dynamically dispatched variant of the 'Writer' effect. -- -- /Note:/ unless you plan to change interpretations at runtime, it's recommended to use one of the statically dispatched variants , -- i.e. "Effectful.Writer.Static.Local" or "Effectful.Writer.Static.Shared". module Effectful.Writer.Dynamic ( -- * ...
null
https://raw.githubusercontent.com/haskell-effectful/effectful/20848432bd29f648dbbae671da5dff3216b60e44/effectful-core/src/Effectful/Writer/Dynamic.hs
haskell
| The dynamically dispatched variant of the 'Writer' effect. /Note:/ unless you plan to change interpretations at runtime, it's i.e. "Effectful.Writer.Static.Local" or "Effectful.Writer.Static.Shared". * Effect ** Handlers *** Local *** Shared * Operations | Provide access to a write only value of type @w@. -...
recommended to use one of the statically dispatched variants , module Effectful.Writer.Dynamic Writer(..) , runWriterLocal , execWriterLocal , runWriterShared , execWriterShared , tell , listen , listens ) where import Effectful import Effectful.Dispatch.Dynamic import qualified Effectful.Wri...
d86cce527693afa787bd4dbfde5b9bb864e135f2fa0ae6e3dc8bb5b5ee84a9d4
orx/ocaml-orx
state.ml
let facing = ref Facing.Left
null
https://raw.githubusercontent.com/orx/ocaml-orx/14003e2014afeaf001168a0b6a9e8fe66def820c/examples/ocaml/top_down_movement/src/state.ml
ocaml
let facing = ref Facing.Left
87a1a38a8977ce0b1b13a301bebee749b589a2dadb3eabdef8cdaa41547729b4
wies/grasshopper
model.ml
* { 5 Models of GRASS formulas } open Util open Grass open GrassUtil let value_of_int srt i = mk_app srt (Value (Int64.of_int i)) [] let value_of_int64 srt i = mk_app srt (Value i) [] let bool_opt_of_value = function | App (BoolConst b, _, _) -> Some b | _ -> None let bool_of_value = function | App (BoolConst...
null
https://raw.githubusercontent.com/wies/grasshopper/108473b0a678f0d93fffec6da2ad6bcdce5bddb9/src/prover/model.ml
ocaml
update interpretation Find the defn of constructor cons Look for the position corresponding to destructor id * Find a term that evaluates to value [v] of sort [srt] in [model]. | Write, _ initialize remaining data structures auxiliary function for shortest path algorithm shortest path algorithm compute sho...
* { 5 Models of GRASS formulas } open Util open Grass open GrassUtil let value_of_int srt i = mk_app srt (Value (Int64.of_int i)) [] let value_of_int64 srt i = mk_app srt (Value i) [] let bool_opt_of_value = function | App (BoolConst b, _, _) -> Some b | _ -> None let bool_of_value = function | App (BoolConst...
4b055644f091e716a91f09b21b3c7649f87c799b2247d448a9e029d762ef6db5
soulomoon/haskell-katas
InfiniteDigitalString.hs
module Katas.InfiniteDigitalString (spec) where import qualified Kyu2.InfiniteDigitalString as User import Test.Hspec import Test.QuickCheck main :: IO () main = hspec spec spec :: Spec spec = describe "InfiniteDigitalString" $ do describe "Example test" $ do it "should pass fixed tests" $ do User.findPo...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/test/Katas/InfiniteDigitalString.hs
haskell
module Katas.InfiniteDigitalString (spec) where import qualified Kyu2.InfiniteDigitalString as User import Test.Hspec import Test.QuickCheck main :: IO () main = hspec spec spec :: Spec spec = describe "InfiniteDigitalString" $ do describe "Example test" $ do it "should pass fixed tests" $ do User.findPo...
78895d6123a5d0ecd4f7ac29f2ddc375f14cc86aabebbc4441ddcc936fee129e
nlamirault/cl-geonames
api.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; Name : api.lisp ;;;; Purpose: cl-geonames Common Lisp API Programmer : < > ;;;; This file , part of cl - geonames ,...
null
https://raw.githubusercontent.com/nlamirault/cl-geonames/30be2033c6ff99cbac1d690c08556ba080f01f76/src/api.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Purpose: cl-geonames Common Lisp API cl-geonames users are granted the rights to distribute and use this software (), also known as the LLGPL. ********************...
Name : api.lisp Programmer : < > This file , part of cl - geonames , is Copyright ( c ) 2006 by as governed by the terms of the Lisp Lesser GNU Public License (in-package :cl-geonames) (defun geo-perform (url &key (type :xml)) "Make a query to Geonames. @arg[url]{the URL to the Geonam...
710c9c820d662d05ea206d8f5cfdfaef20897dde41100c61f99541a72103deb8
let-def/menhir
error.mli
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/error.mli
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
e98ca6629954b7f20f6d5806cc4757f7a298c8e3094d192a0bee9bd7638eb4b4
hoelzl/Clicc
hash.lisp
;;;----------------------------------------------------------------------------- Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany ;;;----------------------------------------------------------------------------- Projekt : APPLY - A Practicable And Portable Lisp Implementation ;;; ...
null
https://raw.githubusercontent.com/hoelzl/Clicc/cea01db35301144967dc74fd2f96dd58aa52d6ea/src/runtime/lisp/hash.lisp
lisp
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ------------------------------------------------------ $Log: hash.lisp,v $ nur mit simple-strings. Revision 1.11 1993/07/07 08:40:29 hk h...
Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany Projekt : APPLY - A Practicable And Portable Lisp Implementation Funktion : System - Funktionen ( 16 . Hash Tables ) $ Revision : 1.13 $ Revision 1.13 1994/01/24 16:25:13 sma combine - hash jetzt in LISP implementiert . ( ...
2bebac1844d463304bcb441f383640a902b4f157be749f1b529f48f72ea345d1
ntrocado/cl-collider-examples
3-5.lisp
We need the synth defined in Chapter 3.3 (defsynth event ((freq 440) (amp 0.5) (pan 0.0)) (let ((env (env-gen.ar (env '(0 1 1 0) '(0.01 0.1 0.2)) :act :free))) (out.ar 0 (pan2.ar (* (blip.ar freq) env amp) pan)))) ;;; In Common Lisp there isn't a standard way of forking. ;;; The same result can be obtai...
null
https://raw.githubusercontent.com/ntrocado/cl-collider-examples/67eec426ea45f5423eefd9391d9a7e8ba41f8b51/nick-collins-tutorial/3-5.lisp
lisp
In Common Lisp there isn't a standard way of forking. The same result can be obtained with threads. TODO: rest of chapter
We need the synth defined in Chapter 3.3 (defsynth event ((freq 440) (amp 0.5) (pan 0.0)) (let ((env (env-gen.ar (env '(0 1 1 0) '(0.01 0.1 0.2)) :act :free))) (out.ar 0 (pan2.ar (* (blip.ar freq) env amp) pan)))) (ql:quickload "bordeaux-threads") (loop :for j :from 0 :upto 3 :do (bt:make-...
841d6b453c83f00dd4e076dccac71910a5ca817e26c339cd3a37a6579e9efa45
roburio/dnsvizor
unikernel.ml
open Lwt.Infix module Main (R : Mirage_random.S) (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (Time : Mirage_time.S) (N : Mirage_net.S) = struct module Net = struct A Mirage_net . S implementation which diverts DHCP messages to a DHCP server . The DHCP server needs to get the entire Ethern...
null
https://raw.githubusercontent.com/roburio/dnsvizor/6c31f0adaad69c3342affcd836b44e0a5746db5f/dns-and-dhcp/unikernel.ml
ocaml
Dhcp_wire.Domain_name __ assumes network being /24; also doesn't check start < stop setup stub forwarding state and IP listeners:
open Lwt.Infix module Main (R : Mirage_random.S) (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (Time : Mirage_time.S) (N : Mirage_net.S) = struct module Net = struct A Mirage_net . S implementation which diverts DHCP messages to a DHCP server . The DHCP server needs to get the entire Ethern...
3693cdb742ed2aac1fdee38846a3d12a896f83b9c26e808abcaea146a09c2acb
dolotech/erlang_server
mytest1.erl
%%---------------------------------------------------- %% Test %% %% @author Rolong<> %%---------------------------------------------------- -module(mytest1). -compile(export_all). -include("common.hrl"). %% bin_test() -> Data = [ { name , xjl } , { phone , 88888888 } ] , %% % Bin = term_to_binary([{name, ro...
null
https://raw.githubusercontent.com/dolotech/erlang_server/44ea3693317f60e18b19c9ddfa179307cbd646d7/src/test/mytest1.erl
erlang
---------------------------------------------------- Test @author Rolong<> ---------------------------------------------------- bin_test() -> % Bin = term_to_binary([{name, rolong},{phone, 888888}]), tt2(Tid) -> Items = [ ], Items1 = get_min_item(Tid, Items), ?INFO("~p", [Items]), ?IN...
-module(mytest1). -compile(export_all). -include("common.hrl"). Data = [ { name , xjl } , { phone , 88888888 } ] , ) , db : ) values(~s ) ; " > > , [ ] ) . # item{num = 118 , tid = 1 } , # item{num = 116 , tid = 2 } , # item{num = 118 , tid = 3 } , # it...
a02fb4dbce31d881c7a826531953e796a92319a895a06f1320e428ca1c07c3fc
hugoduncan/oldmj
babashka.clj
(ns makejack.api.babashka (:require [clojure.string :as str] [makejack.api.clojure-cli :as clojure-cli] [makejack.api.core :as makejack])) (defn process "Execute babashka process. args is a vector of arguments to pass. options is a map of options, as specifed in babashka.process/proce...
null
https://raw.githubusercontent.com/hugoduncan/oldmj/0a97488be7457baed01d2d9dd0ea6df4383832ab/api/src/makejack/api/babashka.clj
clojure
(ns makejack.api.babashka (:require [clojure.string :as str] [makejack.api.clojure-cli :as clojure-cli] [makejack.api.core :as makejack])) (defn process "Execute babashka process. args is a vector of arguments to pass. options is a map of options, as specifed in babashka.process/proce...
fe1b62582be4dfc9960d2191bf489d09b5503df815be1adefcff598257a56f7b
gregcman/cl-c-parse
lex.lisp
(in-package :c-parse) ;;;;implementation of the lex lexer ;; ;;" \ [ ] ^ - ? . * + | ( ) $ / { } % < > ;;operators that need to be escaped ;;Another use of the quoting mechanism is to get a blank into an expression; ;;normally, as explained above, blanks or tabs end a rule. ;;Any blank character not contained within [...
null
https://raw.githubusercontent.com/gregcman/cl-c-parse/4f9a6c61919c6ce5cb75a2500e9308b92cc5f6df/lex.lisp
lisp
implementation of the lex lexer " \ [ ] ^ - ? . * + | ( ) $ / { } % < > ;;operators that need to be escaped Another use of the quoting mechanism is to get a blank into an expression; normally, as explained above, blanks or tabs end a rule. Any blank character not contained within [] (see below) must be quoted. it is ...
(in-package :c-parse) Several normal C escapes with \ are recognized : is newline , \t is tab , and \b is backspace . [ x - z ] the characters x , y or (utility:eval-always (defparameter *lex-special-chars* '((#\t #\tab) (#\n #\Newline) (#\b #\backspace) (#\v #\vt) ))) (defun es...
c37543280063d9d91e72bf6e915dd6fb100e2ead74b4791c7c7a8338e7d652b0
manuel-serrano/hop
pipe_port.scm
;*=====================================================================*/ * Author : * / * Copyright : 2007 - 12 , see LICENSE file * / ;* ------------------------------------------------------------- */ * This file is part of Scheme2Js . ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/pipe_port.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * */ * but WITHOUT ANY WARRANTY; without even the implied warranty of */ * MERCHANTABILITY or FITNE...
* Author : * / * Copyright : 2007 - 12 , see LICENSE file * / * This file is part of Scheme2Js . * / * Scheme2Js is distributed in the hope that it will be useful , * / (module pipe-port (cond-expand ...
822ca744cda92a13931502ece7990159a9c3acd85cd1c5a9d30b55a6df03c095
juspay/atlas
Types.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Tools/Metrics/Types.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
eae0096baeb30d030ef44397eb93c4e26743ae0c14268dcdf4ee27991d26b776
pietervdvn/ALGT
AsAnsiPt.hs
module SyntaxHighlighting.AsAnsiPt where {- Renders a parsetree with ANSI-Strings -} import Utils.Utils import Utils.ToString import qualified Assets import TypeSystem hiding (styles) import TypeSystem.Parser.TargetLanguageParser import Text.PrettyPrint.ANSI.Leijen as ANSI import SyntaxHighlighting.Coloring impor...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/SyntaxHighlighting/AsAnsiPt.hs
haskell
Renders a parsetree with ANSI-Strings
module SyntaxHighlighting.AsAnsiPt where import Utils.Utils import Utils.ToString import qualified Assets import TypeSystem hiding (styles) import TypeSystem.Parser.TargetLanguageParser import Text.PrettyPrint.ANSI.Leijen as ANSI import SyntaxHighlighting.Coloring import SyntaxHighlighting.Renderer import Data.Lis...
654893372ebe6b161fb37820c6f31a40341c60ea3b516b7e9670fa26836f51af
facet-lang/facet
Test.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Facet.Core.Type.Test ( tests ) where import Facet.Core.Type import Facet.Env import Facet.Name import Facet.Semiring import Facet.Syntax import Hedgehog hiding (Var, eval) tests :: IO Bool tests = checkParallel $$(discover) prop_quotation_inverse...
null
https://raw.githubusercontent.com/facet-lang/facet/4626eed1395cd91acc2d38910f27809ad6e753fa/test/Facet/Core/Type/Test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Facet.Core.Type.Test ( tests ) where import Facet.Core.Type import Facet.Env import Facet.Name import Facet.Semiring import Facet.Syntax import Hedgehog hiding (Var, eval) tests :: IO Bool tests = checkParallel $$(discover) prop_quotation_inverse = property $ do let init = TForA...
96078febd1f272f57d579b774a716bf7f4e18270c2f6bbe14012c4b4105fa5b2
ghcjs/ghcjs
t13885.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Main where import Data.Function (on) import Language.Haskell.TH.Syntax data a :~: b where Refl :: a ~ b => a :~: b $(return []) main :: IO () main = print $(do TyConI (DataD _ _ tycon_tyvars _ ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/th/t13885.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Main where import Data.Function (on) import Language.Haskell.TH.Syntax data a :~: b where Refl :: a ~ b => a :~: b $(return []) main :: IO () main = print $(do TyConI (DataD _ _ tycon_tyvars _ [ForallC ...
2583d7fd66bf667bb7a1e3b80b9cab919f5d59949e4816a32497b81625a38265
amnh/poy5
kolmoExtension.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/kolmoExtension.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
c735087bf27434368592bf98db27aabd4e1df4750b21a3e86178dc4154a331ae
patrikja/AFPcourse
Problem2.hs
{-# LANGUAGE GADTs, ExistentialQuantification #-} module Typed where import qualified Expr as E import Data.Maybe (fromJust) data Expr t where Lit :: (Eq t, Show t) => t -> Expr t (:+) :: Expr Int -> Expr Int -> Expr Int (:==) :: (Eq t, Show t) => Expr t -> Expr t -...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/exam/2010-08/Problem2.hs
haskell
# LANGUAGE GADTs, ExistentialQuantification # ADDED a) ADDED b) | The type comparison function returns a proof that the types we compare are equal in the cases that they are. ADDED c) ADDED d) ADDED d)
module Typed where import qualified Expr as E import Data.Maybe (fromJust) data Expr t where Lit :: (Eq t, Show t) => t -> Expr t (:+) :: Expr Int -> Expr Int -> Expr Int (:==) :: (Eq t, Show t) => Expr t -> Expr t -> Expr Bool eval :: Expr t -> t eval (Lit x) ...
b716a3be3006360cc0490ff1f94f5a72f31e8e5903ba52068694c86f9cba31f4
tfausak/advent-of-code
1.hs
-- stack --resolver lts-12.0 script import qualified Data.Bifunctor as Bifunctor import qualified Data.Either as Either import qualified Data.Map as Map import qualified Data.Tuple as Tuple main = do contents <- getContents let (tracks, carts) = Bifunctor.bimap Map.fromList Map.fromList (Either.partition...
null
https://raw.githubusercontent.com/tfausak/advent-of-code/26f0d9726b019ff7b97fa7e0f2f995269b399578/2018/13/1.hs
haskell
stack --resolver lts-12.0 script
import qualified Data.Bifunctor as Bifunctor import qualified Data.Either as Either import qualified Data.Map as Map import qualified Data.Tuple as Tuple main = do contents <- getContents let (tracks, carts) = Bifunctor.bimap Map.fromList Map.fromList (Either.partitionEithers (concatMap (\ (y, li...
81c644e509413289812e5cb6ec2e646dc2205c76ba7cfcc0eddeea3df7f52884
alsonkemp/turbinado
ErrorHandler.hs
module Turbinado.Server.ErrorHandler where import System.IO import Prelude hiding (catch) import Data.Dynamic ( fromDynamic ) import Network.FastCGI import Network.Socket import Turbinado.Controller.Monad import Turbinado.Environment.Types import Turbinado.Environment.Response import Turbinado.Server.Exception import...
null
https://raw.githubusercontent.com/alsonkemp/turbinado/da2ba7c3443ddf6a51d1ec5b05cb45a85efc0809/Turbinado/Server/ErrorHandler.hs
haskell
module Turbinado.Server.ErrorHandler where import System.IO import Prelude hiding (catch) import Data.Dynamic ( fromDynamic ) import Network.FastCGI import Network.Socket import Turbinado.Controller.Monad import Turbinado.Environment.Types import Turbinado.Environment.Response import Turbinado.Server.Exception import...
2a86486a7a4b8ab327f0512a2f2437194174066510c24ada9dedb99378d15d1f
krisajenkins/petrol
view.cljs
(ns petrol-examples.pages.view (:require [petrol-examples.pages.routes :refer [href-for]])) (defn root [ui-channel app] [:div.container [:h1 "Routing Demo"] [:div.row [:div.col-xs-12.col-sm-4 [:ul.list-group (for [[link title] [[(href-for :frontpage) "Home"] ...
null
https://raw.githubusercontent.com/krisajenkins/petrol/607166ab48cf6193b6ad00bcd63bd3ff7f3958f7/examples/src/petrol-examples/pages/view.cljs
clojure
(ns petrol-examples.pages.view (:require [petrol-examples.pages.routes :refer [href-for]])) (defn root [ui-channel app] [:div.container [:h1 "Routing Demo"] [:div.row [:div.col-xs-12.col-sm-4 [:ul.list-group (for [[link title] [[(href-for :frontpage) "Home"] ...
c9f4fb492a33c9c94bcc218e9506c74a6230ec0a4399c630256b1b9c82f74703
MayDaniel/clj-mail
core.clj
(ns clj-mail.core (:import [javax.mail Session Message Authenticator PasswordAuthentication Transport Message$RecipientType Folder Flags$Flag] [javax.mail.internet MimeMessage InternetAddress] [java.util Properties])) (declare ^:dynamic *session*) (def rTO (Message$RecipientType/TO)) (def rCC ...
null
https://raw.githubusercontent.com/MayDaniel/clj-mail/8976cbfd247ea9a36317bb9cf26e8150480b8e85/src/clj_mail/core.clj
clojure
(ns clj-mail.core (:import [javax.mail Session Message Authenticator PasswordAuthentication Transport Message$RecipientType Folder Flags$Flag] [javax.mail.internet MimeMessage InternetAddress] [java.util Properties])) (declare ^:dynamic *session*) (def rTO (Message$RecipientType/TO)) (def rCC ...
4fd3383e65a093da98cccbdd3de464d86ecc3b0b455d7ee9d6145aed2e9a8033
erlang/otp
cplt_SUITE.erl
-module(cplt_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -include_lib("dialyzer/src/dialyzer.hrl"). -include("dialyzer_test_constants.hrl"). -export([suite/0, all/0, build_plt/1, beam_tests/1, update_plt/1, local_fun_same_as_callback/1, rem...
null
https://raw.githubusercontent.com/erlang/otp/f0a17925822ee88dc2df5db39031705d143c7848/lib/dialyzer/test/cplt_SUITE.erl
erlang
We change the $HOME of the emulator to run this test contract types warning as run_succ_typings2:call/0 makes a call to If a function is removed from a module and the module has previously callgraph warning when doing success typings analysis if the remove function is still called in another module contract types...
-module(cplt_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -include_lib("dialyzer/src/dialyzer.hrl"). -include("dialyzer_test_constants.hrl"). -export([suite/0, all/0, build_plt/1, beam_tests/1, update_plt/1, local_fun_same_as_callback/1, rem...
fa513f0058fd330b44083289a920d1c201d1c1e00df4d127253bc065e5a539fc
spurious/snd-mirror
tcase.scm
( set ! ( * s7 * ' profile ) 1 ) (set! (*s7* 'heap-size) 1024000) (define-macro (test expr res) `(let ((value ,expr)) (unless (equivalent? value ,res) (format *stderr* "~S, expected: ~S, got: ~S~%" ',expr ,res value)))) (require case.scm) (define (scase x) (case* x ((a b) 'a-or-b) ((1 2/3 ...
null
https://raw.githubusercontent.com/spurious/snd-mirror/8e7a643c840592797c29384ffe07c87ba5c0a3eb/tools/tcase.scm
scheme
matches anything! as does #<label:> x can be a list or a vector maybe the least efficient reverse ever duplicate identifier currently uses this error type
( set ! ( * s7 * ' profile ) 1 ) (set! (*s7* 'heap-size) 1024000) (define-macro (test expr res) `(let ((value ,expr)) (unless (equivalent? value ,res) (format *stderr* "~S, expected: ~S, got: ~S~%" ',expr ,res value)))) (require case.scm) (define (scase x) (case* x ((a b) 'a-or-b) ((1 2/3 ...
1615576eaa9b52a9da406b89f845e57ee1ef4b5556fdb6011d9090369dc12987
FranklinChen/hugs98-plus-Sep2006
Smooth.hs
Smooth.hs ( adapted from smooth.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates smooth shading . A smooth shaded polygon is d...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/GLUT/examples/RedBook/Smooth.hs
haskell
resolve overloading, not needed in "real" programs
Smooth.hs ( adapted from smooth.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates smooth shading . A smooth shaded polygon is d...
7090c2cb1634c93ff6d18dbc58b183139a1527f3b38fc4ac603e74cb6857e583
janestreet/rpc_parallel
how_to_run.ml
open! Core open Async type t = env:(string * string) list -> worker_command_args:string list -> wrap:(Prog_and_args.t -> Prog_and_args.t) -> Process.t Or_error.t Deferred.t let local ~env ~worker_command_args ~wrap = let { Prog_and_args.prog; args } = wrap { Prog_and_args.prog = Utils.our_binary (); arg...
null
https://raw.githubusercontent.com/janestreet/rpc_parallel/b37ce51ddfd9d9b6f96d285c81db7fc36d66a1d5/src/how_to_run.ml
ocaml
open! Core open Async type t = env:(string * string) list -> worker_command_args:string list -> wrap:(Prog_and_args.t -> Prog_and_args.t) -> Process.t Or_error.t Deferred.t let local ~env ~worker_command_args ~wrap = let { Prog_and_args.prog; args } = wrap { Prog_and_args.prog = Utils.our_binary (); arg...
8a73782d1cf3882c70affbdc15b3d452b8e3956b61f0b4160318d9c9e8e93310
okeuday/quickrand
quickrand_hash.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc = = Random Number Generation With Hash Functions== %%% The random numbers created by t...
null
https://raw.githubusercontent.com/okeuday/quickrand/c30eb6445b784196c424f7754d61b09700cf15a9/src/quickrand_hash.erl
erlang
------------------------------------------------------------------------ @doc The random numbers created by the functions in this module are not meant for cryptographic purposes. Both the jenkins_32 and jenkins_64 functions execute at a speed similar to crypto:hash(sha512,_) slightly slower. due to avoiding E...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : = = Random Number Generation With Hash Functions== Any functions that have a jenkins prefix use lookup3 hashing ( lookup3 , May 2006 ) . In my testing , the function ...
36e82e7a6493b541f71ffafc89e6716cc42ddb84f3cf13a77306f57f68a1194c
jsthomas/tidy_email
test_send.ml
Note : The responses and status codes in this test suite are accurate representations of * how Mailgun 's API works , as of August , 2021 . Test data was gathered by making requests via Insomnia . accurate representations of * how Mailgun's API works, as of August, 2021. Test data was gathered by...
null
https://raw.githubusercontent.com/jsthomas/tidy_email/7ead0e446c2f22808332964870fc2356deb9c8bb/mailgun/test/test_send.ml
ocaml
Note : The responses and status codes in this test suite are accurate representations of * how Mailgun 's API works , as of August , 2021 . Test data was gathered by making requests via Insomnia . accurate representations of * how Mailgun's API works, as of August, 2021. Test data was gathered by...
c4baf4abe42e1923c759016db0be9f7491604092ab82a1aa212af7bdb2958f48
jellelicht/guix
libedit.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/libedit.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages libedit) #:use-module (guix licenses) #:use-module (gui...
9f449af575eea7a0c020c26d0d4f87fb3b0eb209534274ec055e0b04c0bb863b
montyly/gueb
uafgenerique.mli
type site_type = SITE_NORMAL | SITE_ALLOC | SITE_FREE | SITE_USE | SITE_DF type site = Gueb_type.call_string val pp_site : site -> string val equal_site : (('a * 'b) * 'c * 'd) * 'e -> (('a * 'b) * 'f * 'g) * 'e -> bool val add_type : (('a * 'b) * 'c * 'd) list -> site_type -> ((('a * 'b) * 'c * 'd) * site_type) ...
null
https://raw.githubusercontent.com/montyly/gueb/45f496a5a1e8e908e562928762ece304c2408c3a/src/uafgenerique.mli
ocaml
type site_type = SITE_NORMAL | SITE_ALLOC | SITE_FREE | SITE_USE | SITE_DF type site = Gueb_type.call_string val pp_site : site -> string val equal_site : (('a * 'b) * 'c * 'd) * 'e -> (('a * 'b) * 'f * 'g) * 'e -> bool val add_type : (('a * 'b) * 'c * 'd) list -> site_type -> ((('a * 'b) * 'c * 'd) * site_type) ...
86478f3308aa4fca8953bf7a850a11f3c0daa356407241dc10387213ac4bfba0
2600hz/kazoo
kz_event_listener.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz @doc Listener for route requests that can be fulfilled by Callflows . @author %%% 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 d...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_events/src/kz_event_listener.erl
erlang
----------------------------------------------------------------------------- @end ----------------------------------------------------------------------------- ============================================================================= API =========================================================================...
( C ) 2011 - 2020 , 2600Hz @doc Listener for route requests that can be fulfilled by Callflows . @author 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 /. -module(kz_event_listener). -b...
dfcd2379c746ddae27c5ac32c11e351d8d379e23254e5e44d4d40dd46f70a066
rems-project/lem
bit.ml
type bit = Zero | One let to_bool b = match b with | Zero -> false | _ -> true let bn b = match b with | Zero -> One | One -> Zero let bor b1 b2 = match (b1,b2) with | Zero,Zero -> Zero | _ -> One let xor b1 b2 = match (b1,b2) with | Zero,Zero -> Zero | Zero,One | One,Zero -> One | _ -> Zero let band b1 b2 =...
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/ocaml-lib/bit.ml
ocaml
type bit = Zero | One let to_bool b = match b with | Zero -> false | _ -> true let bn b = match b with | Zero -> One | One -> Zero let bor b1 b2 = match (b1,b2) with | Zero,Zero -> Zero | _ -> One let xor b1 b2 = match (b1,b2) with | Zero,Zero -> Zero | Zero,One | One,Zero -> One | _ -> Zero let band b1 b2 =...
23deb46d69638e5b96bda20cc517a62073f8f4280b2d522a58edb7eeb3afac3b
prismlab/irmin-scylla
set.ml
open Lwt.Infix module Scylla_kvStore = Irmin_scylla.KV(Irmin.Contents.String) let _ = let conf = Irmin_scylla.config "172.17.0.2" in Scylla_kvStore.Repo.v conf >>= fun repo -> Scylla_kvStore.master repo >>= fun b_master -> Scylla_kvStore.set_exn ~info:(fun () -> Irmin.Info.empty) b_master ["foo";"bar"] "testin...
null
https://raw.githubusercontent.com/prismlab/irmin-scylla/f52c5c851233b4d9822ec937a31457d544ec0985/examples/set/set.ml
ocaml
open Lwt.Infix module Scylla_kvStore = Irmin_scylla.KV(Irmin.Contents.String) let _ = let conf = Irmin_scylla.config "172.17.0.2" in Scylla_kvStore.Repo.v conf >>= fun repo -> Scylla_kvStore.master repo >>= fun b_master -> Scylla_kvStore.set_exn ~info:(fun () -> Irmin.Info.empty) b_master ["foo";"bar"] "testin...
21059e1e3df6775893e2ff401c206b6111351d5388b189384d6764e72cd8ca8a
TheLortex/mirage-monorepo
test_parser.ml
open Base module Parser = Http.Private.Parser let req = "GET /wp-content/uploads/2010/03/hello-kitty-darth-vader-pink.jpg HTTP/1.1\r\n\ Host: www.kittyhell.com \r\n\ User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; ja-JP-mac; \ rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Pathtraq/0.9\r\n\ Accep...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ocaml-cohttp/http/test/test_parser.ml
ocaml
We will try to use the same chunk length, but this time with a chunk extension. This should not result in any change in our output.
open Base module Parser = Http.Private.Parser let req = "GET /wp-content/uploads/2010/03/hello-kitty-darth-vader-pink.jpg HTTP/1.1\r\n\ Host: www.kittyhell.com \r\n\ User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; ja-JP-mac; \ rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Pathtraq/0.9\r\n\ Accep...
4853d6185d24e9329d8afa499e4dd15317fd9dfa32cdef1eaf24f7a2fbdb4b5e
bmeurer/ocaml-experimental
linenum.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/parsing/linenum.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 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 . $ Id$ val for_position: string -> i...
51a936412f2658f3b84af5fcd9dafd43895607ac74a4ac1f19a20a32917305b1
Eduap-com/WordMat
mdi.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/odepack/src/mdi.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
72984b78c3b6988c3823512cb7ace0a6cf1a3009006dfab8fb5dd07f4a7c161a
ska80/thinlisp
defstruct.lisp
(in-package "TLI") ;;;; Module DEFSTRUCT Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1996 Gensym Corporation . ;;; All rights reserved. This file is part of ThinLisp . ThinLisp is open source ; you can redistribute it and/or modify it under the terms of the ThinLisp License as published...
null
https://raw.githubusercontent.com/ska80/thinlisp/173573a723256d901887f1cbc26d5403025879ca/tlt/lisp/defstruct.lisp
lisp
Module DEFSTRUCT All rights reserved. you can redistribute it and/or modify it either version 1 or ( at your option ) any later version . WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This module implements the `tl:defstruct' macro. During Lisp d...
(in-package "TLI") Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1996 Gensym Corporation . This file is part of ThinLisp . under the terms of the ThinLisp License as published by the ThinLisp ThinLisp is distributed in the hope that it will be useful , but For additional information s...
3afbcdf6d8b5634e3037b1def2bbbed10745d7e3545d2012ead16d276ae293c8
ANSSI-FR/xsvgen
error.mli
(***********************************************************************) (* *) (* XML Schema Validator Generator *) (* *) ( SafeRive...
null
https://raw.githubusercontent.com/ANSSI-FR/xsvgen/3c2b5e43e7adcb856a3a2aa01bfc039bf3c6459b/lib/error.mli
ocaml
********************************************************************* XML Schema Validator Generator ...
( SafeRiver ) Copyright 2012 , ANSSI and SafeRiver . $ I d : error.mli 1704 2012 - 06 - 04 16:49:33Z maarek $ * { 1 Error types } * Error Error prefixes and conventions : - [ * SEC _ * ] : Security constraints - [ *...
d9687ff4cd7c71277d61cc3a016fcb8cca6896720142bf90fcd100c934d20e56
sixthnormal/pullql
core.cljc
(ns pullql.core (:require [clojure.set :as set] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [datascript.core :as d] [datascript.db :as db-internals :refer [datom-tx datom-added #?(:cljs Datom)]] [pullql.walk :as walk]) #?(:clj (:import [datascript.db Datom]))) GRAMMAR ...
null
https://raw.githubusercontent.com/sixthnormal/pullql/67ee92b97ab8cc99bfdd0d385a626b52d637229f/src/pullql/core.cljc
clojure
PARSER INTERPRETER Do we need to pull :db/id? We wrap (find matching-children <eid>) in order to pull :db/id on-the-fly. PUBLIC API keep only matching entities do we need to pull :db/id? Collect all attributes that this query depends on. Do we need to pull :db/id at the top-level? keep only matching entities
(ns pullql.core (:require [clojure.set :as set] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [datascript.core :as d] [datascript.db :as db-internals :refer [datom-tx datom-added #?(:cljs Datom)]] [pullql.walk :as walk]) #?(:clj (:import [datascript.db Datom]))) GRAMMAR ...
03ab22228e82e239ac284919ac0026b6bb32efa2fc73bcbbd5b709c0b26209c9
fendor/hsimport
ModuleTest35.hs
{-# Language PatternGuards #-} module Blub ( blub , foo , bar ) where f :: Int -> Int ^ Some doc f = (+ 3) g :: Int -> Int g = where
null
https://raw.githubusercontent.com/fendor/hsimport/9be9918b06545cfd7282e4db08c2b88f1d8162cd/tests/inputFiles/ModuleTest35.hs
haskell
# Language PatternGuards #
module Blub ( blub , foo , bar ) where f :: Int -> Int ^ Some doc f = (+ 3) g :: Int -> Int g = where
e9c9b8decd002287d58d95a8c171ddc3b881a5937913644a577f249dc5d94a5c
dmjio/miso
Touch.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Touch where import Control.Monad import Data.Aeson.Types import Debug.Trace import Miso data Touch = Touch { identifier :: Int , screen :: (Double, Double) , client :: (Double, Double) , page :: (Double, Double) } deriving (Eq, Show) in...
null
https://raw.githubusercontent.com/dmjio/miso/7aaaef141d38fbbf9c9cb505046d3c8d48ad28cc/examples/svg/Touch.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Touch where import Control.Monad import Data.Aeson.Types import Debug.Trace import Miso data Touch = Touch { identifier :: Int , screen :: (Double, Double) , client :: (Double, Double) , page :: (Double, Double) } deriving (Eq, Show) instance FromJSON Touch where parse...
d6f55b72626f8bea11aa258b720460413f06da1b5b11eba9ad43778e3c226c60
cyverse-archive/DiscoveryEnvironmentBackend
props.clj
(ns clojure-commons.props (:use [clojure.java.io :only (file input-stream)]) (:require [clojure.string :as string] [trptcolin.versioneer.core :as version]) (:import [java.net URLDecoder] [org.apache.commons.configuration PropertiesConfiguration])) (defn read-properties "Reads in properti...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/libs/iplant-clojure-commons/src/clojure_commons/props.clj
clojure
(ns clojure-commons.props (:use [clojure.java.io :only (file input-stream)]) (:require [clojure.string :as string] [trptcolin.versioneer.core :as version]) (:import [java.net URLDecoder] [org.apache.commons.configuration PropertiesConfiguration])) (defn read-properties "Reads in properti...
99e611f21a7b8f0a1e4a2b60242310e4aedab46c21ab045aef6cfa099bf86f8d
anycable/erlycable
anycable_pb.erl
-*- coding : utf-8 -*- %% Automatically generated, do not edit Generated by gpb_compile version 3.24.4 -module(anycable_pb). -export([encode_msg/1, encode_msg/2]). -export([decode_msg/2, decode_msg/3]). -export([merge_msgs/2, merge_msgs/3]). -export([verify_msg/1, verify_msg/2]). -export([get_msg_defs/0]). -export...
null
https://raw.githubusercontent.com/anycable/erlycable/6f52a5b16c080bfa0feeb1f4f9e45fc552af71b5/src/protos/anycable_pb.erl
erlang
Automatically generated, do not edit enumerated types message types
-*- coding : utf-8 -*- Generated by gpb_compile version 3.24.4 -module(anycable_pb). -export([encode_msg/1, encode_msg/2]). -export([decode_msg/2, decode_msg/3]). -export([merge_msgs/2, merge_msgs/3]). -export([verify_msg/1, verify_msg/2]). -export([get_msg_defs/0]). -export([get_msg_names/0]). -export([get_enum_n...
028324b7a42e91d399a1ea543dc5d43d5e595cfabca4e9d58730967b16b00c2e
Clozure/ccl
setf-runtime.lisp
-*- Mode : Lisp ; Package : CCL ; -*- ;;; Copyright 1994 - 2009 Clozure Associates ;;; 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 ...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/lib/setf-runtime.lisp
lisp
Package : CCL ; -*- 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 ...
Copyright 1994 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , setf-runtime.lisp - runtime support for setf expressions (in-package "CCL") (defun set-cadr (list new-value) (set-car (cdr list) new-value)) (defun set-cdar (list new-value) (set-cdr (car list) ne...
db13b1398aad170eed74227675ac5e129d16bb9c33367392676cf49f1a14879e
AdRoll/rebar3_hank
app1_include.erl
-module(app1_include). -include("header.hrl").
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/9666a9ffd7a657a34c87a3da5e38a720ad41cdf1/test/files/unused_hrls/lib/app1/src/app1_include.erl
erlang
-module(app1_include). -include("header.hrl").
dce42da7e61f3f479b494f6fb2db834073f63c2a201c029fded8e749ea4f3ab0
turnbullpress/aom-code
pagerduty.clj
(ns examplecom.etc.pagerduty (:require [riemann.pagerduty :refer :all] [riemann.streams :refer :all])) (defn pd-format [event] {:incident_key (str (:host event) " " (:service event)) :description (str "Host: " (:host event) " " (:service event) " is " ...
null
https://raw.githubusercontent.com/turnbullpress/aom-code/2c016cab87d81bcd1f04ab41b6824798eb09e780/10/riemann/examplecom/etc/pagerduty.clj
clojure
(ns examplecom.etc.pagerduty (:require [riemann.pagerduty :refer :all] [riemann.streams :refer :all])) (defn pd-format [event] {:incident_key (str (:host event) " " (:service event)) :description (str "Host: " (:host event) " " (:service event) " is " ...
e75bd03bcd29ec864441351603ae4148887316a558ceeb1a1bfc91925b495df8
ndmitchell/shake
Bilist.hs
-- | List type that supports O(1) amortized 'cons', 'snoc', 'uncons' and 'isEmpty'. module General.Bilist( Bilist, cons, snoc, uncons, toList, isEmpty ) where import Data.Semigroup import Prelude data Bilist a = Bilist [a] [a] toList :: Bilist a -> [a] toList (Bilist as bs) = as ++ reverse bs isEmpty :: B...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/src/General/Bilist.hs
haskell
| List type that supports O(1) amortized 'cons', 'snoc', 'uncons' and 'isEmpty'.
module General.Bilist( Bilist, cons, snoc, uncons, toList, isEmpty ) where import Data.Semigroup import Prelude data Bilist a = Bilist [a] [a] toList :: Bilist a -> [a] toList (Bilist as bs) = as ++ reverse bs isEmpty :: Bilist a -> Bool isEmpty (Bilist as bs) = null as && null bs instance Eq a => Eq (Bi...
64849964a287c0e2ec85ac8f1c9c98c9e4b70d26f2961611b44ba200db8ba51c
janestreet/core_unix
test_command_completion.ml
open! Core open! Import (** Not all tests of command completion need to go here. But this is the catch-all place for completion tests that don't have a better home. *) let param = let%map_open.Command (_ : bool) = anon ("BOOL" %: bool) and (_ : bool list) = anon (sequence ("BOOL" %: bool)) and (_ : string l...
null
https://raw.githubusercontent.com/janestreet/core_unix/0426d9f0da51e6e2c228cf87f2ab130f7e0efbc8/command_unix/test/test_command_completion.ml
ocaml
* Not all tests of command completion need to go here. But this is the catch-all place for completion tests that don't have a better home. The list passed into the escape completer is all the args after the escape flag.
open! Core open! Import let param = let%map_open.Command (_ : bool) = anon ("BOOL" %: bool) and (_ : bool list) = anon (sequence ("BOOL" %: bool)) and (_ : string list option) = let complete (_ : Univ_map.t) ~part = part in flag "--" (escape_with_autocomplete ~complete) ~doc:"escape" in () ;; let t...
6c781f38a40098a592d1a1619f91b1d280d31bb640b82c50764734487600dd9e
dradtke/Lisp-Text-Editor
pango.init.lisp
(in-package :pango) (glib:at-init () (eval-when (:compile-toplevel :load-toplevel :execute) (define-foreign-library pango (:unix "libpango-1.0.so.0") (:windows "libpango-1.0-0.dll") (t (:default "libgpango-1.0")))) (use-foreign-library pango))
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/cl-gtk2/pango/pango.init.lisp
lisp
(in-package :pango) (glib:at-init () (eval-when (:compile-toplevel :load-toplevel :execute) (define-foreign-library pango (:unix "libpango-1.0.so.0") (:windows "libpango-1.0-0.dll") (t (:default "libgpango-1.0")))) (use-foreign-library pango))
8200ca4ea8b156c0032b7ba4c415b812a1225066cf0fc1dca7e78db86ba329a7
exoscale/clojure-kubernetes-client
v1beta1_network_policy_peer.clj
(ns clojure-kubernetes-client.specs.v1beta1-network-policy-peer (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1beta1-ip-block :refer :all] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] [clojure-kub...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_network_policy_peer.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-network-policy-peer (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1beta1-ip-block :refer :all] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] [clojure-kub...
c5cbf9e1fcba63360ab1e4de8e41a4b9283a0627939665896a3d627128b35944
RolfRolles/PandemicML
IDAX86Disasm.ml
open X86 open X86Disasm open IDAColor (* Code duplicated from X86Disasm *) let colstr_of_memexpr = function | Mem16(seg,bo,so,dop) -> let bs = match bo with Some(b) -> [col_reg (string_of_x86_reg16 b)] | None -> [] in let ss = match so with Some(s) -> bs@[col_reg (string_of_x86_reg16 s)] | None -> bs in le...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/IDAX86/IDAX86Disasm.ml
ocaml
Code duplicated from X86Disasm
open X86 open X86Disasm open IDAColor let colstr_of_memexpr = function | Mem16(seg,bo,so,dop) -> let bs = match bo with Some(b) -> [col_reg (string_of_x86_reg16 b)] | None -> [] in let ss = match so with Some(s) -> bs@[col_reg (string_of_x86_reg16 s)] | None -> bs in let ds = match dop with Some(d) -> ss@[...
cf7c5624c59bcf76cf8393c3b29cf2c19dafcb32d52d9841e9ec7b774f7ba469
sealchain-project/sealchain
Http.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # module Pos.Infra.Reporting.Http ( sendReport , sendReportNodeImpl , reportNode ) where import Universum import Control.Exception (Exception (..)) import Con...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/infra/src/Pos/Infra/Reporting/Http.hs
haskell
# LANGUAGE RecordWildCards # asked. The file, if given, must of course exist and be openable/readable by this process. You probably want to use a temporary file. Report server URI should be in form like "http(s):port/" without specified endpoint. ^ Log file to read from ^ Application name ^ URI of the report...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # module Pos.Infra.Reporting.Http ( sendReport , sendReportNodeImpl , reportNode ) where import Universum import Control.Exception (Exception (..)) import Control.Exception.Safe (catchAny, try) i...
c140b5dcf6020d6ce4e101d8082d0dbc0e26110ba03ecbf8dda407c61e5d983c
weavejester/hiccup
core_test.clj
(ns hiccup.core-test (:require [clojure.test :refer :all] [hiccup.core :refer :all])) (deftest tag-names (testing "basic tags" (is (= (html [:div]) "<div></div>")) (is (= (html ["div"]) "<div></div>")) (is (= (html ['div]) "<div></div>"))) (testing "tag syntax sugar" (is (= (html [:di...
null
https://raw.githubusercontent.com/weavejester/hiccup/5e80b9eabc88fa9936f74c965044ef7e1bc77b18/test/hiccup/core_test.clj
clojure
(ns hiccup.core-test (:require [clojure.test :refer :all] [hiccup.core :refer :all])) (deftest tag-names (testing "basic tags" (is (= (html [:div]) "<div></div>")) (is (= (html ["div"]) "<div></div>")) (is (= (html ['div]) "<div></div>"))) (testing "tag syntax sugar" (is (= (html [:di...
60e72b76cc107fcd9cc70328eff0df3d8a94ca10ec040a2d7b48ad96b840ce89
zoomhub/zoomhub
EmbedBorder.hs
{-# LANGUAGE OverloadedStrings #-} module ZoomHub.Web.Types.EmbedBorder ( EmbedBorder (..), toCSSValue, parseCSSValue, ) where import Data.Text (Text) import Servant (FromHttpApiData, parseUrlPiece) -- Type data EmbedBorder = None | Default deriving (Eq, Show) toCSSValue :: EmbedBorder -> Text toC...
null
https://raw.githubusercontent.com/zoomhub/zoomhub/29e217488cb5e8b939b381dc02a1f676b78bde4b/src/ZoomHub/Web/Types/EmbedBorder.hs
haskell
# LANGUAGE OverloadedStrings # Type NOTE: We don’t allow the default border to be passed in as query param: Text
module ZoomHub.Web.Types.EmbedBorder ( EmbedBorder (..), toCSSValue, parseCSSValue, ) where import Data.Text (Text) import Servant (FromHttpApiData, parseUrlPiece) data EmbedBorder = None | Default deriving (Eq, Show) toCSSValue :: EmbedBorder -> Text toCSSValue None = "none" toCSSValue Default = ...
ae6dba14241153c5bc9b6eaaf066d3b14d0dd9491461805d8e1ed26d5adf3fe3
AdRoll/mero
mero_sup.erl
Copyright ( c ) 2014 , AdRoll %% 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 th...
null
https://raw.githubusercontent.com/AdRoll/mero/e833df834c3c9628bc00117866437ad9e3e7cdbf/src/mero_sup.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. * Redistributions in...
Copyright ( c ) 2014 , AdRoll THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLAR...
2706080c873dda89c819a2030960a8db3878fca37734ab743470d9eac83d27cd
zero-one-group/geni
geni.clj
(ns leiningen.new.geni (:require [leiningen.new.templates :refer [renderer year date project-name ->files sanitize-ns name-to-path]] [leiningen.core.main :as main])) (def render (renderer "geni")) (defn option? [option-name options] (boolean (some #{option-name} option...
null
https://raw.githubusercontent.com/zero-one-group/geni/4dbabf8315d85cc1526e04bca7e4cb7b75c21ac1/lein-template/src/leiningen/new/geni.clj
clojure
Options
(ns leiningen.new.geni (:require [leiningen.new.templates :refer [renderer year date project-name ->files sanitize-ns name-to-path]] [leiningen.core.main :as main])) (def render (renderer "geni")) (defn option? [option-name options] (boolean (some #{option-name} option...
445c1ef27b1e24ca5293bb8b2497923db08f6f16d088b7a49cf0dde7c9d00792
clojure/core.typed
infer_vars.clj
Copyright ( c ) , contributors . ;; 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 ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/experimental/infer_vars.clj
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 ) , contributors . (ns clojure.core.typed.checker.experimental.infer-vars (:require [clojure.core.typed.checker.type-rep :as r] [clojure.core.typed.checker.type-ctors :as c] [clojure.core.typed.checker.jvm.parse-unparse :as prs] [clojure.core.typed.current-impl :as impl] ...
50e85893b0d1cbc71eb8fba056b44e09cd111c1c68f43898710fc73eb740fda3
leftaroundabout/manifolds
Quadratic.hs
-- | -- Module : Data.Manifold.Function.Quadratic Copyright : ( c ) 2016 -- License : GPL v3 -- -- Maintainer : (@) jsag $ hvl.no -- Stability : experimental -- Portability : portable -- {-# LANGUAGE TypeFamilies #-} # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstance...
null
https://raw.githubusercontent.com/leftaroundabout/manifolds/55330e7760fa8ea8948988a10a06bbf19e69b5f5/manifolds/Data/Manifold/Function/Quadratic.hs
haskell
| Module : Data.Manifold.Function.Quadratic License : GPL v3 Maintainer : (@) jsag $ hvl.no Stability : experimental Portability : portable # LANGUAGE TypeFamilies # # LANGUAGE LiberalTypeSynonyms # # LANGUAGE GADTs # # LANGUAGE TypeOperators # # LANG...
Copyright : ( c ) 2016 # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE UnicodeSyntax # module Data.Manifold.Function.Quadratic ( Quadratic(..), evalQuadratic ) where import Data.Semigroup import qualified Data.List.NonEmpty as N...
8191a845cf2837cba9643c6a8953917ef293947708b165f4159c6ceb3ae37a91
crategus/cl-cffi-gtk
cairo.context.lisp
;;; ---------------------------------------------------------------------------- ;;; cairo.context.lisp ;;; The documentation of the file is taken from the Cairo Reference Manual Version 1.16 and modified to document the Lisp binding to the Cairo ;;; library. See <>. The API documentation of the ;;; Lisp binding is...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/cairo/cairo.context.lisp
lisp
---------------------------------------------------------------------------- cairo.context.lisp library. See <>. The API documentation of the Lisp binding is available at <-cffi-gtk/>. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licen...
The documentation of the file is taken from the Cairo Reference Manual Version 1.16 and modified to document the Lisp binding to the Cairo Copyright ( C ) 2012 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use...
154c02113b7adb8f0121c326fac17a32bec50cf5dba6809a0ca233a35b7e47d2
Yomguithereal/clj-fuzzy
api_test.clj
;; ------------------------------------------------------------------- ;; clj-fuzzy Public API Tests ;; ------------------------------------------------------------------- ;; ;; Author : ( Yomguithereal ) Version : 0.1 ;; (ns clj-fuzzy.api-test (:require [clojure.test :refer :all] [clj-fuzzy.pho...
null
https://raw.githubusercontent.com/Yomguithereal/clj-fuzzy/ce7c57dfb14f6ddc99bf4d9ab74c778128438d8b/test/clj_fuzzy/api_test.clj
clojure
------------------------------------------------------------------- clj-fuzzy Public API Tests -------------------------------------------------------------------
Author : ( Yomguithereal ) Version : 0.1 (ns clj-fuzzy.api-test (:require [clojure.test :refer :all] [clj-fuzzy.phonetics :as p] [clj-fuzzy.metrics :as m] [clj-fuzzy.stemmers :as s])) (deftest phonetics-test (is (= "TSKRMNXN" (p/metaphone "discrimination"))) (is (= "...
dc8144a95826cb495921f1b6f09c7c696d80c3040912c89f45900f16a7e79f94
andrewvc/noir-async
project.clj
(defproject noir-async/noir-async "1.1.0-beta10" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.4.0"] [noir "1.3.0-beta10"] [aleph "0.3.0-beta3"]] :description "Async support for noir. Based on Aleph")
null
https://raw.githubusercontent.com/andrewvc/noir-async/53f79ecf2e98560a95a3b3f1a982198f66d0604c/project.clj
clojure
(defproject noir-async/noir-async "1.1.0-beta10" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.4.0"] [noir "1.3.0-beta10"] [aleph "0.3.0-beta3"]] :description "Async support for noir. Based on Aleph")
95576c6c83c480ae6e642cbf6246b1d423c3c660c40b66e11003502534f3f858
well-typed/gp-zurihac-2020
Section_2_1.hs
module Section_2_1 where import Data.Kind import Data.Proxy import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) deriving Show data Colour = Red | Green | Blue deriving Show data Representation = Sum Representation Representation | Constructor Symbol Representation | Product Representation ...
null
https://raw.githubusercontent.com/well-typed/gp-zurihac-2020/c7b3026fc8df1c33e54cedcf6714d2f7b42998f5/Section_2_1.hs
haskell
module Section_2_1 where import Data.Kind import Data.Proxy import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) deriving Show data Colour = Red | Green | Blue deriving Show data Representation = Sum Representation Representation | Constructor Symbol Representation | Product Representation ...
be41e54c184998f10e3860bf2001c49cd1bef6265c6c511c0a592312c400377b
gsakkas/rite
3114.ml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3114.ml
ocaml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
1e5edd4e1519e5ef9d98e7ed0abf8c4c1c3d8146620bbef912609146de40d51e
Clozure/ccl-tests
errors-types-and-class.lsp
;-*- Mode: Lisp -*- Author : Created : Mon May 30 07:49:10 2005 Contains : Tests for non - ansi exceptional situations in Section 4 of CLHS (in-package :ba-test) (compile-and-load "ba-aux.lsp") COERCE (def-all-error-test coerce.1 'listp '(coerce t x)) DEFTYPE (def-error-test deftype.1 (deftyp...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/beyond-ansi/errors-types-and-class.lsp
lisp
-*- Mode: Lisp -*- SATISFIES MEMBER (type specifier) NOT (type specifier) AND (type specifier) OR (type specifier) VALUES (type specifier) TYPE-ERROR-DATUM TYPE-ERROR-EXPECTED-TYPE FUNCTION (type specifier)
Author : Created : Mon May 30 07:49:10 2005 Contains : Tests for non - ansi exceptional situations in Section 4 of CLHS (in-package :ba-test) (compile-and-load "ba-aux.lsp") COERCE (def-all-error-test coerce.1 'listp '(coerce t x)) DEFTYPE (def-error-test deftype.1 (deftype)) (def-error-test deft...
29d33363245d47730b3da25f6e5bcaf2fc345cc830b9b2346637e48b867e373c
appleshan/cl-http
w4-45-3.lisp
-*- Mode : LISP ; Syntax : ansi - common - lisp ; Package : w4 ; Base : 10 ; Patch - File : t -*- Patch file for W4 version 45.3 ;;; Reason: Function W4::%SATISFIES-CONTRAINT-P: abstract. ;;; Function (CLOS:METHOD W4:SATISFIES-P (T W4::ACTIVITY W4:CONTEXT-CONSTRAINT)): - Function ( CLOS : METHOD W4 : SATISFIES ...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/w4/patch/w4-45/w4-45-3.lisp
lisp
Syntax : ansi - common - lisp ; Package : w4 ; Base : 10 ; Patch - File : t -*- Reason: Function W4::%SATISFIES-CONTRAINT-P: abstract. Function (CLOS:METHOD W4:SATISFIES-P (T W4::ACTIVITY W4:CONTEXT-CONSTRAINT)): - Remove function (CLOS:METHOD W4::SATISFIES-CONTEXT-CONSTRAINTS-P (URL:HTTP-URL W4::ACTIVITY)): - F...
Patch file for W4 version 45.3 Function ( CLOS : METHOD W4 : SATISFIES - P ( URL : URL W4::ACTIVITY W4 : CONSTRAINT ) ): - Function ( CLOS : METHOD W4::PERFORM - ACTION ( URL : HTTP - URL W4::GENERATOR W4::ACTIVITY ) ): one application of context contraints for whole set . Written by JCMa , 8/16/00 16:23:17...
60c63fa4429fe2dc5386f9b7eb8efa9f7cbecb50c788fcfd690622e032a0141f
0zat/gen-bs
main.ml
open Servo_dom module Math = Js.Math external window : _Window = "" [@@bs.val] external document : _Document = "" [@@bs.val] external console : _console = "" [@@bs.val] let canvas: _HTMLCanvasElement = match Document.getElementById "canvas" document with | None -> failwith "canvas is not found" | Some s -> (El...
null
https://raw.githubusercontent.com/0zat/gen-bs/20348991775d9ef3974c3b824968a0ab219502a8/example/firework/src/main.ml
ocaml
open Servo_dom module Math = Js.Math external window : _Window = "" [@@bs.val] external document : _Document = "" [@@bs.val] external console : _console = "" [@@bs.val] let canvas: _HTMLCanvasElement = match Document.getElementById "canvas" document with | None -> failwith "canvas is not found" | Some s -> (El...
a20a9be2b11f31a7dcdb571778bf24298569e475ddd81cfc461ec83831e13840
GaloisInc/elf-edit
StringTable.hs
{-| Declares operations for string tables. -} module Data.ElfEdit.Prim.StringTable ( -- * String tables encodeStringTable , lookupString , LookupStringError(..) , strtabShdr ) where import qualified Data.ByteString as B import qualified Data.ByteString.Builder as Bld import qualified Data.ByteString.Lazy...
null
https://raw.githubusercontent.com/GaloisInc/elf-edit/fb4699a2bba68c4d46ea3dee436f640c328fb682/src/Data/ElfEdit/Prim/StringTable.hs
haskell
| Declares operations for string tables. * String tables ---------------------------------------------------------------------- Creation | A string table contains a map from offsets, the number of elements, and a builder with the current string. Insert all tails of the bytestring into the map so that we can fin...
module Data.ElfEdit.Prim.StringTable encodeStringTable , lookupString , LookupStringError(..) , strtabShdr ) where import qualified Data.ByteString as B import qualified Data.ByteString.Builder as Bld import qualified Data.ByteString.Lazy as L import Data.Foldable import Data.List (sort...
eb2c4495ed81d26e57a7963817a640e71c824c63f26adf1d146a2b573926a2cf
avsm/eeww
x86_ast.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/x86_ast.mli
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2014 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Structured representation of Intel assembly language ( 32 and 64 bit ) . type condition = | LE | G | BE...
5aad683615d1e7d4467a7b2a3d59a7235891b1f35b2d9ba6f2fde4d223748224
gregr/racket-misc
state-monad.rkt
#lang racket/base (provide get gets modify put state-t-run state-t-eval state-t-exec state-monad-t state-run state-eval state-exec state-monad ) (require "match.rkt" "monad.rkt" "record.rkt" racket/match ) (module+ test (require racket/function rackunit )) (record st...
null
https://raw.githubusercontent.com/gregr/racket-misc/0a5c9d4875288795e209d06982b82848c989d08b/state-monad.rkt
racket
#lang racket/base (provide get gets modify put state-t-run state-t-eval state-t-exec state-monad-t state-run state-eval state-exec state-monad ) (require "match.rkt" "monad.rkt" "record.rkt" racket/match ) (module+ test (require racket/function rackunit )) (record st...
bc4ec7f0c8f5914f94ec36c3e3a035db4a5a2c04bc82ac5080410093bdf86f43
KingoftheHomeless/Cofree-Traversable-Functors
Day.hs
{-# LANGUAGE GADTs, DeriveFunctor, StandaloneDeriving #-} module Day where import Data.Traversable.Cofree data Day f g a where Day :: f x -> g y -> (x -> y -> a) -> Day f g a deriving instance Functor (Day f g) instance (Foldable f, Foldable g) => Foldable (Day f g) where foldr c b (Day fx gy xya) = foldr...
null
https://raw.githubusercontent.com/KingoftheHomeless/Cofree-Traversable-Functors/40289b1f5ec151da10ab625102527432e84d6743/examples/Day.hs
haskell
# LANGUAGE GADTs, DeriveFunctor, StandaloneDeriving #
module Day where import Data.Traversable.Cofree data Day f g a where Day :: f x -> g y -> (x -> y -> a) -> Day f g a deriving instance Functor (Day f g) instance (Foldable f, Foldable g) => Foldable (Day f g) where foldr c b (Day fx gy xya) = foldr (\x b' -> foldr (\y -> c (xya x y)) b' gy) b fx instance...
6e4b289818086dcb0f13ed7f320009c55f9f55494f7d9defc9fc6e2c76e0fa2a
sellout/Kilns
BUILD.lisp
#+xcvb (module (:fullname "kilns" :load-depends-on ("jk-calculus")) (:set :this-module :build-requires ((:asdf "bordeaux-threads") (:asdf "cl-unification"))))
null
https://raw.githubusercontent.com/sellout/Kilns/467ba599f457812daea41a7c56f74a1ec1cdc9b2/BUILD.lisp
lisp
#+xcvb (module (:fullname "kilns" :load-depends-on ("jk-calculus")) (:set :this-module :build-requires ((:asdf "bordeaux-threads") (:asdf "cl-unification"))))
786fb6365927cb3c4e7f65bdf663ca892859825e899930d949358c6731c6f30e
VictorNicollet/99-Problems-OCaml
p97.ml
Sudoku . ( medium ) Sudoku puzzles go like this : Problem statement Solution . . 4 | 8 . . | . 1 7 9 3 4 | 8 2 5 | 6 1 7 | | | | 6 7 . | 9 . . | . . . 6 7 2 | 9 1 4 | 8...
null
https://raw.githubusercontent.com/VictorNicollet/99-Problems-OCaml/a13e625545d54d4d927b39b18ab1ffba7de6b7e6/91-99/p97.ml
ocaml
Does value 'v' exist in any line, column or square containing cell (i,j) ? test
Sudoku . ( medium ) Sudoku puzzles go like this : Problem statement Solution . . 4 | 8 . . | . 1 7 9 3 4 | 8 2 5 | 6 1 7 | | | | 6 7 . | 9 . . | . . . 6 7 2 | 9 1 4 | 8...
2b8496fd8b8159bbd47bc4a40973b801c29953544afde23860f248595428dcf9
babashka/babashka
match.clj
(ns babashka.impl.match {:no-doc true} (:require [clojure.core.match :as match] clojure.core.match.array ;; side effecting clojure.core.match.debug ;; side effecting clojure.core.match.protocols ;; side effecting clojure.core.match.regex ;; side effecting ...
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/feature-core-match/babashka/impl/match.clj
clojure
side effecting side effecting side effecting side effecting
(ns babashka.impl.match {:no-doc true} (:require [clojure.core.match :as match] [sci.core :as sci :refer [copy-var]])) (def mns (sci/create-ns 'clojure.core.match nil)) (def core-match-namespace {'match (copy-var match/match mns) 'backtrack (copy-var match/backtrack mns) 'val-at* (copy-var m...
a2b7e612f96db6720395434b3c73e6a2930d2151584f2a250cd7ac0fa083637e
gfngfn/apbuf
parserInterface.ml
open Types open ResultMonad module I = Parser.MenhirInterpreter let k_success (fin : in_channel) (x : top_level) : (top_level, error) result = close_in fin; return x let k_fail (checkpoint : top_level I.checkpoint) : (top_level, error) result = match checkpoint with | I.HandlingError(parser_env) -> ...
null
https://raw.githubusercontent.com/gfngfn/apbuf/8f5cfb009d6e07236d3ac5aacfd4247017f20cc1/src/parserInterface.ml
ocaml
* The argument [path_in] must be an absolute path of an existent input file.
open Types open ResultMonad module I = Parser.MenhirInterpreter let k_success (fin : in_channel) (x : top_level) : (top_level, error) result = close_in fin; return x let k_fail (checkpoint : top_level I.checkpoint) : (top_level, error) result = match checkpoint with | I.HandlingError(parser_env) -> ...
d69ab6e242ed6726615b1649bf11e059da273f7b8a8ac9b142f2c7131429e5fb
philnguyen/soft-contract
play-tetris.rkt
#lang racket (require "tetris.rkt") (start unsafe:w0)
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/benchmark-contract-overhead/play-tetris.rkt
racket
#lang racket (require "tetris.rkt") (start unsafe:w0)
998ca2f40eb47eadb3f771027c576d52984d4feb04e0ec382b57c83cb4e40e8b
glguy/5puzzle
Picture.hs
module Zhed.Picture where import Diagrams.Prelude import Diagrams.Backend.SVG import qualified Data.Map as Map import Zhed.Puzzle cellSize = 50 :: Double renderSolutionSVG :: Puzzle -> [(Coord, Int, Dir)] -> FilePath -> IO () renderSolutionSVG puzzle solution path = renderSVG path sz diagram where Coord xmax ...
null
https://raw.githubusercontent.com/glguy/5puzzle/4d86cf9fad3ec3f70c57a167417adea6a3f9f30b/Zhed/Picture.hs
haskell
module Zhed.Picture where import Diagrams.Prelude import Diagrams.Backend.SVG import qualified Data.Map as Map import Zhed.Puzzle cellSize = 50 :: Double renderSolutionSVG :: Puzzle -> [(Coord, Int, Dir)] -> FilePath -> IO () renderSolutionSVG puzzle solution path = renderSVG path sz diagram where Coord xmax ...
656e6c0b63241241d36469ad01e8273e9cb190970071d918c282bfd40b6a905f
soulomoon/haskell-katas
SimpleSQLEngine.hs
module Kyu2.SimpleSQLEngine (sqlEngine) where import Text.Parsec import qualified Text.Parsec.Token as Tok import qualified Text.Parsec.Expr as Ex import Text.Parsec.String (Parser) import Text.Parsec.Char (char) import Data.Functor.Identity import Control.Monad import Debug.Trace import Data.Cha...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/src/Kyu2/SimpleSQLEngine.hs
haskell
selectResult s = map (filter (flip elem s . fst)) ppt "select table_d.id from table \ \where movie.name = table.id" ppt "select movie.name from movie" ppt "Select movie.name, director.name From movie Join director On director.id = movie.directorID" ppt "SelecT movie.name,director.name\nFroM director\nJoiN movie...
module Kyu2.SimpleSQLEngine (sqlEngine) where import Text.Parsec import qualified Text.Parsec.Token as Tok import qualified Text.Parsec.Expr as Ex import Text.Parsec.String (Parser) import Text.Parsec.Char (char) import Data.Functor.Identity import Control.Monad import Debug.Trace import Data.Cha...
32e8484b52ff91fa1a8501b796c4747b0a4d07b3da1c1621d6447e249369f8bb
tezos/tezos-mirror
test_consensus_filter.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/b7f14148a61a8afec9bdb3c16de8f197ee6b8cff/src/proto_alpha/lib_plugin/test/test_consensus_filter.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
5c3f37d6cb4fac41811b5c23ab8a70bcda18835470903c79c4b9200371dfee28
philnguyen/soft-contract
issue-3.rkt
#lang racket (require soft-contract/fake-contract) (define x "hi") (provide (contract-out [x integer?]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/fail/issue-3.rkt
racket
#lang racket (require soft-contract/fake-contract) (define x "hi") (provide (contract-out [x integer?]))
5261b822c236eba36226bd2c146a413754088ec864aa3034381e8493504a5268
janestreet/sexp
main_validate.ml
open Core let execute query = try Query.execute query with | _ -> exit 1 ;; (* preserve failure, but silently *) let command = Command.basic ~summary:"validate a sequence of s-expressions on stdin" (let%map_open.Command () = return () in fun () -> let perform_query sexp_ext ~on_result = ...
null
https://raw.githubusercontent.com/janestreet/sexp/2414e8f11fadff4a33fff87bd79fb614ee7642f3/bin/main_validate.ml
ocaml
preserve failure, but silently
open Core let execute query = try Query.execute query with | _ -> exit 1 ;; let command = Command.basic ~summary:"validate a sequence of s-expressions on stdin" (let%map_open.Command () = return () in fun () -> let perform_query sexp_ext ~on_result = let lazy_results = Sexp_app.Sem...
5ff02e9c3d5d4bcdbe2e808a7ed7f4ae8dc89e38a1f8322e686270f974189d5b
FBoisson/Camllight
frx_text.ml
#open "tk";; let version = "$Id: frx_text.ml,v 1.6 1996/05/30 11:50:30 rouaix Exp $" ;; (* * convert an integer to an absolute index *) let abs_index n = TextIndex (LineChar(0,0), [CharOffset n]) ;; let insertMark = TextIndex(Mark "insert", []) ;; let currentMark = TextIndex(Mark "current", []) ;; let textEn...
null
https://raw.githubusercontent.com/FBoisson/Camllight/2e6d5ec31f93ec53d11232b7b2498adc719a8b13/contrib/camltk4/frx/frx_text.ml
ocaml
* convert an integer to an absolute index * Link a scrollbar and a text widget * Tk 4.0 has navigation in Text widgets, sometimes using scrolling * sometimes using the insertion mark. It is a pain to add more * compatible bindings. We do our own. IN THIS ORDER -- RESIZING * Searching The user int...
#open "tk";; let version = "$Id: frx_text.ml,v 1.6 1996/05/30 11:50:30 rouaix Exp $" ;; let abs_index n = TextIndex (LineChar(0,0), [CharOffset n]) ;; let insertMark = TextIndex(Mark "insert", []) ;; let currentMark = TextIndex(Mark "current", []) ;; let textEnd = TextIndex(End, []) ;; let textBegin = TextI...
8d0d855d2e5ffd6778be892af4f1085f8627ed1fb27e497560493af3536f1b02
HaskellZhangSong/Introduction_to_Haskell_2ed_source
transpose.hs
transpose :: [[a]] -> [[a]] transpose [] = [] transpose ([]:xss) = transpose xss transpose ((x:xs) : xss) = (x : [h | (h:_) <- xss]) : transpose (xs : [ t | (_:t) <- xss])
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C06/transpose.hs
haskell
transpose :: [[a]] -> [[a]] transpose [] = [] transpose ([]:xss) = transpose xss transpose ((x:xs) : xss) = (x : [h | (h:_) <- xss]) : transpose (xs : [ t | (_:t) <- xss])
3b6090945eee9f39d357ff079a9387cbc5f47a173b696f5593f3fdaed207a69b
fulcro-legacy/semantic-ui-wrapper
ui_form_input.cljs
(ns fulcrologic.semantic-ui.collections.form.ui-form-input (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/collections/Form/FormInput" :default FormInput])) (def ui-form-input "Sugar for <Form.Field control={Input} />. Props: - as (custom): An element ty...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_input.cljs
clojure
(ns fulcrologic.semantic-ui.collections.form.ui-form-input (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/collections/Form/FormInput" :default FormInput])) (def ui-form-input "Sugar for <Form.Field control={Input} />. Props: - as (custom): An element ty...
299bcb0aa91a084714310188b53f4f5056fd6aa456f464bc802a09128c26f99a
riak-haskell-client/riak-haskell-client
Search.hs
-- | module: Network.Riak.Search copyright : ( c ) 2016 Sentenai author : < > license : Apache -- Solr search -- -- / # LANGUAGE CPP # module Network.Riak.Search ( IndexInfo , SearchResult(..) , Score , indexInfo , getIndex , putIndex , deleteIndex , searchRaw ) where #if _...
null
https://raw.githubusercontent.com/riak-haskell-client/riak-haskell-client/a1eafc4c16b85a98b2d29e306165f4d93819609f/riak/src/Network/Riak/Search.hs
haskell
| module: Network.Riak.Search / explicitly set the property. In the default installation of @riak@, this is -buffers/yz-index-get/ | Create a new index or modify an existing index. -buffers/yz-index-put/ | Delete an index. -buffers/yz-index-delete/ using an 'Index'.
copyright : ( c ) 2016 Sentenai author : < > license : Apache Solr search # LANGUAGE CPP # module Network.Riak.Search ( IndexInfo , SearchResult(..) , Score , indexInfo , getIndex , putIndex , deleteIndex , searchRaw ) where #if __GLASGOW_HASKELL__ <= 708 import Cont...
8728bd20edb258cd207b12f90a9ef644822c2aca700ac40e53dc0a081a9f0189
kind2-mc/kind2
compress.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/a5b88341098cfa77612d3bd74362ac8d5c9b3c44/src/induction/compress.ml
ocaml
********************************************************************** Utility functions ********************************************************************** Handle empty list Apply predicate on all unordered pairs in the list and return true iff the pr...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
3b3b433ca00da492eb125f2d3c14518947860b786f8b7a79ff0dded96337b9fb
gadfly361/reagent-figwheel
core.clj
(ns {{ns-name}}.core)
null
https://raw.githubusercontent.com/gadfly361/reagent-figwheel/4c40657b31a2b358be5697add2e96e8cac6f8535/src/leiningen/new/reagent_figwheel/src/clj/core.clj
clojure
(ns {{ns-name}}.core)
3eebe05f28af88b9fff12b6f00801cc78855cfabe4f1fdfca108bb041c7d70c3
bgamari/the-thoralf-plugin
Bool.hs
# LANGUAGE TypeFamilies # {-# LANGUAGE TypeInType #-} # LANGUAGE TypeOperators # {-# OPTIONS_GHC -Wunused-top-binds #-} module ThoralfPlugin.Theory.Bool where import GHC.TypeLits ( Nat ) type family (<?) (x :: Nat) (y :: Nat) :: Bool where {}
null
https://raw.githubusercontent.com/bgamari/the-thoralf-plugin/fa4e403b25bfcaf9e8d5142ab40d3c54b33a3630/src/ThoralfPlugin/Theory/Bool.hs
haskell
# LANGUAGE TypeInType # # OPTIONS_GHC -Wunused-top-binds #
# LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module ThoralfPlugin.Theory.Bool where import GHC.TypeLits ( Nat ) type family (<?) (x :: Nat) (y :: Nat) :: Bool where {}
d22a019b38f4b702bc95cea3dbe76a1066e716a6df8bcdc8ea4d9961046b984d
conjure-cp/conjure
Tuple.hs
# LANGUAGE QuasiQuotes # # LANGUAGE ParallelListComp # module Conjure.Representations.Tuple ( tuple ) where -- conjure import Conjure.Prelude import Conjure.Language import Conjure.Representations.Internal -- text import Data.Text ( pack ) tuple :: forall m . (MonadFailDoc m, NameGen m) => Representation m...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Representations/Tuple.hs
haskell
conjure text
# LANGUAGE QuasiQuotes # # LANGUAGE ParallelListComp # module Conjure.Representations.Tuple ( tuple ) where import Conjure.Prelude import Conjure.Language import Conjure.Representations.Internal import Data.Text ( pack ) tuple :: forall m . (MonadFailDoc m, NameGen m) => Representation m tuple = Representa...
d7019360b4ce6c3f543e9c4eaa83d6d2ceb45200839f674c24c6f66c2b9e588c
rowangithub/DOrder
consistbl.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/utils/consistbl.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 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 : consistbl.mli 5275 2002 - 11 ...
abc97c6e1cd3a12d7f5152c89b6a54f2196030cf7faa4aa2c20c56a7465fa2c3
LeventErkok/sbv
AES.hs
----------------------------------------------------------------------------- -- | Module : Documentation . SBV.Examples . Crypto . AES Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- An implementation of AES ( Advanced Encryption Standard ) , using SBV . For details o...
null
https://raw.githubusercontent.com/LeventErkok/sbv/9cd3662cb6ae31a95b99570f91ae4639807dc1ab/Documentation/SBV/Examples/Crypto/AES.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental We do a T-box implementation, which leads to good C code as we can take advantage of look-up tables. Note that we make virtually no attempt to fast at all. The idea is to program...
Module : Documentation . SBV.Examples . Crypto . AES Copyright : ( c ) An implementation of AES ( Advanced Encryption Standard ) , using SBV . For details on AES , see < > . optimize our code . The concern here is not with getting running as possible in Haskell , and have SBV 's code - generator ge...
77d15f0624331ed0cdb5d5a3a30bc5e566b5f94b02952653fcd40280c5931400
altenwald/rdbms
rdbms_cluster.erl
-module(rdbms_cluster). -author(''). %% This is a library module for cluster management: joining / leaving a cluster. -export([ start_master/0, join/2, leave/1, remove_from_cluster/1, is_node_alive/1 ]). -dialyzer({[no_match, no_return], set_extra_db_nodes/1}). %% @doc Join a cluster designated ...
null
https://raw.githubusercontent.com/altenwald/rdbms/2972173281ae1ac3bcce836c5fda4751395f7c23/src/rdbms_cluster.erl
erlang
This is a library module for cluster management: joining / leaving a cluster. @doc Join a cluster designated by ClusterMember. This drops all current connections and discards all persistent Next time the node starts, it will connect to other members automatically. @doc Leave cluster. This drops all current connec...
-module(rdbms_cluster). -author(''). -export([ start_master/0, join/2, leave/1, remove_from_cluster/1, is_node_alive/1 ]). -dialyzer({[no_match, no_return], set_extra_db_nodes/1}). data from . Use with caution ! -spec join(atom(), node()) -> ok. join(AppToStop, ClusterMember) when is_atom(App...
5f9e5a63354f2c8c2a97ea83df4e6b76bef5a6a7a5ab7198556ded3aa9c217c6
tomjaguarpaw/product-profunctors
Tuples.hs
# LANGUAGE TemplateHaskell # | This is old cruft . You should never use this and it will likely -- be deprecated in a future version. module Data.Profunctor.Product.Tuples where import Data.Profunctor.Product.Tuples.TH mkTs [0..maxTupleSize]
null
https://raw.githubusercontent.com/tomjaguarpaw/product-profunctors/db78428cb2be7eddddf1f9f98899003efb9c8c56/Data/Profunctor/Product/Tuples.hs
haskell
be deprecated in a future version.
# LANGUAGE TemplateHaskell # | This is old cruft . You should never use this and it will likely module Data.Profunctor.Product.Tuples where import Data.Profunctor.Product.Tuples.TH mkTs [0..maxTupleSize]