_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
bb78fe5f7d03641d09f95cac29ce34fa569a859922b38237d9b12fb3b33078c6
obsidiansystems/rhyolite
Serializable.hs
{-# Language DeriveFunctor #-} {-# Language DerivingStrategies #-} {-# Language FlexibleContexts #-} # Language GeneralizedNewtypeDeriving # # Language MultiParamTypeClasses # {-# Language RankNTypes #-} {-# Language ScopedTypeVariables #-} {-# Language TypeFamilies #-} {-# Language UndecidableInstances #-} # options_g...
null
https://raw.githubusercontent.com/obsidiansystems/rhyolite/487b8732b0b8b754897b7490958d38332be7c312/groundhog-legacy/groundhog-legacy/src/Rhyolite/DB/Groundhog/Serializable.hs
haskell
# Language DeriveFunctor # # Language DerivingStrategies # # Language FlexibleContexts # # Language RankNTypes # # Language ScopedTypeVariables # # Language TypeFamilies # # Language UndecidableInstances #
# Language GeneralizedNewtypeDeriving # # Language MultiParamTypeClasses # # options_ghc -fno - warn - orphans # module Rhyolite.DB.Groundhog.Serializable ( Serializable , runSerializable , toDbPersist , unsafeLiftDbPersist , unsafeMkSerializable , unSerializable ) where import Control.Monad.Logger (Log...
64b7cab06eaba970dc3c3442ef7fbc93d039afb27e4e1b45f5b0603228220d59
casperschipper/ocaml-cisp
cisp1.ml
open Cisp open Midi open Seq open Reader.Ops simple mod of controller 1 onto pitch let sr = ref 44100.0 let pitchControl = MidiState.getControlR (MidiCh 0) (MidiCtrl 0) >>= (fun (MidiVal ctrl1) -> MidiState.getControlR (MidiCh 0) (MidiCtrl 1) >>= (fun (MidiVal ctrl2) -> MidiState.triggerR 30...
null
https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/examples/cisp_backup/video1/cisp1.ml
ocaml
a seq of (x,y) make it (seq x, seq y) this maps midi input msg to an output msg (raw midi) take msg, make it a state run a bunch of readers to extract properties the result is then used to contruct streams turn back into raw midi
open Cisp open Midi open Seq open Reader.Ops simple mod of controller 1 onto pitch let sr = ref 44100.0 let pitchControl = MidiState.getControlR (MidiCh 0) (MidiCtrl 0) >>= (fun (MidiVal ctrl1) -> MidiState.getControlR (MidiCh 0) (MidiCtrl 1) >>= (fun (MidiVal ctrl2) -> MidiState.triggerR 30...
1455a6400b1d8572e851d157d0b32fd277e8860a966680f9c57228e1cd6ccacb
estatico/generic-override
Internal.hs
-- | This is the internal generic-override-aeson API and should be considered -- unstable and subject to change. In general, you should prefer to use the -- public, stable API provided by "Data.Override.Aeson". # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures...
null
https://raw.githubusercontent.com/estatico/generic-override/dff5916468cedc55ba4a608436740b2d6feca318/generic-override-aeson/src/Data/Override/Aeson/Options/Internal.hs
haskell
| This is the internal generic-override-aeson API and should be considered unstable and subject to change. In general, you should prefer to use the public, stable API provided by "Data.Override.Aeson". list of 'AesonOption'. | Provides a type-level subset of fields from 'Options' ^ Equivalient to @'allNullaryToSt...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Data.Override.Aeson.Options.Internal where import Data.Aeson import Data.Coe...
20594f4cca4f0a65f2cabb7b0be76b9fc9cbda147ece97b8b2383ede3c93c666
darioteixeira/ocaml-bitcoin
bitcoin_cohttp_async.ml
Bitcoin_cohttp_async.ml Copyright ( c ) 2021 < > Copyright (c) 2021 Michael Bacarella <> *) open! Core open! Async * Offers an implementation of a { ! Bitcoin . HTTPCLIENT } using Cohttp 's [ Cohttp_lwt_async . Client ] . *) (**************************************************************************...
null
https://raw.githubusercontent.com/darioteixeira/ocaml-bitcoin/bf781ece0da4aea696ad494a79161bf8b625afaf/lib-cohttp-async/bitcoin_cohttp_async.ml
ocaml
****************************************************************************** ****************************************************************************** ****************************************************************************** ****************************************************************************** ****...
Bitcoin_cohttp_async.ml Copyright ( c ) 2021 < > Copyright (c) 2021 Michael Bacarella <> *) open! Core open! Async * Offers an implementation of a { ! Bitcoin . HTTPCLIENT } using Cohttp 's [ Cohttp_lwt_async . Client ] . *) * { 1 Exceptions } ...
6bced14d94e05a4306f6846284a6d9140a1e6461fe2e2d74e16e76d66b53dc56
appleshan/cl-http
test.lisp
-*- Mode : LISP ; Package : w4 ; BASE : 10 ; Syntax : ansi - common - lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- ;;; ( c ) Copyright 2000 , ;;; All Rights Reserved. ;;; (in-package :w4) (defun alpha-enumerate-p (entry1 entry2) (string< (url:name-string (qe-url entry1)) (url:na...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/w4/examples/test.lisp
lisp
Package : w4 ; BASE : 10 ; Syntax : ansi - common - lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- All Rights Reserved.
( c ) Copyright 2000 , (in-package :w4) (defun alpha-enumerate-p (entry1 entry2) (string< (url:name-string (qe-url entry1)) (url:name-string (qe-url entry2)))) (defun test (url &key domain constraints (operator (http-user-email-address)) (depth 3) (search-method :depth-first) (threads 1) (predicate #'alp...
8b0046b740c287a87647634b6a2e8200fc31663ec1e443f5d962e9b57e85b3e9
cornell-netlab/p4pp
eval.mli
type env val empty : string -> string list -> (string * string) list -> env module type F = sig val exists : string -> bool val load : string -> string end module type S = sig include F val preprocess: env -> string -> string -> string * env end module Make(F:F) : S module FileSystem : S module Web : S
null
https://raw.githubusercontent.com/cornell-netlab/p4pp/2c41c2d4026dc94a9369c0a9160ddbb9c668f4ae/lib/eval.mli
ocaml
type env val empty : string -> string list -> (string * string) list -> env module type F = sig val exists : string -> bool val load : string -> string end module type S = sig include F val preprocess: env -> string -> string -> string * env end module Make(F:F) : S module FileSystem : S module Web : S
f1c57203d9e696634b808e9d6e234f1cca6557d9104005d9b56fc0d7600f122a
skanev/playground
02.scm
SICP exercise 5.02 ; ; Use the register machine language to describe the iterative factorial machine of exercise 5.1 . (define factorial-machine (make-machine '(c p n) (list (list '+ +) (list '* *) (list '> >)) '( (assign c (const 1)) (assign p (const 1)) test-> (test (o...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/02.scm
scheme
Use the register machine language to describe the iterative factorial
SICP exercise 5.02 machine of exercise 5.1 . (define factorial-machine (make-machine '(c p n) (list (list '+ +) (list '* *) (list '> >)) '( (assign c (const 1)) (assign p (const 1)) test-> (test (op >) (reg c) (reg n)) (branch (label factorial-done)) (ass...
2ca82672ea862d88f0b1d94cf8e471b57e2c074a4cafceb827375e9a3069d5b8
endobson/racket-llvm
basic-blocks.rkt
#lang racket (require "define.rkt" "ctypes.rkt") (require ffi/unsafe) (provide (all-defined-out)) (define-llvm-unsafe LLVMBlockAddress (_fun LLVMValueRef LLVMBasicBlockRef -> LLVMValueRef)) ;/* Operations on basic blocks */ (define-llvm-unsafe LLVMBasicBlockAsValue (_fun LLVMBasicBlockRef -> LLVMValueRef))...
null
https://raw.githubusercontent.com/endobson/racket-llvm/3eb557b0fe4bddfdfce8e8f4659d218535daa061/private/ffi/basic-blocks.rkt
racket
/* Operations on basic blocks */ and that it is a function value (define-llvm-unsafe LLVMRemoveBasicBlockFromParent (_fun LLVMBasicBlockRef -> _void))
#lang racket (require "define.rkt" "ctypes.rkt") (require ffi/unsafe) (provide (all-defined-out)) (define-llvm-unsafe LLVMBlockAddress (_fun LLVMValueRef LLVMBasicBlockRef -> LLVMValueRef)) (define-llvm-unsafe LLVMBasicBlockAsValue (_fun LLVMBasicBlockRef -> LLVMValueRef)) (define-llvm-unsafe LLVMValueIsBa...
0071dd4d96a9631b752e4981e201b2fffa0c63a081db3f6708854db522cfff00
ajkavanagh/vimwiki-publishing-system
FeedContext.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE ExtendedDefaultRules #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeAp...
null
https://raw.githubusercontent.com/ajkavanagh/vimwiki-publishing-system/c358ea03bcdb576ce4a7a4e42ac38ba5e1816c7b/src/Lib/Context/FeedContext.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | get the feed items into a new structure; this is purely so that we can have a ToGVal instance for them. t...
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE PolyKinds # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE AllowAmbiguousTypes # needed for the instance ToGV...
d27d968d25652d6229f0e263fec9b55f0c128046e4238e14eee868a9bc250378
basho/yokozuna
yz_siblings.erl
%% @doc Ensure that sibling creations/searching workds. -module(yz_siblings). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -define(FMT(S, Args), lists:flatten(io_lib:format(S, Args))). -define(CFG, [ {riak_kv, [{delete_mode, keep}]}, {yokozuna, ...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/riak_test/yz_siblings.erl
erlang
@doc Ensure that sibling creations/searching workds. The crazy looking key verifies that keys may contain characters contains a non-latin character for good measure. @see #Escaping%20Special%20Characters Verify 10 times because of non-determinism in coverage Verify 10 times because of non-determinism in coverage...
-module(yz_siblings). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -define(FMT(S, Args), lists:flatten(io_lib:format(S, Args))). -define(CFG, [ {riak_kv, [{delete_mode, keep}]}, {yokozuna, [{enabled, true}]} ]). -define(BODIES, ...
50b99e3d4f5bb77d0c3988f9dc49e152548cfdace47b094df3f80f72b4a61c1f
srijs/hwsl2-haskell
Internal.hs
{-# LANGUAGE Safe #-} # LANGUAGE ForeignFunctionInterface # # LANGUAGE CApiFFI # module Data.Hash.SL2.Internal where import Foreign import Foreign.C.Types newtype Hash = H (ForeignPtr ()) hashSize = 64 :: Int hashLen = 86 :: Int foreign import capi "sl2-inl.h sl2_valid" valid :: Ptr Hash -> IO CInt foreign impo...
null
https://raw.githubusercontent.com/srijs/hwsl2-haskell/0cf1fb1b3de896eda38cc7b0de70acb335157e43/src/Data/Hash/SL2/Internal.hs
haskell
# LANGUAGE Safe #
# LANGUAGE ForeignFunctionInterface # # LANGUAGE CApiFFI # module Data.Hash.SL2.Internal where import Foreign import Foreign.C.Types newtype Hash = H (ForeignPtr ()) hashSize = 64 :: Int hashLen = 86 :: Int foreign import capi "sl2-inl.h sl2_valid" valid :: Ptr Hash -> IO CInt foreign import capi "sl2-inl.h sl2...
27ef02c071e4376371ad439f42f0a72d30024481b150a15e6ac49f84e98613d5
spechub/Hets
ParseCLAsLibDefn.hs
| Module : ./CommonLogic / ParseCLAsLibDefn.hs Copyright : 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable ( imports Logic . Logic ) Analyses CommonLogic files . Module : ./CommonLogic/ParseCLA...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CommonLogic/ParseCLAsLibDefn.hs
haskell
| call for CommonLogic CLIF-parser with recursive inclusion of importations call for CommonLogic CLIF-parser for a single file maps imports in basic spec to global definition links (extensions) in development graph returns a unique name for a node one could add support for uri fragments/query (perhaps select a te...
| Module : ./CommonLogic / ParseCLAsLibDefn.hs Copyright : 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable ( imports Logic . Logic ) Analyses CommonLogic files . Module : ./CommonLogic/ParseCLA...
a775940890a5521a3437605c51e7ff326dd324b7c9d5c05ec30d9523cc12bf22
facebook/duckling
CS.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} module Duckling.Rules.CS ( defaultRules , langRules , localeRules ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Rules/CS.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Rules.CS ( defaultRules , langRules , localeRules ) where import Duckling.Dimensions.Types import Duckling.Locale import Duckling.Types import qualified Duckling.Distance.CS.Rules as Distance import qualified Duckling.Numeral.CS.Rules as Nu...
247b31c0fa24560fa0cadbd2162c53d6a9b5c5c9a4b1c7c055482256b530e40e
mitchellwrosen/planet-mitchell
Functor.hs
# LANGUAGE CPP # module Alg.Functor ( -- * Functor Functor(..) , (<$>) , ($>) #if MIN_VERSION_base(4,11,0) , (<&>) #endif , void , unzip -- ** Optics , mapped -- * Apply , Apply(..) , liftF3 -- ** Newtypes , MaybeApply(..) , Static(..) -- * Alt , Alt(..) -- * Plus , Pl...
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Alg/Functor.hs
haskell
* Functor ** Optics * Apply ** Newtypes * Alt * Plus * Bind * Extend * Bifunctor
# LANGUAGE CPP # module Alg.Functor Functor(..) , (<$>) , ($>) #if MIN_VERSION_base(4,11,0) , (<&>) #endif , void , unzip , mapped , Apply(..) , liftF3 , MaybeApply(..) , Static(..) , Alt(..) , Plus(..) , Bind(..) , (-<<) , Extend(..) , Bifunctor(..) , Swapped(..) * , Biapply...
1d0e28dcc01fa49f1ed05d33b610f34a993cf413f674be564fa61165782fe59d
wireapp/saml2-web-sso
Example.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} -- | This is a sample application composed of the end-points in "SAML.WebSSO.API" plus a minimum of -- functionality to make a running web application. Some parts of this module could be handy to -- build other apps, but it is more likely to s...
null
https://raw.githubusercontent.com/wireapp/saml2-web-sso/74371cd775cb98d6cf85f6e182244a3c4fd48702/src/SAML2/WebSSO/API/Example.hs
haskell
# LANGUAGE OverloadedStrings # | This is a sample application composed of the end-points in "SAML.WebSSO.API" plus a minimum of functionality to make a running web application. Some parts of this module could be handy to build other apps, but it is more likely to serve as a tutorial. -------------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # module SAML2.WebSSO.API.Example where import Control.Arrow ((&&&)) import Control.Concurrent.MVar import Control.Lens import Control.Monad.Except import Control.Monad.Reader import Data.EitherR (fmapL) import Data.Kind (Type) import Data.Map as Map import Data.Proxy import Data...
db459b3d378cc28952bbb86a2db7af4968d49a72a50c355c8c38e56876e8cc18
scrintal/heroicons-reagent
backward.cljs
(ns com.scrintal.heroicons.solid.backward) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M9.195 18.44c1.25.713 2.805-.19 2.805-1.629v-2.34l6.945 3.968c1.25.714 2.805-.188 2.805-1.628V8.688c0-1.44-1.555-2.342-...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/backward.cljs
clojure
(ns com.scrintal.heroicons.solid.backward) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M9.195 18.44c1.25.713 2.805-.19 2.805-1.629v-2.34l6.945 3.968c1.25.714 2.805-.188 2.805-1.628V8.688c0-1.44-1.555-2.342-...
b723205a3ba7ffca459f17d4131e63805bfda95f9d1c466a988dcd525ed950e6
sbcl/sbcl
show.lisp
;;;; temporary printing utilities and similar noise This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the pub...
null
https://raw.githubusercontent.com/sbcl/sbcl/03acca3955d4cdfc64f668dbf712bca3ac0d78c0/src/compiler/mips/show.lisp
lisp
temporary printing utilities and similar noise more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") (define-vop (print) (:args (object :scs (descriptor-reg any-reg) :target nl0)) (:results (result :...
6d4ed7a22d16e962169283ab0f41ec07842ae46e1d73e5113632d192799779e9
bos/rwh
safetail.hs
{-- snippet all --} safeTail :: [a] -> Maybe [a] safeTail [] = Nothing safeTail (_:xs) = Just xs {-- /snippet all --}
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch19/safetail.hs
haskell
- snippet all - - /snippet all -
safeTail :: [a] -> Maybe [a] safeTail [] = Nothing safeTail (_:xs) = Just xs
9428cc2ec8ccc9dc5339a2f0811d2409bf58cfde93c3be5fee2df364abc4e5b6
mightybyte/monad-challenges
MCPrelude.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns # ----------------------------------------------------------------------------- -- | -- Module : MCPrelude Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Ma...
null
https://raw.githubusercontent.com/mightybyte/monad-challenges/9ff0db4f209be7c0ff61391f69bbd0fd21ecc382/monad-challenges-code/src/MCPrelude.hs
haskell
--------------------------------------------------------------------------- | Module : MCPrelude License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable MCPrelude is a modified version of the Haskell Prelude designed -----------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns # Copyright : ( c ) The University of Glasgow 2001 specifically for The Monad Challenges . module MCPrelude ( Bool(False, True), (&&), (||), not, otherwise, Ordering(LT, EQ, GT), Char, String, ifThenElse, * ...
4a290408b68559ebf567ad4ab6a66c7623b3e2d3af3a10faef50847a99075c0d
LadyBoonami/wsedit
Output.hs
# LANGUAGE LambdaCase , MultiWayIf # , MultiWayIf #-} module WSEdit.Output ( charWidthRaw , charWidth , stringWidthRaw , stringWidth , visToTxtPos , txtToVisPos , lineNoWidth , toCursorDispPos , getViewportDimensions , cursorOffScr...
null
https://raw.githubusercontent.com/LadyBoonami/wsedit/b9fbe6de63c08ba3d6cb2f6eaa39b27fee09922f/src/WSEdit/Output.hs
haskell
| Returns the display width of a given char in a given column, ignoring elastic tab adjustments. | Returns the display width of a given char in a given line and column, including elastic tab adjustments if enabled. | Returns the display width of a given string starting at a given column, ignoring elastic ta...
# LANGUAGE LambdaCase , MultiWayIf # , MultiWayIf #-} module WSEdit.Output ( charWidthRaw , charWidth , stringWidthRaw , stringWidth , visToTxtPos , txtToVisPos , lineNoWidth , toCursorDispPos , getViewportDimensions , cursorOffScr...
b9807bdcc02e4870bfc3fd9dfc51c5b042e80d9866ef61a4656fc392946e449c
0day1day/bap
ast.ml
* The Abstract Syntax Tree . This IL allows nested expressions , making it closer to VEX and the concrete syntax than our SSA form . However , in most cases , this makes analysis harder , so you will generally want to convert to SSA for analysis . @author The Abstract Syntax...
null
https://raw.githubusercontent.com/0day1day/bap/eead3c03b5c9fb59d6b2c8ac1e1f3425f8601a2a/ocaml/ast.ml
ocaml
* Cast to a new type. Expression types below here are just syntactic sugar for the above * Extract hbits to lbits of e (Reg type) * Assign the value on the right to the var on the left * Jump to a label/address * Conditional jump. If e1 is true, jumps to e2, otherwise jumps to...
* The Abstract Syntax Tree . This IL allows nested expressions , making it closer to VEX and the concrete syntax than our SSA form . However , in most cases , this makes analysis harder , so you will generally want to convert to SSA for analysis . @author The Abstract Syntax...
fe975969732fc6b894052ef37d4ac3bf436e9d11f3ae955a110ff59b2c9fc406
ryanpbrewster/haskell
P024.hs
module Problems.P024 ( solve ) where - A permutation is an ordered arrangement of objects . For example , 3124 is one - possible permutation of the digits 1 , 2 , 3 and 4 . If all of the permutations - are listed numerically or alphabetically , we call it lexicographic order . - The lexicographic permu...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P024.hs
haskell
Finds the n-th permutation of distinct items
module Problems.P024 ( solve ) where - A permutation is an ordered arrangement of objects . For example , 3124 is one - possible permutation of the digits 1 , 2 , 3 and 4 . If all of the permutations - are listed numerically or alphabetically , we call it lexicographic order . - The lexicographic permu...
80c913c52093d583926cb8c9d4a8740b1d0ed676a1134fcfab42bdb04dc2e606
s-expressionists/Cleavir
slots.lisp
(in-package #:cleavir-abstract-interpreter) (defclass slots (pessimism) ()) (defclass sequential-slots (slots sequential) ()) ;;; Abstract interpreter fields are stored directly in data and/or instructions, ;;; via stealth mixins. ;;; FIXME: Maybe make this optionally loaded or something? (cleavir-stealth-mixins:de...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/f4f38868bc86c1d0de44e75375f9dcb253730ee4/Abstract-interpreter/slots.lisp
lisp
Abstract interpreter fields are stored directly in data and/or instructions, via stealth mixins. FIXME: Maybe make this optionally loaded or something?
(in-package #:cleavir-abstract-interpreter) (defclass slots (pessimism) ()) (defclass sequential-slots (slots sequential) ()) (cleavir-stealth-mixins:define-stealth-mixin datum () bir:datum ((%asserted-type :accessor asserted-type) (%derived-type :accessor derived-type) (%attributes :accessor attributes))) ...
7693d3f02846159b12bf7ee6eb9c17f80bdffbed4f315bc63197d99b213fe01d
backtracking/bibtex2html
bibtex.mli
(**************************************************************************) (* bibtex2html - A BibTeX to HTML translator *) Copyright ( C ) 1997 - 2014 and (* *) (* This software is free software; you can r...
null
https://raw.githubusercontent.com/backtracking/bibtex2html/7c9547da79a13c3accffc9947c846df96a6edd68/bibtex.mli
ocaml
************************************************************************ bibtex2html - A BibTeX to HTML translator This software is free software; you can redistribute it and/or ...
Copyright ( C ) 1997 - 2014 and modify it under the terms of the GNU General Public License version 2 , as published by the Free Software Foundation . See the GNU General Public License version 2 for more details s A datatype for bibliographies . type entry_type...
ea3ed5487f3b602474571fcdfc28394e92f5d7b31e2b0f58bff98af6f4a9fbd7
haskell/time
TimeZone.hs
module Test.LocalTime.TimeZone ( testTimeZone, ) where import Data.Time import System.Environment (setEnv) import Test.Tasty import Test.Tasty.HUnit testTimeZone :: TestTree testTimeZone = testCase "getTimeZone respects TZ env var" $ do let epoch = UTCTime (ModifiedJulianDay 57000) 0 setEnv "T...
null
https://raw.githubusercontent.com/haskell/time/dba6302b244a7b991ee7cac0d16461fddd222965/test/unix/Test/LocalTime/TimeZone.hs
haskell
module Test.LocalTime.TimeZone ( testTimeZone, ) where import Data.Time import System.Environment (setEnv) import Test.Tasty import Test.Tasty.HUnit testTimeZone :: TestTree testTimeZone = testCase "getTimeZone respects TZ env var" $ do let epoch = UTCTime (ModifiedJulianDay 57000) 0 setEnv "T...
5942c9fbd145a8081f2a320c48bb0ce35b475a88bfb744f261adc91f1e5520c3
zwizwa/staapl
conditionals.rkt
#lang staapl/pic18 \ -*- forth -*- provide-all \ Standard forth conditionals not using the flags. These are less \ efficient than the flag macros, but easier to use. Best to use \ these if code is not time critical. macro : ~cmp | y n ins | POSTDEC0 ins i n retlw y retlw ; forth : = -1 0 ' cpfseq ...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/pic18/conditionals.rkt
racket
#lang staapl/pic18 \ -*- forth -*- provide-all \ Standard forth conditionals not using the flags. These are less \ efficient than the flag macros, but easier to use. Best to use \ these if code is not time critical. macro : ~cmp | y n ins | POSTDEC0 ins i n retlw forth : = -1 0 ' cpfseq ~cmp : > -1 ...
29e6d5b11a051df8fa50ebbc0aa4e2184757e5c3698298cf98725a30a50f6ca4
mwmitchell/flux
update.clj
(ns flux.update (:import [org.apache.solr.common SolrInputDocument])) ;; Checking the docs the SolrInputDocument required a none ;; empty ctor already since 7.0.0 ;; -solrj/index.html?org/apache/solr/common/SolrInputDocument.html ;; NOTE: The result of this function is a SolrInputDocument ;; which throws an except...
null
https://raw.githubusercontent.com/mwmitchell/flux/855101681cf3c8953cd9607c2287a5b4c282a84e/src/flux/update.clj
clojure
Checking the docs the SolrInputDocument required a none empty ctor already since 7.0.0 -solrj/index.html?org/apache/solr/common/SolrInputDocument.html NOTE: The result of this function is a SolrInputDocument which throws an exception when printed!
(ns flux.update (:import [org.apache.solr.common SolrInputDocument])) (defn create-doc ^SolrInputDocument [document-map] (reduce-kv (fn [^SolrInputDocument doc k v] (if (map? v) (let [m (doto (java.util.HashMap.) (.put (name (key (first v))) (val (first v...
b0a9dd64502b77e21eaf10cdd3e8bfc077ea5ad85561b9583ee4c0a86ba7876e
Armael/pixels
pixels_network.ml
incoming UDP pixel drawing commands type pixel = { x : int; y : int; r : int; g : int; b : int } (* packet size in bytes *) let packet_size = 2 (* x *) + 2 (* y *) + 3 (* color *) let pixel_of_bytes (buf : Bytes.t) (off : int) (len : int) : pixel option = if off + packet_size > len then None else begin let x...
null
https://raw.githubusercontent.com/Armael/pixels/fb724bf9891ffd78c8bea1838cbf15ba9fb3c1be/server/lib_network/pixels_network.ml
ocaml
packet size in bytes x y color
incoming UDP pixel drawing commands type pixel = { x : int; y : int; r : int; g : int; b : int } let pixel_of_bytes (buf : Bytes.t) (off : int) (len : int) : pixel option = if off + packet_size > len then None else begin let x = Bytes.get_uint16_be buf off in let y = Bytes.get_uint16_be buf (off + 2) in ...
dff642ae22c3e2db8f61c3f1faadc7b024f0c4d3d36eab6118a369cc0592f575
sebschrader/programmierung-ss2015
Language.hs
# LANGUAGE MagicHash # {-# LANGUAGE GADTs #-} # LANGUAGE ExistentialQuantification # module AMx.Language where import Data.Array.IArray(Array) import qualified Data.Array.IArray as Array import Data.Map.Strict(Map) import qualified Data.Map.Strict as Map type Program i = Array Int i data InstructionSpecification i wh...
null
https://raw.githubusercontent.com/sebschrader/programmierung-ss2015/88fc40107dc42f013d1a1374b2b44a481b4f1746/AMx/Language.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE MagicHash # # LANGUAGE ExistentialQuantification # module AMx.Language where import Data.Array.IArray(Array) import qualified Data.Array.IArray as Array import Data.Map.Strict(Map) import qualified Data.Map.Strict as Map type Program i = Array Int i data InstructionSpecification i where Nullary :: Stri...
234e1ea75d1e78e16d6ee1066d2fcccf81968907b3db1559e220db5b62fef42a
music-suite/music-score
Meta.hs
# LANGUAGE ViewPatterns # module Music.Score.Meta ( module Music.Time.Meta, -- * Meta-events addMetaNote, fromMetaReactive, -- metaAt, metaAtStart, withMeta, withMetaAtStart, ) where import Control.Applicative import ...
null
https://raw.githubusercontent.com/music-suite/music-score/aa7182d8ded25c03a56b83941fc625123a7931f8/src/Music/Score/Meta.hs
haskell
* Meta-events metaAt, JUNK Transform the score with the current value of some meta-information Each "update chunk" of the meta-info is processed separately
# LANGUAGE ViewPatterns # module Music.Score.Meta ( module Music.Time.Meta, addMetaNote, fromMetaReactive, metaAtStart, withMeta, withMetaAtStart, ) where import Control.Applicative import Control.Lens hiding (parts, pe...
7f0df59af76198e1de896a03255a2f3c64b97483edaa0f026cb776cd9b14bb0b
scrintal/heroicons-reagent
users.cljs
(ns com.scrintal.heroicons.solid.users) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/users.cljs
clojure
(ns com.scrintal.heroicons.solid.users) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5...
d42f209c3eddb5253a35b5345c86b3b9a9a975bad0ffca054aa833d7c0c5df97
manuel-serrano/bigloo
quit.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / bdb / bdb / Command / quit.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/bdb/bdb/Command/quit.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The quit & kill commands */ *===========================...
* serrano / prgm / project / bigloo / bdb / bdb / Command / quit.scm * / * Author : * / * Creation : Tue Jul 27 11:02:35 1999 * / * Last change : We d Aug 9 18:40:40 2000 ( serrano ) * / (modu...
01d7f4d767438f043ff9413a281b9ef23cda00d766d87dac7e8548bd66d37f17
alanz/ghc-exactprint
T6018a.hs
# LANGUAGE TypeFamilies # module T6018a where import {-# SOURCE #-} T6018 -- test support for hs-boot files type family G a b c = (result :: *) | result -> a b c type instance G Int Char Bool = Bool type instance G Char Bool Int = Int type instance F Bool Int Char = Char
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T6018a.hs
haskell
# SOURCE # test support for hs-boot files
# LANGUAGE TypeFamilies # module T6018a where type family G a b c = (result :: *) | result -> a b c type instance G Int Char Bool = Bool type instance G Char Bool Int = Int type instance F Bool Int Char = Char
402d391b4912dd12b070cc011b4c01be90f528038da7985ee479da85368d9bd0
archaelus/erlmail
smtpd_app.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . @doc applicaiton definition file @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > ...
null
https://raw.githubusercontent.com/archaelus/erlmail/fe69b0e936f1512b4f349666e56c31c0af7b672c/src/smtpd_app.erl
erlang
--------------------------------------------------------------------------------------- @reference See <a href="" target="_top">ErlMail Google Code Repository</a> for more information @version 0.0.6 @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
@author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . @doc applicaiton definition file @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for more information @since 0.0.5 The MIT License Copyright ( c ) 2007 , ...
37138b4c0d3c62e8729822818ac3cc2709d6423f5d8ea56ac8caf69a5b1aeb5d
tsloughter/kuberl
kuberl_v1beta2_deployment_strategy.erl
-module(kuberl_v1beta2_deployment_strategy). -export([encode/1]). -export_type([kuberl_v1beta2_deployment_strategy/0]). -type kuberl_v1beta2_deployment_strategy() :: #{ 'rollingUpdate' => kuberl_v1beta2_rolling_update_deployment:kuberl_v1beta2_rolling_update_deployment(), 'type' => binary() }. encod...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta2_deployment_strategy.erl
erlang
-module(kuberl_v1beta2_deployment_strategy). -export([encode/1]). -export_type([kuberl_v1beta2_deployment_strategy/0]). -type kuberl_v1beta2_deployment_strategy() :: #{ 'rollingUpdate' => kuberl_v1beta2_rolling_update_deployment:kuberl_v1beta2_rolling_update_deployment(), 'type' => binary() }. encod...
5b37629a330c4acf7d65a45b01fac0afb1a9b0e8e06f1abe3d4e3862b84f9925
japonophile/synaptic
util_test.clj
(ns synaptic.util-test (:require [clojure.test :refer :all] [clatrix.core :as m] [synaptic.util :refer :all])) (deftest test-random-number-generation (testing "random and nrand should return consistent values after setting the random generator seed to the same value" (rand-se...
null
https://raw.githubusercontent.com/japonophile/synaptic/2739c4f37cb37fb2a93589f985823a1fcd4d7eb9/test/synaptic/util_test.clj
clojure
0 1 2 3 4 5 6 7 000000 000001 000010 000011 000100 000101 000110 000111
(ns synaptic.util-test (:require [clojure.test :refer :all] [clatrix.core :as m] [synaptic.util :refer :all])) (deftest test-random-number-generation (testing "random and nrand should return consistent values after setting the random generator seed to the same value" (rand-se...
0762b123621f3ac9593ad1b70fc2de4e45e40f4c6ae73e82768ac023d434218d
UnkindPartition/bert
Term.hs
# LANGUAGE OverlappingInstances , TypeSynonymInstances , FlexibleInstances # -- | Define BERT terms their binary encoding & decoding and a typeclass for converting values to BERT terms and back . -- -- We define a number of convenient instances for 'BERT'. Users will -- probably want to define their own instances fo...
null
https://raw.githubusercontent.com/UnkindPartition/bert/c61f14b621e3eddc41a337fa881245e43defeb66/src/Data/BERT/Term.hs
haskell
| Define BERT terms their binary encoding & decoding and a typeclass We define a number of convenient instances for 'BERT'. Users will probably want to define their own instances for composite types. Another design would be to split the Term type into SimpleTerm|CompositeTerm, and then do everything in one go, bu...
# LANGUAGE OverlappingInstances , TypeSynonymInstances , FlexibleInstances # for converting values to BERT terms and back . module Data.BERT.Term ( BERT(..) , showTerm , parseTerm ) where import Control.Monad import Control.Applicative import Data.Bits import Data.Char import Data.Int import Data.Binary imp...
c0f2ea81a6774c0d1ed19b0f8ee3d76b13e458332dfaa529918c53620ed1340e
geophf/1HaskellADay
Exercise.hs
# LANGUAGE OverloadedStrings , QuasiQuotes # module Y2018.M07.D11.Exercise where - So , yesterday we loaded in a JSON structure that was a wee - bit quirky Today we 're going to transform that structure that 's a mite less quirky Because , like XML , JSON is all about transformation , ! - So, yesterday we ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M07/D11/Exercise.hs
haskell
} So, load in the input JSON structure and transform it into the below form: } yeah, we have to read in the output to get what we want to output. Deal. in2out converts the input data in the input JSON structure to the output structure. And with that, we output our output structure as outputly-structured JSON read...
# LANGUAGE OverloadedStrings , QuasiQuotes # module Y2018.M07.D11.Exercise where - So , yesterday we loaded in a JSON structure that was a wee - bit quirky Today we 're going to transform that structure that 's a mite less quirky Because , like XML , JSON is all about transformation , ! - So, yesterday we ...
856c3467d94ec798c35d77077c44339fdd3d31995e36f6804babed1c3668666d
BranchTaken/Hemlock
test_limits.ml
open! Basis.Rudiments open! Basis open I8 let test () = File.Fmt.stdout |> Fmt.fmt "bit_length=" |> Uns.pp (bit_pop (bit_not zero)) |> Fmt.fmt "\nmin_value=" |> pp min_value |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true min_value |> Fmt.fmt "\nmax_value=" |> pp ma...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i8/test_limits.ml
ocaml
open! Basis.Rudiments open! Basis open I8 let test () = File.Fmt.stdout |> Fmt.fmt "bit_length=" |> Uns.pp (bit_pop (bit_not zero)) |> Fmt.fmt "\nmin_value=" |> pp min_value |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true min_value |> Fmt.fmt "\nmax_value=" |> pp ma...
4b0964c64cca018275b6250cda14caef8c168a9f78c5126ef85df9c68bf9cfe2
privet-kitty/cl-competitive
template.lisp
(in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *opt* #+swank '(optimize (speed 3) (safety 2)) #-swank '(optimize (speed 3) (safety 0) (debug 0))) #+swank (ql:quickload '(:cl-debug-print :fiveam :cp/util) :silent t) #+swank (use-package :cp/util :cl-user) #-swa...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/1f2a61d38703d9841ec1e7afecffcdb748ef2950/non-module/template.lisp
lisp
BEGIN_USE_PACKAGE Body Test
(in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *opt* #+swank '(optimize (speed 3) (safety 2)) #-swank '(optimize (speed 3) (safety 0) (debug 0))) #+swank (ql:quickload '(:cl-debug-print :fiveam :cp/util) :silent t) #+swank (use-package :cp/util :cl-user) #-swa...
8e3bf69a413da56bef12d9d6c0beea1218f6429987b91a832fe137e306d5de8e
mmirman/caledon
FormulaZipper.hs
module Src.FormulaZipper (Ctxt()) where import Src.Context import Src.AST import qualified Data.Map as M repeate 0 a = id repeate 1 f = f repeate n f = f . repeate (n-1) f data FZipper = Top | L FZipper Form | R Form FZipper | B FZipper Type deriving (Show) ...
null
https://raw.githubusercontent.com/mmirman/caledon/7e97110270362d46d8784a5197a84b6a4b7e2982/sources/Src/FormulaZipper.hs
haskell
module Src.FormulaZipper (Ctxt()) where import Src.Context import Src.AST import qualified Data.Map as M repeate 0 a = id repeate 1 f = f repeate n f = f . repeate (n-1) f data FZipper = Top | L FZipper Form | R Form FZipper | B FZipper Type deriving (Show) ...
72e17af387788c09124d9697425e616bed3c950d3aa831355250f53b05902c3a
Ekdohibs/camlboot
location.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/Ekdohibs/camlboot/506280c6e0813e0e794988151a8e46be55373ebc/miniml/interp/location.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Source code locations ( ranges of positions ) , used in parsetree . open Format type t = { loc_star...
9b1bd695e4417d902074acbe52444895fe3906687d8d23752cf76de01d3cf70f
g7s/module.shadow-cljs
shadow_cljs.clj
(ns duct.module.shadow-cljs "Integrant methods for running shadow-cljs." (:require [integrant.core :as ig] [duct.core :as core] [duct.core.merge :as merge])) (defn- env-duct-key [env] (case env :production :duct.compiler/shadow-cljs :duct.server/shadow-cljs)) (def ^:private dev-config {:d...
null
https://raw.githubusercontent.com/g7s/module.shadow-cljs/e2066f5771974bb6d166a65cc65b23a9062396fc/src/duct/module/shadow_cljs.clj
clojure
(ns duct.module.shadow-cljs "Integrant methods for running shadow-cljs." (:require [integrant.core :as ig] [duct.core :as core] [duct.core.merge :as merge])) (defn- env-duct-key [env] (case env :production :duct.compiler/shadow-cljs :duct.server/shadow-cljs)) (def ^:private dev-config {:d...
7fe9d311b9a87c6c8825551dc779ea6f71859fabb9f69db44c000d7a2b7fc3b1
danieljharvey/mimsa
Calc.hs
module Calc ( module Calc.Types, module Calc.Parser, module Calc.ExprUtils, module Calc.Compile.RunLLVM, module Calc.Interpreter, module Calc.Repl, ) where import Calc.Compile.RunLLVM import Calc.ExprUtils import Calc.Interpreter import Calc.Parser import Calc.Repl import Calc.Types
null
https://raw.githubusercontent.com/danieljharvey/mimsa/c5bcab3e9f961216cea540edb95a8a66db773980/llvm-calc2/src/Calc.hs
haskell
module Calc ( module Calc.Types, module Calc.Parser, module Calc.ExprUtils, module Calc.Compile.RunLLVM, module Calc.Interpreter, module Calc.Repl, ) where import Calc.Compile.RunLLVM import Calc.ExprUtils import Calc.Interpreter import Calc.Parser import Calc.Repl import Calc.Types
851f54abc00c6d4e7e13138da4476cdc2726ad43acb4e1b9a65b42fab8f25f47
dustmop/co2
tree-walker.scm
#lang racket (require data/gvector) (define func-nodes (make-hash)) (struct func-node (name params calls [memory #:mutable])) (define (make-func-node name params calls) (hash-set! func-nodes name (func-node name params calls #f))) (define (leaf-asm-gen? elem) (member elem '(asm byte text org))) (define (data-...
null
https://raw.githubusercontent.com/dustmop/co2/49cd2c9fac25777bb0fe1877075602c167956d90/tree-walker.scm
scheme
return early
#lang racket (require data/gvector) (define func-nodes (make-hash)) (struct func-node (name params calls [memory #:mutable])) (define (make-func-node name params calls) (hash-set! func-nodes name (func-node name params calls #f))) (define (leaf-asm-gen? elem) (member elem '(asm byte text org))) (define (data-...
cd12f89e5e2e63d3e973452024e2b6bf7807d0ef799f32d49a7e169479c1ece3
tisnik/clojure-examples
core.clj
(ns priority-map-1.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/priority-map-1/src/priority_map_1/core.clj
clojure
(ns priority-map-1.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
375ab950cf3dc726b071b5811880a56662e673be514a53a9cfde7bf44da44422
wireless-net/erlang-nommu
timer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/src/timer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(timer). -export([apply_after/4, ...
a3600f1a5c781169a53aeb0f589dc41aad3259097b3485246b36173539da631a
sixthnormal/clj-3df
device.cljc
(ns device (:require [clj-3df.core :as df :use [exec!]])) ;; We are modeling devices that are reporting their current speed via ;; some sensors. The speed is supposed to match the settings for that ;; device. We are interested in reporting any devices that are ;; deviating from their settings. (def schema {:se...
null
https://raw.githubusercontent.com/sixthnormal/clj-3df/7dfb89a438f9fb1a3c5d0d356f05acf3f9c51177/examples/device.cljc
clojure
We are modeling devices that are reporting their current speed via some sensors. The speed is supposed to match the settings for that device. We are interested in reporting any devices that are deviating from their settings.
(ns device (:require [clj-3df.core :as df :use [exec!]])) (def schema {:settings/speed {:db/valueType :Number :db/semantics :db.semantics.cardinality/one} :device/name {:db/valueType :String} :device/speed {:db/valueType :Number :db/semantics :db.semantics.car...
d5cc192d2ea324f4a9c18ff99db8e23620ced9cb45246a5510ad1a46e54e5724
matsen/pplacer
guppy_placemat.ml
open Guppy_cmdobjs open Subcommand open Ppatteries class cmd () = object (self) inherit subcommand () as super inherit tabular_cmd () as super_tabular inherit mass_cmd () as super_mass inherit placefile_cmd () as super_placefile method specl = super_tabular#specl @ super_mass#specl method desc = "p...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/guppy_placemat.ml
ocaml
open Guppy_cmdobjs open Subcommand open Ppatteries class cmd () = object (self) inherit subcommand () as super inherit tabular_cmd () as super_tabular inherit mass_cmd () as super_mass inherit placefile_cmd () as super_placefile method specl = super_tabular#specl @ super_mass#specl method desc = "p...
88ed8db868d8ddba21020f21917c3e02b06d88f2c845ff42fbdf652d07d4e40d
jrh13/hol-light
sqrt.ml
(* ========================================================================= *) (* Irrationality of sqrt(2) and more general results. *) (* ========================================================================= *) needs "Library/prime.ml";; (* For number-theoretic lemmas *)...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/100/sqrt.ml
ocaml
========================================================================= Irrationality of sqrt(2) and more general results. ========================================================================= For number-theoretic lemmas For definition of rationals -------------------...
let IRRATIONAL_SQRT_NONSQUARE = prove (`!n. rational(sqrt(&n)) ==> ?m. n = m EXP 2`, REWRITE_TAC[rational] THEN REPEAT STRIP_TAC THEN FIRST_ASSUM(MP_TAC o AP_TERM `\x:real. x pow 2`) THEN SIMP_TAC[SQRT_POW_2; REAL_POS] THEN ONCE_REWRITE_TAC[GSYM REAL_POW2_ABS] THEN REPEAT(FIRST_X_ASSUM(STRIP_ASSUME_TAC o ...
8079564cc313cb56fe9656889af13a251a697a585ae7c5656c8c93f3958ae906
haskell-suite/haskell-src-exts
Vta2.hs
# LANGUAGE RankNTypes , TypeApplications # module Vta2 where checkIf :: Bool -> (forall a. a -> a) -> (Bool, Int) checkIf _ = if True then \f -> (f True, f 5) else \f -> (f False, f @Int 3) checkCase :: Bool -> (forall a. a -> a) -> (Bool, Int) checkCase _ = case True of True...
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/Vta2.hs
haskell
# LANGUAGE RankNTypes , TypeApplications # module Vta2 where checkIf :: Bool -> (forall a. a -> a) -> (Bool, Int) checkIf _ = if True then \f -> (f True, f 5) else \f -> (f False, f @Int 3) checkCase :: Bool -> (forall a. a -> a) -> (Bool, Int) checkCase _ = case True of True...
1a1d5220e5aaab66caae4dea43e004d690a53d47c49dbdad55bf2b2b4e92b461
monadbobo/ocaml-core
update_queue.ml
open Core.Std type ('perm, 'state) t = { mutable state : 'state option; updates : ('state -> 'state) Queue.t; mutable watchers : ('state -> unit) list; executing : Mutex.t; } let create ?init () = { state = init; updates = Queue.create (); watchers = []; executing = Mutex.create (); } let try_lock mt...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/update_queue.ml
ocaml
open Core.Std type ('perm, 'state) t = { mutable state : 'state option; updates : ('state -> 'state) Queue.t; mutable watchers : ('state -> unit) list; executing : Mutex.t; } let create ?init () = { state = init; updates = Queue.create (); watchers = []; executing = Mutex.create (); } let try_lock mt...
e97b3e9d81a4bf674bb16aed5880732b9534f47fede8d07e40b8124779b28738
finnishtransportagency/harja
kohteet_test.clj
(ns harja.kyselyt.kanavat.kohteet-test (:require [clojure.test :refer :all] [harja.testi :refer :all] [harja.kyselyt.kanavat.kohteet :as q] [harja.domain.kanavat.kohde :as kohde] [harja.domain.kanavat.kohdekokonaisuus :as kok])) (deftest kohteiden-urakkatiedot (is (...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/488b1e096f0611e175221d74ba4f2ffed6bea8f1/test/clj/harja/kyselyt/kanavat/kohteet_test.clj
clojure
(ns harja.kyselyt.kanavat.kohteet-test (:require [clojure.test :refer :all] [harja.testi :refer :all] [harja.kyselyt.kanavat.kohteet :as q] [harja.domain.kanavat.kohde :as kohde] [harja.domain.kanavat.kohdekokonaisuus :as kok])) (deftest kohteiden-urakkatiedot (is (...
e3a5d26cb3015c673ec2c4bf1e335179705f63b703c1c8de1f0e906b898950ed
takikawa/racket-ppa
correlated-linklet.rkt
#lang racket/base (require racket/fasl "../host/linklet.rkt" "../host/correlate.rkt") (provide correlated-linklet? make-correlated-linklet correlated-linklet-expr correlated-linklet-name force-compile-linklet eval-correlated-linklet correlated-...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/src/expander/compile/correlated-linklet.rkt
racket
---------------------------------------- Ignore compiled version, if any, and evaluate from correlated source: Omitting `'serializable` should generate a preferred and executable compilation ---------------------------------------- ---------------------------------------- ----------------------------------------
#lang racket/base (require racket/fasl "../host/linklet.rkt" "../host/correlate.rkt") (provide correlated-linklet? make-correlated-linklet correlated-linklet-expr correlated-linklet-name force-compile-linklet eval-correlated-linklet correlated-...
6dafd7dcd57522e0849558821f7201910804b2e28e9979d7f49637f954412d6e
metaocaml/ber-metaocaml
tast_mapper.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/tast_mapper.mli
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2015 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Typedtree * { 1 A generic } type mapper = { binding_op: mapper -> binding_op ...
d04a5c9f87a6fb75afd6b87fef09e751f1b6125ee68ce305b3f2982ac8ba6470
oflatt/space-orbs
key-events.rkt
#lang racket (require rackunit pict3d racket/set "structures.rkt" "current-roll-and-pos.rkt" "variables.rkt" "big-crunch.rkt" "on-frame.rkt") (provide on-key on-release) (define (on-key g n ot key) (define t (- ot MASTER-TIME-OFFSET)) (define lkey (string-foldcase key)) (define g* (struct-copy game g ...
null
https://raw.githubusercontent.com/oflatt/space-orbs/3d6301e576f304a9994d42b49939ad2432069aac/client/key-events.rkt
racket
ignore it
#lang racket (require rackunit pict3d racket/set "structures.rkt" "current-roll-and-pos.rkt" "variables.rkt" "big-crunch.rkt" "on-frame.rkt") (provide on-key on-release) (define (on-key g n ot key) (define t (- ot MASTER-TIME-OFFSET)) (define lkey (string-foldcase key)) (define g* (struct-copy game g ...
f31f7e98318777b725eb54e19d31f6e7048602419fe599dbe19cce3b33e022e7
dardoria/uuid
uuid.lisp
;;;; Author Boian Tzonev <> 2007 - 2011 , All Rights Reserved ;;;; This software may be distributed and used according to the terms of the Lisp Lesser GNU Public License ( LLGPL ) ;;;; (). (cl:defpackage :uuid (:use :common-lisp) (:export :uuid :*ticks-per-count* :format-as-urn :make-null-uuid :make-uuid-from-...
null
https://raw.githubusercontent.com/dardoria/uuid/f0052f34a006ec995086aa3b2e42182a178fe228/uuid.lisp
lisp
Author Boian Tzonev <> ().
2007 - 2011 , All Rights Reserved This software may be distributed and used according to the terms of the Lisp Lesser GNU Public License ( LLGPL ) (cl:defpackage :uuid (:use :common-lisp) (:export :uuid :*ticks-per-count* :format-as-urn :make-null-uuid :make-uuid-from-string :make-v1-uuid :make-v3-uuid :ma...
be7f09511a7292d91fd0a13aa8f080286989021e80f2bfedec084da7fcde1f53
eponai/sulolive
middleware.clj
(ns eponai.server.middleware (:require [cognitect.transit :as transit] [clojure.string :as str] [environ.core :refer [env]] [ring.util.request :as ring.request] [ring.util.response :as ring.response] [manifold.deferred :as deferred] [aleph.middleware.util :as aleph.m] [aleph.middleware...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/server/middleware.clj
clojure
Debug/dev require Redirects to ssl request is not https Sets request to be https if http header says so. The http header will say so when we're behind an amazon load balancer (production). This ensures the browser will only use HTTPS for future requests to the domain. In development, we get requests for .js.map f...
(ns eponai.server.middleware (:require [cognitect.transit :as transit] [clojure.string :as str] [environ.core :refer [env]] [ring.util.request :as ring.request] [ring.util.response :as ring.response] [manifold.deferred :as deferred] [aleph.middleware.util :as aleph.m] [aleph.middleware...
4806e3db4b98ce1197bae74264307099aa82549eae47c8df54956377d969edc7
gsakkas/rite
20060421-12:55:30-220009617aefd214b090b47a5f324eff.seminal.ml
exception Unimplemented exception RuntimeTypeError exception DoesNotTypecheck of string (****** Syntax for our language, including types (do not change) *****) type exp = Var of string | Lam of string * typ * exp | Apply of exp * exp | Closure of string * exp * (env ref) | Int of int | Pl...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060421-12%3A55%3A30-220009617aefd214b090b47a5f324eff.seminal.ml
ocaml
***** Syntax for our language, including types (do not change) **** ***** Interpreter for our language (do not change) **** **** helper functions provided to you (do not change) **** ########################################## ################################################################## ###### ********* examp...
exception Unimplemented exception RuntimeTypeError exception DoesNotTypecheck of string type exp = Var of string | Lam of string * typ * exp | Apply of exp * exp | Closure of string * exp * (env ref) | Int of int | Plus of exp * exp | If of exp * exp * exp | RecordE of (string * exp)...
cdc6689a58cdcbdd1905f92cd3d0d3077c5f75a1d1d8a47c7b7991ef8641eb1d
input-output-hk/plutus-apps
Scripts.hs
| This module contains functions related to the computation of script hashes for PlutusV1 . This module contains functions related to the computation of script hashes for PlutusV1. -} # OPTIONS_GHC -Wno - missing - import - lists # module Plutus.Script.Utils.V1.Scripts ( -- * Script hashes PV1.Validat...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/cbbe8b593f50142502ff28dc7836d9199643e703/plutus-script-utils/src/Plutus/Script/Utils/V1/Scripts.hs
haskell
* Script hashes * Script utilities | Hash a 'PV1.Validator' script. | Hash a 'PV1.MintingPolicy' script. | Hash a 'PV1.StakeValidator' script. | Hash a 'Script' | Convert a 'Script' to a 'cardano-api' script.
| This module contains functions related to the computation of script hashes for PlutusV1 . This module contains functions related to the computation of script hashes for PlutusV1. -} # OPTIONS_GHC -Wno - missing - import - lists # module Plutus.Script.Utils.V1.Scripts PV1.Validator , PV1.ValidatorHas...
9d525139a4af7982e6ae2d60ab1e7bb3b0431d56fb416735873f2ac2ade8d2c1
Ericson2314/lighthouse
installPackage.hs
import Distribution.PackageDescription import Distribution.Simple import Distribution.Simple.Configure import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Program import Distribution.Simple.Setup import Distribution.Simple.Utils import Distribution.Verbosity import System.Environment main :: IO () ma...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/installPackage.hs
haskell
XXX This is an almighty hack, shadowing the base Setup.hs hack There's no files for GHC.Prim, so we will fail if we try to copy them When coying, we need to actually give a concrete directory to copy to rather than "$topdir" $compiler/lib/ part of libsubdir, so we only want the $pkgid part in the package.conf f...
import Distribution.PackageDescription import Distribution.Simple import Distribution.Simple.Configure import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Program import Distribution.Simple.Setup import Distribution.Simple.Utils import Distribution.Verbosity import System.Environment main :: IO () ma...
535c53adce72ba8025d68c7a15fde8c62cec2293ca30fe1e1b529443544c8a23
jayrbolton/coursework
Core.hs
{-# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #-} module MAlonzo.Data.Maybe.Core where import qualified Unsafe.Coerce import qualified MAlonzo.Level name5 = ("Data.Maybe.Core.Maybe") d5 a0 a1 = (()) data T5 a0 = C9 a0 ...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/project__/agda/MAlonzo/Data/Maybe/Core.hs
haskell
# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #
module MAlonzo.Data.Maybe.Core where import qualified Unsafe.Coerce import qualified MAlonzo.Level name5 = ("Data.Maybe.Core.Maybe") d5 a0 a1 = (()) data T5 a0 = C9 a0 | C10 name9 = ("Data.Maybe.Core.just") name10 = ("Data.Maybe.Core.nothing")
b2fe950fbd08108efcf4533ad72d88ab40e2f8c113e30365b045e4db6a92c61d
lanl/APPFL
emptyhead.hs
# LANGUAGE MagicHash , UnboxedTuples # module Test where import AppflPrelude import APPFL.Prim main = head []
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/test/hs/error/emptyhead.hs
haskell
# LANGUAGE MagicHash , UnboxedTuples # module Test where import AppflPrelude import APPFL.Prim main = head []
4fa53e6ebe2a23f7667a2f0f7c7668efaed52a1906b5f12ccf5657cf99c2c761
ocurrent/ocurrent
docker_build_local.ml
open Lwt.Infix let program_name = "docker_build_local" module Git = Current_git module Docker = Current_docker.Default let pull = false (* Whether to check for updates using "docker build --pull" *) build time let () = Prometheus_unix.Logging.init () (* included in doc/example_pipelines.md as code snippet *...
null
https://raw.githubusercontent.com/ocurrent/ocurrent/667f95376226a9c4d33d7f4aebeca251a6ec9229/doc/examples/docker_build_local.ml
ocaml
Whether to check for updates using "docker build --pull" included in doc/example_pipelines.md as code snippet Run "docker build" on the latest commit in Git repository [repo]. Command-line parsing
open Lwt.Infix let program_name = "docker_build_local" module Git = Current_git module Docker = Current_docker.Default build time let () = Prometheus_unix.Logging.init () [@@@part "pipeline"] let pipeline ~repo () = let src = Git.Local.head_commit repo in let image = Docker.build ~pull ~timeout (`Git src) ...
030bfa3599bd9045f2302c156d25b989e03913fefd681aad39e2a92c4446864e
chaoxu/fancy-walks
29.hs
import Data.List problem_29 = length . group . sort $ [a ^ b | a <- [2..100], b <- [2..100]] main = print problem_29
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/29.hs
haskell
import Data.List problem_29 = length . group . sort $ [a ^ b | a <- [2..100], b <- [2..100]] main = print problem_29
7a59014edde5f2c167e32dda1b67b6c2360ec3f6fd4d1ca8e114a083ba119cb1
lfe/lfe
lfe_parse.erl
Copyright ( c ) 2009 - 2020 %% 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 distributed...
null
https://raw.githubusercontent.com/lfe/lfe/dbfd16af065b12d2dbce26ff1fbad151765243fd/src/lfe_parse.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2009 - 2020 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(lfe_parse). -export([format_error/1]). -export([form/1,form/2]). -define(CATCH(E, Error), try E catch _:_ -> Error end). -export([s...
3c7be1221c861aef79ba3d68e13bb1ce888dddffa81c6400cc741ee6043c0b51
OCamlPro/ocamlexc
tkprintmod.ml
(***********************************************************************) (* *) (* Ocamlexc *) (* *) , projet Cris...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/interface/tkprintmod.ml
ocaml
********************************************************************* Ocamlexc ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Format ;; open Tk ;; let create_mark_radical = let cpt = ref 0 in function () -> let name = "MARK" ^ ...
559ecc32d6a630c3c86c2c479108a7b4ff6d1ccaf1e9c47322a7f56555154968
jqueiroz/lojban.io
Lessons.hs
{-# LANGUAGE OverloadedStrings #-} -- | This module defines the course lessons. module Study.Courses.English.Vocabulary.Attitudinals.Lessons where import Core import Study.Courses.English.Vocabulary.Attitudinals.Documents import Study.Courses.English.Vocabulary.Attitudinals.Exercises | First lesson : Pure emotions...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Study/Courses/English/Vocabulary/Attitudinals/Lessons.hs
haskell
# LANGUAGE OverloadedStrings # | This module defines the course lessons.
module Study.Courses.English.Vocabulary.Attitudinals.Lessons where import Core import Study.Courses.English.Vocabulary.Attitudinals.Documents import Study.Courses.English.Vocabulary.Attitudinals.Exercises | First lesson : Pure emotions 1 . lesson1 :: Lesson lesson1 = Lesson "Pure emotions 1" exercises1 (Just lectu...
a13d38a94d7a18c713b366effe105070489b48a85446d8cbd9fc8281ede59e24
fetburner/Coq2SML
cctac.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/cc/cctac.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Proof_type va...
d716ad12a0115b904c08913d314eb501e76f6871a559d3040b962f7bc8aa6428
bugczw/Introduction-to-Functional-Programming-in-OCaml
set.ml
(** Sets of integers can be represented using a function. (Yet, this is a very inefficient representation.) *) type set = int -> bool;; let empty : set = fun x -> false;; let add (x : int) (s : set) : set = fun y -> (x = y) || s y;; let mem (x : int) (s : set) : bool = s x;; let s = add 1 (add 3 empty);; ...
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W2_ALL/set.ml
ocaml
* Sets of integers can be represented using a function. (Yet, this is a very inefficient representation.)
type set = int -> bool;; let empty : set = fun x -> false;; let add (x : int) (s : set) : set = fun y -> (x = y) || s y;; let mem (x : int) (s : set) : bool = s x;; let s = add 1 (add 3 empty);; let one_is_in_s = mem 1 s;; let two_is_not_in_s = mem 2 s;; let three_is_in_s = mem 3 s;;
ea67b7559de61fdbeaa8b10ce4e22d4200d7fb31091c0dd9f840da2b587f5c92
lortabac/ariel
Prelude.hs
module Ariel.Prelude ( tshow, lbsToText, module Control.Monad.Reader, module Control.Monad.State, module Data.Data, module Data.Foldable, module Data.Map, module Data.Proxy, module Data.Set, module Data.Text, module Data.Traversable, ) where import Control.Monad.Reader impor...
null
https://raw.githubusercontent.com/lortabac/ariel/3c4e115a7fed724ed129e3b7056cc67751e3d35b/src/Ariel/Prelude.hs
haskell
module Ariel.Prelude ( tshow, lbsToText, module Control.Monad.Reader, module Control.Monad.State, module Data.Data, module Data.Foldable, module Data.Map, module Data.Proxy, module Data.Set, module Data.Text, module Data.Traversable, ) where import Control.Monad.Reader impor...
6de435c2ada1dee5a5aeac3fe6ad391f7e6b835f7e844db264d67a0668dd05ee
fiddlerwoaroof/cl-git
package.lisp
(in-package :cl-user) (defpackage :fwoar.cl-git (:use :cl ) (:export #:ensure-ref #:repository #:component)) (defpackage :cl-git-user (:use :cl :fwoar.cl-git)) (defpackage :git (:use) (:export #:show #:branch #:branches #:commit-parents #:in-repository #:with-repository #:current-reposi...
null
https://raw.githubusercontent.com/fiddlerwoaroof/cl-git/fb9deed060d49dbb52f390f67b1783a13edf71b6/package.lisp
lisp
(in-package :cl-user) (defpackage :fwoar.cl-git (:use :cl ) (:export #:ensure-ref #:repository #:component)) (defpackage :cl-git-user (:use :cl :fwoar.cl-git)) (defpackage :git (:use) (:export #:show #:branch #:branches #:commit-parents #:in-repository #:with-repository #:current-reposi...
74c5be0c15441cc477d4832bd0ab15f59fff909b1b3c4bf0e9a21a733b43fd0f
DomainDrivenArchitecture/dda-managed-vm
credential_management.clj
Licensed to the Apache Software Foundation ( ASF ) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the ; "License"); you may not...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-managed-vm/ed44f97ef89468a4dd4bc514439df3f936c86d26/main/src/dda/pallet/dda_managed_vm/infra/credential_management.clj
clojure
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "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 b...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the distributed under the License is distributed on an " AS IS " BASIS , (ns dda.pallet.dda-managed-vm.infra.credential-management (:require [clojure.tools.logging :as logging] [schema.core :as s...
e38fa9d9493d3abf62fe500e365520fffe180d4ce06720134e3540e627f05083
jspahrsummers/RxHaskell
Connection.hs
{-# LANGUAGE Safe #-} # LANGUAGE ScopedTypeVariables # module Signal.Connection ( Connection , multicast , publish , connect , multicastedSignal , replay , replayLast ...
null
https://raw.githubusercontent.com/jspahrsummers/RxHaskell/19550bb692a6a6e56314fe3aebb1303a22e577ed/Signal/Connection.hs
haskell
# LANGUAGE Safe # | Creates a connection that will subscribe to the given base signal, and forward all events onto the given channel. | Returns the multicasted signal of a connection. No events will be sent on the resulting signal until 'connect' is invoked. | Activates a connection by subscribing to its unde...
# LANGUAGE ScopedTypeVariables # module Signal.Connection ( Connection , multicast , publish , connect , multicastedSignal , replay , replayLast ...
a83d44dcd4c45d679b9e811e3d76b345ee0bb83ed1069edb9ea6b4a68c5d417e
caisah/sicp-exercises-and-examples
length.scm
(define (length items) (if (null? items) 0 (+ 1 (length (cdr items))))) (define odds (list 1 3 5 7)) 4 (define (length items) (define (length-iter a count) (if (null? a) count (length-iter (cdr a) (+ count 1)))) (length-iter items 0))
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/2.2.1-representing_sequences/length.scm
scheme
(define (length items) (if (null? items) 0 (+ 1 (length (cdr items))))) (define odds (list 1 3 5 7)) 4 (define (length items) (define (length-iter a count) (if (null? a) count (length-iter (cdr a) (+ count 1)))) (length-iter items 0))
26a577a631441e4c0837e3c1398ab48e05ba27f8382fe26083e473e898c72fe3
jordwalke/rehp
pretty_print.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/lib/pretty_print.ml
ocaml
Vertical rendering Fits? **
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking...
ba2b3e8cf9b5db2473857d3250b44f684f30efcdf8671e05116cdbe8a9489840
ros/roslisp_common
test-ctmc.lisp
(defpackage :test-ctmc (:use :cl :cl-test :ctmc :cl-utils :cl-probability)) (in-package :test-ctmc) (defparameter q #2A((-4.0 1.5 2.5) (0.1 -.5 0.4) (1.6 2.8 -4.4))) (defparameter d #(.5 .3 .2)) (defparameter a '(a b c)) (defparameter m (make-instance 'continuous-time-markov-chain :q q :alphabet a :init-dist d)) ...
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/cl_utils/src/cl-prob/test/test-ctmc.lisp
lisp
(defpackage :test-ctmc (:use :cl :cl-test :ctmc :cl-utils :cl-probability)) (in-package :test-ctmc) (defparameter q #2A((-4.0 1.5 2.5) (0.1 -.5 0.4) (1.6 2.8 -4.4))) (defparameter d #(.5 .3 .2)) (defparameter a '(a b c)) (defparameter m (make-instance 'continuous-time-markov-chain :q q :alphabet a :init-dist d)) ...
6f38bc7dd13818779669eeeac63fca464e715cd0488ae99104ff3df981214833
ninjudd/cake
compile.clj
(ns cake.tasks.compile (:use cake [cake.core :only [deftask bake invoke]] [cake.file :only [file newer? mkdir file-exists?]] [cake.classloader :only [reset-classloaders! with-classloader classpath]] [cake.utils :only [sudo prompt-read]] [bake.core :only [verbose? debug? log os-...
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/src/cake/tasks/compile.clj
clojure
add actions to compile-native if you need to compile native libraries see for an example
(ns cake.tasks.compile (:use cake [cake.core :only [deftask bake invoke]] [cake.file :only [file newer? mkdir file-exists?]] [cake.classloader :only [reset-classloaders! with-classloader classpath]] [cake.utils :only [sudo prompt-read]] [bake.core :only [verbose? debug? log os-...
41a56baeaae8c5446408c50d49c1d4f02c91266a3b0c6cc87e06babda2d5320e
tonyg/kali-scheme
bvector.scm
(define (test) (let ((v (make-byte-vector 10)) (out (current-output-port))) (write-number (byte-vector-ref v 4) out) (byte-vector-set! v 5 100) (write-number (byte-vector-ref v 5) out) (write-number (byte-vector-word-ref v 4) out)))
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/test/bvector.scm
scheme
(define (test) (let ((v (make-byte-vector 10)) (out (current-output-port))) (write-number (byte-vector-ref v 4) out) (byte-vector-set! v 5 100) (write-number (byte-vector-ref v 5) out) (write-number (byte-vector-word-ref v 4) out)))
24c0ff634ff89647714b6d0b4382e58932978ef866045da5c6cf25527bc2a24c
dyzsr/ocaml-selectml
subst.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/subst.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Path open Types open Btype open Local_store type type_replacement = | Path of Path.t ...
ab5415bd953ee357d5c626a3792419661b7f9f612890a770d6c382badc6aea97
danilkolikov/dfl
Expander.hs
| Module : Frontend . Inference . TypeSynonym . Expander Description : Functions for expanding type synonyms in AST Copyright : ( c ) , 2019 License : MIT Functions for expanding type synonyms in AST Module : Frontend.Inference.TypeSynonym.Expander Description : Functions f...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Inference/TypeSynonym/Expander.hs
haskell
| Expands type synonyms in AST
| Module : Frontend . Inference . TypeSynonym . Expander Description : Functions for expanding type synonyms in AST Copyright : ( c ) , 2019 License : MIT Functions for expanding type synonyms in AST Module : Frontend.Inference.TypeSynonym.Expander Description : Functions f...
7ac3818af10141873ff2d40cdeeacfb28bac48c31ed871fa3a1ae4ef59791bed
inhabitedtype/ocaml-aws
modifySubnetAttribute.mli
open Types type input = ModifySubnetAttributeRequest.t type output = unit 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/ec2/lib/modifySubnetAttribute.mli
ocaml
open Types type input = ModifySubnetAttributeRequest.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
66f168d6bc32263303a84fd915181018a5a98af32c085424f50e760d41645abe
y-taka-23/thank-you-stars
PackageSpec.hs
module Utils.ThankYouStars.PackageSpec (spec) where import Utils.ThankYouStars.GitHub import Utils.ThankYouStars.Package import qualified Data.Set as S import System.Directory ( getCurrentDirectory ) import System.FilePath ( joinPath ) import Test.Hspec spec :: Spec spec = do ...
null
https://raw.githubusercontent.com/y-taka-23/thank-you-stars/c8d7cf4c2f0ed1d1234108ee507a03bfde3bc4c2/test/Utils/ThankYouStars/PackageSpec.hs
haskell
TODO: too fragile. mock the Hackage DB
module Utils.ThankYouStars.PackageSpec (spec) where import Utils.ThankYouStars.GitHub import Utils.ThankYouStars.Package import qualified Data.Set as S import System.Directory ( getCurrentDirectory ) import System.FilePath ( joinPath ) import Test.Hspec spec :: Spec spec = do ...
fde0cbc18ccf1b617ffc1aeaa0f1f8f727175a0cda20d1f695f8dc50b9e2b83e
mirage/ocaml-github
current_user_orgs.ml
open Github_t let token = Config.access_token let t = Github.(Monad.(run ( let orgs = Organization.current_user_orgs ~token () in Stream.next orgs >>= function | None -> Printf.eprintf "no orgs for current user\n"; exit 1 | Some (first_org, _) -> Printf.eprintf "org %Ld: %s\n%!" first_org.or...
null
https://raw.githubusercontent.com/mirage/ocaml-github/429b8751c45d958644bf0e64452bf9b0460955ba/lib_test/current_user_orgs.ml
ocaml
open Github_t let token = Config.access_token let t = Github.(Monad.(run ( let orgs = Organization.current_user_orgs ~token () in Stream.next orgs >>= function | None -> Printf.eprintf "no orgs for current user\n"; exit 1 | Some (first_org, _) -> Printf.eprintf "org %Ld: %s\n%!" first_org.or...
16c29f603ea95aece9df664b96fec2109d057e43cacaa6acebe048efb75bc5c8
racket/gui
test.rkt
#lang racket/load (require racket/gui) (load-relative "editor.rktl") (load-relative "paramz.rktl") (load-relative "cache-image-snip-test.rktl") (load-relative "windowing.rktl") (require "./issue-119.rkt")
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-test/tests/gracket/test.rkt
racket
#lang racket/load (require racket/gui) (load-relative "editor.rktl") (load-relative "paramz.rktl") (load-relative "cache-image-snip-test.rktl") (load-relative "windowing.rktl") (require "./issue-119.rkt")
dacec09e4085cf5027f6aca4e4fc1cf82482df24f49552c0cccaf360ee3b1176
ocaml/dune
action_builder.ml
open Import include Action_builder0 open O open struct module List = Stdune.List end let register_action_deps : type a. a eval_mode -> Dep.Set.t -> a Dep.Map.t Memo.t = fun mode deps -> match mode with | Eager -> Build_system.build_deps deps | Lazy -> Memo.return deps let dyn_memo_deps deps = of_thunk...
null
https://raw.githubusercontent.com/ocaml/dune/4e83d1b80bd9a37de7e0d39d6f22873850314557/src/dune_engine/action_builder.ml
ocaml
CR-someday amokhov: The set of targets is accumulated using information from multiple sources by calling [Targets.combine], which performs set union and hence duplicate declarations of the very same target can go unnoticed. I think such redeclarations are not erroneous but are merely redundant; perhaps we ...
open Import include Action_builder0 open O open struct module List = Stdune.List end let register_action_deps : type a. a eval_mode -> Dep.Set.t -> a Dep.Map.t Memo.t = fun mode deps -> match mode with | Eager -> Build_system.build_deps deps | Lazy -> Memo.return deps let dyn_memo_deps deps = of_thunk...
a88447f463f0982c1cbe88623e7834e0a975eff87efeb0c158efe034acef7417
ghcjs/jsaddle-dom
TreeWalker.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TreeWalker (parentNode, parentNode_, parentNodeUnsafe, parentNodeUnchecked, firstChild, firstChild_, firstC...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/TreeWalker.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TreeWalker (parentNode, parentNode_, parentNodeUnsafe, parentNodeUnchecked, firstChild, firstChild_, firstChildUnsafe, firstChildUnchecked, lastChild, lastChild_, lastChildUnsafe, lastChildUnchecked...
42007bdc737e74aad7440780fd66a6a110db4d856c5380c66c70b1c401564cb6
ssor/erlangDemos
simple_cache.erl
-module(simple_cache). -export([insert/2,lookup/1,delete/1]). insert(Key,Value)-> case sc_store:lookup(Key) of {ok,Pid} -> sc_element:replace(Pid,Value), sc_event:replace(Key,Value); {error,_}-> {ok,Pid} = sc_element:create(Value), sc_store:insert(Key,Pid), sc_event:create(Key,Value) end. looku...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/demos/simple_cache/src/simple_cache.erl
erlang
-module(simple_cache). -export([insert/2,lookup/1,delete/1]). insert(Key,Value)-> case sc_store:lookup(Key) of {ok,Pid} -> sc_element:replace(Pid,Value), sc_event:replace(Key,Value); {error,_}-> {ok,Pid} = sc_element:create(Value), sc_store:insert(Key,Pid), sc_event:create(Key,Value) end. looku...
5fb9072458f123e110a6a6a37baa1a4f4460de768cf66b78d07e7a5c30ad10f3
pink-gorilla/ui-gorilla
card.cljs
(ns pinkgorilla.ui.app.card) (defn ^{:category :layout} card [{:keys [heading text img href]}] [:<> [:a {:href href} [:div {:class "max-w-sm px-4 py-2 m-2 font-mono text-lg text-gray-800 text-center border-gray-600 border rounded-lg bg-white shadow-lg hover:bg-black hover:text-white...
null
https://raw.githubusercontent.com/pink-gorilla/ui-gorilla/262f8c5bfa8ec6b1f79b9a980e3bdece47563c38/src-old/app/card.cljs
clojure
(ns pinkgorilla.ui.app.card) (defn ^{:category :layout} card [{:keys [heading text img href]}] [:<> [:a {:href href} [:div {:class "max-w-sm px-4 py-2 m-2 font-mono text-lg text-gray-800 text-center border-gray-600 border rounded-lg bg-white shadow-lg hover:bg-black hover:text-white...
c1a3acc2a1d198c7a46121556c6ca8b9c7c0e21744344a7015ede076449e4354
cnuernber/dtype-next
queue_iter.clj
(ns tech.v3.parallel.queue-iter "Read an iterator from in a separate thread into a queue returning a new iterator. This allows a traversal of potentially blocking information to happen in a separate thread with a fixed queue size." (:require [tech.v3.parallel.for :as pfor] [clojure.tools.logging :a...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/3fe3b62669bf83f6273235ae91988e4fd68d3026/src/tech/v3/parallel/queue_iter.clj
clojure
(ns tech.v3.parallel.queue-iter "Read an iterator from in a separate thread into a queue returning a new iterator. This allows a traversal of potentially blocking information to happen in a separate thread with a fixed queue size." (:require [tech.v3.parallel.for :as pfor] [clojure.tools.logging :a...
46687260adce4c49e1a2228d3208ec1b0b027057d95541a5d9be7fd54829bc6a
Ptival/chick
Vernacular.hs
module Parsing.Vernacular ( definitionP, vernacularP, ) where import Control.Applicative ((<|>)) import Data.Functor (($>)) import qualified Definition as D import qualified DefinitionObjectKind as DOK import Parsing (termP, variableP) import Parsing.Chick.Utils (rword, symbol) import Parsing.Inductive (induct...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/lib/Parsing/Vernacular.hs
haskell
module Parsing.Vernacular ( definitionP, vernacularP, ) where import Control.Applicative ((<|>)) import Data.Functor (($>)) import qualified Definition as D import qualified DefinitionObjectKind as DOK import Parsing (termP, variableP) import Parsing.Chick.Utils (rword, symbol) import Parsing.Inductive (induct...
1c239dc16c1b2decbfebb764fc7aae35b92138e081dc8fca9787d1793a85dd68
SquidDev/urn
prelude.lisp
(import test ()) (describe "The prelude library" (it "can call functions inside structs" (let* [(st { :f (lambda (x) (+ x 1)) }) (y (call st :f 4))] (affirm (= y 5)))) (it "can call functions inside structs that refer to the struct" (let* [(st { :x 5 :f (lambda (s y) (.<! s :x y)) })] ...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/tests/lib/core/prelude.lisp
lisp
(import test ()) (describe "The prelude library" (it "can call functions inside structs" (let* [(st { :f (lambda (x) (+ x 1)) }) (y (call st :f 4))] (affirm (= y 5)))) (it "can call functions inside structs that refer to the struct" (let* [(st { :x 5 :f (lambda (s y) (.<! s :x y)) })] ...
81fbc4d8ef859050a7890e1d7491a7997f9c2eca3553bdedfeda10ec458470fc
cedlemo/OCaml-libmpdclient
mpd_lwt_send_ping.ml
* Copyright 2018 , * This file is part of . * * OCaml - libmpdclient is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * any later version . ...
null
https://raw.githubusercontent.com/cedlemo/OCaml-libmpdclient/49922f4fa0c1471324c613301675ffc06ff3147c/samples/mpd_lwt_send_ping.ml
ocaml
* Copyright 2018 , * This file is part of . * * OCaml - libmpdclient is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * any later version . ...
1fd7955daaac4d66daebe507e16776a2d26ad8ad5b9b82ae7837be1c91d3ddff
yi-editor/yi
HighLevel.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK show-extensions #-} {-# LANGUAGE MultiWayIf #-} -- | Module : Yi . Buffer . HighLevel -- License : GPL-2 -- Maintainer : -- Stability : experimental -- Portability : portable -- -- High level operations ...
null
https://raw.githubusercontent.com/yi-editor/yi/65c157580e93f496a1acc6117ad02594dbcd9f35/yi-core/src/Yi/Buffer/HighLevel.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_HADDOCK show-extensions # # LANGUAGE MultiWayIf # | License : GPL-2 Maintainer : Stability : experimental Portability : portable High level operations on buffers. --------------------------------------------------------------------- Movement operation...
# LANGUAGE LambdaCase # Module : Yi . Buffer . HighLevel module Yi.Buffer.HighLevel ( atEof , atEol , atLastLine , atSol , atSof , bdeleteB , bdeleteLineB , bkillWordB , botB , bufInfoB , BufferFileInfo (..) , capitaliseWordB , deleteBlankLinesB ...
32076422d6bd31578964621359209a6042d8c683a5f8a6733ebe625f0f678f67
lpeterse/koka
Constructors.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Kind/Constructors.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Map constructor names to constructor info. ------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . Constructors, ConInfo(..) , constructorsEmpty , const...
6d399429eddc0fa084561654f297a4fc323d6f61115091689a59b0ae2e8210a5
jgoerzen/hpodder
Catchup.hs
hpodder component Copyright ( C ) 2006 - 2007 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This ...
null
https://raw.githubusercontent.com/jgoerzen/hpodder/bd08d07cc29893177efe8ef0e8be368657d56bbf/Commands/Catchup.hs
haskell
hpodder component Copyright ( C ) 2006 - 2007 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This ...
0840912227df68575b12bfb7cd23d85b7740c9c17af847b608eaed98f97bfed6
geophf/1HaskellADay
Exercise.hs
{-# LANGUAGE OverloadedStrings #-} module Y2021.M02.D15.Exercise where - Look at this directory structure ! wine - reviews - aa - aa - aa - aa wine - reviews - aa - aa - aa - ab - aa - aa wine - reviews - aa - aa - aa - ab - aa - ab - aa - aa ... 60 more files ... wine - reviews - ai - ab - ab wine - r...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2021/M02/D15/Exercise.hs
haskell
# LANGUAGE OverloadedStrings # } } - BONUS ------------------------------------------------------------------ Now that you've identified the problem areas, ... fix the file. -
module Y2021.M02.D15.Exercise where - Look at this directory structure ! wine - reviews - aa - aa - aa - aa wine - reviews - aa - aa - aa - ab - aa - aa wine - reviews - aa - aa - aa - ab - aa - ab - aa - aa ... 60 more files ... wine - reviews - ai - ab - ab wine - reviews - aj wine - reviews - ak ...
037c187de8fc3385a1a0197200e3bca0bf2b5091396b45e2e674a0adf5a52a2a
SamueleGiraudo/Bud-Music-Box
Program.ml
Author : * Creation : oct . 2020 * Modifications : oct . 2020 , apr . 2021 , jul . 2022 , aug . 2022 * Creation: oct. 2020 * Modifications: oct. 2020, apr. 2021, jul. 2022, aug. 2022 *) (* Names for multi-patterns and colored multi-patterns. *) type name = string (* Names for paths. *) type path = str...
null
https://raw.githubusercontent.com/SamueleGiraudo/Bud-Music-Box/45eae635fcbd85555f74d864b31ab25ee50e6bde/Sources/Program.ml
ocaml
Names for multi-patterns and colored multi-patterns. Names for paths. The different possible degree monoids. All the possible program instructions. A program is a list of instructions. The state is the internal memory during the execution of a program. Exception raised when a dynamic error is encountered. ...
Author : * Creation : oct . 2020 * Modifications : oct . 2020 , apr . 2021 , jul . 2022 , aug . 2022 * Creation: oct. 2020 * Modifications: oct. 2020, apr. 2021, jul. 2022, aug. 2022 *) type name = string type path = string type degree_monoid = |AddInt |Cyclic of int |Max of int type ins...
47d65ebec1b0125115233dc838fea15cf54d1ee39ab6a22e72c02147f9bc374c
gedge-platform/gedge-platform
rabbit_vhost_sup_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_vhost_sup_sup). -include_lib("rab...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_vhost_sup_sup.erl
erlang
This assumes that a single vhost termination should not shut down nodes unless the operator opts in. Do not try to start a vhost on booting peer nodes A vhost is considered alive if it's supervision tree is alive and saved in the ETS table This assumes that a single vhost termination should not shut down nodes ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_vhost_sup_sup). -include_lib("rabbit_co...
feb1d789b3a16165ab4706c95353c09773e337080ee895b1b36529f7a2f40f09
crclark/foundationdb-haskell
NetworkOption.hs
# OPTIONS_GHC -fno - warn - missing - signatures # -- | NOTE: This file is generated from < fdb.options> -- by the generate-options executable in this project. -- All documentation on the individual options in this namespace comes -- from FoundationDB's documentation in @fdb.options@. module FoundationDB.Options.Networ...
null
https://raw.githubusercontent.com/crclark/foundationdb-haskell/c8c9527ffa02dd2d08c15e23b09dd982a0b2a0ec/src/FoundationDB/Options/NetworkOption.hs
haskell
| NOTE: This file is generated from < fdb.options> by the generate-options executable in this project. All documentation on the individual options in this namespace comes from FoundationDB's documentation in @fdb.options@. | Deprecated | Deprecated | Enables trace output to a file in a directory of the clients c...
# OPTIONS_GHC -fno - warn - missing - signatures # module FoundationDB.Options.NetworkOption where import Data.ByteString.Char8 (ByteString) # DEPRECATED localAddress " Deprecated in C API " # localAddress "Deprecated in FDB C API" #-} # DEPRECATED clusterFile " Deprecated in C API " # clusterFile "Deprec...