_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
84ef60114a5be4f0265266085b10b3ea03e22fe3f8cf570a8347e5f61d0cf097
friemen/domaintypes
project.clj
(defproject domaintypes/lein-domaintypesdoc "1.0.1" :description "Creating documentation for domain data types (a.k.a records)." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :dependencies [[net.sourceforge.plantuml/plantuml "7965"] [do...
null
https://raw.githubusercontent.com/friemen/domaintypes/5f53a2fab6f06e5937b10883bea3ebf9556dec4d/lein-domaintypesdoc/project.clj
clojure
(defproject domaintypes/lein-domaintypesdoc "1.0.1" :description "Creating documentation for domain data types (a.k.a records)." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :dependencies [[net.sourceforge.plantuml/plantuml "7965"] [do...
8cfec9f850b132b1dfb92f19a2bfff5aef45341eb474edaf603c6237415fb302
valderman/haste-compiler
FD.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , AutoDeriveTypeable # , NoImplicitPrelude , BangPatterns , AutoDeriveTypeable #-} # OPTIONS_GHC -fno - warn - identities # -- Whether there are identities depends on ...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/ghc-7.10/base/GHC/IO/FD.hs
haskell
Whether there are identities depends on the platform # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.IO.FD License : see libraries/base/LICENSE Maintainer : Stability : internal Portability : non-portable Raw read/write oper...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , AutoDeriveTypeable # , NoImplicitPrelude , BangPatterns , AutoDeriveTypeable #-} # OPTIONS_GHC -fno - warn - identities # Copyright : ( c ) The University of...
ae3d22ea6db3c90b23162b04d7231488f86fa4ecb9b0d576e67256d0c3749a85
janestreet/core_unix
test_iovec.ml
open! Core open! Async open! Import open Unix.IOVec let print_of_string ?pos ?len str = let iovec = of_string ?pos ?len str in print_s [%sexp (iovec : string t)] ;; let%expect_test "[IOVec.of_string] on empty string" = print_of_string ""; [%expect {| ((buf "") (pos 0) (len 0)) |}]; print_of_st...
null
https://raw.githubusercontent.com/janestreet/core_unix/a051098a918b950e9d0a5da7248f1bbfb51388e5/core_unix/test/test_iovec.ml
ocaml
open! Core open! Async open! Import open Unix.IOVec let print_of_string ?pos ?len str = let iovec = of_string ?pos ?len str in print_s [%sexp (iovec : string t)] ;; let%expect_test "[IOVec.of_string] on empty string" = print_of_string ""; [%expect {| ((buf "") (pos 0) (len 0)) |}]; print_of_st...
48aab8712031a3c6cd74ac1dd8831e5590fa5e6c4e67bf4fae07c16a7082b995
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-classroom/gen/Gogol/Classroom/Courses/CourseWork/StudentSubmissions/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @classroom.courses.courseWork.studentSubmissions.patch@ method which the /See:/ 'newClassroomCoursesCourseWorkStudentSubmissionsPatch' smart constructor. | V1 error...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
07e143ae04c4065bb77bf0398bd2587117b8b7e6796c7bdc2f866f43f103ff0f
basho/yokozuna
yz_fuse.erl
%% ------------------------------------------------------------------- Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain ...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_fuse.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permission...
Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(yz...
76722fb7be53144dd8974ad3c5b9ec646bc817e49e46483e72dc6e0548a300e8
input-output-hk/plutus
Uniques.hs
module PlutusCore.Check.Uniques ( checkProgram , checkTerm , checkType , UniqueError (..) , AsUniqueError (..) ) where import PlutusCore.Analysis.Definitions import PlutusCore.Core import PlutusCore.Error import PlutusCore.Name import Control.Monad.Error.Lens import Control.Monad.Except impor...
null
https://raw.githubusercontent.com/input-output-hk/plutus/1f31e640e8a258185db01fa899da63f9018c0e85/plutus-core/plutus-core/src/PlutusCore/Check/Uniques.hs
haskell
module PlutusCore.Check.Uniques ( checkProgram , checkTerm , checkType , UniqueError (..) , AsUniqueError (..) ) where import PlutusCore.Analysis.Definitions import PlutusCore.Core import PlutusCore.Error import PlutusCore.Name import Control.Monad.Error.Lens import Control.Monad.Except impor...
2ad23d7d5d35f5409fee569970b3d7800205f2b2c72a419448683c1fd2197c73
janestreet/core_kernel
pairing_heap.ml
open! Core module Pool = Tuple_pool module Pointer = Pool.Pointer This pool holds nodes that would be represented more traditionally as : { [ type ' a t = | Empty | Heap of ' a * ' a t list ] } We will represent them as a left - child , right - sibling tree in a triplet ( va...
null
https://raw.githubusercontent.com/janestreet/core_kernel/b4746470fccd26e4bb7b021d25c6d54faa95a656/pairing_heap/src/pairing_heap.ml
ocaml
Exposing [private int] is a significant performance improvement, because it allows the compiler to skip the write barrier. * [allocate v ~pool] allocates a new node from the pool with no child or sibling * [free t ~pool] frees [t] for reuse. It is an error to access [t] after this. * a special [t] that repres...
open! Core module Pool = Tuple_pool module Pointer = Pool.Pointer This pool holds nodes that would be represented more traditionally as : { [ type ' a t = | Empty | Heap of ' a * ' a t list ] } We will represent them as a left - child , right - sibling tree in a triplet ( va...
88efcdeacb571ebc8e38d3d0245adb514a914eabab3ec0f90cfee4b0b5c32ec1
dparis/gen-phzr
request_animation_frame.cljs
(ns phzr.impl.accessors.request-animation-frame) (def request-animation-frame-get-properties {:force-set-time-out "forceSetTimeOut" :game "game" :is-running "isRunning"}) (def request-animation-frame-set-properties {:force-set-time-out "forceSetTimeOut" :game "game" :is-running "isRunning"})
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/request_animation_frame.cljs
clojure
(ns phzr.impl.accessors.request-animation-frame) (def request-animation-frame-get-properties {:force-set-time-out "forceSetTimeOut" :game "game" :is-running "isRunning"}) (def request-animation-frame-set-properties {:force-set-time-out "forceSetTimeOut" :game "game" :is-running "isRunning"})
2b97e5fd5e2d2a358b815d1f286c82ab25767e610e8debd8255a3e4a022f3ead
c-cube/smtlib-utils
smtlib_cat.ml
(** Simple parser/printer program *) module Trace = Catapult.Tracing module A = Smtlib_utils.V_2_6.Ast let progress = ref false let quiet = ref false type input = | Stdin | File of string let string_of_input = function | Stdin -> "<stdin>" | File f -> Printf.sprintf "file `%s`" f (* ANSI code for clearin...
null
https://raw.githubusercontent.com/c-cube/smtlib-utils/1ffbe021266e61f4ba14818ece7e4046688bbcbd/src/bin/smtlib_cat.ml
ocaml
* Simple parser/printer program ANSI code for clearing current line
module Trace = Catapult.Tracing module A = Smtlib_utils.V_2_6.Ast let progress = ref false let quiet = ref false type input = | Stdin | File of string let string_of_input = function | Stdin -> "<stdin>" | File f -> Printf.sprintf "file `%s`" f let _reset_line = "\x1b[2K\r" let process i : (_,_) result =...
72be598d213eb41274458cd4127618cd8e49b6db543db2f00032bf78bb8cbe77
haskell-works/avro
Writer.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # module Avro.Deconflict.A.Writer where import Data.Avro.Deriving deriveAvroFromByteString [r| { "type": "record", "name": "Outer", "fields": [ { "name": "name", "type": "stri...
null
https://raw.githubusercontent.com/haskell-works/avro/9eb4970fd72939a68aa6f947d3d2dc17280352f8/test/Avro/Deconflict/A/Writer.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Avro.Deconflict.A.Writer where import Data.Avro.Deriving deriveAvroFromByteString [r| { "type": "record", "name": "Outer", "fields": [ { "name": "name", "type": "string" }, { "name": "inner", "type": { "type": "record", ...
43fc7e35182a925ebaadc24b078aab1e284f0b3c3516cfd0597848e959f6cb4f
madvas/emojillionaire
home_page.cljs
(ns emojillionaire.components.home-page (:require [cljs-react-material-ui.icons :as icons] [cljs-react-material-ui.reagent :as ui] [emojillionaire.components.address-select-field :refer [address-select-field]] [emojillionaire.components.emoji :refer [emoji]] [emojillionaire.components.layout :refe...
null
https://raw.githubusercontent.com/madvas/emojillionaire/ee47e874db0c88b91985b6f9e72221f12d3010ff/src/cljs/emojillionaire/components/home_page.cljs
clojure
(ns emojillionaire.components.home-page (:require [cljs-react-material-ui.icons :as icons] [cljs-react-material-ui.reagent :as ui] [emojillionaire.components.address-select-field :refer [address-select-field]] [emojillionaire.components.emoji :refer [emoji]] [emojillionaire.components.layout :refe...
ece9b59c4bcd3c7af4c69c6df8668bcd8528bdc92c7a31c05ff02851073b9e01
moonlightdrive/ocaml-ec2
bundle.ml
* Copyright ( c ) 2014 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provinded that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/moonlightdrive/ocaml-ec2/06df35a4a29f1b51416013ddf126eeb43587dc11/ami/bundle.ml
ocaml
XML tree things XML attribute constants Manifest types and tree creation do you really want a foldl here constants TODO if things fail this digest pipe isn't being deleted but it needs to be! sha1 with private key name = "smth.img", m : manifest This is largely based on ocaml-tls [1] I need to find o...
* Copyright ( c ) 2014 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provinded that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
677a2750f09a07bb1a5b318dc51eed8ed389b116fe54c7fa247e01f529a8db98
ocaml-doc/odoc-parser
token.ml
This module contains the token type , emitted by the lexer , and consumed by the comment syntax parser . It also contains two functions that format tokens for error messages . the comment syntax parser. It also contains two functions that format tokens for error messages. *) type section_heading = [ ...
null
https://raw.githubusercontent.com/ocaml-doc/odoc-parser/370f1cf044d7b2b89de35f72bb168c5fca66864d/src/token.ml
ocaml
End of input. A right curly brace ([}]), i.e. end of markup. Other inline element markup. Leaf block element markup. List markup. Table markup. [`Minus] and [`Plus] are interpreted as if they start list items. Therefore, for error messages based on [Token.describe] to be accurate, formatted [`Minus] ...
This module contains the token type , emitted by the lexer , and consumed by the comment syntax parser . It also contains two functions that format tokens for error messages . the comment syntax parser. It also contains two functions that format tokens for error messages. *) type section_heading = [ ...
37b85733a50b35b2c65896f907e239aa7795ddf895c5169ac72abbfa59f761fc
gvannest/piscine_OCaml
jokes.ml
let selectJoke (a:string array) (len:int) = Random.self_init () ; let idx = Random.int len in a.(idx) let main (argc:int) (argv:string array) = match argc with | x when x <> 2 -> print_endline "Usage: ./a.out name_of_file" | _ -> begin let filename = argv.(1) in let channel = open_...
null
https://raw.githubusercontent.com/gvannest/piscine_OCaml/2533c6152cfb46c637d48a6d0718f7c7262b3ba6/d05/ex03/jokes.ml
ocaml
let selectJoke (a:string array) (len:int) = Random.self_init () ; let idx = Random.int len in a.(idx) let main (argc:int) (argv:string array) = match argc with | x when x <> 2 -> print_endline "Usage: ./a.out name_of_file" | _ -> begin let filename = argv.(1) in let channel = open_...
7834f0725c0aa468b7e0025416f9b5809675143471b20bbf6ba7b502d22e0576
albertoruiz/easyVision
siftgpu.hs
demo of siftgpu import Vision.GUI import ImagProc import ImagProc.GPU.SIFT main = do prepare runNT_ camera $ sift grayscale >>> observe "SIFT GPU" sh sh (x, feats) = Draw [ Draw (rgb x), color yellow feats ]
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/gpu/siftgpu.hs
haskell
demo of siftgpu import Vision.GUI import ImagProc import ImagProc.GPU.SIFT main = do prepare runNT_ camera $ sift grayscale >>> observe "SIFT GPU" sh sh (x, feats) = Draw [ Draw (rgb x), color yellow feats ]
0b2805127e8498ae030f862dbfef30ef6e87817179966b04106b6efbeb01481f
marcelosousa/llvmvf
Linkage.hs
------------------------------------------------------------------------------- Module : Language . . Linkage Copyright : ( c ) 2012 ------------------------------------------------------------------------------- module Language.LLVMIR.Extractor.Linkage where import qualified LLVM.FFI.Core as FFI im...
null
https://raw.githubusercontent.com/marcelosousa/llvmvf/c314e43aa8bc8bb7fd9c83cebfbdcabee4ecfe1b/src/Language/LLVMIR/Extractor/Linkage.hs
haskell
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Module : Language . . Linkage Copyright : ( c ) 2012 module Language.LLVMIR.Extractor.Linkage where import qualified LLVM.FFI.Core as FFI import qualified Language.LLVMIR as LL convertLinkage :: FFI.Linkage -> LL.Linkage convertLinkage FFI.ExternalLinkage = LL.ExternalLinkage conver...
858526b0101fcd7bfd76756be541931d601d4dc294aab379fe7a98fd2774c25d
clash-lang/clash-compiler
Signed.hs
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 , Myrtle Software Ltd , 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2013-2016, University of Twente, ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/53d32a6b063f17c8f3e637582624d3804c95a7cd/clash-prelude/src/Clash/Sized/Internal/Signed.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE MultiWayIf # # OPTIONS_HADDOCK show-extensions not-home # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # * Accessors ** Length information * Type classes ** BitPack ** Eq ** Bounded ** Integral ** Bits ** Resize bit * __NB__: The 'Num' operators perform @wrap-around@...
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 , Myrtle Software Ltd , 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2013-2016, University of Twente, ...
d3198c0d9b34d6930b64e5ee2b72c33834a6a46746d179e9abad5ef0194d10b9
owickstrom/komposition
VideoSpeed.hs
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Komposition.VideoSpeed where import Komposition.Prelude import qualified Prelude import Control.Lens import Komposition.Duration import Text.Printf newtype VideoSpeed = VideoSpeed { _unVideoSpeed :: Double ^ V...
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/VideoSpeed.hs
haskell
normal speed, 2.0 is double speed.
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Komposition.VideoSpeed where import Komposition.Prelude import qualified Prelude import Control.Lens import Komposition.Duration import Text.Printf newtype VideoSpeed = VideoSpeed { _unVideoSpeed :: Double ^ V...
a2454f5f6f075aa9d916e43b56769f6ce0e0b4fb7904058fc9f70656e2e9f253
robert-strandh/Cluffer
check-cursor-attached.lisp
(cl:in-package #:cluffer-base) ;;;; This file contains definitions of :BEFORE methods on generic functions that may take an attached CURSOR as one of the ;;;; arguments. The :BEFORE method checks that the cursor is attached and if not , signals an error of type CURSOR - DETACHED . ;;; NAME is the name of a gener...
null
https://raw.githubusercontent.com/robert-strandh/Cluffer/4aad29c276a58a593064e79972ee4d77cae0af4a/Base/check-cursor-attached.lisp
lisp
This file contains definitions of :BEFORE methods on generic arguments. The :BEFORE method checks that the cursor is attached NAME is the name of a generic function to which the method should be added. ARGUMENTS is a lambda list that may contain lambda-list specializer is added to it in the method lambda list ge...
(cl:in-package #:cluffer-base) functions that may take an attached CURSOR as one of the and if not , signals an error of type CURSOR - DETACHED . keywords . A parameter named CURSOR is treated specially in that a (defmacro check-cursor-attached (name arguments) (let ((args (substitute '(cursor cluffer:curso...
92bb1e604f38b48ffdb30701b4e69dcfc941264b15bbc86b46e3657763988fb4
gotthardp/lorawan-server
lorawan_admin_graph_server.erl
% Copyright ( c ) 2016 - 2019 < > % All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . % -module(lorawan_admin_graph_server). -export([init/2]). -export([allowed_methods/2]). -export([is_authorized/2]). -export([forbidden/2]). -export([content_types_provided/2]). -expor...
null
https://raw.githubusercontent.com/gotthardp/lorawan-server/1a5c0f2f4d8238a54a326c57a5eb0e6015821b1d/src/lorawan_admin_graph_server.erl
erlang
All rights reserved. end of file
Copyright ( c ) 2016 - 2019 < > Distributed under the terms of the MIT License . See the LICENSE file . -module(lorawan_admin_graph_server). -export([init/2]). -export([allowed_methods/2]). -export([is_authorized/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -e...
59b516df1bfd3dc4c44504b6b724a95147a66321908d0a00e143e19174770f38
msszczep/pequod-cljs
ex003.cljs
(ns pequod-cljs.ex003) (def ccs '({:effort 1, :num-workers 10, :utility-exponents [0.097014705505415 0.10598807831757415 0.12314564850702867 0.10565329719046188], :final-demands [0 0 0 0 0], :cy 9.243749495590524, :public-good-exponents [0.16562915966508993 0.08853638866870253], :pub...
null
https://raw.githubusercontent.com/msszczep/pequod-cljs/986ad97fa39d5b83828c07daf80655460b27d2dd/src/cljs/pequod_cljs/ex003.cljs
clojure
(ns pequod-cljs.ex003) (def ccs '({:effort 1, :num-workers 10, :utility-exponents [0.097014705505415 0.10598807831757415 0.12314564850702867 0.10565329719046188], :final-demands [0 0 0 0 0], :cy 9.243749495590524, :public-good-exponents [0.16562915966508993 0.08853638866870253], :pub...
59dbd91aa94da6978994aed81ded549278be1ed979e1c0db2a522f3934f3ab4f
thephoeron/black-stone
decompose-legacy.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- ;;;; file: lib/decompose-legacy.lisp Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > ;;;; See LICENSE for additional information. (in-package :black-stone) EOF
null
https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/lib/decompose-legacy.lisp
lisp
Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- file: lib/decompose-legacy.lisp See LICENSE for additional information.
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > (in-package :black-stone) EOF
a3cbf68c1a9d2e0b529c0f82891d855d9d2f56471bf4fa3f9a620bef64899328
hspec/hspec
Monad.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # # LANGUAGE ExistentialQuantification # module Test.Hspec.Core.Formatters.V1.Monad ( Formatter(..) , Item(..) , Result(..) , FailureReason (..) , FormatM , getSucces...
null
https://raw.githubusercontent.com/hspec/hspec/7f39bf44822d40e1c1cf0e61ae8c92397a0ba1b2/hspec-core/src/Test/Hspec/Core/Formatters/V1/Monad.hs
haskell
# LANGUAGE RankNTypes # | evaluated before each test group | evaluated after each test group | evaluated before each example | used to notify the progress of the currently evaluated example | evaluated after each successful example | evaluated after each failed example | evaluated after each pending example | e...
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # # LANGUAGE ExistentialQuantification # module Test.Hspec.Core.Formatters.V1.Monad ( Formatter(..) , Item(..) , Result(..) , FailureReason (..) , FormatM , getSuccessCount , getPendingCount , g...
58836ef70d8cf81559904e0f2b6b3e275564e60b69a9001bc2134aab98bdf282
aantron/dream
stream.mli
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) (* Note: this is not a stable API! *) type reader type writer type stream type buffer = (char, Bigarray.int8_unsigne...
null
https://raw.githubusercontent.com/aantron/dream/e20b0b4e183cab242a88f311f37621445aa9ba7d/src/pure/stream.mli
ocaml
Note: this is not a stable API! * A stream which matches each call of the reading function to one call of its writing functions. For example, calling {!Stream.flush} on a pipe will cause the reader to call its [~flush] callback. * A stream which is neither readable nor writable. * A read-only stream whose r...
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) type reader type writer type stream type buffer = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Arr...
218eec3d24cfe48ef13e83f40d7bf1b81ab4fbf9b70824f71386717b79f64b9a
hailstorm-hs/hailstorm
Downstream.hs
# LANGUAGE ScopedTypeVariables # module Hailstorm.Processor.Downstream ( runDownstream ) where import Control.Concurrent hiding (yield) import Control.Applicative import Control.Exception import Control.Monad import Control.Monad.STM import Data.ByteString.Char8 () import Data.Maybe import Data.IORef import Hailstorm...
null
https://raw.githubusercontent.com/hailstorm-hs/hailstorm/3c595336038a7a6417a31cb8b1fc38780f27c520/src/Hailstorm/Processor/Downstream.hs
haskell
Restore snapshot, if available. | Returns a Producer that receives a stream of payloads through a given | Builds a Pipe that receives a payload emitted from a handle and performs the monoidal append operation associated with the given processor. Determine next snapshot clock, if available.
# LANGUAGE ScopedTypeVariables # module Hailstorm.Processor.Downstream ( runDownstream ) where import Control.Concurrent hiding (yield) import Control.Applicative import Control.Exception import Control.Monad import Control.Monad.STM import Data.ByteString.Char8 () import Data.Maybe import Data.IORef import Hailstorm...
f0f3ec3a4e0d4b9274ab775450c1d6d81af83d21e26f35ff788f07c3748acb47
carl-eastlund/mischief
examples.rkt
#lang mischief (provide examples/evaluator make-example-evaluator define-example-evaluator define-example-form) (require scribble/eval racket/sandbox (for-syntax mischief)) (define-syntax (define-example-form stx) (syntax-parse stx [(_ name:id lang:module-path (~or spec:module-path ...
null
https://raw.githubusercontent.com/carl-eastlund/mischief/ce58c3170240f12297e2f98475f53c9514225825/mischief/examples.rkt
racket
#lang mischief (provide examples/evaluator make-example-evaluator define-example-evaluator define-example-form) (require scribble/eval racket/sandbox (for-syntax mischief)) (define-syntax (define-example-form stx) (syntax-parse stx [(_ name:id lang:module-path (~or spec:module-path ...
0d6d7df25af00d50aa48ea47ae6389d65daf1359024a78c7af4ef63057f7ace0
input-output-hk/cardano-wallet
StateSpec.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilie...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/18bc22ad0932e4e8b1b6eafee5edf99ac57126af/lib/wallet/test/unit/Cardano/Wallet/Primitive/Delegation/StateSpec.hs
haskell
Lots of weird things can happen when we consider concurrent user-actions on multiple wallet versions and rollbacks. Whatever happens, we should be able to recover using a single Properties | PointerUTxO should only be created/destroyed in very specific cases. Not the actual pointer For filtering away registra...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilie...
f2bf0d4f70f462853ae6691a8da45e58333613d8d15341b3f7d5bf237671b961
input-output-hk/cardano-sl
Param.hs
# LANGUAGE RecordWildCards # -- | Parameters used by blockchain generator. module Pos.Generator.Block.Param ( TxGenParams (..) , HasTxGenParams (..) , BlockGenParams (..) , HasBlockGenParams (..) ) where import Universum import Control.Lens.TH (makeClassy) impo...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/generator/src/Pos/Generator/Block/Param.hs
haskell
| Parameters used by blockchain generator. | Parameters for transactions payload generation. ^ Such (a, d), that there block will include some x ∈ [a, a+d) | Parameters for blockchain generation. Probably they come from the outside. ^ Secret data for the whole system. ^ Number of blocks to generate. ^ Transactio...
# LANGUAGE RecordWildCards # module Pos.Generator.Block.Param ( TxGenParams (..) , HasTxGenParams (..) , BlockGenParams (..) , HasBlockGenParams (..) ) where import Universum import Control.Lens.TH (makeClassy) import Data.Default (Default (..)) impor...
a3e2857733b93eca86470cf0e09b1eda7a612e3c7c267752c42be363cb5e3459
valderman/haste-compiler
ModRem.hs
module Tests.ModRem where # NOINLINE a # a :: Int a = 15 # NOINLINE b # b :: Int b = 27 runTest :: IO [Int] runTest = return [ a `mod` b, b `mod` a, a `rem` b, b `rem` a]
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/Tests/ModRem.hs
haskell
module Tests.ModRem where # NOINLINE a # a :: Int a = 15 # NOINLINE b # b :: Int b = 27 runTest :: IO [Int] runTest = return [ a `mod` b, b `mod` a, a `rem` b, b `rem` a]
2bea98b529e6f418d3ec029ce71dd9abaf38364714d84d6d4ac5978be9976423
gedge-platform/gs-broker
eetcd_auth_gen.erl
%%%------------------------------------------------------------------- @doc Behaviour to implement for eectd . Auth @private %% All detail documents please visit -io/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md %% @end %%%------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/gedge-platform/gs-broker/c4c1ad39e563537d46553eae1363317cf75aff26/broker-server/deps/eetcd/src/clients/eetcd_auth_gen.erl
erlang
------------------------------------------------------------------- All detail documents please visit -io/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md @end ------------------------------------------------------------------- @doc Unary RPC for service at path "/etcdserverpb.Auth/AuthEnable" @d...
@doc Behaviour to implement for eectd . Auth @private This module was generated on 2020 - 04 - 02T02:00:45 + 00:00 and should not be modified manually -module(eetcd_auth_gen). -export([auth_enable/1]). -export([auth_disable/1]). -export([authenticate/1]). -export([user_add/1]). -export([user_get...
d41b97de87dae81292dac99ff35dc9a55d3db5409c035ec3041801fe9e81b526
huangz1990/SICP-answers
57-single-operand.scm
57-single-operand.scm (define (single-operand? lst) (= (length lst) 1))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/57-single-operand.scm
scheme
57-single-operand.scm (define (single-operand? lst) (= (length lst) 1))
334c71cd85b4f3912d5130e7e636ab240748fdd39f3868d9014e6de23269e2ed
naveensundarg/prover
trie.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: trie.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software distrib...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/trie.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: trie.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific languag...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2012 . ...
b393e356d87b1d4441ce0f61cb5c8d81bb9ac38f4232898dabaab33e6437589c
OCamlPro/ocamlexc
envtype.ml
(***********************************************************************) (* *) (* Ocamlexc *) (* *) , projet Cris...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/typing/envtype.ml
ocaml
********************************************************************* Ocamlexc ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . type error = | Unbound_value of Path.t | Unbound_type of Path.t | Unbound_module of Path.t | Unbound_label...
6181e200bfdb34586988314e07b5ff2cba81ab3698950d857f436bff77daf220
cardmagic/lucash
syntax.scm
Copyright ( c ) 1993 - 2001 by and . See file COPYING . ; Rewrite-rule compiler (a.k.a. "extend-syntax") ; Example: ; ; (define-syntax or ; (syntax-rules () ; ((or) #f) ; ((or e) e) ; ((or e1 e ...) (let ((temp e1)) ; (if temp temp (or e ...)))))) (define-syntax syntax-rules (let () ...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/alt/syntax.scm
scheme
Rewrite-rule compiler (a.k.a. "extend-syntax") Example: (define-syntax or (syntax-rules () ((or) #f) ((or e) e) ((or e1 e ...) (let ((temp e1)) (if temp temp (or e ...)))))) Gensym these, if you like. Generate code to test whether input expression matches pattern +++ Generate code to ta...
Copyright ( c ) 1993 - 2001 by and . See file COPYING . (define-syntax syntax-rules (let () (define name? symbol?) (define (segment-pattern? pattern) (and (segment-template? pattern) (or (null? (cddr pattern)) (syntax-error "segment matching not implemented" pattern)))) (def...
79e4165635429cf619ba69a83b04aa157115b7b9337d348d2561d5206b3f3f83
donaldsonjw/bigloo
type.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Module / type.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Module/type.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The type clauses compilation. */ *===========================...
* serrano / prgm / project / bigloo / comptime / Module / type.scm * / * Author : * / * Creation : We d Jun 5 10:05:27 1996 * / * Last change : Fri Nov 18 07:10:35 2011 ( serrano ) * / * Co...
0c4e117ba1cf931f9b71ebb1e14ae7ba98d570321e84c13ea482b1e3e6f09310
GaloisInc/renovate
QEMU.hs
{-# LANGUAGE GADTs #-} | Utilities for working with user - space QEMU . module Refurbish.QEMU ( qemulator ) where import qualified Data.ByteString as BS import qualified Data.ElfEdit as Elf import Data.Maybe ( fromMaybe ) | Determines the proper QEMU user - space emulator to run for the -- sp...
null
https://raw.githubusercontent.com/GaloisInc/renovate/911e1796a66a5f27f6ba72fb6f8d65aef9a0536f/refurbish/src/Refurbish/QEMU.hs
haskell
# LANGUAGE GADTs # specified executable file.
| Utilities for working with user - space QEMU . module Refurbish.QEMU ( qemulator ) where import qualified Data.ByteString as BS import qualified Data.ElfEdit as Elf import Data.Maybe ( fromMaybe ) | Determines the proper QEMU user - space emulator to run for the qemulator :: FilePath -> IO...
98ddc9309e2cc1491d07bf89a34dd8b783348af32c80a9e796b7a3bc1eeaa5f9
clojournal/clojournal
matcher_combinator_test.clj
(ns com.clojournal.alpha.matcher-combinator-test (:require [clojure.test :refer :all] [matcher-combinators.test] [matcher-combinators.matchers :as m])) (deftest test-matching-with-explicit-matchers (is (match? (m/equals 37) (+ 29 8))) (is (match? (m/regex #"fox") "The quick brown fox jump...
null
https://raw.githubusercontent.com/clojournal/clojournal/483619cbd9a1dc544c9930cf135d10a3de91337b/test/com/clojournal/alpha/matcher_combinator_test.clj
clojure
A map is interpreted as an `embeds` matcher, which ignores
(ns com.clojournal.alpha.matcher-combinator-test (:require [clojure.test :refer :all] [matcher-combinators.test] [matcher-combinators.matchers :as m])) (deftest test-matching-with-explicit-matchers (is (match? (m/equals 37) (+ 29 8))) (is (match? (m/regex #"fox") "The quick brown fox jump...
9640fe543071aeb5425343cb7b8dc2431dcd11aeb26bf6d9788512eaabb316b3
amosr/folderol
Vector.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TemplateHaskell # module Bench.Audio.Vector where import Bench.Audio.Audio import qualified Data.Vector.Unboxed as Unbox runCompressor :: Unbox.Vector Double -> IO (Unbox.Vector Double) runCompressor !xs = do let squares = Unbox.map (\x -> x * x) xs let avg = Unbox.po...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Audio/Vector.hs
haskell
# LANGUAGE BangPatterns #
# LANGUAGE TemplateHaskell # module Bench.Audio.Vector where import Bench.Audio.Audio import qualified Data.Vector.Unboxed as Unbox runCompressor :: Unbox.Vector Double -> IO (Unbox.Vector Double) runCompressor !xs = do let squares = Unbox.map (\x -> x * x) xs let avg = Unbox.postscanl' expAvg 0 squares le...
7c60c03446b360a0bebd29f2465e035df089e3877035b4c491673fb3c312d73f
sealchain-project/sealchain
Param.hs
module Pos.Infra.DHT.Real.Param ( KademliaParams (..) , fromYamlConfig , MalformedDHTKey (..) ) where import qualified Data.ByteString.Base64.URL as B64 (decode) import qualified Data.ByteString.Char8 as B8 import Pos.Core.NetworkAddress (NetworkAddress) import Pos.Infra...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/infra/src/Pos/Infra/DHT/Real/Param.hs
haskell
^ Peers passed from CLI ^ Path to kademlia dump file ^ External address of node DHTKey must be a base64-url encoded valid DHTKey.
module Pos.Infra.DHT.Real.Param ( KademliaParams (..) , fromYamlConfig , MalformedDHTKey (..) ) where import qualified Data.ByteString.Base64.URL as B64 (decode) import qualified Data.ByteString.Char8 as B8 import Pos.Core.NetworkAddress (NetworkAddress) import Pos.Infra...
27a302c5fcf8318232c1406e81578088cc8c785de683bef7f4743f1c8d061645
sebnow/haskell-network-address
Address.hs
Copyright ( c ) 2011 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish ...
null
https://raw.githubusercontent.com/sebnow/haskell-network-address/9c5cffec6f43cc0d2fef8d12b3b123a27e879ed9/Data/Network/Address.hs
haskell
Copyright ( c ) 2011 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish ...
e58bb008dfdc6171f3a74e99da43c5e0ef23f373c46927de5cd80e5da161c20f
yawaramin/ocaml-decimal
calc.ml
(** Integer arithmetic functions used by [ln], [log10], [exp], and [pow]. *) let = Z.numbits let z2 = Z.of_int 2 let z10 = Z.of_int 10 let z100 = Z.of_int 100 let zeros = Str.regexp "0+$" (** Unreliable digits at the end of the [log10_digits] calculation *) let unreliable = Str.regexp "[^0]0*$" * [ decimal_lshift...
null
https://raw.githubusercontent.com/yawaramin/ocaml-decimal/2907175c02ca1bb117ee9703b8d642b721a3d6e8/lib/calc.ml
ocaml
* Integer arithmetic functions used by [ln], [log10], [exp], and [pow]. * Unreliable digits at the end of the [log10_digits] calculation * [sqrt_nearest n a] is the closest integer to the square root of the positive integer [n]. [a] is an initial approximation of the square root. Any positive integer will do ...
let = Z.numbits let z2 = Z.of_int 2 let z10 = Z.of_int 10 let z100 = Z.of_int 100 let zeros = Str.regexp "0+$" let unreliable = Str.regexp "[^0]0*$" * [ decimal_lshift_exact n e ] is [ Some ( n * 10 * * e ) ] if it 's an integer , else [ None ] . [None]. *) let decimal_lshift_exact n e = if Z.(equal n...
c63fc585f8622dd36ab875169fc494880f0a70b180d6cfc3fee8a71afd099974
softwarelanguageslab/maf
parikh.scm
(letrec ((server-init-actor (actor "server-init" () (init (p x) (send p ok) (become server-actor x)))) (server-actor (actor "server" (x) (init (p x) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/be58e02c63d25cab5b48fdf7b737b68b882e9dca/test/concurrentScheme/actors/contracts/soter/parikh.scm
scheme
(letrec ((server-init-actor (actor "server-init" () (init (p x) (send p ok) (become server-actor x)))) (server-actor (actor "server" (x) (init (p x) ...
7abee66d0d413df525e508cace29f92806e1086f4bc3c122656b6dd56a3bfb84
xmonad/xmonad-contrib
Azerty.hs
# OPTIONS_GHC -fno - warn - missing - signatures # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Config.Azerty Description : Fix some keybindings for users of French keyboard layouts . Copyright : ( c ) < > -- License : BSD -- Maintainer...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/0e14e1384511e3ddfe007fb841b0501702ebb436/XMonad/Config/Azerty.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Config.Azerty License : BSD Stability : stable Portability : unportable This module fixes some of the keybindings for the francophone among you who wiki. * Usage $usage $usage To use this module, st...
# OPTIONS_GHC -fno - warn - missing - signatures # Description : Fix some keybindings for users of French keyboard layouts . Copyright : ( c ) < > Maintainer : < > use an AZERTY keyboard layout . Config stolen from TeXitoi 's config on the module XMonad.Config.Azerty ( azertyConfig, azertyK...
92ad7a9c69e0db1a49976f37def2576e06ed722c4188dc30d768ba4352e106c3
tommaisey/aeon
var-saw.help.scm
(hear (let ((f (mul-add (lf-pulse kr (mce2 3 3.03) 0 0.3) 200 200)) (w (lin-lin (lf-tri kr 1 0) -1 1 0 1))) (mul (var-saw ar f 0 w) 0.1)))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/oscillators/var-saw.help.scm
scheme
(hear (let ((f (mul-add (lf-pulse kr (mce2 3 3.03) 0 0.3) 200 200)) (w (lin-lin (lf-tri kr 1 0) -1 1 0 1))) (mul (var-saw ar f 0 w) 0.1)))
4ffbbb4709ca269aac441c4146ef5c23e19b819299ee99457b3b2f28d3f75d5b
ProjectMAC/propagators
layered.scm
;;; ---------------------------------------------------------------------- Copyright 2010 and ;;; ---------------------------------------------------------------------- This file is part of Propagator Network Prototype . ;;; Propagator Network Prototype is free software ; you can ;;; redistribute it and/or ...
null
https://raw.githubusercontent.com/ProjectMAC/propagators/add671f009e62441e77735a88980b6b21fad7a79/explorations/circuits/layered.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- you can redistribute it and/or modify it under the terms of the GNU any later version. will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Copyright 2010 and This file is part of Propagator Network Prototype . General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) Propagator Network Prototype is distributed in the hope that it You should have received a copy of the GNU...
079297f7d860ff94e321f0df1078f6d66384a143dcf362823a92abff1562a365
tgass/macbeth
PositionParser.hs
module Macbeth.Fics.Parsers.PositionParser ( parsePosition ) where import Macbeth.Fics.Api.Api import Control.Arrow (second) import Data.List.Split import Data.Maybe parsePosition :: String -> [(Square, Piece)] parsePosition str = second fromJust <$> filter (\(_,p) -> isJust p) squares where rows =...
null
https://raw.githubusercontent.com/tgass/macbeth/c64b3cc9b641444688b14a2838ee554932f0e9e6/macbeth-fics/src/Macbeth/Fics/Parsers/PositionParser.hs
haskell
module Macbeth.Fics.Parsers.PositionParser ( parsePosition ) where import Macbeth.Fics.Api.Api import Control.Arrow (second) import Data.List.Split import Data.Maybe parsePosition :: String -> [(Square, Piece)] parsePosition str = second fromJust <$> filter (\(_,p) -> isJust p) squares where rows =...
4c3fbd501671f93859f0343e9dd85f95eadaa6cc5b18b6b668005ffdb27f924c
philnguyen/soft-contract
issue-10.rkt
#lang racket (require soft-contract/fake-contract) (define (factorial x) (if (zero? x) 1 (* x (factorial (sub1 x))))) (provide (contract-out [factorial (-> (>=/c 0) (>=/c 0))]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/issue-10.rkt
racket
#lang racket (require soft-contract/fake-contract) (define (factorial x) (if (zero? x) 1 (* x (factorial (sub1 x))))) (provide (contract-out [factorial (-> (>=/c 0) (>=/c 0))]))
67eea1d9e0516e09970ee5c4e1152a36a2a094ce45ef0da1bf379ae9631b153e
ocaml/ocaml
stackoverflow.ml
(* TEST flags = "-w -a" ocamlrunparam += "l=100000" *) let rec f x = if not (x = 0 || x = 10000 || x = 20000) then 1 + f (x + 1) else try 1 + f (x + 1) with Stack_overflow -> print_string "x = "; print_int x; print_newline(); raise Stack_overflow let _ = let p = Sys.opaque_identity (r...
null
https://raw.githubusercontent.com/ocaml/ocaml/f16f0bd296d96a8b34b74f47f8270612d38c91e2/testsuite/tests/runtime-errors/stackoverflow.ml
ocaml
TEST flags = "-w -a" ocamlrunparam += "l=100000" GPR#1289
let rec f x = if not (x = 0 || x = 10000 || x = 20000) then 1 + f (x + 1) else try 1 + f (x + 1) with Stack_overflow -> print_string "x = "; print_int x; print_newline(); raise Stack_overflow let _ = let p = Sys.opaque_identity (ref 42) in begin try ignore(f 0) with Stack_ove...
8adffc804984c892e583a75a765ca3de34bfc3d07aa3e97e4dc7e3bdf23409ed
plum-umd/c-strider
llvmgen.ml
Copyright ( c ) 2008 Intel Corporation * All rights reserved . * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * Redistributions of source code must retain the above copyright * notice , th...
null
https://raw.githubusercontent.com/plum-umd/c-strider/3d3a3743bc28456eb6d50e01805ce484ab3c04e6/tools/cil-1.3.7/src/ext/llvmgen.ml
ocaml
unique label identifying this block predecessor blocks, use llvmDestinations to get successors for use before SSA transformation this could be made into a real, distinct type True if t can be the type of an LLVM local Return the LLVM global for global variable 'vi' Build LLVM instruction 'res' = 'op' 'args...
Copyright ( c ) 2008 Intel Corporation * All rights reserved . * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * Redistributions of source code must retain the above copyright * notice , th...
b245ca8d8c9ebb13195882ef8c0ff6bf3476363e47694197c4f0f9f53e74cb84
j-mie6/ParsleyHaskell
Extended.hs
# LANGUAGE FlexibleContexts # module Shared.Parsec.Extended ( module Text.Parsec, module Data.Functor, module Control.Monad, module Control.Monad.Identity, module Control.Applicative, module Shared.Parsec.Extended ) where import Text.Parsec hiding (token) import Data.Functor (void, ($>)) impo...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley/benchmarks/Shared/Parsec/Extended.hs
haskell
# LANGUAGE FlexibleContexts # module Shared.Parsec.Extended ( module Text.Parsec, module Data.Functor, module Control.Monad, module Control.Monad.Identity, module Control.Applicative, module Shared.Parsec.Extended ) where import Text.Parsec hiding (token) import Data.Functor (void, ($>)) impo...
db2371cc7dbc68c000b25f5946521898f32bd8386b9e54685e4c2e7fa5ae12e5
achirkin/vulkan
VK_EXT_validation_features.hs
# OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_EXT_validation_features * Vulkan extension : @VK_EXT_validation_features@ -- | -...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_validation_features.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ author: @LUNARG@ type: @instance@ Extension number: @248@ > #include "vk_platform.h"
# OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_EXT_validation_features * Vulkan extension : @VK_EXT_validation_features@ contact : module Graphics.Vulkan.Marshal, VkApplicationInfo, AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBool32(..), ...
e8450b6bad1b08aa0836f8e5327e080d72411f41a0277ece73143af93dd38e53
dbuenzli/remat
ddescr.mli
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-data/ddescr.mli
ocaml
* {1 Base types} * Integer range ({{:../describe.html#integer_range}spec}) * Document references ({{:../describe.html#doc_ref}spec}) * Variable environments ({{:../describe.html#var_envs}spec}) * Repository ({{:../describe.html#repo}spec}) * Headings ({{:../describe.html#headings}spec}) * Index ({{:../describe.ht...
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
46d7077a7548ceef187994ba1a71882a7fb17f1ef831808a73cd3990fccf2656
ekmett/hask
Foldable.hs
{-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE DataKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE LambdaCase # {-# LANGUAGE BangPatterns #-} # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleIns...
null
https://raw.githubusercontent.com/ekmett/hask/54ea964af8e0c1673ac2699492f4c07d977cb3c8/old/src/Hask/Foldable.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE BangPatterns # # LANGUAGE ConstraintKinds # ------------------------------------------------------------------ | License : BSD3 Stability : experimental Portability: non-portable ------------------------------------------------------------------ * Foldable...
# LANGUAGE PolyKinds # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # # LANGUAGE LiberalTypeSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUA...
b7e2e46b3639662981848f354a05573cc924925e7ad69e9b64e860955903f8ef
anurudhp/CPHaskell
c.hs
import Control.Arrow ((>>>)) import Control.Monad (filterM) main :: IO () main = interact $ words >>> head >>> solve >>> show solve :: String -> Int solve s | null subs = -1 | otherwise = length s - maximum subs where subs = map length . filter ((== 0) . (`mod` 3) . read) . filter (not . n...
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/contests/atcoder/abc182/c.hs
haskell
import Control.Arrow ((>>>)) import Control.Monad (filterM) main :: IO () main = interact $ words >>> head >>> solve >>> show solve :: String -> Int solve s | null subs = -1 | otherwise = length s - maximum subs where subs = map length . filter ((== 0) . (`mod` 3) . read) . filter (not . n...
c6ba3638c710c0ff9b9540cca835388a45c742f95fa45ebdebc388e5ac2773af
Plutonomicon/plutarch-plutus
Types.hs
module Plutarch.Pretty.Internal.Types ( PrettyCursor (..), PrettyState (..), PrettyMonad, forkState, normalizeCursor, specializeCursor, memorizeName, insertName, insertBindings, builtinFunAtRef, nameOfRef, ) where import Control.Monad.Reader (ReaderT, (<=<)) import Control.Monad.ST (ST) import Co...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/Plutarch/Pretty/Internal/Types.hs
haskell
| Insert a fresh binding onto the name map, i.e a name at index 0 - incrementing all other indices.
module Plutarch.Pretty.Internal.Types ( PrettyCursor (..), PrettyState (..), PrettyMonad, forkState, normalizeCursor, specializeCursor, memorizeName, insertName, insertBindings, builtinFunAtRef, nameOfRef, ) where import Control.Monad.Reader (ReaderT, (<=<)) import Control.Monad.ST (ST) import Co...
fe5ebccc6199696a447f5251809e379d186394b9d634e503f4ad9817ddcd8f7c
ucsd-progsys/nate
lexical.mli
(*************************************************************************) (* *) (* Objective Caml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/browser/lexical.mli
ocaml
*********************************************************************** Objective Caml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ I d : lexical.mli , v 1.6 2001/12/...
84365bbfb9e49d64b9a4d3a06d499a7ac67c803e6d26e92e0b6f37f63c8ba5f1
bldl/magnolisp
lib-modules-3.rkt
#lang magnolisp/2014 (define (eight) 8) (define-syntax-rule (eight-m) (eight)) (provide eight-m)
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/lib-modules-3.rkt
racket
#lang magnolisp/2014 (define (eight) 8) (define-syntax-rule (eight-m) (eight)) (provide eight-m)
109777dde6fd6821af5b7aa92d753b2283c514da949e7dbf9fc8551899284646
c4-project/c4f
flow_dead.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/test/flow_dead.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
c360ed39cb8441f0f5dd6919c824a9726ed88c0a725af7f9b7d91c740eba3e41
erlang/otp
gen_event_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/bdd6b699ab41af2d8f644bfa427f1a2b6f71db59/lib/stdlib/test/gen_event_SUITE.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(gen_event_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, suite/0,groups/0,init_per_sui...
96d9388b97a33cd010055564189e0c6d3fc0c9649d6f1d0d980dd2226a7c02fe
hkoktay/the-reasoned-schemer
chapter04.scm
Chapter 4 : Members only (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 36 , Chaper 3 (define eq-car? (lambda (l x) (eq? (car l) x))) Page 47 (define mem (lambda (x l) (cond ((null? l) #f) ((eq-car? l x) l) (else (mem x (cdr l)))))) Page 47 (test "mem" (mem '...
null
https://raw.githubusercontent.com/hkoktay/the-reasoned-schemer/847d1e4a5a1bb777604b02828b3497be6de8d189/chapter04.scm
scheme
1.revision rembero: [s-exp] list list -> [goal] 1.revision
Chapter 4 : Members only (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 36 , Chaper 3 (define eq-car? (lambda (l x) (eq? (car l) x))) Page 47 (define mem (lambda (x l) (cond ((null? l) #f) ((eq-car? l x) l) (else (mem x (cdr l)))))) Page 47 (test "mem" (mem '...
eb395d8e341c2f42c619188f737167983eb6a038ba840e1ee976ea78d91222f8
bhaskara/cl-graph
test-all.lisp
(in-package :cl-user) (import 'cl-test::load-relative) (load-relative "test-graph.lisp") (load-relative "test-tree.lisp")
null
https://raw.githubusercontent.com/bhaskara/cl-graph/c5ee940c48a62b90cd76d83d3207395b55d1668d/test/test-all.lisp
lisp
(in-package :cl-user) (import 'cl-test::load-relative) (load-relative "test-graph.lisp") (load-relative "test-tree.lisp")
8afad8d5b490c56aa5a9cbd2883998e803e1ddea8d2f96b0c400899317acd0a5
amnh/poy5
fasta.mli
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . * \ ( * Copyright ( C ) 2011 , , , Ward Wheeler (* Copyright (C) 2011 Andrés Varón, Lin Hong, Nicholas Lucaroni, Ward Wheeler*) and the American Museum of Natural History . (* ...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/fasta.mli
ocaml
Copyright (C) 2011 Andrés Varón, Lin Hong, Nicholas Lucaroni, Ward Wheeler This program is free software; you can redistribute it and/or modify (at your option) any later version. ...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . * \ ( * Copyright ( C ) 2011 , , , Ward Wheeler and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Found...
1d26aa1360e0962c43a69f20081c310e9ecd921b425376d3001d1b4c994b5a9c
kunstmusik/pink
demo3.clj
;; Test of FM synthesis (ns pink.demo.demo3 (:require [pink.engine :refer :all] [pink.config :refer :all] [pink.envelopes :refer [env]] [pink.oscillators :refer [sine sine2]] [pink.util :refer [mul sum const create-buffer getd setd! arg shared let-s]])) (defn fm-synt...
null
https://raw.githubusercontent.com/kunstmusik/pink/7d37764b6a036a68a4619c93546fa3887f9951a7/src/demo/pink/demo/demo3.clj
clojure
Test of FM synthesis
(ns pink.demo.demo3 (:require [pink.engine :refer :all] [pink.config :refer :all] [pink.envelopes :refer [env]] [pink.oscillators :refer [sine sine2]] [pink.util :refer [mul sum const create-buffer getd setd! arg shared let-s]])) (defn fm-synth [freq] (let-s [e (en...
92adfd007b0700e25eb3476e97d7f6cd1b824932999a8503696d35abe2b1408e
clj-commons/iapetos
lazy_test.clj
(ns iapetos.core.lazy-test (:require [clojure.test.check [generators :as gen] [properties :as prop] [clojure-test :refer [defspec]]] [clojure.test :refer :all] [iapetos.test.generators :as g] [iapetos.core :as prometheus] [iapetos....
null
https://raw.githubusercontent.com/clj-commons/iapetos/0fecedaf8454e17e41b05e0e14754a311b9f4ce2/test/iapetos/core/lazy_test.clj
clojure
(ns iapetos.core.lazy-test (:require [clojure.test.check [generators :as gen] [properties :as prop] [clojure-test :refer [defspec]]] [clojure.test :refer :all] [iapetos.test.generators :as g] [iapetos.core :as prometheus] [iapetos....
0f4eaf758dd36fe8b44081202992a15be023494c00051e128903da2306f2c699
kupl/LearnML
original.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((exp : aexp), (env : string)) : aexp = match exp with | Const a -> Const 0 | Var x -> if x = env then Const 1 else Var x | Power (s, i) -> if s = env then Times [ Const i; ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub92/original.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((exp : aexp), (env : string)) : aexp = match exp with | Const a -> Const 0 | Var x -> if x = env then Const 1 else Var x | Power (s, i) -> if s = env then Times [ Const i; ...
8a9aa34ed6262966a4bbda4dbbe97e4ba41e4894700bdb2327d1feccba765ad0
rm-hull/project-euler
euler134.clj
EULER # 134 ;; ========== Consider the consecutive primes p1 = 19 and p2 = 23 . It can be verified that 1219 is the smallest number such that the last digits are formed by ;; p1 whilst also being divisible by p2. ;; In fact , with the exception of p1 = 3 and p2 = 5 , for every pair of ;; consecutive primes, p2 ...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler134.clj
clojure
========== p1 whilst also being divisible by p2. consecutive primes, p2 > p1, there exist values of n for which the last of these values of n.
EULER # 134 Consider the consecutive primes p1 = 19 and p2 = 23 . It can be verified that 1219 is the smallest number such that the last digits are formed by In fact , with the exception of p1 = 3 and p2 = 5 , for every pair of digits are formed by is divisible by p2 . Let S be the smallest Find sum(S ) ...
5831737943e8a2fa340f0c70c38daadb19b0810f0874009dee16f711318b4d01
WhatsApp/erlt
typed_gb_trees.erl
-file("typed_libs/src/typed_gb_trees.erlt", 1). -module(typed_gb_trees). -eqwalizer_unchecked([]). -export([empty/0, is_empty/1, size/1, lookup/2, get/2, insert/3, update/3, enter/3, delete/2, delete_any/2, balance/1, ...
null
https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/tests/typed_libs/ir-spec/typed_gb_trees.erl
erlang
-file("typed_libs/src/typed_gb_trees.erlt", 1). -module(typed_gb_trees). -eqwalizer_unchecked([]). -export([empty/0, is_empty/1, size/1, lookup/2, get/2, insert/3, update/3, enter/3, delete/2, delete_any/2, balance/1, ...
4227a20e9a5a331078f90b70e450a6fc97a9412f677396828c30efefc817104d
synrc/mad
mad_escript.erl
-module(mad_escript). -description("ESCRIPT bundles"). -compile(export_all). main(N) -> App = filename:basename(case N of [] -> mad_utils:cwd(); E -> E end), mad_release:resolve([]), DefaultEmuArgs = "+pc unicode", EmuArgs = case file:consult( "escript.config" ) of { ok, Terms } -> proplists:get...
null
https://raw.githubusercontent.com/synrc/mad/b8811aebd662c2a281c9f87642b5cab9321cf543/src/package/mad_escript.erl
erlang
[ io:format("Escript: ~ts~n",[File]) || { File, _ } <- Files ],
-module(mad_escript). -description("ESCRIPT bundles"). -compile(export_all). main(N) -> App = filename:basename(case N of [] -> mad_utils:cwd(); E -> E end), mad_release:resolve([]), DefaultEmuArgs = "+pc unicode", EmuArgs = case file:consult( "escript.config" ) of { ok, Terms } -> proplists:get...
6ab653867e91a392d9940692dfd16b4b5754a813044815a611556dc60b575c93
manuel-serrano/hop
video.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / widget / video.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/widget/video.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / widget / video.scm * / * Author : * / * Creation : We d Aug 29 08:37:12 2007 * / * Last change : Thu Apr 18 07:59:58 2019 ( serrano ) * / * Cop...
20864662cb1ac747e9da9c32bb19a0f91c231d52aa8b5604f80f3528c1a0c8cc
polyfy/polylith
creators.clj
(ns polylith.clj.core.shell.candidate.creators (:require [polylith.clj.core.util.interface.color :as color])) (defn with-val [candidate value] (cond (map? value) (cond-> (merge candidate value)) (keyword? value) (assoc candidate :top-group-id value) (string? value) (assoc candidate :parsed-value value)...
null
https://raw.githubusercontent.com/polyfy/polylith/36b75565032dea88ee20cdc0bc5af18f6f4d4cf4/components/shell/src/polylith/clj/core/shell/candidate/creators.clj
clojure
(ns polylith.clj.core.shell.candidate.creators (:require [polylith.clj.core.util.interface.color :as color])) (defn with-val [candidate value] (cond (map? value) (cond-> (merge candidate value)) (keyword? value) (assoc candidate :top-group-id value) (string? value) (assoc candidate :parsed-value value)...
e09d2efbc22ae339bc31b1796f1dd7733f6b9edd1175cd7c28bbc1efdddaa1d7
protz/mezzo
Exports.ml
(*****************************************************************************) (* Mezzo, a programming language based on permissions *) Copyright ( C ) 2011 , 2012 and (* *) (* This program is free softwar...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/typing/Exports.ml
ocaml
*************************************************************************** Mezzo, a programming language based on permissions This program is free software: you can redistribute it and/or modify (at your optio...
Copyright ( C ) 2011 , 2012 and it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module T = TypeCore type value_export...
f519fdb636627b387f5fb5e2cca5fc90e187f9d7e7dc6ba6904f6e3641ae4e1d
higherkindness/mu-haskell
GRpc.hs
# language DataKinds # {-# language KindSignatures #-} {-# language OverloadedStrings #-} # language TemplateHaskell # | Description : Quasi - quoters for gRPC files Read @.proto@ files as a ' Mu . Schema . Definition . Schema ' and a set of ' Service 's . Description : Quasi-quoters for gRPC fi...
null
https://raw.githubusercontent.com/higherkindness/mu-haskell/3d0a80e3743fc2145897abc01266788d52b27573/adapter/protobuf/src/Mu/Quasi/GRpc.hs
haskell
# language KindSignatures # # language OverloadedStrings # | Reads a @.proto@ file and generates: * A 'Mu.Schema.Definition.Schema' with all the message * A 'Service' declaration for each service in the file, where the name is obtained by applying the function
# language DataKinds # # language TemplateHaskell # | Description : Quasi - quoters for gRPC files Read @.proto@ files as a ' Mu . Schema . Definition . Schema ' and a set of ' Service 's . Description : Quasi-quoters for gRPC files Read @.proto@ files as a 'Mu.Schema.Definition.Schema' and a set ...
e32711377040f82ce070038473248174eee5dd64be4a66d49e45f5e05d486c92
basho/riak_kv
tracer_gc_latency.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/priv/tracers/tracer_gc_latency.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module...
87f6378b8ddf51620ead6c517995e8f28b170d975eab2dcd354adacefc168a88
robrix/starlight
Lines.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # module UI.Graph.Lines ( shader , U(..) , matrix_ , colour_ , V(..) , Frag(..) ) where import Control.Lens (Lens') import Data.Generics.Product.Fields import GHC.Generics (Generic) import GL.Shader.DSL import UI....
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/UI/Graph/Lines.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # module UI.Graph.Lines ( shader , U(..) , matrix_ , colour_ , V(..) , Frag(..) ) where import Control.Lens (Lens') import Data.Generics.Product.Fields import GHC.Generics (Generic) import GL.Shader.DSL import UI....
cbfb53f9e52afaee5476608efbcdaea03896b94526aea42ad6e5403126eae871
Fresheyeball/Shpadoinkle
Documentation.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Shpadoinkle.Website.Page.Documentation where import Data....
null
https://raw.githubusercontent.com/Fresheyeball/Shpadoinkle/5d545b3e710cbfef1d07fa2a9da031a933b43346/website/Shpadoinkle/Website/Page/Documentation.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Shpadoinkle.Website.Page.Documentation where import Data.Maybe (maybeToList) import D...
5f314903de8ed86e413704745f683d0461a313b12172b0d8e0c3f4d220458af1
openworkload/swm-core
wm_json.erl
-module(wm_json). -export([decode/1]). %% ============================================================================ %% API %% ============================================================================ -spec decode(string() | binary()) -> {ok, term()} | {error, term()}. decode(S) -> do_decode(S). %% =======...
null
https://raw.githubusercontent.com/openworkload/swm-core/eeb9facc4b6f13f3dcb6c892ef2fc8221c03f283/src/lib/wm_json.erl
erlang
============================================================================ API ============================================================================ ============================================================================ Implementation functions ======================================================...
-module(wm_json). -export([decode/1]). -spec decode(string() | binary()) -> {ok, term()} | {error, term()}. decode(S) -> do_decode(S). -spec do_decode(string() | binary()) -> {ok, term()} | {error, term()}. do_decode(S) -> try mochijson2:decode(S) catch _:Error -> {error, Er...
ed26ff6a253a2fb013d942d106f077b3c99fb8535682f9c7ea7e2c571b0a7929
footprintanalytics/footprint-web
macros.clj
(ns metabase.mbql.schema.macros (:require [metabase.mbql.schema.helpers :as metabase.mbql.schema.helpers])) (defn- stringify-names [arg-names-and-schemas] (reduce concat (for [[arg-name schema] (partition 2 arg-names-and-schemas)] [(name arg-name) (if (and (list? schema) ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/shared/src/metabase/mbql/schema/macros.clj
clojure
define symbol `ag:+` to be used for a `[:+ ...]` clause"
(ns metabase.mbql.schema.macros (:require [metabase.mbql.schema.helpers :as metabase.mbql.schema.helpers])) (defn- stringify-names [arg-names-and-schemas] (reduce concat (for [[arg-name schema] (partition 2 arg-names-and-schemas)] [(name arg-name) (if (and (list? schema) ...
e09ae9cc7b25aee36531258d131a1ae2370968318ffa4a3d7cd1b8ff7655aa70
nikita-volkov/rerebase
Types.hs
module Data.Profunctor.Types ( module Rebase.Data.Profunctor.Types ) where import Rebase.Data.Profunctor.Types
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Profunctor/Types.hs
haskell
module Data.Profunctor.Types ( module Rebase.Data.Profunctor.Types ) where import Rebase.Data.Profunctor.Types
46204428bbe7be24b19f81013c0f57dd3261a1d93629a1cbb8eedbd8fab58958
nvim-treesitter/nvim-treesitter
injections.scm
(content) @html
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/179a06bc8b4b028960dc105feceb5a4b1cbcb41d/queries/twig/injections.scm
scheme
(content) @html
e53f3725d56b02480fb04f1b40c92788512121234235cfa069f7c08fdc1233f7
alphaHeavy/llvm-general-typed
x.hs
# LANGUAGE DataKinds # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Monad import Data.Int import Data.Proxy import qualified LLVM.General.AST as AST import LLVM.General.PrettyPrint (showPretty) import LLVM.General.Typed import LLVM...
null
https://raw.githubusercontent.com/alphaHeavy/llvm-general-typed/75c39111f7fc685aacb3eaf1b2948451e7222e0b/llvm-general-typed-pure/x.hs
haskell
_x :: Function C Int64 <- namedFunction_ "bar" $ mdo
# LANGUAGE DataKinds # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Monad import Data.Int import Data.Proxy import qualified LLVM.General.AST as AST import LLVM.General.PrettyPrint (showPretty) import LLVM.General.Typed import LLVM...
a1d01625186a7ed836fde1b1e1ca6432d72c047d128af0d1190effd2d4715db8
ndmitchell/tagsoup
Tree.hs
| /NOTE/ : This module is preliminary and may change at a future date . This module is intended to help converting a list of tags into a tree of tags . /NOTE/: This module is preliminary and may change at a future date. This module is intended to help converting a list of tags into a t...
null
https://raw.githubusercontent.com/ndmitchell/tagsoup/e116d3b965e4f149581bd55e45a05661b1113536/src/Text/HTML/TagSoup/Tree.hs
haskell
| A tree of 'Tag' values. | A 'TagOpen'/'TagClose' pair with the 'Tag' values in between. | Any leaf node | Convert a list of tags into a tree. This version is not lazy at | Build a 'TagTree' from a string. | Build a 'TagTree' from a string, specifying the 'ParseOptions'. | Flatten a 'TagTree' back to a list of ...
| /NOTE/ : This module is preliminary and may change at a future date . This module is intended to help converting a list of tags into a tree of tags . /NOTE/: This module is preliminary and may change at a future date. This module is intended to help converting a list of tags into a t...
16454d018de650a01d6001bf8ba77eef8137c087ed45dcbfcd3323cb18d90ec4
input-output-hk/ouroboros-network
RunOnRepl.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingVia #-} # LANGUAGE DuplicateRecordFields # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE Type...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/18ea4c3f02aed0df15a63317a4b74d1af4560191/ouroboros-consensus-test/test-storage/Test/Ouroboros/Storage/ChainDB/StateMachine/Utils/RunOnRepl.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # | Collection functions and exported symbols to be able to run a To test a counterexample first fire up the ...
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # ' quickcheck - state - machine ' counterexample using the GHC repl . ' FlexibleContexts ' and ' TypeFamilies ' extensions , and set multi - line input . > quickCheckCmdsL...
48e879538159513c37927d0ba84ea80325956806827df89643391cfd627a4e10
expipiplus1/vulkan
Frame.hs
# LANGUAGE DerivingVia # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # -- | Defines the 'Frame' type, most interesting operations regarding 'Frame's -- can be found in 'MonadFrame' module Frame where import AccelerationStructure import Camera import Cleanup import ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/examples/rays/Frame.hs
haskell
# LANGUAGE DeriveAnyClass # | Defines the 'Frame' type, most interesting operations regarding 'Frame's can be found in 'MonadFrame' | Must be positive, duh | All the information required to render a single frame ^ Which number frame is this ^ A timeline semaphore which increments to fIndex when this frame is don...
# LANGUAGE DerivingVia # # LANGUAGE DeriveGeneric # module Frame where import AccelerationStructure import Camera import Cleanup import Control.Arrow ( Arrow((&&&)) ) import Control.Monad ( zipWithM ) import Control.Monad.IO...
c9d007e3a095185dd35b4cf4cdc3d371ce826ceb15e3a519afc988020b4d6672
dwayne/haskell-programming
Identity.hs
module Identity where -- Exercise: Identity Instance newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity (f a) instance Applicative Identity where pure a = Identity a (Identity f) <*> (Identity a) = Identity (f a)
null
https://raw.githubusercontent.com/dwayne/haskell-programming/d08679e76cfd39985fa2ee3cd89d55c9aedfb531/ch17/Identity.hs
haskell
Exercise: Identity Instance
module Identity where newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity (f a) instance Applicative Identity where pure a = Identity a (Identity f) <*> (Identity a) = Identity (f a)
c6d23caf205b07cd17d6f1a27ec835e4d49d1d30f423872c08872f30afa9c1ec
ocaml/oasis
BaseCheck.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/base/BaseCheck.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
b5b656d764523c07e46b48b4be28596d19c8972b771de5b762e060bf09f15002
WhatsApp/power_shell
power_shell_cache_SUITE.erl
%%%------------------------------------------------------------------- @author < > ( c ) WhatsApp Inc. and its affiliates . All rights reserved . @private %%%------------------------------------------------------------------- -module(power_shell_cache_SUITE). -author(""). %%----------------------------------...
null
https://raw.githubusercontent.com/WhatsApp/power_shell/12b25ed66963a930a25ff341a26cd8cbba9bff56/test/power_shell_cache_SUITE.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- -------------------------------------------------------------------- Common Test headers Include stdlib header to enable ?assert() for readable output into private data dir ensure ...
@author < > ( c ) WhatsApp Inc. and its affiliates . All rights reserved . @private -module(power_shell_cache_SUITE). -author(""). -export([all/0, suite/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2 ]). -export([get_module/0, get_module/1, bad_calls/0, ba...
e631493176bb303cc7abeee7689c0dfe62dc117bcd3d61c4a7a9e47143057987
halgari/deep-walking-macros
project.clj
(defproject deep-walking-macro "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"]])
null
https://raw.githubusercontent.com/halgari/deep-walking-macros/da0df7d6e816592d862889ada185d101f87341fc/project.clj
clojure
(defproject deep-walking-macro "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"]])
e7f9bd9033d65023f7f2c76962ad70d3e180000a7bbe62ed36b902f4e5362be7
patrikja/autosar
ARSim.hs
Copyright ( c ) 2014 - 2016 , , , , and All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyr...
null
https://raw.githubusercontent.com/patrikja/autosar/2b8d3a22eb99812dca645a1c3c18ce18fbf6d539/ARSim/arsim/AUTOSAR/ARSim.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveFunctor # # LANGUAGE GADTs # # LANGUAGE RankNTypes # TODO: Refine exports ----------------------------------------------------------- Async channel of "a" data Parameter q above Parameter r above * Simulator ...
Copyright ( c ) 2014 - 2016 , , , , and All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyr...
91c44719a4ac2851849246bc504b057a692851597a7a0d9dfff218dff03b7d83
fredfeng/CS162
test.ml
open Ast open Eval (* Unit test utilities *) let texpr = Alcotest.testable (fun ppf -> fun e -> Fmt.pf ppf "%s" (string_of_expr e)) (=) ;; (* Helper function to parse an expression *) let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) (* Helper function to check evaluation of an e...
null
https://raw.githubusercontent.com/fredfeng/CS162/3e868a98e2b2b1ffc749a46a98b62df75ca4d46c/homework/hw4/test.ml
ocaml
Unit test utilities Helper function to parse an expression Helper function to check evaluation of an expression Helper function to check evaluation of an expression (given a string of the expression) Helper function to check that evaluation gets stuck Test that an expression (as a string) evaluates to the ex...
open Ast open Eval let texpr = Alcotest.testable (fun ppf -> fun e -> Fmt.pf ppf "%s" (string_of_expr e)) (=) ;; let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) let check_eval e expected () = let v = try eval e with | Stuck msg -> failwith ("Got stuck!\n" ^ msg) in ...
83a2bfbf26bdd35a207877269e8640def87bffbe86c9c20c56c791cfca7df56d
cac-t-u-s/om-sharp
scales.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/packages/score/editor/scales.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : (in-package :om) (defparameter *default-scale* '((0 0 nil) (100 0 :sharp) (200 0.5 nil) (300 0.5 :sharp) (400 1 nil) (500 1.5 nil) (600 1.5 :sharp) (700 2 nil) (800 2 :sharp) (900 2.5 nil) (1000 2.5 :sharp) (1100 3 nil))) (defparameter *1/4-scale* '...
f936545bb0eb28d091e503676409845b7c9beb4292aff2772c217d2d6e2d168f
osa1/sc-plugin
Process1.hs
# LANGUAGE BangPatterns , RankNTypes , RebindableSyntax # # OPTIONS_GHC -fno - warn - name - shadowing # module Supercompile.Drive.Process1 (supercompile) where import Supercompile.Drive.Match import Supercompile.Drive.Split import Supercompile.Drive.Process import Supercompile.Core.FreeVars import Supercompile.Core....
null
https://raw.githubusercontent.com/osa1/sc-plugin/1969ad81f16ca8ed8110ca8dadfccf6f3d463635/src/Supercompile/Drive/Process1.hs
haskell
== The drive loop == Name assigned in output program Abstracted over these variables Minimum adequate term Note [Floating h-functions past the let-bound variables to which they refer] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This seems like a reasonable thing to do because ...
# LANGUAGE BangPatterns , RankNTypes , RebindableSyntax # # OPTIONS_GHC -fno - warn - name - shadowing # module Supercompile.Drive.Process1 (supercompile) where import Supercompile.Drive.Match import Supercompile.Drive.Split import Supercompile.Drive.Process import Supercompile.Core.FreeVars import Supercompile.Core....
6652187a3318cd456506c5d3043bd4de936864d01581f69a92ed89e39d5b69f3
commsor/titanoboa
local.clj
Copyright ( c ) Commsor Inc. All rights reserved . ; The use and distribution terms for this software are covered by the ; GNU Affero General Public License v3.0 (/#AGPL) ; which can be found in the LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; th...
null
https://raw.githubusercontent.com/commsor/titanoboa/ffe3e1e58f89169092d7b6a3a45e1707a0ecc9ee/src/clj/titanoboa/system/local.clj
clojure
The use and distribution terms for this software are covered by the GNU Affero General Public License v3.0 (/#AGPL) which can be found in the LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice,...
Copyright ( c ) Commsor Inc. All rights reserved . (ns titanoboa.system.local (:require [clojure.core.async :as async :refer [go-loop go >! <! >!! <!! chan]] [com.stuartsierra.component :as component] [clojure.tools.logging :as log] [titanoboa.channel :as channel] [t...
0296af064bb785877e73515b9c9ad293d9e99cf7dc2e093602ac71fb909d7b90
roelvandijk/numerals
TestData.hs
| [ @ISO639 - 1@ ] fo [ @ISO639 - 2@ ] fao [ @ISO639 - 3@ ] fao [ @Native name@ ] føroyskt [ @English name@ ] Faroese [@ISO639-1@] fo [@ISO639-2@] fao [@ISO639-3@] fao [@Native name@] føroyskt [@English name@] Faroese -} module Text.Numera...
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/FAO/TestData.hs
haskell
------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Test data ---------------------------------------------------------------...
| [ @ISO639 - 1@ ] fo [ @ISO639 - 2@ ] fao [ @ISO639 - 3@ ] fao [ @Native name@ ] føroyskt [ @English name@ ] Faroese [@ISO639-1@] fo [@ISO639-2@] fao [@ISO639-3@] fao [@Native name@] føroyskt [@English name@] Faroese -} module Text.Numera...
f6554564ca7b39ce15d6b156449fa3b9da8da0bbe87498951ef7f5fa04fc853f
lispm/FRL
frmish.lisp
(include declar) ( requiredf ' ( ( ) pidgin fasl ) ; the interpreter . ' ( ( ) ) ) ; contains Basic Framish . ;;;***************************************************************** FRAMISH ;;;***************************************************************** ;; Extracting parts of a Path....
null
https://raw.githubusercontent.com/lispm/FRL/1a2aadf71062a89474b1164e4539911011b3b63e/talk/frmish.lisp
lisp
the interpreter . contains Basic Framish . ***************************************************************** ***************************************************************** Extracting parts of a Path. These are needed in the remainder of this file. Nomenclature { x , y ... } denotes a mandatory choice. ( x...
(include declar) FRAMISH (defmacro pathframe (path) `(2nd ,path)) (defmacro pathslot (path) `(3rd ,path)) (defmacro pathfacet (path) `(4th ,path)) (infixr OF 19. (denfunc '(for (slot /:left frame right) (ifnot (path/? slot) (setq slot (buildpath nil slot nil))) (cond ((or (not...
fefad62d2f3217774124ff1460a80d490f09313446fe1bb26f660239f0833c56
adamConnerSax/Frames-map-reduce
Folds.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiP...
null
https://raw.githubusercontent.com/adamConnerSax/Frames-map-reduce/4e762c9ff87d1e064912847c3591f75d0126a323/src/Frames/Folds.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # * Ty...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PolyKinds # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances ...
8cac2456532f3035bea7c249a1b1b6cd97b3625e161c592a1afb08e3cca8fa13
BillHallahan/G2
GoodHigherOrd.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--prune-unsorted" @-} module Test where @ f : : n : ( Int , { x : Int | x = = n } ) - > ( Int , { x : Int | x = = n } ) @ f :: Int -> (Int, Int) -> (Int, Int) f n ps = call (g n) ps call :: (a -> a -> a) -> a -> a call op x = op x x {-@...
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/test_files/Failing/GoodHigherOrd.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ LIQUID "--prune-unsorted" @ @ g :: n:Int -> t1:(Int, { x:Int | x == n }) -> (Int, { y:Int | y == n }) -> (Int, { z:Int | z == n }) @
module Test where @ f : : n : ( Int , { x : Int | x = = n } ) - > ( Int , { x : Int | x = = n } ) @ f :: Int -> (Int, Int) -> (Int, Int) f n ps = call (g n) ps call :: (a -> a -> a) -> a -> a call op x = op x x g :: Int -> (Int, Int) -> (Int, Int) -> (Int, Int) g n (n1, p1) (n2, p2) = (n1, p1)
a253b2dbc2d25678dfcad6cab7a92f4118f42fb208373fd9c2e0bfb8cf2e07f1
lasp-lang/types
prop_join_decompositions.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 . All Rights Reserved . %% This file is provided to you 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 ...
null
https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/test/prop_join_decompositions.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(prop_join_decompositi...
ec8f9456a26348b1a8f49ec9e767900407b5d229d597169af1aa1f900dd6573d
UnkindPartition/prover
Main.hs
module Main (main) where import Prelude hiding (mapM, concat) import qualified Control.Arrow as A import Control.Monad hiding (mapM) import Control.Exception import Options.Applicative import Data.Tuple.Homogenous import Data.Foldable import Data.Traversable import Text.PrettyPrint.Mainland as PP import Parser import ...
null
https://raw.githubusercontent.com/UnkindPartition/prover/46de161f3c0b33245cc6b3fc49f4a9674405713d/src/Main.hs
haskell
module Main (main) where import Prelude hiding (mapM, concat) import qualified Control.Arrow as A import Control.Monad hiding (mapM) import Control.Exception import Options.Applicative import Data.Tuple.Homogenous import Data.Foldable import Data.Traversable import Text.PrettyPrint.Mainland as PP import Parser import ...
ab95e21308f8472c6a51a93ba8afe741341333de088aa5101adc19d0f030843a
NorfairKing/mergeful
Value.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} -- | A way to synchronise a single value with safe merge conflicts. -- -- The setup is as follows: -- -- * A central server is set up to synchronise with -- * Each client synchro...
null
https://raw.githubusercontent.com/NorfairKing/mergeful/8f1686891e306edcb26daf5ec1782f94f6ae326c/mergeful/src/Data/Mergeful/Value.hs
haskell
# LANGUAGE OverloadedStrings # | A way to synchronise a single value with safe merge conflicts. The setup is as follows: * A central server is set up to synchronise with * Each client synchronises with the central server, but never with eachother = A client should operate as follows: The client should ask ...
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # = = For the first sychronisation The server should send over a ' Timed ' vaule , and the client should create its ' ClientValue ' with ' initialClientValue ' . * The server should create an initial ' ServerV...
4025fb61afb688c3eb792aa6dbf5a198cf969e48d0f71a2671e1ab000fb7f6b6
nikodemus/SBCL
make-host-2.lisp
;;; Set up the cross-compiler. (setf *print-level* 5 *print-length* 5) (load "src/cold/shared.lisp") (in-package "SB-COLD") ;;; FIXME: these prefixes look like non-pathnamy ways of defining a relative pathname . Investigate whether they can be made relative ;;; pathnames. (setf *host-obj-prefix* "obj/from-host/" ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/make-host-2.lisp
lisp
Set up the cross-compiler. FIXME: these prefixes look like non-pathnamy ways of defining a pathnames. we therefore turn off as many notes as possible. but might skip some unreasonably expensive stuff sbcl-internal optimization declarations: never insert stepper conditions redefine our functions anyway; and de...
(setf *print-level* 5 *print-length* 5) (load "src/cold/shared.lisp") (in-package "SB-COLD") relative pathname . Investigate whether they can be made relative (setf *host-obj-prefix* "obj/from-host/" *target-obj-prefix* "obj/from-xc/") (load "src/cold/set-up-cold-packages.lisp") (load "src/cold/defun-load-or-...