_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
3503c9a51beb854089e747194c11c92becdd6c482c9048856f5778451e40911b
amnh/PCG
Test.hs
------------------------------------------------------------------------------ -- | Module : Control . . Trans . Validation . Test Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Defines and exp...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/validation-transformer/test/Control/Monad/Trans/Validation/Test.hs
haskell
---------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable Defines and exports the test suite for --------------------------------------------------------------------------- # LANGUAGE ExplicitForAll...
Module : Control . . Trans . Validation . Test Copyright : ( c ) 2015 - 2021 Ward Wheeler ' Control . . Trans . Validation . ValidationT ' . # LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Control.Monad.T...
0bc58d95565b5d5b6e01d18ea048dd10563a87bc92545e3989c856ae36e3d634
rescript-lang/syntax
queue.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/rescript-lang/syntax/891fe05b88be2aa4443a951a0d16088b69b2e279/compiler-libs-406/queue.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * First - in first - out queues . This module implements queues ( FIFOs ) , with in - place modific...
d7c82fbad045709128b44f5fc423d06a8e81e53c78ed1496ff25526bb39eae7b
coalton-lang/coalton
impl-sbcl.lisp
;;;; big-float.lisp ;;;; Arbitrary precision floats using SBCL 's MPFR library . #+coalton-release (cl:declaim #.coalton-impl:*coalton-optimize-library*) (in-package #:coalton-library/big-float) #-sbcl (error "This file is hopelessly SBCL specific.") #-sb-mpfr (error "SB-MPFR failed to load, for some reason. ~ ...
null
https://raw.githubusercontent.com/coalton-lang/coalton/57e5622346add6aca753e3c4830afaed65e6d6df/library/big-float/impl-sbcl.lisp
lisp
big-float.lisp This functionality has been submitted upstream as a patch to Whether the mpfr ceiling function is properly exported Rounding modes Calculation Configuration Float Type Equality Ordering Basic number operations Conversion quantization and division Trig Elementary BUG: These are calculated ...
Arbitrary precision floats using SBCL 's MPFR library . #+coalton-release (cl:declaim #.coalton-impl:*coalton-optimize-library*) (in-package #:coalton-library/big-float) #-sbcl (error "This file is hopelessly SBCL specific.") #-sb-mpfr (error "SB-MPFR failed to load, for some reason. ~ This is pr...
1ce63bae2da48e09ee4b90db0d5be3095b45afc1aaaf70e6b3d6e0c59fa0f38b
vonzhou/LearnYouHaskellForGreatGood
sequence.hs
main =do rs <- sequence [getLine, getLine, getLine] print rs
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter8/sequence.hs
haskell
main =do rs <- sequence [getLine, getLine, getLine] print rs
071ab62a4a8db0a9e8d9b8ffcefc23b8617dda963267b5b171a1318f9f8e20c5
marcoheisig/adventofcode
day-19.lisp
(defpackage :adventofcode-2019-day-19 (:use :cl)) (in-package :adventofcode-2019-day-19) (defvar *coordinates*) (defvar *drone-x*) (defvar *drone-y*) (defvar *grid*) (defvar *new-tiles*) ;;; The intcode computer. (defstruct (intcode-computer (:copier nil) (:predicate intcode-computer-p) ...
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2019/day-19/day-19.lisp
lisp
The intcode computer. The instructions. End of Instructions. Check whether the new tile fulfills the criterion. Scan neighbors.
(defpackage :adventofcode-2019-day-19 (:use :cl)) (in-package :adventofcode-2019-day-19) (defvar *coordinates*) (defvar *drone-x*) (defvar *drone-y*) (defvar *grid*) (defvar *new-tiles*) (defstruct (intcode-computer (:copier nil) (:predicate intcode-computer-p) (:constructor ma...
d0df25b59be5572a7b959d83f0388df93b4f286010a1cb4b5291ff99bb0ae9bd
sgimenez/laby
t_thread.ml
Copyright ( C ) 2007 - 2010 You have permission to copy , modify , and redistribute under the terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . Copyright (C) 2007-2010 Stéphane Gimenez You have permission to copy, modify, and redistribute under the terms of the GPL-3.0. For f...
null
https://raw.githubusercontent.com/sgimenez/laby/47f9560eb827790d26900bb553719afb4b0554ea/src/dtools/t_thread.ml
ocaml
Copyright ( C ) 2007 - 2010 You have permission to copy , modify , and redistribute under the terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . Copyright (C) 2007-2010 Stéphane Gimenez You have permission to copy, modify, and redistribute under the terms of the GPL-3.0. For f...
af9da66e61733fd4a18eba6f4af58845f85744b581ee2b64727d8fcdca42becb
typed-wire/typed-wire
Flow.hs
{-# LANGUAGE OverloadedStrings #-} module TW.CodeGen.Flow ( makeFileName, makeModule ) where import TW.Ast import TW.BuiltIn import TW.JsonRepr import Data.Monoid import System.FilePath import qualified Data.List as L import qualified Data.Text as T makeFileName :: ModuleName -> FilePath makeFileName (Module...
null
https://raw.githubusercontent.com/typed-wire/typed-wire/cce9f8fa14b5033084d941d7be630b495967543a/src/TW/CodeGen/Flow.hs
haskell
# LANGUAGE OverloadedStrings # TODO: CHECK
module TW.CodeGen.Flow ( makeFileName, makeModule ) where import TW.Ast import TW.BuiltIn import TW.JsonRepr import Data.Monoid import System.FilePath import qualified Data.List as L import qualified Data.Text as T makeFileName :: ModuleName -> FilePath makeFileName (ModuleName parts) = (L.foldl' (</>) "...
b9bf47cd43f83d41467c9e5f1d529d728f072ebd137926443516b7805fe62913
ocaml-flambda/ocaml-jst
clambda_primitives.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/middle_end/clambda_primitives.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type mutable_flag = Lambda.mutable_flag type immediate_or_pointer = Lambda.immediate_or_pointer type in...
29067da1718937e37c26df27ca024ee23afcb74f85199f71a5819d3c7861c7f2
tfausak/advent-of-code
1.hs
-- stack --resolver lts-13.0 script import qualified Control.Arrow as Arrow import qualified Data.Char as Char import qualified Data.List as List import qualified Data.Map as Map import qualified Data.Maybe as Maybe import qualified Data.Ord as Ord import qualified Data.Set as Set import qualified Data.Text as Text imp...
null
https://raw.githubusercontent.com/tfausak/advent-of-code/26f0d9726b019ff7b97fa7e0f2f995269b399578/2018/24/1.hs
haskell
stack --resolver lts-13.0 script
import qualified Control.Arrow as Arrow import qualified Data.Char as Char import qualified Data.List as List import qualified Data.Map as Map import qualified Data.Maybe as Maybe import qualified Data.Ord as Ord import qualified Data.Set as Set import qualified Data.Text as Text import qualified Text.ParserCombinators...
e7846127934f6097ff8f204a8fb15cab5c2f2f3cb8717674d4070842affc23c4
GregoryTravis/rhythmr
Resample.hs
module Resample (resampleZound) where import System.Directory import System.IO.Temp import External import Zounds import Util resampleZound :: Int -> Zound -> IO Zound resampleZound destLengthFrames sound = do runViaFilesCmd "wav" writeZound readZound resample sound where resample src dest = ["sox", "-G", src, d...
null
https://raw.githubusercontent.com/GregoryTravis/rhythmr/55fd5b5af6a52da16b7d730c27fb408aa3c61538/src/Resample.hs
haskell
module Resample (resampleZound) where import System.Directory import System.IO.Temp import External import Zounds import Util resampleZound :: Int -> Zound -> IO Zound resampleZound destLengthFrames sound = do runViaFilesCmd "wav" writeZound readZound resample sound where resample src dest = ["sox", "-G", src, d...
1b82ebea80bc395fe31ff92fab8dad150e52f99cbc82f715dce4b648ea02a2e9
kind2-mc/kind2
compress.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/92b6acd6de4c79095ebbedae447c44d2b5411632/src/induction/compress.mli
ocaml
* Given an inductive counterexample return a list of terms to force those states on the path to be different that are equivalent under some simulation relations.
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
c784646047c07831a71a3c7cc8043a83531499a54794316604a989d0991ef160
noinia/hgeometry
BoxSpec.hs
module Geometry.BoxSpec where import Control.Lens import Data.Ext import Data.Intersection import Geometry.Box import Geometry.Point import Geometry.Vector import Test.Hspec import Test.QuickCheck import Test.Util arbitraryPointInBoundingBox :: Box 2 p Rational -> Gen (Point 2 Rational) arbitraryPointInBoundingBox b ...
null
https://raw.githubusercontent.com/noinia/hgeometry/7ce8d7eca148d8f95b2216b59e498b6227554feb/hgeometry/test/src/Geometry/BoxSpec.hs
haskell
module Geometry.BoxSpec where import Control.Lens import Data.Ext import Data.Intersection import Geometry.Box import Geometry.Point import Geometry.Vector import Test.Hspec import Test.QuickCheck import Test.Util arbitraryPointInBoundingBox :: Box 2 p Rational -> Gen (Point 2 Rational) arbitraryPointInBoundingBox b ...
e0c0718e8374b258e8330b46a62d73de72805b6457eb76335d28c9e865d187aa
MedeaMelana/JsonGrammar2
Grammar.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} module Language.JsonGrammar.Grammar ( Grammar(..), Context(..), (:-)(..), pure, many, literal, label, object, proper...
null
https://raw.githubusercontent.com/MedeaMelana/JsonGrammar2/1d3976f9ec5a00940cc9fc6f29a173df9b621bd4/src/Language/JsonGrammar/Grammar.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # Types | The context of a grammar. Most combinators ask for a grammar in a specific context as input, and produce a grammar in another context. ^ Value context ^ Object context, for defining object members ^ Array context, for defining array ...
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # # LANGUAGE FlexibleInstances # module Language.JsonGrammar.Grammar ( Grammar(..), Context(..), (:-)(..), pure, many, literal, label, object, property, array, element, coerce, fromPrism, defaultValue, nil, cons, tup2, Json...
ca8fae549b2c1aed553b0a4f529062c4423372387601b5910acb28d09cb159e0
jacobobryant/platypub
schema.clj
(ns com.platypub.schema (:require [malli.core :as malc] [malli.registry :as malr])) (defn doc [{:keys [id required optional]}] (vec (concat [:map {:closed true} [:xt/id id]] required (for [k optional] [k {:optional true}])))) (def schema ...
null
https://raw.githubusercontent.com/jacobobryant/platypub/71799b1b8f4e8fd1f93d7ce94b6ca952aa9709fa/src/com/platypub/schema.clj
clojure
todo only allow additional keys if they start with a certain prefix deprecated
(ns com.platypub.schema (:require [malli.core :as malc] [malli.registry :as malr])) (defn doc [{:keys [id required optional]}] (vec (concat [:map {:closed true} [:xt/id id]] required (for [k optional] [k {:optional true}])))) (def schema ...
586d73744fe13e7ead9ba6ef8314da834e33c9ba50175948953e94bc8bd1cce8
distrap/lambdadrive
Types.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module LDrive.Typ...
null
https://raw.githubusercontent.com/distrap/lambdadrive/2bbf6b173fbc1c6d1f809ee4f95ec0bf737d7064/src/LDrive/Types.hs
haskell
XXX: this is supported by the backend correctly generating
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module LDrive.Typ...
fc4363790aed8384e60a6dd1af691fb6591c0b189098f2b83663bdc908149325
JoelSanchez/ventas
formatting.cljs
(ns ventas.utils.formatting (:require [ventas.common.utils :as common.utils] [ventas.i18n :refer [i18n]] [moment] [ventas.utils.goog :as utils.goog])) (defn format-number [n] (when n (utils.goog/format (str "%.2f") n))) (defn amount->str [{:keys [value currency]}] (str (format-number (common.uti...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/utils/formatting.cljs
clojure
(ns ventas.utils.formatting (:require [ventas.common.utils :as common.utils] [ventas.i18n :refer [i18n]] [moment] [ventas.utils.goog :as utils.goog])) (defn format-number [n] (when n (utils.goog/format (str "%.2f") n))) (defn amount->str [{:keys [value currency]}] (str (format-number (common.uti...
89c07a27247093b4817ff8846b134c43b6b4b6ee3be24a1eab9deca69dfcdedc
whalliburton/academy
classic-utilities.lisp
(in-package :academy) (defun ensure-list (element) (if (listp element) element (list element))) (defun group (list n) "Group the elements of LIST into lists of N elements each." (when (zerop n) (error "Groups of zero are no fun.")) (labels ((rec (list acc) (let ((rest (nthcdr n list))) ...
null
https://raw.githubusercontent.com/whalliburton/academy/87a1a13ffbcd60d8553e42e647c59486c761e8cf/classic-utilities.lisp
lisp
(in-package :academy) (defun ensure-list (element) (if (listp element) element (list element))) (defun group (list n) "Group the elements of LIST into lists of N elements each." (when (zerop n) (error "Groups of zero are no fun.")) (labels ((rec (list acc) (let ((rest (nthcdr n list))) ...
2adf09abbcb9cdd95c58f34ea35e0a0faff298298684e00ff543a4f6b0bc82c0
overtone/overtone
protocols.clj
(ns overtone.sc.protocols) (defprotocol IKillable (kill* [this] "Kill a synth element (node, or group, or ...)."))
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/sc/protocols.clj
clojure
(ns overtone.sc.protocols) (defprotocol IKillable (kill* [this] "Kill a synth element (node, or group, or ...)."))
7b85c695f95e1a4a823d531f616a241d392ab6cb729c90433167ed6e3a3cf5b2
melhadad/fuf
ir7.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; -*- ;;; ----------------------------------------------------------------------- ;;; File: ir7.l ;;; Description: Examples for ir7 testing bk-class with manner Author : Created : 21 Feb 1991 Modified : 25 Feb 91 - added ao examples Package : ...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/ir7.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; -*- ----------------------------------------------------------------------- File: ir7.l Description: Examples for ir7 testing bk-class with manner ----------------------------------------------------------------------- Now try them together!!! ao AND manner...
Author : Created : 21 Feb 1991 Modified : 25 Feb 91 - added ao examples Package : FUG5 (in-package "FUG5") (defun isetup7 () (clear-tests) (def-test t1 ("The Denver Nuggets edged the Celtics." "The Denver Nuggets nipped the Celtics.") ((cat clause) (process...
1b6cd5e173aedc9b7a7863904e582233c391b55ec4afea8a97c60648d4432156
lisp-mirror/clpm
clpmfile.lisp
Interface functions for clpmfiles ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (uiop:define-package #:clpm/clpmfile (:use #:cl #:alexandria #:anaphora #:iterate #:clpm/config #:clpm/context...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/174b7db5e548518aff668cdd1f4d1a7b863becfb/clpm/clpmfile.lisp
lisp
LICENSE for license information.
Interface functions for clpmfiles This software is part of CLPM . See README.org for more information . See (uiop:define-package #:clpm/clpmfile (:use #:cl #:alexandria #:anaphora #:iterate #:clpm/config #:clpm/context #:clpm/repos #:clpm/re...
6d33690e6524072893420d01c34b5b5cc8f1e943715448bf37a0fe30126a0f25
jiangpengnju/htdp2e
computing-with-lambda.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname computing-with-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constr...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/abstraction/nameless-functions/computing-with-lambda.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname computing-with-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define (f.v1 x) (* 10 x)) (define f.v...
17667670fa40f494141685c060f1fdd7f6352e8787904683452daa715e73d0c2
paf31/dovetail
Unfoldable.hs
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.Unfoldable where import Data.Vector (Vector) import Data.Vector qualified as Vector imp...
null
https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail-core/src/Dovetail/Core/Data/Unfoldable.hs
haskell
# LANGUAGE OverloadedStrings # unfoldrArrayImpl :: forall a b . (forall x. Maybe x -> Boolean) -> (forall x. Maybe x -> x) -> (forall x y. Tuple x y -> x) -> (forall x y. Tuple x y -> y) -> (b -> Maybe (Tuple a b)) -> b -> Array a
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.Unfoldable where import Data.Vector (Vector) import Data.Vector qualified as Vector import Dovetail import Dovetail.Evaluate...
0106e0e89c6b33788249f77ab32fe3d36da482e1f2c2a52fb0706229d5e1ad54
pietervdvn/ALGT
RelationAnalysis.hs
# LANGUAGE TemplateHaskell , FlexibleInstances , MultiParamTypeClasses # module AbstractInterpreter.RelationAnalysis (RelationAnalysis(..), TypeNameSpec (..), raSyntax, raIntroduced, raTrivial, analyzeRelations, tnsSuper) where {- Analysises all Rules together -} import TypeSystem import Utils.Utils import Util...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/AbstractInterpreter/RelationAnalysis.hs
haskell
Analysises all Rules together ---------------------------------------- TYPENAMESPEC --------------------------------------------- ------------------------------------------ RELATIONANALYSIS DATA DEF --------------------------------------------- New syntax, with somewhat changed subtyping relationships! New syntax t...
# LANGUAGE TemplateHaskell , FlexibleInstances , MultiParamTypeClasses # module AbstractInterpreter.RelationAnalysis (RelationAnalysis(..), TypeNameSpec (..), raSyntax, raIntroduced, raTrivial, analyzeRelations, tnsSuper) where import TypeSystem import Utils.Utils import Utils.Image (terminalCS) import Utils.To...
382b542f0d5a637aab4b45a608b06e446cc92b8058ec801c7eee8c64fd0b1b7b
Bardia95/programming-bitcoin
ecc_test.clj
(ns programming-bitcoin.ecc-test (:refer-clojure :exclude [+ - * /]) (:require [clojure.test :refer :all] [programming-bitcoin.ecc :refer :all])) (deftest exponentiation (testing "pwr" (testing "integers" (is (= (pwr 3 2) 9)) (is (= (pwr 0 1) 0)) (is (= (pwr 2 0) 1)) (is (= (pw...
null
https://raw.githubusercontent.com/Bardia95/programming-bitcoin/4f27f43dd378f466fb37b5d89321edcdbab1cffc/test/programming_bitcoin/ecc_test.clj
clojure
(ns programming-bitcoin.ecc-test (:refer-clojure :exclude [+ - * /]) (:require [clojure.test :refer :all] [programming-bitcoin.ecc :refer :all])) (deftest exponentiation (testing "pwr" (testing "integers" (is (= (pwr 3 2) 9)) (is (= (pwr 0 1) 0)) (is (= (pwr 2 0) 1)) (is (= (pw...
163b3ad6f2d38c9a5cbb22dc76da02c141da92bcd01f6eb7f22e283e667b76f2
wh5a/thih
Rename.hs
------------------------------------------------------------------------------ Copyright : The Hatchet Team ( see file Contributors ) Module : Rename Description : Renames variables apart in a Module Primary Authors : , Bry...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/hatchet/Rename.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------------------------------------------------------------------------} ---------------------------------------------------------------------------- --------...
Copyright : The Hatchet Team ( see file Contributors ) Module : Rename Description : Renames variables apart in a Module Primary Authors : , Bryn Humberstone , Notes : See the file License for ...
ab168e884c0fc4eb487f1903093a3a93807adff7a3feba0b26e8957d2750fcd9
district0x/district-registry
district_factory.cljs
(ns district-registry.server.contract.district-factory (:require [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] [cljs.nodejs :as nodejs] [district-registry.server.contract.dnt :as dnt] [district.server.smart-contracts :as smart-contracts] ...
null
https://raw.githubusercontent.com/district0x/district-registry/d3a4b6fcf84cdfd817057f26f400d22eea983f4c/src/district_registry/server/contract/district_factory.cljs
clojure
(ns district-registry.server.contract.district-factory (:require [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] [cljs.nodejs :as nodejs] [district-registry.server.contract.dnt :as dnt] [district.server.smart-contracts :as smart-contracts] ...
e6e50e5cf91def5045273f8958108a9228ba00f45eed69f5685ee2aa57c01b7b
kofigumbs/elm-beam
Compiler.hs
module ElmBeam.Compiler ( version , parseDependencies, Tag(..) , compile, Context(..), Result(..) , Localizer, dummyLocalizer , Error, errorToString, errorToJson, printError , Warning, warningToString, warningToJson, printWarning ) where import qualified Data.Aeson as Json import qualif...
null
https://raw.githubusercontent.com/kofigumbs/elm-beam/e998e5715ac2f8b3c3c13c8d94c9191d1a1d0540/src/ElmBeam/Compiler.hs
haskell
VERSION DEPENDENCIES DEALIASER ERRORS WARNINGS
module ElmBeam.Compiler ( version , parseDependencies, Tag(..) , compile, Context(..), Result(..) , Localizer, dummyLocalizer , Error, errorToString, errorToJson, printError , Warning, warningToString, warningToJson, printWarning ) where import qualified Data.Aeson as Json import qualif...
011a3e4e940b2eeb66c46bb3850150cad299e3245049ef501c32c52515f040d6
binaryage/chromex
certificate_provider.cljs
(ns chromex.ext.certificate-provider (:require-macros [chromex.ext.certificate-provider :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn request-pin* [config details] (gen-wrap :func...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/certificate_provider.cljs
clojure
-- events -----------------------------------------------------------------------------------------------------------------
(ns chromex.ext.certificate-provider (:require-macros [chromex.ext.certificate-provider :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn request-pin* [config details] (gen-wrap :func...
642f6a78d301498ea3d15b04bd0e06061328fdccb78b8991b9b3ddabb31b200d
rdnetto/powerline-hs
Format.hs
This module is a compatibility layer that emulates the behaviour of Python 's format strings . -- It is needed because several Powerline segments take a format argument that uses this notation. -- Interpolation sections have the grammar {[name][:fmt]}, and may also contain arbitrary text. -- -- See: #format-specifica...
null
https://raw.githubusercontent.com/rdnetto/powerline-hs/6569a88455e8d98d0327743df13b05947f35efb3/src/Format.hs
haskell
It is needed because several Powerline segments take a format argument that uses this notation. Interpolation sections have the grammar {[name][:fmt]}, and may also contain arbitrary text. See: #format-specification-mini-language format used by Text.Printf Grammar: [[fill]align][sign][#][0][width][,][.precision][...
This module is a compatibility layer that emulates the behaviour of Python 's format strings . module Format (pyFormat, parseFmt, convertFmt) where import Data.Char (isDigit) import Data.Maybe (fromMaybe) import Text.ParserCombinators.ReadP import Text.Printf (printf, PrintfType) import Util format used by Pyt...
3084f1f37d5c41cdf43c40276b65c3b9621db3001cd606742765028d06925144
zippy/anansi
object.clj
(ns #^{:author "Eric Harris-Braun" :doc "Object receptor"} anansi.commons-room.object (:use [anansi.ceptr])) (defmethod manifest :object [_r img_url] {:image-url img_url})
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/src/anansi/commons_room/object.clj
clojure
(ns #^{:author "Eric Harris-Braun" :doc "Object receptor"} anansi.commons-room.object (:use [anansi.ceptr])) (defmethod manifest :object [_r img_url] {:image-url img_url})
32f7016577dbb9661db673da053f228701043fce210d1e79b907a21b230a1b5a
atolab/apero-net
tcpServiceES.ml
open Lwt open Apero open Iplocator open Endpoint module TcpServiceES = struct module Id = NumId.Make (Int64) module Config = struct open Lwt_unix type t = { locator : TcpLocator.t ; backlog : int ; stream_length : int ; max_connections : int ; socket_options : (Lwt_...
null
https://raw.githubusercontent.com/atolab/apero-net/d21290610d06a36f1ee571dea475f25ed5735151/lib/tcpServiceES.ml
ocaml
* TODO: Should check and log for error
open Lwt open Apero open Iplocator open Endpoint module TcpServiceES = struct module Id = NumId.Make (Int64) module Config = struct open Lwt_unix type t = { locator : TcpLocator.t ; backlog : int ; stream_length : int ; max_connections : int ; socket_options : (Lwt_...
24c9d82af5dad9f316a3537349f763f4494917d8266f944e1daa803e64521f10
rudymatela/tankode
right-turner.hs
import Tankode.Raw ident :: Id ident = Id { name = "right-turner" , radarColour = "grey9" , bodyColour = "grey9" , trackColour = "red4" , gunColour = "blue4" , bulletColour = "blue8" , scanColour = "blue8" } rightTurner :: Tankode () -- :: Input -> () -> ((),Output) rightTurner Input {enemy =...
null
https://raw.githubusercontent.com/rudymatela/tankode/299ec6f78a9a18a8fc902be911a556d0497c30e1/haskell/eg/raw/right-turner.hs
haskell
:: Input -> () -> ((),Output)
import Tankode.Raw ident :: Id ident = Id { name = "right-turner" , radarColour = "grey9" , bodyColour = "grey9" , trackColour = "red4" , gunColour = "blue4" , bulletColour = "blue8" , scanColour = "blue8" } rightTurner Input {enemy = Just d} = \_ -> ((),Output 1 (-1) (-1) 0 (1/3)) rightTurne...
4dd22bffd8594987acbac313c083c4e3d215fb3da003709ec8a2337dbe81f9f9
noss/emock
emock.erl
-module(emock). -author(). -export([gen_server/1, gen_server/2]). -export([gen_fsm/1, gen_fsm/2]). -export([supervisor/1]). gen_server(Fun) when is_function(Fun, 2) -> spawn_link(fun () -> gen_server0(Fun) end). gen_server(Fun, InitialState) when is_function(Fun, 2) -> spawn_link(fun () -> gen_server0(Fun, InitialS...
null
https://raw.githubusercontent.com/noss/emock/da6bb0ed8ad35cefc6b06d45bb082704737722f9/src/emock.erl
erlang
-module(emock). -author(). -export([gen_server/1, gen_server/2]). -export([gen_fsm/1, gen_fsm/2]). -export([supervisor/1]). gen_server(Fun) when is_function(Fun, 2) -> spawn_link(fun () -> gen_server0(Fun) end). gen_server(Fun, InitialState) when is_function(Fun, 2) -> spawn_link(fun () -> gen_server0(Fun, InitialS...
53203b453ce1abee7109f35da6b7394d4116b499f4937f983fc90630a9f129f5
hstreamdb/hstream
AST.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # {-# LANGUAGE Ty...
null
https://raw.githubusercontent.com/hstreamdb/hstream/35b2284d122202a6ad7efc98e6c6304b68a0e49d/hstream-sql/src/HStream/SQL/AST.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # --------------------------- Refinement Main class ---------------------------- ------------------------- Processing runtime types --------------------------- ----------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # module HStream.SQL.AST where import qualified Data.Aeson as Aeson import qualified Data.Aeson.Types as Ae...
43044bf1b3513003d051cca5fe9c0c4cb70e37a71a95aad2d27146cec7478763
purescript/purescript
CST.hs
module Language.PureScript.CST ( parseFromFile , parseFromFiles , parseModuleFromFile , parseModulesFromFiles , unwrapParserError , toMultipleErrors , toMultipleWarnings , toPositionedError , toPositionedWarning , pureResult , module Language.PureScript.CST.Convert , module Language.PureScript.C...
null
https://raw.githubusercontent.com/purescript/purescript/e4c98bb3e1829862ba0c9c0cec5e82c360ce4d9d/src/Language/PureScript/CST.hs
haskell
module Language.PureScript.CST ( parseFromFile , parseFromFiles , parseModuleFromFile , parseModulesFromFiles , unwrapParserError , toMultipleErrors , toMultipleWarnings , toPositionedError , toPositionedWarning , pureResult , module Language.PureScript.CST.Convert , module Language.PureScript.C...
f60b7e948c5d59a2f7b681276edbe35c0288777a0b30d3e7ffc6cbe43d0347d6
mbj/stratosphere
ApiGatewayProxyInputProperty.hs
module Stratosphere.RefactorSpaces.Application.ApiGatewayProxyInputProperty ( ApiGatewayProxyInputProperty(..), mkApiGatewayProxyInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties impo...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/refactorspaces/gen/Stratosphere/RefactorSpaces/Application/ApiGatewayProxyInputProperty.hs
haskell
module Stratosphere.RefactorSpaces.Application.ApiGatewayProxyInputProperty ( ApiGatewayProxyInputProperty(..), mkApiGatewayProxyInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties impo...
c61728ab68d53c7ee039b549cab454dc60af07848c87c670a4fb9f222ed76a65
TrustInSoft/tis-kernel
builtins_lib_tis_strchr.ml
(**************************************************************************) (* *) This file is part of . (* *) Copyright ( C ) 2016 - 201...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/value/domains/cvalue/builtins_lib_tis_strchr.ml
ocaml
************************************************************************ ...
This file is part of . Copyright ( C ) 2016 - 2017 is released under GPLv2 open Abstract_interp open Locations open Value_util exception Abort_to_top module Aux = Builtins_lib_tis_aux open Aux.StringAndArrayUtilities open Strlen type strchr...
5a5e5c3f538bdd12c728597c33e84815137ab2464cc8d826e80953881309b6d0
haskell-opengl/OpenGLRaw
CompressedPalettedTexture.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.OES.CompressedPalettedTexture Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/OES/CompressedPalettedTexture.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.OES.CompressedPalettedTexture License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.OES.CompressedPalettedTexture ( glGetOESCompressedPalettedTexture, gl_OES_compressed_paletted_texture, pattern GL_PALETTE4_R5_G6_B5_OES, pattern GL_PALETTE4_RGB5_A1_OES, pattern GL_PALETTE4_RGB8_OES, p...
47d64733d4d3b1d716ea79aaf63f905571c0695814910f2da1ecaf369e8ec2d1
sgbj/MaximaSharp
dcopy.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/dcopy.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
d84142bd84d647665bcc843a693420e3c0e7f3075777a6d70fecf3dcaab9272d
binaryage/chromex
metrics_private.clj
(ns chromex.ext.metrics-private " * available since Chrome 59" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (declare gen-call) --...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/metrics_private.clj
clojure
-- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------------------------------------------------------------------------------------- -- API TABLE --------------------------------------------------------...
(ns chromex.ext.metrics-private " * available since Chrome 59" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (declare gen-call) --...
cd4f3ddb0ee57ccb301d8a2f21eafc3b52eee0eba16c0caba90efd29962d4fa5
finnishtransportagency/harja
reittitoteuman_kirjaus_test.clj
(ns harja.palvelin.integraatiot.api.reittitoteuman-kirjaus-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [harja.testi :refer :all] [harja.palvelin.integraatiot.api.reittitoteuma :as api-reittitoteuma] [com.stuartsierra.component :as component] [...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/e326406a7a49fb0ea2a04c6a4f04b6879501685a/test/clj/harja/palvelin/integraatiot/api/reittitoteuman_kirjaus_test.clj
clojure
Talvisuola, rakeinen NaCl - materiaalikoodi id Kesäsuola (päällystettyjen teiden pölynsidonta)
(ns harja.palvelin.integraatiot.api.reittitoteuman-kirjaus-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [harja.testi :refer :all] [harja.palvelin.integraatiot.api.reittitoteuma :as api-reittitoteuma] [com.stuartsierra.component :as component] [...
9b1ca5e8f759e2d8841471a741e5905fd64723841b49d18220a9a99290fb5ceb
ralsei/sawzall
main.rkt
#lang racket/base (require "aggregate.rkt" "combining-join.rkt" "constructors.rkt" "create.rkt" "display.rkt" "filtering-join.rkt" "grouped-df.rkt" "grouping.rkt" "helpers.rkt" "missing-values.rkt" "pivot.rkt" "rectanglin...
null
https://raw.githubusercontent.com/ralsei/sawzall/bff8a299f23a89c3c0dab134827baba432182ba4/sawzall-lib/main.rkt
racket
#lang racket/base (require "aggregate.rkt" "combining-join.rkt" "constructors.rkt" "create.rkt" "display.rkt" "filtering-join.rkt" "grouped-df.rkt" "grouping.rkt" "helpers.rkt" "missing-values.rkt" "pivot.rkt" "rectanglin...
f85e8474ad9d137eabaae22c6c862e660c16d88f5ca92d551bc82776121efd72
smashingboxes/fraqture
spirograph.clj
(ns fraqture.spirograph (:require [fraqture.drawing] [fraqture.helpers :refer :all] [quil.core :as q :include-macros true]) (:import [fraqture.drawing Drawing])) (def current-color-path-location 0) (def color-path [{:r 153 :g 255 :b 204} {:r 255 :g 0 :b 127} {:r 255 :g 153 :b 51} ...
null
https://raw.githubusercontent.com/smashingboxes/fraqture/8971564a075b8f38729f382906cc8f39a18d87eb/src/fraqture/spirograph.clj
clojure
(ns fraqture.spirograph (:require [fraqture.drawing] [fraqture.helpers :refer :all] [quil.core :as q :include-macros true]) (:import [fraqture.drawing Drawing])) (def current-color-path-location 0) (def color-path [{:r 153 :g 255 :b 204} {:r 255 :g 0 :b 127} {:r 255 :g 153 :b 51} ...
ab94155c4e9f480efd59d546a37a15900be18884960c674d5842a4af63c5f88a
edwinb/idris-php
Main.hs
module Main where import Idris.Core.TT import Idris.AbsSyntax import Idris.Options import Idris.ElabDecls import Idris.REPL import Idris.Main import Idris.ModeCommon import IRTS.Compiler import IRTS.CodegenPHP import System.Environment import System.Exit import Paths_idris_php data Opts = Opts { inputs :: [FilePat...
null
https://raw.githubusercontent.com/edwinb/idris-php/a50ffbdcf3ad257d47afa1758f92100b2a2ae28a/src/Main.hs
haskell
GRRR
module Main where import Idris.Core.TT import Idris.AbsSyntax import Idris.Options import Idris.ElabDecls import Idris.REPL import Idris.Main import Idris.ModeCommon import IRTS.Compiler import IRTS.CodegenPHP import System.Environment import System.Exit import Paths_idris_php data Opts = Opts { inputs :: [FilePat...
e335c123759c62f7a4bc3e6e45870471d9a81b121bd79f3162e7d59b709929ac
softlab-ntua/bencherl
lb_psv_simple.erl
2010 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software d...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/src/lb_psv_simple.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2010 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : lb_psv_simple.erl 2639 2012 - 01 - 03 15:00:45Z $ -module(lb_psv_simple). -author(''). -vsn('$Id...
d47e991b4e6441987678623a22a00ce0df9bb9b37d7c6df0b5e94779aaccb5f5
uwplse/rake
encoding.rkt
#lang rosette/safe (require (for-syntax syntax/parse) (only-in rake/halide/ir/types buffer buffer-data) rake/cpp) (provide define-symbolic-buffer define-symbolic-buffer* define-symbolic-var) (define-syntax (define-symbolic-buffer stx) (syntax-parse stx #:datum-literals (int8_t int16_t int32_t int64_t uin...
null
https://raw.githubusercontent.com/uwplse/rake/0fb9b46ae8ac64f95a4c0e89060ffdb043229a5b/rake/halide/ir/encoding.rkt
racket
#lang rosette/safe (require (for-syntax syntax/parse) (only-in rake/halide/ir/types buffer buffer-data) rake/cpp) (provide define-symbolic-buffer define-symbolic-buffer* define-symbolic-var) (define-syntax (define-symbolic-buffer stx) (syntax-parse stx #:datum-literals (int8_t int16_t int32_t int64_t uin...
34498806145d0ffc2c16c46240c056609cd7b22fbb3d05f757e0f437532b6c03
district0x/district-designer
project.clj
(defproject district-designer "0.0.1" :description "Create and trade provably rare digital assets on the Ethereum blockchain" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojurescript "1.10.439"]] :source-paths ["src" "test" "resources"] :plu...
null
https://raw.githubusercontent.com/district0x/district-designer/3f2a585b866b6e173f2cb7b32ecadcffa33e2804/project.clj
clojure
(defproject district-designer "0.0.1" :description "Create and trade provably rare digital assets on the Ethereum blockchain" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojurescript "1.10.439"]] :source-paths ["src" "test" "resources"] :plu...
1693fe4393650e92e78f9a43f4f3a6c02ffbad445df4d7d8eef1e23c50a3b8bb
ghcjs/domconv-webkit
domconv-webkit-js.hs
# LANGUAGE QuasiQuotes # DOM interface converter : a tool to convert Haskell files produced by H / Direct into properly structured DOM wrapper module Main where import Prelude import System.Directory import System.Environment import System.FilePath import System.Exit import System.IO (hPrint, stderr, openF...
null
https://raw.githubusercontent.com/ghcjs/domconv-webkit/df2b83c6aa9ec4e99a018dfdbcad77fc0d95be06/domconv-webkit-js.hs
haskell
hierarchy n parent = Just s -> do forM_ (S.toList s) $ \child -> do hPutStrLn hh $ replicate n ' ' ++ "WebKitDOM" ++ child ++ " as " ++ typeFor child ++ ", webkit_dom_" ++ map toLower (underscore child) ++ "_get_type if webkit-dom" ...
# LANGUAGE QuasiQuotes # DOM interface converter : a tool to convert Haskell files produced by H / Direct into properly structured DOM wrapper module Main where import Prelude import System.Directory import System.Environment import System.FilePath import System.Exit import System.IO (hPrint, stderr, openF...
22bef05662b992c4f4f5ce8f27a95a74a6f75e3bf3ddc789fade2e23b8273f2a
yuriy-chumak/ol
function_prototype.scm
(print "no example required.")
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/rosettacode/function_prototype.scm
scheme
(print "no example required.")
d7b8ef79251917c9a776de4ae72e755366e1f337eb1c28d7823961b088abc4a7
camllight/camllight
baltree.mli
(* Basic balanced binary trees *) (* This module implements balanced ordered binary trees. All operations over binary trees are applicative (no side-effects). The [set] and [map] modules are based on this module. This modules gives a more direct access to the internals of the binary tree implementation tha...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/src/lib/baltree.mli
ocaml
Basic balanced binary trees This module implements balanced ordered binary trees. All operations over binary trees are applicative (no side-effects). The [set] and [map] modules are based on this module. This modules gives a more direct access to the internals of the binary tree implementation than the [...
type 'a t = Empty | Node of 'a t * 'a * 'a t * int;; type 'a contents = Nothing | Something of 'a;; value add: ('a -> int) -> 'a -> 'a t -> 'a t and contains: ('a -> int) -> 'a t -> bool and find: ('a -> int) -> 'a t -> 'a and remove: ('a -> int) -> 'a t -> 'a t [ remove f t ] removes one element [ x ] of [...
2b4fcffb87301dc16dd7cc2a8f6193fe64c1906f9db876ab5059766b932808be
IndianRoboticsOrganization/ArimaTTS
xsent.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Carnegie Mellon University ; ; Copyright ( c ) 2013 ; ; ...
null
https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/clustergen/xsent.scm
scheme
;; ; ; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this software and its documentation without restriction, including ;; without limi...
for suffstats global that is set at tts time too (defvar xsent_utts nil) (define (xsent_setup ttd) (set_backtrace t) (set! datafile ttd) (build_clunits_init ttd) (set! clustergen_params (append (list '(clunit_relation mcep) 50 70 normally 200 ...
60536c1fa5080cd4a449bf8741fa58fc0947e046090cec2cbdcd8ee1205a49b7
jwiegley/notes
Echo.hs
-- | A quick and dirty way to echo a printf-style debugging message to -- a file from anywhere. -- To use from Emacs , run ` tail -f /tmp / echo ` with M - x grep . The -- grep-mode buffer has handy up/down keybindings that will open the -- file location for you and it supports results coming in live. So -- it...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Echo.hs
haskell
| A quick and dirty way to echo a printf-style debugging message to a file from anywhere. grep-mode buffer has handy up/down keybindings that will open the file location for you and it supports results coming in live. So it's a perfect way to browse printf-style debugging logs. | God forgive me for my sins...
To use from Emacs , run ` tail -f /tmp / echo ` with M - x grep . The module Echo where import Control.Concurrent.MVar import Control.Monad.Trans (MonadIO(..)) import System.Locale import Data.Time import Language.Haskell.TH import Language.Haskell.TH.Lift import Prelude import System.IO.Unsafe ...
c2136879d7659f2bfcd9893fe4e0066e25a3d0624e7121f92fc672211f44d18a
reach-sh/reach-lang
Types.hs
# OPTIONS_GHC -Wno - missing - export - lists # module Reach.Eval.Types where import qualified Data.ByteString as B import qualified Data.Map.Strict as M import qualified Data.Set as S import qualified Data.Text as T import Generics.Deriving import Reach.AST.Base import Reach.AST.DL (DLSBlock) import Reach.AST.DLBase...
null
https://raw.githubusercontent.com/reach-sh/reach-lang/502d0084e45b74996346d6d323bcd9a9f4572484/hs/src/Reach/Eval/Types.hs
haskell
- The top-level of a module, before the App starts - The initial mode of an app where participants/views are defined - An "only" moves from "step" to "local step" and then to "step" again, where x = live - A "toconsensus" moves from "step" to "consensus step" then to "step" again - A top-level exported function - A sta...
# OPTIONS_GHC -Wno - missing - export - lists # module Reach.Eval.Types where import qualified Data.ByteString as B import qualified Data.Map.Strict as M import qualified Data.Set as S import qualified Data.Text as T import Generics.Deriving import Reach.AST.Base import Reach.AST.DL (DLSBlock) import Reach.AST.DLBase...
23120c19460aae1b11ebeca96b559e4056672cf5ed8d92f4e45d2e55f934c253
wireapp/wire-server
Mem.hs
# OPTIONS_GHC -fplugin = Polysemy . Plugin # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softwar...
null
https://raw.githubusercontent.com/wireapp/wire-server/7a5e7181a7daf5803a74073144f15a2214ee5196/services/spar/src/Spar/Sem/SAMLUserStore/Mem.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# OPTIONS_GHC -fplugin = Polysemy . Plugin # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public L...
d2137f8c630cf948b8d2bf42225228681ec8f53b4777d6d74538211cbc19c455
ocaml-flambda/ocaml-jst
includeclass_errors.ml
(* TEST * expect *) class type foo_t = object method foo: string end module M: sig class type ct = object val m: string end end = struct class type ct = object end end [%%expect{| class type foo_t = object method foo : string end Lines 8-10, characters 6-3: 8 | ......struct 9 | class type ct = obj...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/typing-misc/includeclass_errors.ml
ocaml
TEST * expect
class type foo_t = object method foo: string end module M: sig class type ct = object val m: string end end = struct class type ct = object end end [%%expect{| class type foo_t = object method foo : string end Lines 8-10, characters 6-3: 8 | ......struct 9 | class type ct = object end 10 | end Error:...
d9d6b4f09bca84cc6a9fd9f95abc34056a13e6931c53d34b13043eb25dc99f8c
purcell/adventofcode2017
Day11.hs
module Day11 ( day11 ) where import Data.Functor (($>)) import Text.Parsec import Text.Parsec.String (Parser, parseFromFile) -- | Position on a grid in cube coordinates. -- Ref. /#distances data GridPos = GridPos { gx :: Int , gy :: Int , gz :: Int } origin :: GridPos origin = GridPos 0 0 0 data Move ...
null
https://raw.githubusercontent.com/purcell/adventofcode2017/745ddefbeb4fcb35a460606c5dad89118adef12a/src/Day11.hs
haskell
| Position on a grid in cube coordinates. Ref. /#distances
module Day11 ( day11 ) where import Data.Functor (($>)) import Text.Parsec import Text.Parsec.String (Parser, parseFromFile) data GridPos = GridPos { gx :: Int , gy :: Int , gz :: Int } origin :: GridPos origin = GridPos 0 0 0 data Move = N | NE | SE | S | SW | NW move :: Move -> GridPos ->...
d6e7796630d3d1ea1c4b96bd6fb37d3c0915dd92b33b94f8659da3151d966024
zadean/xqerl
xqerl_format.erl
Copyright ( c ) 2017 - 2020 . SPDX - FileCopyrightText : 2022 % SPDX - License - Identifier : Apache-2.0 %% @doc Formatting functions for use with fn:format-integer, date format %% functions, and format-number. @TODO use the modifier markers for ordinals and ' traditional ' . @TODO Complete the imp...
null
https://raw.githubusercontent.com/zadean/xqerl/06c651ec832d0ac2b77bef92c1b4ab14d8da8883/src/xqerl_format.erl
erlang
@doc Formatting functions for use with fn:format-integer, date format functions, and format-number. used for fn:format-number ?dbg("DF",DF), ?dbg("Format",Format), N has seperator in hd tokenizes the picture string based on the format map, percent := Percent, digit := Digit, pattern := Pattern, not overf...
Copyright ( c ) 2017 - 2020 . SPDX - FileCopyrightText : 2022 SPDX - License - Identifier : Apache-2.0 @TODO use the modifier markers for ordinals and ' traditional ' . @TODO Complete the implementation -module(xqerl_format). -include("xqerl.hrl"). -compile(inline_list_funcs). -export([ par...
3b5f9090e9d63223a5cc2e86a2bf572aa609069e543f4c857980b0ae9004838f
cxphoe/SICP-solutions
pairs.rkt
(load "3.50.rkt") (define (interleave s1 s2) (if (null? s1) s2 (cons-stream (stream-car s1) (interleave s2 (stream-cdr s1))))) (define (pairs s t) the pairs is divided into three parts : -- the first one pair -- pairs containing the first integar of s and integars of t ;; -- p...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/5.Stream/pairs.rkt
racket
-- pairs containing the other integars of s andx other integars of t
(load "3.50.rkt") (define (interleave s1 s2) (if (null? s1) s2 (cons-stream (stream-car s1) (interleave s2 (stream-cdr s1))))) (define (pairs s t) the pairs is divided into three parts : -- the first one pair -- pairs containing the first integar of s and integars of t (cons-s...
18378d20a9beeace325ca095e387a85d71d76be2c71345ea8426d0fe0a8a5607
reborg/parallel
bfrequencies.clj
(ns bfrequencies) (require '[parallel.core :as p]) (require '[criterium.core :refer [bench quick-bench]]) (require '[clojure.core.reducers :as r]) (import 'java.util.concurrent.atomic.AtomicInteger 'java.util.concurrent.ConcurrentHashMap '[java.util HashMap Collections Map]) (def small-overlapping ...
null
https://raw.githubusercontent.com/reborg/parallel/7fde6e48e49455f213c435239c35d31c60e08948/benchmarks/bfrequencies.clj
clojure
small overlapping 92ms bigger overlapping 52ms with xforms 50 ms 4320.984379 ms 1980.512017 ms
(ns bfrequencies) (require '[parallel.core :as p]) (require '[criterium.core :refer [bench quick-bench]]) (require '[clojure.core.reducers :as r]) (import 'java.util.concurrent.atomic.AtomicInteger 'java.util.concurrent.ConcurrentHashMap '[java.util HashMap Collections Map]) (def small-overlapping ...
ba386bdefb300921920441fa89dc9e8afc0081cbc8582c0c1b2039c7ac91fe0a
xh4/web-toolkit
helper.lisp
(in-package :websocket-test) (defun find-executable (name &rest optional-names) (when-let ((path (uiop:getenv "PATH"))) (let ((paths #+win32 (split-sequence #\; path) #+unix (split-sequence #\: path))) (loop for path in paths for exe-path = (loop for name in (append (list name) op...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/test/websocket/helper.lisp
lisp
path)
(in-package :websocket-test) (defun find-executable (name &rest optional-names) (when-let ((path (uiop:getenv "PATH"))) #+unix (split-sequence #\: path))) (loop for path in paths for exe-path = (loop for name in (append (list name) optional-names) for exe-pa...
e4eddf54f7b2422aa48497bbb29a2fee12f1993e0a4f89a10c11e2e18bf1aa65
maravillas/spectator
collection_util.clj
(ns spectator.collection-util) (defn alternate-with [coll value] (interleave coll (take (count coll) (repeat value))))
null
https://raw.githubusercontent.com/maravillas/spectator/17af6c70a874e8d08c63dd306a66307405df5340/src/spectator/collection_util.clj
clojure
(ns spectator.collection-util) (defn alternate-with [coll value] (interleave coll (take (count coll) (repeat value))))
bb30dc95c4f2fa6b980f03b84eb94bb7362e3a6d90a326d9e183b62aff007a31
emotiq/emotiq
cached-var.lisp
(in-package :cached-var) ;; ----------------------------------------------------------------------------- ;; (defmacro def-cached-var (name creator &optional cache-name) (let ((cname (or cache-name (intern (format nil "*~A*" (string name))))) (new (gensym))) `(progn (defvar ...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/Crypto/cached-var.lisp
lisp
----------------------------------------------------------------------------- key1 = category
(in-package :cached-var) (defmacro def-cached-var (name creator &optional cache-name) (let ((cname (or cache-name (intern (format nil "*~A*" (string name))))) (new (gensym))) `(progn (defvar ,cname nil) (defun ,name () (or ,cname (let ((,new ,cre...
bde2ec2b16a13d7257ba52615e5a6bfc1d6e4b386a4a7bea74075ee075d87efe
GaloisInc/tower
SyncTxRx.hs
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE QuasiQuotes # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE PostfixOperators # # OPTIONS_GHC -fno - warn - orphans # ----------------------...
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower-aadl/test-echronos/SyncTxRx.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Single call from an active to a passive thread. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -...
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE QuasiQuotes # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE PostfixOperators # # OPTIONS_GHC -fno - warn - orphans # ( c ) 2015 Galois , Inc. module Main where import Ivo...
e71a12a6fa7d6fedac3d616846100494850fe76337fff1f23c345b32d47ba0e5
modular-macros/ocaml-macros
printtyp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/typing/printtyp.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Ctype open Format open Longident open Path open Asttypes open Types open Btype open Outcometree let r...
bee77e7243cfc37b624e6e5e7e9b4fab9f45e60d30d0357ab914791946063afe
joehillen/craft
SSH.hs
module Craft.Config.SSH where import Control.Lens hiding (noneOf) import qualified Data.ByteString.Char8 as B8 import Data.Char (toLower) import Data.Maybe (catMaybes) import Data.Void (Void...
null
https://raw.githubusercontent.com/joehillen/craft/de31caa7f86cceaab23dbef0f05208bb853cf73b/src/Craft/Config/SSH.hs
haskell
module Craft.Config.SSH where import Control.Lens hiding (noneOf) import qualified Data.ByteString.Char8 as B8 import Data.Char (toLower) import Data.Maybe (catMaybes) import Data.Void (Void...
1c63bfe6b146c9fe77beb2b744699e6d329602af40417eddec309094a45e9c24
mitchellwrosen/planet-mitchell
Storable.hs
module Storable ( Storable(..) ) where import Foreign.Storable
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Storable.hs
haskell
module Storable ( Storable(..) ) where import Foreign.Storable
e883c65dd68b3357f5091704183159c31dc98f0669eaf5dd7d9ddb460dc0e79d
daveconservatoire/dcsite-cljs
parser_tests.cljs
(ns daveconservatoire.server.parser-tests (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.test :refer [is are run-tests async testing deftest do-report]] [pathom.test :refer [async-test]] [common.async :refer [<?]] [pathom.sql :as ps] [daveconse...
null
https://raw.githubusercontent.com/daveconservatoire/dcsite-cljs/0b9c17569de092b5ea7fbf000ab528ac1b82851c/test/server/daveconservatoire/server/parser_tests.cljs
clojure
(ns daveconservatoire.server.parser-tests (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.test :refer [is are run-tests async testing deftest do-report]] [pathom.test :refer [async-test]] [common.async :refer [<?]] [pathom.sql :as ps] [daveconse...
2f4b89acd124e6ce16787963a65d86945153fb0be612194aee66709ca266415b
andrenth/ocaml-swagger
gen.mli
val of_swagger : ?path_base:string -> ?definition_base:string -> ?reference_base:string -> reference_root:string -> Swagger_t.swagger -> Mod.t val to_string : Mod.t -> string
null
https://raw.githubusercontent.com/andrenth/ocaml-swagger/60486bee7220a868b7e0b4507adb1edad44b98cd/lib/gen.mli
ocaml
val of_swagger : ?path_base:string -> ?definition_base:string -> ?reference_base:string -> reference_root:string -> Swagger_t.swagger -> Mod.t val to_string : Mod.t -> string
eaaa22efbffa70449d4163f83750fcf3f4a1a6417e79904f1342a1da05f43e9d
ZeusWPI/contests
woordsnippers.hs
import Control.Monad import Control.Applicative import Data.Map (Map) import qualified Data.Map as M import Data.List buildMap :: [String] -> Map String [String] buildMap words = M.fromList [ (w, l) | w' <- words, let w = init w', let l = findMatch w words ] where findMatch word words = filter (word `isPrefixOf...
null
https://raw.githubusercontent.com/ZeusWPI/contests/d78aec91be3ce32a436d160cd7a13825d36bbf3a/2012-vpw/woordsnippers/woordsnippers.hs
haskell
import Control.Monad import Control.Applicative import Data.Map (Map) import qualified Data.Map as M import Data.List buildMap :: [String] -> Map String [String] buildMap words = M.fromList [ (w, l) | w' <- words, let w = init w', let l = findMatch w words ] where findMatch word words = filter (word `isPrefixOf...
4acc7928d212701e8fe8a88bee0272e8c74d6fb00e20a729ace07764d01b114e
aantron/luv
version.ml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) let tests = [ "version", [ "major", `Quick, (fun () -> Alcotest.(check int) "number" 1 Luv.Version.major); "minor", `Quick, (fun () -> Alcotest.(check int) "num...
null
https://raw.githubusercontent.com/aantron/luv/ee3b63189d9b7dc1cca0d2a68592daf759be3838/test/version.ml
ocaml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) let tests = [ "version", [ "major", `Quick, (fun () -> Alcotest.(check int) "number" 1 Luv.Version.major); "minor", `Quick, (fun () -> Alcotest.(check int) "num...
4214ba458c751cbd10096211aacbb1d1cc5a6b3837dac8a18f2086db751f45b5
tolysz/prepare-ghcjs
Instances.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module Instances () where import Prelude () import Prelude.Compat import Control.Applicative (empty) impo...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/aeson/tests/Instances.hs
haskell
# LANGUAGE OverloadedStrings # "System" types. | Compare timezone part only on 'timeZoneMinutes' Compare equality to within a millisecond, allowing for rounding rounded to nearest). Test-related types. instance. However, the recommended constructor 'makeVersion' is not exported by "Data.Version" until base-4.8.0...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module Instances () where import Prelude () import Prelude.Compat import Control.Applicative (empty) import Control.Monad import Data.Aeson....
893327788fd003817a105fc0890d906a8199b7ec7013c9b62b2a8eeccafe05de
huffyhenry/sync.soccer
SyncMain.hs
import Control.Monad (when) import Options.Applicative import Data.Semigroup ((<>)) import qualified Tracab as Tcb import qualified F24 import qualified NeedlemanWunsch as NW import qualified Csvs as CSV import qualified Scoring -- Command line parsing machinery data Options = Options { tcbMetaFile :: String, ...
null
https://raw.githubusercontent.com/huffyhenry/sync.soccer/c740446a65a8ff50d67a9110af7d0fcffb01b900/app/SyncMain.hs
haskell
Command line parsing machinery Select events to sync in both halves Select frames to sync to Define gap penalties. Leaving frames unaligned costs nothing, but all events will get aligned since even a terrible match is > 0. Build the scoring function. Align! Print sync on screen if requested
import Control.Monad (when) import Options.Applicative import Data.Semigroup ((<>)) import qualified Tracab as Tcb import qualified F24 import qualified NeedlemanWunsch as NW import qualified Csvs as CSV import qualified Scoring data Options = Options { tcbMetaFile :: String, tcbDataFile :: String, f7File...
b66f60a46a549fa07406202594677f91e5d87d7db69a1d3265fc0909dbf85b4f
marick/structural-typing
use.clj
(ns use "Ways of using a type repo defined in a namespace" (:require [definition :as mytypes]) (:use midje.sweet)) (fact "The standard functions work with valid points" (let [ok {:x 1 :y 1}] (mytypes/built-like? :Point ok) => true (mytypes/built-like :Point ok) => ok (mytypes/<>built-like ok :Poin...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/examples/use.clj
clojure
All the text appears in the exceptions message, newline separated. Checked independently here for readability
(ns use "Ways of using a type repo defined in a namespace" (:require [definition :as mytypes]) (:use midje.sweet)) (fact "The standard functions work with valid points" (let [ok {:x 1 :y 1}] (mytypes/built-like? :Point ok) => true (mytypes/built-like :Point ok) => ok (mytypes/<>built-like ok :Poin...
f16631655cca0f01b489d1931c6d647b668ff802fef9b9ff9b4cdaf4d15ff6da
ghcjs/ghcjs
Main.hs
infixr ->!,=\ -- auxiliary functions ----------------------------------------------------- g u v w (x:y:z) = i(v x y)(u x y (w z) z)(x:w(y:z)) g u v w [x] = [x,512] q u v w nil = u : 95 : z v : w long = several.length ((->!),(=\))=(map,($)) a = g q f y = (-)32 z = (+)32 several = (>)2 fairlySmall = (...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/programs/rittri/Main.hs
haskell
auxiliary functions ----------------------------------------------------- main functions ---------------------------------------------------------- ---------------------------------------------------
infixr ->!,=\ g u v w (x:y:z) = i(v x y)(u x y (w z) z)(x:w(y:z)) g u v w [x] = [x,512] q u v w nil = u : 95 : z v : w long = several.length ((->!),(=\))=(map,($)) a = g q f y = (-)32 z = (+)32 several = (>)2 fairlySmall = (<)64 notTooSmall = (>)91 justRight = (==)95 notTooBig = (<)96 veryBig ...
cb9fb281f2498b2e906c12861e0cc68b649f2f5f617f7e0b7f242f3d6b50a4d4
deepfire/holotype
text-zipper.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module WordsSpec (spec) where This test suite is Copyright ( c ) import Test.Hspec import Test.QuickCheck import Data.Char import Data.Text.Zipper import Data.Text (Text) import qualified Data.Text as T i...
null
https://raw.githubusercontent.com/deepfire/holotype/d33052f588b74616560b81616ffc4a0142f8a617/doc/eur/text-zipper.hs
haskell
# LANGUAGE OverloadedStrings # Helpers | Creates a zipper with initial content and cursor location | Set the expectation that the given zipper is at the given cursor location next is space previous is word previous is space next is word | Delete to the very end of a zipper
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - orphans # module WordsSpec (spec) where This test suite is Copyright ( c ) import Test.Hspec import Test.QuickCheck import Data.Char import Data.Text.Zipper import Data.Text (Text) import qualified Data.Text as T import Data.Text.Zipper.Generic impo...
279d62bcdc9ac7b12b87285a20943d196a3cd360635f6292e1231603932fcead
nomnom-insights/nomnom.duckula
avro_test.clj
(ns duckula.avro-test (:require [clojure.test :refer [deftest testing is]] [duckula.avro])) (deftest validation (testing "it skips validation if no schema" (is (= :foo (duckula.avro/validate-with-schema nil :foo)))) (testing "loads schema and creates a validator" (let [validator (duckula...
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.duckula/a6c8ee965da5717c5909bfbda5745be7a287d2ce/test/duckula/avro_test.clj
clojure
test that outside the make-validator fn clojure structure will be converted to use dashes for schema validation
(ns duckula.avro-test (:require [clojure.test :refer [deftest testing is]] [duckula.avro])) (deftest validation (testing "it skips validation if no schema" (is (= :foo (duckula.avro/validate-with-schema nil :foo)))) (testing "loads schema and creates a validator" (let [validator (duckula...
55d34f748b62ba7a3e121da5afee1ea24d5d59bc6b3ed4971e6ce487ee470afe
hjcapple/reading-sicp
amb_and_search.scm
#lang sicp ;; 4.3.1 [amb 和搜索] (#%require "ambeval.scm") (easy-ambeval 10 '(begin (define (prime-sum-pair list1 list2) (let ((a (an-element-of list1)) (b (an-element-of list2))) (require (prime? (+ a b))) (list a b))) (define (require p) (if (not p) (amb))) (define (an-element-...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_4/amb_and_search.scm
scheme
4.3.1 [amb 和搜索]
#lang sicp (#%require "ambeval.scm") (easy-ambeval 10 '(begin (define (prime-sum-pair list1 list2) (let ((a (an-element-of list1)) (b (an-element-of list2))) (require (prime? (+ a b))) (list a b))) (define (require p) (if (not p) (amb))) (define (an-element-of items) (requir...
9f5a2a275fc2f73e2acdc500ae1e5c50a747c9e95c6c5336653ff69baa438849
per-gron/termite
data.scm
;;; Various mutable data structures implemented behind processes ;; (it would be "better" if those were implemented functionally) (import termite_core match recv) (define (data-make-process-name type) (string->symbol (string-append (symbol->string (thread-name (curre...
null
https://raw.githubusercontent.com/per-gron/termite/d8b72aa5970d68c99953cf58e10e9eca7cb156be/data.scm
scheme
Various mutable data structures implemented behind processes (it would be "better" if those were implemented functionally) ---------------------------------------------------------------------------- Cells or: (define-termite-type cell content) ---------------------------------------------------------------------...
(import termite_core match recv) (define (data-make-process-name type) (string->symbol (string-append (symbol->string (thread-name (current-thread))) "-" (symbol->string type)))) (define (make-cell #!key (name (data-make-process-name 'cell)) ...
b6c99a4b5b9b92a07b83f569dff4c6e5ea031ae9987488f983cc16fdc583ebe6
danielholmes/wolf3d-haskell
RaySpec.hs
module Wolf3D.Display.RaySpec (raySpec) where import Test.Hspec import Wolf3D.Display.Data import Wolf3D.Display.Ray import Wolf3D.WorldData import Wolf3D.DataHelpers import Data.Vector halfTileGlobalSizeI :: Int halfTileGlobalSizeI = tileGlobalSize `div` 2 halfTileGlobalSize :: Double halfTileGlobalSize = fromInteg...
null
https://raw.githubusercontent.com/danielholmes/wolf3d-haskell/de934f657f1fb4351591448bb4e25aaa4923571f/test/Wolf3D/Display/RaySpec.hs
haskell
i.e. the corners seem to fishbowl a bit, probably should measure some distances from player and some from focal, atm most (all?) of them from focal describe "castRaysToWalls" $ do it "should return same, correct distance for straight wall" $ let in
module Wolf3D.Display.RaySpec (raySpec) where import Test.Hspec import Wolf3D.Display.Data import Wolf3D.Display.Ray import Wolf3D.WorldData import Wolf3D.DataHelpers import Data.Vector halfTileGlobalSizeI :: Int halfTileGlobalSizeI = tileGlobalSize `div` 2 halfTileGlobalSize :: Double halfTileGlobalSize = fromInteg...
0a9f3041c1194860d93b31af6e04f818f68b74d2c94cd0b32f6c30f5a3842120
larskuhtz/hs-hashes
OpenSSL.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # #include <openssl/opensslv.h> ...
null
https://raw.githubusercontent.com/larskuhtz/hs-hashes/6d501f9be932b392e696b337397ca42e58809003/src/Data/Hash/Internal/OpenSSL.hs
haskell
# LANGUAGE OverloadedStrings # | Module: Data.Hash.Internal.OpenSSL Stability: experimental Bindings for OpenSSL EVP Message Digest Routines * Algorithms ** SHA2 $sha2 ** SHA3 $sha3 $keccak *** Unsafe finalize functions ** Blake2 $blake2 internal modules --------------------------------------------...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # #include <openssl/opensslv.h> Copyright : Copyright © 2021 <...
8191d24d4b922d9de40b84fd5f95a9a0f4a74a9604a90d8226992b1d9aeb9c31
IronScheme/IronScheme
diff.sps
(import (rnrs) (diff)) (apply (lambda (_ file1 file2) (let ((file1 (open-input-file file1)) (file2 (open-input-file file2))) (diff-report file1 file2))) (command-line))
null
https://raw.githubusercontent.com/IronScheme/IronScheme/687cde5d4e463a119e4ba28296f2af42a5c4a9df/IronScheme/IronScheme.Console/playground/diff.sps
scheme
(import (rnrs) (diff)) (apply (lambda (_ file1 file2) (let ((file1 (open-input-file file1)) (file2 (open-input-file file2))) (diff-report file1 file2))) (command-line))
d5eeffbdbaeb6965e472917772922dab575031ed9480c42a58acd591d43621b5
facebook/flow
hh_json.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/hack_forked/utils/hh_json/hh_json.mli
ocaml
* Hh_json parsing and pretty printing library. Types and functions for monadic API for traversing a JSON object. You can't access keys on a non-object JSON thing. The key is missing. The key has the wrong type. Our type for the result monad. It isn't just the json because it tracks * a history of the ke...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
6c6e752245823de59c69c385f5a728d63c0d796952f4764229d6e39784ef2fda
comby-tools/comby
ripgrep.mli
open Core (* [run pattern args] accepts a [pattern] and list of extra ripgrep-compatible arguments [args], for example, ["-g"; "*.go"; "-g"; "*.ts"]. Returns a list of files if the commands succeeds. *) val run : pattern:string -> args:string list -> string list option Or_error.t
null
https://raw.githubusercontent.com/comby-tools/comby/be59a66ba6645753fe4ae281ce464cb4fbecb163/lib/app/configuration/ripgrep.mli
ocaml
[run pattern args] accepts a [pattern] and list of extra ripgrep-compatible arguments [args], for example, ["-g"; "*.go"; "-g"; "*.ts"]. Returns a list of files if the commands succeeds.
open Core val run : pattern:string -> args:string list -> string list option Or_error.t
2613deb538822180ec38235a1d5c8c27441e6b9f725af7a831f27a09bdec0908
apache/couchdb-global-changes
global_changes_httpd_handlers.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an ...
null
https://raw.githubusercontent.com/apache/couchdb-global-changes/4aa1fc4b20ee029c93e796309887d66432fdf959/src/global_changes_httpd_handlers.erl
erlang
the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(global_changes_httpd_handlers). -export([url_handler/1, db_handl...
ffc7c92df040e2fddd5b7bde3bd896de2678f34a2fa0b3a0baf9cff42642fa2f
Frama-C/Frama-C-snapshot
writes.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/studia/writes.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
b922ae3b825ff1a89248245719a81915e0801fcd02a8ea7f16031913b97fc77b
Chris00/ocaml-cairo
test_for_stream.ml
open Printf let make create fname = let fh = open_out fname in let surface = create (output_string fh) ~w:100. ~h:100. in let ctx = Cairo.create surface in Cairo.set_line_width ctx 1.; Cairo.move_to ctx 0. 0.; Cairo.line_to ctx 100. 100.; Cairo.stroke ctx; Cairo.Surface.finish surface; (* Important fo...
null
https://raw.githubusercontent.com/Chris00/ocaml-cairo/202674a8d0c533b689ceacdb523ca167611e1b4c/tests/test_for_stream.ml
ocaml
Important for the data to be written
open Printf let make create fname = let fh = open_out fname in let surface = create (output_string fh) ~w:100. ~h:100. in let ctx = Cairo.create surface in Cairo.set_line_width ctx 1.; Cairo.move_to ctx 0. 0.; Cairo.line_to ctx 100. 100.; Cairo.stroke ctx; flush fh; close_out fh; printf "Wrote %S....
05304135c4b75a11c0b66baf9400a638bd9751537001069332fd8136f09f9a57
clojure-interop/aws-api
AWSSecurityTokenServiceClientBuilder.clj
(ns com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder "Fluent builder for AWSSecurityTokenService. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.securitytoken AWSSecurityToke...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.securitytoken/src/com/amazonaws/services/securitytoken/AWSSecurityTokenServiceClientBuilder.clj
clojure
(ns com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder "Fluent builder for AWSSecurityTokenService. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.securitytoken AWSSecurityToke...
90e76e09cf8ff7d65ff65d0063a5796d755c805bd5aef9cfca5bd3fdae85c0e6
jjmeyer0/gt
parse.mli
(** The type definitions for ther terminals of the defined language. *) type token = | EOF | TERMINAL_NOT_IN_AST0 of (Lists_syntax.__term_not_in_ast__) ... | TERMINAL_NOT_IN_ASTN of (Lists_syntax.__term_not_in_ast__) | TERMINAL_IN_AST0 of (Lists_syntax.__terminal__) ... | TERMINAL_IN_ASTN of (Lists_sy...
null
https://raw.githubusercontent.com/jjmeyer0/gt/c0c7febc2e3fd532d44617f663b224cc0b9c7cf2/doc/manual/ref/generated-funs/parse.mli
ocaml
* The type definitions for ther terminals of the defined language.
type token = | EOF | TERMINAL_NOT_IN_AST0 of (Lists_syntax.__term_not_in_ast__) ... | TERMINAL_NOT_IN_ASTN of (Lists_syntax.__term_not_in_ast__) | TERMINAL_IN_AST0 of (Lists_syntax.__terminal__) ... | TERMINAL_IN_ASTN of (Lists_syntax.__terminal__) val main : (Lexing.lexbuf -> token) -> Lexing.lexbuf...
f0e94743c059c690a08dd30c3da0e01dbbcf69d992c313bb0315632d0e7561e1
alphaHeavy/quickfix-hs
GenerateFIX.hs
# LANGUAGE NamedFieldPuns # # OPTIONS_GHC -fno - warn - name - shadowing # module Main (main) where import Control.Applicative import Control.Monad import Data.Char (toLower) import Data.Map (Map) import Data.List (intercalate, partition, stripPrefix, sortBy) import qualified Data.Map as Map import Data.Maybe import ...
null
https://raw.githubusercontent.com/alphaHeavy/quickfix-hs/7fcfbc063a99b2edbd55adc38c813cbf639f16fe/GenerateFIX.hs
haskell
unbangedMaybeFIXTyCon :: Field -> BangType unbangedMaybeFIXTyCon = BangedTy . maybeFIXTyCon optVal field = App (Con . UnQual . Ident $ "fmap") (reqVal field) setterRhs field@(_, True) = setterRhsFields field setterRhs field@(_, False) = App (Con . UnQual . Ident $ "Just") (setterRhsFields field) UnQual (Ident field...
# LANGUAGE NamedFieldPuns # # OPTIONS_GHC -fno - warn - name - shadowing # module Main (main) where import Control.Applicative import Control.Monad import Data.Char (toLower) import Data.Map (Map) import Data.List (intercalate, partition, stripPrefix, sortBy) import qualified Data.Map as Map import Data.Maybe import ...
e4821df75a9865a0001b2b41db4ed749cac8d541cb64257254370a010f376aa5
lspitzner/brittany
Test311.hs
# LANGUAGE TypeApplications # foo = let a = b @1 cccc = () in foo
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test311.hs
haskell
# LANGUAGE TypeApplications # foo = let a = b @1 cccc = () in foo
41fa242194873936d3bac50a301144c08386e9e367531ed1df945b876101b814
tokenrove/m68k-assembler
machine.lisp
;;; Tables and things which are truly machine (m68k) specific. ;;; ;;; Julian Squires/2005 (in-package :m68k-assembler) (let ((all-ea-modes '(immediate pc-index pc-displacement absolute-long absolute-short postincrement-indirect predecrement-indirect displacement-indirect indexed-indirect vanilla-indi...
null
https://raw.githubusercontent.com/tokenrove/m68k-assembler/6c3bc3e62da890bb34da856c8c72a6a7d1650eaa/machine.lisp
lisp
Tables and things which are truly machine (m68k) specific. Julian Squires/2005 are either pairs of operand constraints and code generation masks, or functions. these are matched or called in sequence, until one can be found which matches. Code generation masks are lists in the form: (size code) where size in...
(in-package :m68k-assembler) (let ((all-ea-modes '(immediate pc-index pc-displacement absolute-long absolute-short postincrement-indirect predecrement-indirect displacement-indirect indexed-indirect vanilla-indirect address-register data-register))) (defparameter *constraints-modes-table* `((all...
9d32a7ed8e84f817316372a482b8c7e9c8811fb73db01123f2050f128edfa7ac
mauricioszabo/atom-chlorine
configs.cljs
(ns chlorine.configs (:require [chlorine.state :refer [configs state]] [clojure.walk :as walk] [chlorine.utils :as aux] ; [check.core :refer-macros [check]] [clojure.test])) (defn- propagate-to-config [new-value] (let [config (. js/atom -config)] (doseq [[key val...
null
https://raw.githubusercontent.com/mauricioszabo/atom-chlorine/86628b7b9cae7c1ae352abe0caefc6f960c37a3f/src/chlorine/configs.cljs
clojure
[check.core :refer-macros [check]]
(ns chlorine.configs (:require [chlorine.state :refer [configs state]] [clojure.walk :as walk] [chlorine.utils :as aux] [clojure.test])) (defn- propagate-to-config [new-value] (let [config (. js/atom -config)] (doseq [[key value] (:config new-value) :let [atom-ke...
f5e65751a1f8cf918752b24cb6b1d3e8fcb7f5c4b9847b66aefce2c6e5c2b3d4
lasp-lang/lasp-bench
lasp_bench_driver_simple.erl
-module(lasp_bench_driver_simple). -author("Gonçalo Tomás <>"). -export([new/1, run/4]). -include("lasp_bench.hrl"). -define (MAX, 10000000). -define (NUM_BYTES, 64). %% ==================================================================== %% API %% ===========================================================...
null
https://raw.githubusercontent.com/lasp-lang/lasp-bench/d9b3e78d64ea4709ca10ec062c7fc969c1c503d4/src/lasp_bench_driver_simple.erl
erlang
==================================================================== API ====================================================================
-module(lasp_bench_driver_simple). -author("Gonçalo Tomás <>"). -export([new/1, run/4]). -include("lasp_bench.hrl"). -define (MAX, 10000000). -define (NUM_BYTES, 64). new(_Id) -> {ok, []}. run(add_two_numbers, _KeyGen, _ValueGen, _State) -> _ = random_number()+random_number(), {ok, []}; run(s...
dce53be2c6dc4f76d836b48aa42c21a1cb11e6e88ad84575648ac4e8b1d5c8b5
itchyny/vim-haskell-sort-import
multiple_lines_no_space.in.hs
import C(ca, cb, cc) import B(ba, bb, bc) import A(aa, ab, ac)
null
https://raw.githubusercontent.com/itchyny/vim-haskell-sort-import/bfe4b6a5e212828ef14e611fa8c358b3960d4f9f/test/only/multiple_lines_no_space.in.hs
haskell
import C(ca, cb, cc) import B(ba, bb, bc) import A(aa, ab, ac)
0a327cef6e88f5886bd480a4916678693c719bb5e66e2c9e5b723a89e9cd56c9
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude main = cabalTest . void $ do isWin <- isWindows ghc94 <- isGhcVersion "== 9.4.*" expectBrokenIf (isWin && ghc94) 8451 $ do cabal' "v2-build" ["script.hs"] env <- getTestEnv cacheDir <- getScriptCacheDirectory $ testCurrentDir env </> "script.hs" shouldExist $ cach...
null
https://raw.githubusercontent.com/haskell/cabal/410f871df899e5af0847089354e0031fe051551d/cabal-testsuite/PackageTests/NewBuild/CmdBuild/Script/cabal.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest . void $ do isWin <- isWindows ghc94 <- isGhcVersion "== 9.4.*" expectBrokenIf (isWin && ghc94) 8451 $ do cabal' "v2-build" ["script.hs"] env <- getTestEnv cacheDir <- getScriptCacheDirectory $ testCurrentDir env </> "script.hs" shouldExist $ cach...
8ce41f606191f7c70a45fcd55dd9d38a562535b28f020209782f79f9a9634f96
reborg/clojure-essential-reference
1.clj
< 1 > CompilerException java.lang.RuntimeException: Unable to resolve var: a [...] (def a 1) < 2 > ;; #'user/a (var test-var/a) ; <3> ;; CompilerException java.lang.RuntimeException: Unable to resolve var: test-var/a (create-ns 'test-var) (intern 'test-var 'a 1) < 4 > ;; #'test-var/a (= (var a) (var test-var/...
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OtherFunctions/VarsandNamespaces/var%2Cfind-varandresolve/1.clj
clojure
#'user/a <3> CompilerException java.lang.RuntimeException: Unable to resolve var: test-var/a #'test-var/a false
< 1 > CompilerException java.lang.RuntimeException: Unable to resolve var: a [...] (def a 1) < 2 > (create-ns 'test-var) (intern 'test-var 'a 1) < 4 > (= (var a) (var test-var/a))
dfbae6027f2a23e6ee278387f5f8f98ce654179f23d732be985b8f41e7a20a06
timothypratley/power-turtle
html_canvas.cljs
(ns power-turtle.view.canvas.html-canvas (:require [reagent.core :as reagent])) (def component (reagent/atom nil)) (defn html-space [] [:div [:h3 "HTML"] [:hr] [:div {:style {:text-align "left" :padding "10px"}} @component]])
null
https://raw.githubusercontent.com/timothypratley/power-turtle/b7a9aafd8ed7c5c7b5c19419de0a203e5e5dc288/src/power_turtle/view/canvas/html_canvas.cljs
clojure
(ns power-turtle.view.canvas.html-canvas (:require [reagent.core :as reagent])) (def component (reagent/atom nil)) (defn html-space [] [:div [:h3 "HTML"] [:hr] [:div {:style {:text-align "left" :padding "10px"}} @component]])
4e5ba1605677ce09fc39aae43ea05e2d36c266c786180a630fce722274480c92
cljfx/cljfx
box.clj
(ns cljfx.fx.box "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.shape3d :as fx.shape3d]) (:import [javafx.scene.shape Box])) (set! *warn-on-reflection* true) (def props (merge fx.shape3d/props (composite/props Box ...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/box.clj
clojure
(ns cljfx.fx.box "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.shape3d :as fx.shape3d]) (:import [javafx.scene.shape Box])) (set! *warn-on-reflection* true) (def props (merge fx.shape3d/props (composite/props Box ...
ea6765badbed86376d0a7156d814f12ab5260c0c33a18a1f20c08f0a31808c75
ucsd-progsys/liquidhaskell
T595.hs
module T595 where import Data.Vector data Test = Test { vec :: Thing , x0 :: Bool } type Thing = [()] -- Vector () @ data Test = Test : : Thing , : : { v : Bool | ( ( len vec ) < 1 ) = = > v } } @ { vec :: Thing , x0 :: { v : Bool | ((len vec) < 1) ==...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/pos/T595.hs
haskell
Vector () The above data declaration should give us the following refined types for the record selectors
module T595 where import Data.Vector data Test = Test { vec :: Thing , x0 :: Bool } @ data Test = Test : : Thing , : : { v : Bool | ( ( len vec ) < 1 ) = = > v } } @ { vec :: Thing , x0 :: { v : Bool | ((len vec) < 1) ==> v } } @-} assume ...
e09e0b3be81921ed7a3516798b113cf87a3bfd165cbdba26d2e77fab3a9ee981
s-expressionists/ctype
cfunction.lisp
(in-package #:ctype) (defun lambda-list-top-p (lambda-list) (and (null (lambda-list-required lambda-list)) (every #'top-p (lambda-list-optional lambda-list)) (top-p (lambda-list-rest lambda-list)) (not (lambda-list-keyp lambda-list)))) ;;; Does this function ctype = FUNCTION unadorned? (defun f...
null
https://raw.githubusercontent.com/s-expressionists/ctype/d99875fffaf6dfd78cb6c8b02d464f4366bfb572/cfunction.lisp
lisp
Does this function ctype = FUNCTION unadorned? : TODO We use conjoin/2 rather than conjoin because we know both are values types, and that conjoin/2 always simplifies such types.
(in-package #:ctype) (defun lambda-list-top-p (lambda-list) (and (null (lambda-list-required lambda-list)) (every #'top-p (lambda-list-optional lambda-list)) (top-p (lambda-list-rest lambda-list)) (not (lambda-list-keyp lambda-list)))) (defun function-top-p (cfunction) (and (lambda-list-top-p...