_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
b0be2508c7b6d9bc50fa67cf70e16b5d9fd69e20d8821312a6c3e5846fd1553f
int-index/ether
Reader.hs
module Ether.Reader ( -- * MonadReader class MonadReader , ask , local , reader , asks -- * The Reader monad , Reader , runReader -- * The ReaderT monad transformer , ReaderT , readerT , runReaderT -- * The Reader monad (flattened) , Readers , runRea...
null
https://raw.githubusercontent.com/int-index/ether/84c1d560da241c8111d1a3c98d9a896f0c62087b/src/Ether/Reader.hs
haskell
* MonadReader class * The Reader monad * The ReaderT monad transformer * The Reader monad (flattened) * The ReaderT monad transformer (flattened) * MonadReader class (implicit) * The Reader monad (implicit) * The ReaderT monad transformer (implicit) * Internal labels # MINIMAL (ask | reader), local # | Retrie...
module Ether.Reader ( MonadReader , ask , local , reader , asks , Reader , runReader , ReaderT , readerT , runReaderT , Readers , runReaders , ReadersT , runReadersT , MonadReader' , local' , ask' , reader' , asks' , Reader' , run...
c9679f549021bf6a6261f0a6a18c7414288e62b28e18e00290c0a3bfa6f81427
anoma/juvix
Stripped.hs
module Juvix.Compiler.Core.Language.Stripped ( module Juvix.Compiler.Core.Language.Base, module Juvix.Compiler.Core.Language.Nodes, module Juvix.Compiler.Core.Language.Stripped.Type, module Juvix.Compiler.Core.Language.Stripped, ) where {- Stripped program tree datatype -} import Juvix.Compiler.Core.L...
null
https://raw.githubusercontent.com/anoma/juvix/f2298bd67464d595d1e6ec46b227c17b4a18871d/src/Juvix/Compiler/Core/Language/Stripped.hs
haskell
Stripped program tree datatype ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
module Juvix.Compiler.Core.Language.Stripped ( module Juvix.Compiler.Core.Language.Base, module Juvix.Compiler.Core.Language.Nodes, module Juvix.Compiler.Core.Language.Stripped.Type, module Juvix.Compiler.Core.Language.Stripped, ) where import Juvix.Compiler.Core.Language.Base import Juvix.Compiler.Co...
e51d77533062c0ea53318b67d3eea9170a82edb3fe066c66fd26305316230d88
simplegeo/erlang
ssh_file.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/ssh/src/ssh_file.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2005 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ssh_file). -include("ssh.hrl")....
8beb77b52ad35a1f711e9b590bdfad80d8ecdd318231c6ebf2d4cb2389429b14
LexiFi/lrt
ttype.mli
(******************************************************************************) Copyright ( C ) 2020 by LexiFi . (* *) This source file is released under the terms of the MIT license as part ...
null
https://raw.githubusercontent.com/LexiFi/lrt/038ff963bd066c9d94cffb9896b04b6b8696f136/lib/ttype.mli
ocaml
**************************************************************************** of the lrt package. Details can be found in the attached LICENSE file. **************************************************************************** * Typed repr...
Copyright ( C ) 2020 by LexiFi . This source file is released under the terms of the MIT license as part type 'a t val t : 'a t -> 'a t t val print : Format.formatter -> 'a t -> unit type dynamic = Dyn : 'a t * 'a -> dynamic val equality : 'a t -> 'b t -> ('a,...
074d4e0db90900cbb1fd148460d0248d8a5d10c93eae393aba34954ae304a049
ddssff/refact-global-hse
ScanM.hs
| RWS monad for scanning haskell modules parsed by . # LANGUAGE TemplateHaskell # module ScanM RWS monad to scan a text file ScanM , locFilename , point , comments , remaining , scanModule , keep , keepAll , skip , trailingWhitespace , withTrailingWhitespace ,...
null
https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/expected/decl9/ScanM.hs
haskell
(Annotated(ann), Module(..)) The current position in the full text The text remaining after _point The comments remaining after _point , ("srcLine", "locLine"), ("srcColumn", "locColumn") pure $ testSpan " keep " ( SrcSpan ( srcFilename loc ) ( srcLine p ) ( srcColumn p ) ( srcLin...
| RWS monad for scanning haskell modules parsed by . # LANGUAGE TemplateHaskell # module ScanM RWS monad to scan a text file ScanM , locFilename , point , comments , remaining , scanModule , keep , keepAll , skip , trailingWhitespace , withTrailingWhitespace ,...
9f957db58b09ef2bad1b6e06a3e622c33cac7bed716a8049ba6285f766daa1f4
fossas/fossa-cli
LinkUserBinaries.hs
# LANGUAGE RecordWildCards # module App.Fossa.Config.LinkUserBinaries ( mkSubCommand, LinkUserBinsConfig (..), LinkUserBinsOpts, ) where import App.Fossa.Config.Common ( CommonOpts (..), collectApiOpts, collectBaseDir, commonOpts, ) import App.Fossa.Config.ConfigFile (ConfigFile, resolveLocalConfigFile...
null
https://raw.githubusercontent.com/fossas/fossa-cli/f344cc427e3101514171f92a89f50985792140fc/src/App/Fossa/Config/LinkUserBinaries.hs
haskell
# LANGUAGE RecordWildCards # module App.Fossa.Config.LinkUserBinaries ( mkSubCommand, LinkUserBinsConfig (..), LinkUserBinsOpts, ) where import App.Fossa.Config.Common ( CommonOpts (..), collectApiOpts, collectBaseDir, commonOpts, ) import App.Fossa.Config.ConfigFile (ConfigFile, resolveLocalConfigFile...
8b44d0214a330ce4071c99dcea7dfbc5c344dd99ca6195172c07f8f31a45844a
homebaseio/homebase-react
counter.cljs
(ns homebase.dev.example.react.counter {:no-doc true} (:require [devcards.core :as dc] [homebase.react] ["../js_compiled/counter" :as react-example]) (:require-macros [devcards.core :refer [defcard-rg defcard-doc]] [homebase.dev.macros :refer [inline-resource]])) (defcard-rg counter-example [re...
null
https://raw.githubusercontent.com/homebaseio/homebase-react/35cf71a996c98eebaa2933246bbf0681d5a891ce/src/dev/homebase/dev/example/react/counter.cljs
clojure
(ns homebase.dev.example.react.counter {:no-doc true} (:require [devcards.core :as dc] [homebase.react] ["../js_compiled/counter" :as react-example]) (:require-macros [devcards.core :refer [defcard-rg defcard-doc]] [homebase.dev.macros :refer [inline-resource]])) (defcard-rg counter-example [re...
8e458a9b5501ae36ccdd3724ebdac5b21b2d94a9e6ebed35c4553c5f0365d67d
riccardotommasini/ppl
ESE20181213.hs
module ESE20181213 where import Control.Monad type Log = [String] newtype Logger a = Logger { run :: (a, Log)} instance (Show a) => Show (Logger a) where show (Logger a) = show a instance (Eq a) => Eq (Logger a) where Logger (x,y) /= Logger (a,b) = (x /= a) || (y /= b) logmapp :: (a...
null
https://raw.githubusercontent.com/riccardotommasini/ppl/53b2f5b9a2d238070963eb26457fd4e4311e190b/haskell/actual/ESE20181213.hs
haskell
module ESE20181213 where import Control.Monad type Log = [String] newtype Logger a = Logger { run :: (a, Log)} instance (Show a) => Show (Logger a) where show (Logger a) = show a instance (Eq a) => Eq (Logger a) where Logger (x,y) /= Logger (a,b) = (x /= a) || (y /= b) logmapp :: (a...
ee23c90008d876acbc1d91f6c341a78b05eda9fe416e827d419a12c9bb4a7867
plumatic/grab-bag
manager_test.clj
(ns domain.interests.manager-test (:use clojure.test plumbing.core plumbing.test domain.interests.manager) (:require [plumbing.index :as index] store.bucket [domain.interests.type.number :as number] [domain.interests.type.bucket :as bucket] )) (deftest type-list-test ;; we are checking that these ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/domain/test/domain/interests/manager_test.clj
clojure
we are checking that these indices are unchanged, because we have saved data that rely on them
(ns domain.interests.manager-test (:use clojure.test plumbing.core plumbing.test domain.interests.manager) (:require [plumbing.index :as index] store.bucket [domain.interests.type.number :as number] [domain.interests.type.bucket :as bucket] )) (deftest type-list-test (is-= :topic (+type-list+ 0)) ...
e9df7d48c3bdb6cf96c9adba19b6b26dcf6fc426bc57901f4505ede9a22a0bf1
manuel-serrano/bigloo
sua.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / recette / sua.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/sua.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The `storage analysis tests' */ *===========================...
* serrano / prgm / project / bigloo / recette / sua.scm * / * Author : * / * Creation : Sun Jun 28 16:04:55 1998 * / * Last change : We d Dec 26 16:44:09 2007 ( serrano ) * / (module su...
aa39664f61d7368251306fe52fb303d5564b7eee0e071dd3be0c8e9144014f4d
nd/sicp
5.21.scm
(load "simulator.scm") (define (count-leaves structure) (let ((count-leaves-machine (make-machine (list (list '+ +) (list 'not not) (list 'car car) (list 'cdr cdr) (list 'cons cons) (list 'is-not-pair? (lamb...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch05/5.21.scm
scheme
procedure count-leaves get value of argument tree save all registers this procedure use for futher repair recursive call for car of the tree save it for futher repair argument for secound recursive call is cdr of tree make val 0 again after call continue from after-cdr-counted calculation done repair values of all use...
(load "simulator.scm") (define (count-leaves structure) (let ((count-leaves-machine (make-machine (list (list '+ +) (list 'not not) (list 'car car) (list 'cdr cdr) (list 'cons cons) (list 'is-not-pair? (lamb...
9b61cc131b30cc883b9ce72de511f5c34a58e7d4f3c5e69bccb8f745b2804c99
jyh/metaprl
itt_nat.mli
* Natural numbers . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/core/itt_nat.mli
ocaml
*********************************************************************** * TACTICS * *********************************************************************** *********************************************************************** * Grammar for integer ranges...
* Natural numbers . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as ...
1dc6b42e0ad5a42181e1d143c06c7b08da79b892acc07d5851754dc059cabe18
camoy/trace-contract
decl.rkt
#lang racket/base ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; provide (provide (struct-out decl) decl-contract-name) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; require (require racket/contract racket/match ...
null
https://raw.githubusercontent.com/camoy/trace-contract/06f2778c1ab63a773c029783152a070f3ab4feba/private/decl.rkt
racket
provide require data A `decl` declares a variable with a contract. - `decl` : Symbol; - `ctc` : Contract. functions Decl → Sexpr Used for `contract-name`. examples tests
#lang racket/base (provide (struct-out decl) decl-contract-name) (require racket/contract racket/match "util.rkt") (struct decl (var ctc)) (define (decl-contract-name de) (match-define (struct** decl (var ctc)) de) `[,var ,(contract-name ctc)]) (module+ example (provide (all-d...
f0196335db0909772eea063569176c1f6368cd114f96c156f45138959487961d
braveclojure/training
project.clj
(defproject parse "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/data.csv "0.1.3"]] :main ^:skip-aot parse.core :target-path "target/%s" :prof...
null
https://raw.githubusercontent.com/braveclojure/training/5b7fb9059c17b2166c2e66850094f424319e55eb/real/parse/project.clj
clojure
(defproject parse "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/data.csv "0.1.3"]] :main ^:skip-aot parse.core :target-path "target/%s" :prof...
76c3fea5ef6b6949e39ad78e4105d3cd2b22de21a539294584ea3d968d1ecefb
ckeen/pastiche
example-app.scm
(include "pastiche.scm") (import pastiche) (import awful doctype) (pastiche "/" "paste.db" awful-settings: (lambda (handler) (parameterize ((debug-file "/tmp/paste") (page-css "chicken.css") (page-doctype doctype-html) (...
null
https://raw.githubusercontent.com/ckeen/pastiche/fd672fc09e9cda53a53705a4204686059b6aebc1/example-app.scm
scheme
(include "pastiche.scm") (import pastiche) (import awful doctype) (pastiche "/" "paste.db" awful-settings: (lambda (handler) (parameterize ((debug-file "/tmp/paste") (page-css "chicken.css") (page-doctype doctype-html) (...
8af0ecce2ec24f87088c9275ea2fd667232afa04c68ab7db1e3b52ff3ba6ba8c
donya/VividEuterpea
WriteNRTWin.hs
Modification of WriteNRT to work with Windows . This is the code from Vivid . Actions . NRT with just a few tweaks for Windows compatibility . Modification of WriteNRT to work with Windows. This is the code from Vivid.Actions.NRT with just a few tweaks for Windows compatibility. -} {-# LANGUAGE BangPatterns #-...
null
https://raw.githubusercontent.com/donya/VividEuterpea/fbe43c4a00a3ab1fe91658e411d57ddcb0e20b65/WriteNRTWin.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE TypeSynonymInstances # maybe not in the future ${SHELL} system "scsynth" >>= \case -- EDIT: couldn't get a Win-compatible version of this check to work ExitFailure _ -> error "No 'scsynth' found! Be sure to put it in your $PATH" todo: these formats seem not to work: ".flac" ...
Modification of WriteNRT to work with Windows . This is the code from Vivid . Actions . NRT with just a few tweaks for Windows compatibility . Modification of WriteNRT to work with Windows. This is the code from Vivid.Actions.NRT with just a few tweaks for Windows compatibility. -} # LANGUAGE FlexibleInstances...
ac7bd495f74a78ea997d427413a1fd5601665b104a785bf797ba576b08bc39ae
ml4tp/tcoq
coqdep_lexer.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/tools/coqdep_lexer.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type mL_token = Use_module of...
e665e14082b0be803449177e1712d00fbd42d7d90f5bdae54485642b918cd8db
nmunro/mtg-api
types.lisp
(defpackage mtg-api/types (:use :cl) (:export #:fetch #:make-types-api)) (in-package :mtg-api/types) (defclass types-api-v1 (mtg-api/base:api-v1) ((resource :initarg :formats :initform "types" :reader resource)) (:documentation "Represents a list of types using V1 of the API")) (defmethod print-obj...
null
https://raw.githubusercontent.com/nmunro/mtg-api/f796794cde8a483278f22d7ac7e6c46302685ec1/src/types/types.lisp
lisp
(defpackage mtg-api/types (:use :cl) (:export #:fetch #:make-types-api)) (in-package :mtg-api/types) (defclass types-api-v1 (mtg-api/base:api-v1) ((resource :initarg :formats :initform "types" :reader resource)) (:documentation "Represents a list of types using V1 of the API")) (defmethod print-obj...
c7bd9256b9ce33be04ab7792ed1129e1c4b89451256724a4c42e7687b1f007d0
EasyCrypt/easycrypt
ecSmt.ml
(* -------------------------------------------------------------------- *) open EcUtils open EcMaps open EcIdent open EcPath open EcTypes open EcDecl open EcFol open EcEnv open EcCoreLib open EcBaseLogic open EcWhy3Conv module P = EcProvers module ER = EcReduction module BI = EcBigInt module EI = EcInductive (* ----...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/6f695bac5b80a483bbff73f76328110d6d0cae19/src/ecSmt.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- --- --- ---------------------------...
open EcUtils open EcMaps open EcIdent open EcPath open EcTypes open EcDecl open EcFol open EcEnv open EcCoreLib open EcBaseLogic open EcWhy3Conv module P = EcProvers module ER = EcReduction module BI = EcBigInt module EI = EcInductive module WIdent = Why3.Ident module WTerm = Why3.Term module WTy = Why3.Ty mo...
7620e58b2308805fdf0c38a6a81ec7e0759462da64a224d585430d99f3564376
DogLooksGood/holdem
lobby.clj
(ns poker.lobby "Context module of lobby. Player create game & join game." (:require [clojure.spec.alpha :as s] [crux.api :as crux] [poker.game :as game] [poker.specs] [poker.system.db :as db] [clojure.tools.logging :as log]) (:import java.util.UUID)) (s/def ::create-gam...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/bc0f93ed65cab54890c91f78bb95fe3ba020a41f/src/clj/poker/lobby.clj
clojure
usages: list-joined-games usages: list-games usages: get-game usages: join-game
(ns poker.lobby "Context module of lobby. Player create game & join game." (:require [clojure.spec.alpha :as s] [crux.api :as crux] [poker.game :as game] [poker.specs] [poker.system.db :as db] [clojure.tools.logging :as log]) (:import java.util.UUID)) (s/def ::create-gam...
6d09b62288649ac2ffcd04fc1e74fc651431d0722fce085836904c5152979fcc
janestreet/bonsai
main.ml
open! Core let () = Command_unix.run Bonsai_test_dot.Test_instrumentation.command
null
https://raw.githubusercontent.com/janestreet/bonsai/d42f19ba7fd17b8363408f11da181a3812fa6c81/test/test_dot/bin/main.ml
ocaml
open! Core let () = Command_unix.run Bonsai_test_dot.Test_instrumentation.command
5087958b0018a8ca0b24527c710ff294ced250ab157a85adcecf53748f7d6a73
haskell/directory
DoesPathExist.hs
# LANGUAGE CPP # module DoesPathExist where #include "util.inl" import TestUtils (supportsSymlinks) main :: TestEnv -> IO () main _t = do T(expect) () =<< doesPathExist rootDir createDirectory "somedir" writeFile "somefile" "somedata" writeFile "\x3c0\x42f\x97f3\xe6\x221e" "somedata" T(expect) () . not =<...
null
https://raw.githubusercontent.com/haskell/directory/0b7c45e59f5a559addcd2b8e4f72e96f2e594f61/tests/DoesPathExist.hs
haskell
# LANGUAGE CPP # module DoesPathExist where #include "util.inl" import TestUtils (supportsSymlinks) main :: TestEnv -> IO () main _t = do T(expect) () =<< doesPathExist rootDir createDirectory "somedir" writeFile "somefile" "somedata" writeFile "\x3c0\x42f\x97f3\xe6\x221e" "somedata" T(expect) () . not =<...
fee2cafcdce16dc0b237176dbc84e6d9cf4f8921657a2368f73d65af61c27511
rleonid/oml
oml_test.ml
Copyright 2015,2016 : < > 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 , softwa...
null
https://raw.githubusercontent.com/rleonid/oml/a857d67708827ed00df3f175a942044601ca50cf/test/oml_test.ml
ocaml
Copyright 2015,2016 : < > 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 , softwa...
7a52ce495a612e4d0377881d278dbebb450ffa9ac6032849c95f6bec56845f77
helvm/helma
Parser.hs
module HelVM.HelMA.Automata.ETA.Parser ( parseSafe, parse, ) where import HelVM.HelMA.Automata.ETA.Lexer import HelVM.HelMA.Automata.ETA.Optimizer import HelVM.HelMA.Automaton.API.IOTypes import HelVM.HelMA.Automaton.Instruction import HelVM.HelIO.Control.Safe p...
null
https://raw.githubusercontent.com/helvm/helma/b7425e773d19bb0a6caf1ed06a124b9ceda7112b/hs/src/HelVM/HelMA/Automata/ETA/Parser.hs
haskell
module HelVM.HelMA.Automata.ETA.Parser ( parseSafe, parse, ) where import HelVM.HelMA.Automata.ETA.Lexer import HelVM.HelMA.Automata.ETA.Optimizer import HelVM.HelMA.Automaton.API.IOTypes import HelVM.HelMA.Automaton.Instruction import HelVM.HelIO.Control.Safe p...
0f6c2f92cfabfc1f0b448d53ca737d745b50d7bf61982b5292014b615c9b8a0f
stackbuilders/cis194-templates
StringBuffer.hs
# LANGUAGE FlexibleInstances , TypeSynonymInstances # module Homework07.StringBuffer where import Data.Monoid import Homework07.Buffer instance Buffer String where toString = id fromString = id line n b = safeIndex n (lines b) replaceLine n l = unlines . uncurry replaceLine' . splitAt n . lines ...
null
https://raw.githubusercontent.com/stackbuilders/cis194-templates/f41b9f0b9945afd387f433ff40fa8988b6a9fe8b/src/Homework07/StringBuffer.hs
haskell
# LANGUAGE FlexibleInstances , TypeSynonymInstances # module Homework07.StringBuffer where import Data.Monoid import Homework07.Buffer instance Buffer String where toString = id fromString = id line n b = safeIndex n (lines b) replaceLine n l = unlines . uncurry replaceLine' . splitAt n . lines ...
be5759268d4e23588d57aa0f68779b6b69ba085571774f2b43d0a30cfe6bfd25
cse-bristol/110-thermos-ui
email.clj
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-backend.email "Stuff for emailing people about their user account & jobs" (:require [postal.core :as postal] [th...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_backend/email.clj
clojure
emails are processed on the queue - no idea if this is good
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-backend.email "Stuff for emailing people about their user account & jobs" (:require [postal.core :as postal] [th...
b325c697e37b48d59a4198b9659313ebea0de5422bd447180fa400415ed52844
manuel-serrano/hop
compile.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / js2scheme / compile.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/c41c4185f34f984ab16d0060a99f0c6fa4be5d44/js2scheme/compile.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The js2scheme compiler driver */ *===========================...
* serrano / prgm / project / hop / hop / js2scheme / compile.scm * / * Author : * / * Creation : Thu Sep 19 08:53:18 2013 * / * Last change : Mon Oct 3 22:03:09 2022 ( serrano ) * / * Cop...
15ef9128fbb63744a733be306a1b245a026610d1edca54c922c59ca934ee4b0d
richhickey/clojure-contrib
repl_ln.clj
Copyright ( c ) . All rights reserved . The use and ;; distribution terms for this software are covered by the Eclipse Public ;; License 1.0 (-1.0.php) which can ;; be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by ...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/repl_ln.clj
clojure
distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or an...
Copyright ( c ) . All rights reserved . The use and scgilardi ( gmail ) Created 28 November 2008 (ns #^{:author "Stephen C. Gilardi", :doc "A repl with that provides support for lines and line numbers in the input stream."} clojure.contrib.repl-ln (:gen-class) (:import (clojure.l...
289a1faba74ea476b36914ea408a516bd943a1c27890fb51a7882434303945b0
EligiusSantori/L2Apf
use_skill.scm
(module logic racket/base (require racket/contract "../packet/game/client/use_skill.scm" "../model/skill.scm" "../model/world.scm" "../system/structure.scm" "../system/connection.scm" ) (provide (contract-out (use-skill (->* (connection? (or/c skill? false/c)) (boolean? boolean?) boolean?)) )) (defi...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/api/use_skill.scm
scheme
(module logic racket/base (require racket/contract "../packet/game/client/use_skill.scm" "../model/skill.scm" "../model/world.scm" "../system/structure.scm" "../system/connection.scm" ) (provide (contract-out (use-skill (->* (connection? (or/c skill? false/c)) (boolean? boolean?) boolean?)) )) (defi...
504a87c84ad3fb7f0bc1e5e1e4fd498d09920b9492ae771fb4ae6f932f43c646
softwarelanguageslab/maf
R5RS_ad_linear-1.scm
; Changes: * removed : 1 * added : 1 * swaps : 1 ; * negated predicates: 0 * swapped branches : 1 * calls to i d fun : 5 (letrec ((create-hash-table (lambda (size hash-fct) (let ((content (make-vector size 0)) (same? =)) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_ad_linear-1.scm
scheme
Changes: * negated predicates: 0
* removed : 1 * added : 1 * swaps : 1 * swapped branches : 1 * calls to i d fun : 5 (letrec ((create-hash-table (lambda (size hash-fct) (let ((content (make-vector size 0)) (same? =)) (letrec ((next-index (lambd...
870a81cd5472f23386e6d79f52015286fa5f07462462ed6d9ab6b01f5e5e0526
fujita-y/ypsilon
tak.scm
TAK -- A vanilla version of the TAKeuchi function . (define (tak x y z) (if (not (< y x)) z (tak (tak (- x 1) y z) (tak (- y 1) z x) (tak (- z 1) x y)))) (define (main . args) (run-benchmark "tak" tak-iters (lambda (result) (equal? result 7)) (lambda (x y z) (la...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/50f1fdc499d1cbd77879ab376d4a394adf347b76/bench/gambit-benchmarks/tak.scm
scheme
TAK -- A vanilla version of the TAKeuchi function . (define (tak x y z) (if (not (< y x)) z (tak (tak (- x 1) y z) (tak (- y 1) z x) (tak (- z 1) x y)))) (define (main . args) (run-benchmark "tak" tak-iters (lambda (result) (equal? result 7)) (lambda (x y z) (la...
20a5311b9e98bf0dbc8e847cddf12d280da02a2a4652433267218fbbe813cdf5
mitchellwrosen/riak2
RiakListBucketsOpts.hs
module RiakListBucketsOpts where import Data.Default.Class (Default(..)) import Data.Time (NominalDiffTime) data ListBucketsOpts = ListBucketsOpts { timeout :: Maybe NominalDiffTime } deriving stock (Eq, Generic, Show) instance Default ListBucketsOpts where def = ListBucketsOpts { timeout...
null
https://raw.githubusercontent.com/mitchellwrosen/riak2/d3c4ef4389012c70e72623cdf9a4caec0a07e568/riak2/src/RiakListBucketsOpts.hs
haskell
module RiakListBucketsOpts where import Data.Default.Class (Default(..)) import Data.Time (NominalDiffTime) data ListBucketsOpts = ListBucketsOpts { timeout :: Maybe NominalDiffTime } deriving stock (Eq, Generic, Show) instance Default ListBucketsOpts where def = ListBucketsOpts { timeout...
c37c1946c124460c8204d447c4bc1c25fe7bd5d84637536b469cb8c6976cfec7
leo-project/leo_storage
leo_storage_api_tests.erl
%%==================================================================== %% %% LeoFS Storage %% Copyright ( c ) 2012 - 2016 Rakuten , Inc. %% 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/leo-project/leo_storage/9bd2bb0b7cedcdbe1bf0b5c4dcf708be16664d2a/test/leo_storage_api_tests.erl
erlang
==================================================================== LeoFS Storage 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 gov...
Copyright ( c ) 2012 - 2016 Rakuten , Inc. 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(leo_storage_api_tests). -in...
fe1142ed244ac7d7b38cc071966d39277a88ff829e6bea0da60d3d573053b085
qfpl/applied-fp-course
Types.hs
# OPTIONS_GHC -fno - warn - missing - methods # module Level04.DB.Types where import Data.Text (Text) import Data.Time (UTCTime) import Database.SQLite.Simple.FromRow (FromRow (fromRow), field) -- To try to avoid leaking various types and expect...
null
https://raw.githubusercontent.com/qfpl/applied-fp-course/d5a94a9dcee677bc95a5184c2ed13329c9f07559/src/Level04/DB/Types.hs
haskell
To try to avoid leaking various types and expected functionality around the application, we create a stand alone type that will represent the data we store in the database. In this instance, it is the raw types that make up a comment. Complete in the DBComment type below so it is a record type that matches the Co...
# OPTIONS_GHC -fno - warn - missing - methods # module Level04.DB.Types where import Data.Text (Text) import Data.Time (UTCTime) import Database.SQLite.Simple.FromRow (FromRow (fromRow), field) just copy the new definition for the ` Comment `...
3f13c94f092a3caa182747b5fff69d85c8ac0df8741397177cda8e1ee5454720
fp-works/2019-winter-Haskell-school
Exercises.hs
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - missing - methods # module Exercises where -- ex1 fib :: Integer -> Integer fib 0 = 0 fib 1 = 1 fib n = fib (n - 1) + fib (n - 2) fib = ( + ) < $ > fib . subtract 1 < * > fib . subtract 2 fibs1 :: [Integer] fibs1 = map fib [0..] -- ex2 fibs2 :: [Integer]...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week6/zehua/src/Exercises.hs
haskell
ex1 ex2 ex3 ex4 ex5 this version is not as lazy and actually does not work for ruler interleaveStreams (Cons x1 y1) (Cons x2 y2) = (Cons x1 (Cons x2 (interleaveStreams y1 y2))) ex6 x = 0 + 1x + 0x^2 + 0x^3 + ... (a0/b0) + x((1/b0)(A' − Q*B')). ex7 taking power of (n+1) to handle fib4 0 == 0
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - missing - methods # module Exercises where fib :: Integer -> Integer fib 0 = 0 fib 1 = 1 fib n = fib (n - 1) + fib (n - 2) fib = ( + ) < $ > fib . subtract 1 < * > fib . subtract 2 fibs1 :: [Integer] fibs1 = map fib [0..] fibs2 :: [Integer] fibs2 = map f...
9ccf66e8e9fb4ebe1dfb6940ab0c8718be34c8b0fa7e673e4aca1597e055272b
tebello-thejane/bitx.hs
Internal.hs
# LANGUAGE OverloadedStrings , DataKinds , CPP # module Network.Bitcoin.BitX.Internal ( simpleBitXGetAuth_, simpleBitXGet_, simpleBitXPOSTAuth_, simpleBitXMETHAuth_, bitXAPIPrefix ) where import Network.Bitcoin.BitX.Types import qualified Network.Bitcoin.BitX.Types as Types import Network....
null
https://raw.githubusercontent.com/tebello-thejane/bitx.hs/d5b1211656192b90381732ee31ca631e5031041b/src/Network/Bitcoin/BitX/Internal.hs
haskell
is it a BitX error?
# LANGUAGE OverloadedStrings , DataKinds , CPP # module Network.Bitcoin.BitX.Internal ( simpleBitXGetAuth_, simpleBitXGet_, simpleBitXPOSTAuth_, simpleBitXMETHAuth_, bitXAPIPrefix ) where import Network.Bitcoin.BitX.Types import qualified Network.Bitcoin.BitX.Types as Types import Network....
62cc19e00c5a03d3fada349d616ca1ea8a23e43d929f229090643c8353ee4abc
willowtreeapps/wombats-api
error_handler.clj
(ns wombats.interceptors.error-handler (:require [io.pedestal.interceptor.error :refer [error-dispatch]])) (defn- get-exception-data [exception] (or (-> exception ex-data :exception ex-data) Handle wrapped exceptions throw by Datomic 's ;; transactor functions (try ...
null
https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/interceptors/error_handler.clj
clojure
transactor functions
(ns wombats.interceptors.error-handler (:require [io.pedestal.interceptor.error :refer [error-dispatch]])) (defn- get-exception-data [exception] (or (-> exception ex-data :exception ex-data) Handle wrapped exceptions throw by Datomic 's (try (-> exception ...
a02e5a66ef4b60d00e1f00d84fd81f85769888b767296b3f2879a42f75a3ddcf
m-2k/erlach
avz_app.erl
-module(avz_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> avz_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/m-2k/erlach/ce0a19a0550c3457a1fc1d7c40e4f1cb577d7924/apps/avz/src/avz_app.erl
erlang
-module(avz_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> avz_sup:start_link(). stop(_State) -> ok.
21a6e7914ee70dd86a8a86aa4fc79be56f15154ef14c2024dbc9377825010663
EarnestResearch/honeycomb-haskell
Honeycomb.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE...
null
https://raw.githubusercontent.com/EarnestResearch/honeycomb-haskell/0cb643a637e1b23eecded845970e6a973f8385cf/honeycomb-servant/src/Servant/Honeycomb.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Servant.Hone...
637aa968f45c0a062d68130fcf7b1d729234501dd8e06e21e49ce3fca4e08477
membase/cucumberl
cucumberl.erl
-module(cucumberl). -include_lib("eunit/include/eunit.hrl"). -include("cucumberl.hrl"). -export([main/1, run/1, run/2]). main(Args) -> cucumberl_cli:main(Args). Cucumber parser & driver in erlang , in a single file , %% implementing a subset of the cucumber/gherkin DSL. %% Example step implementation patter...
null
https://raw.githubusercontent.com/membase/cucumberl/80f5cfabcbacddd751be603241eefb29b132838c/src/cucumberl.erl
erlang
implementing a subset of the cucumber/gherkin DSL. step([given, i, have, entered, N, into, the, calculator], _Info) -> % Your step implementation here. anything_but_undefined. The Info is a {Line, LineNum} tuple. Example run... cucumberl:run("./features/sample.feature"). something else wen...
-module(cucumberl). -include_lib("eunit/include/eunit.hrl"). -include("cucumberl.hrl"). -export([main/1, run/1, run/2]). main(Args) -> cucumberl_cli:main(Args). Cucumber parser & driver in erlang , in a single file , Example step implementation pattern in erlang ... run(FilePath) when is_list(FilePath) ->...
e99cf285bc0583515a7b8da7a3a881cc76975b6d9ae5e0fa111992ec6f0792f7
tmattio/js-bindings
es2018_promise.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib module Internal : sig module AnonymousInterfaces : sig end module Types : sig open AnonymousInterfaces type 'T _Promise = [`Promise of 'T] intf [@@js.custom { of_js=(fun _T -> Obj.mag...
null
https://raw.githubusercontent.com/tmattio/js-bindings/fe1d40a5b8cae157af85fa84ca482fb6b0ddf1e0/lib/es2018/_gen/es2018_promise.mli
ocaml
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib module Internal : sig module AnonymousInterfaces : sig end module Types : sig open AnonymousInterfaces type 'T _Promise = [`Promise of 'T] intf [@@js.custom { of_js=(fun _T -> Obj.mag...
f679fbf81bf23b2b48eef985600807c8d1f85f0e005a10341f04938b484c94bb
revnull/fixfile
Tests.hs
import Test.Tasty import TestSet import TestTree23 import TestTrie import TestLightTrie import TestBTree import TestLightBTree import TestFixFile main :: IO () main = defaultMain $ testGroup "FixFile" [ test23 ,testSet ,testTrie ,testLightTrie ,testBTree ,testLightB...
null
https://raw.githubusercontent.com/revnull/fixfile/888945268c04a1cb2636e85e7368c0e8d36b8033/tests/Tests.hs
haskell
import Test.Tasty import TestSet import TestTree23 import TestTrie import TestLightTrie import TestBTree import TestLightBTree import TestFixFile main :: IO () main = defaultMain $ testGroup "FixFile" [ test23 ,testSet ,testTrie ,testLightTrie ,testBTree ,testLightB...
9f0d3db85532382675b2460552e74f824dec827220050c7bde942f27762c7c2c
picty/parsifal
png6.ml
open Parsifal open BasePTypes open PTypes enum color_type (8, UnknownVal UnknownColorType) = | 0 -> Grayscale | 0x02 -> Truecolor | 0x03 -> Indexedcolor | 0x04 -> GrayscaleWithAlphaChannel | 0x06 -> TruecolorWithAlphaChannel enum compression_method (8, UnknownVal UnknownCompressionMethod) = | 0 -> Deflate enum filt...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/tutorial/png-steps/png6.ml
ocaml
Should never happen
open Parsifal open BasePTypes open PTypes enum color_type (8, UnknownVal UnknownColorType) = | 0 -> Grayscale | 0x02 -> Truecolor | 0x03 -> Indexedcolor | 0x04 -> GrayscaleWithAlphaChannel | 0x06 -> TruecolorWithAlphaChannel enum compression_method (8, UnknownVal UnknownCompressionMethod) = | 0 -> Deflate enum filt...
fcbfc5c58fb48e7edbd85d3f2b2aa68d407c7654e6c943f54b2a4b955616df76
dradtke/Lisp-Text-Editor
gtk.tree-model.lisp
(in-package :gtk) (define-vtable ("GtkTreeModel" tree-model) (:skip parent-instance g-type-interface) ;;some signals (:skip tree-model-row-changed :pointer) (:skip tree-model-row-inserted :pointer) (:skip tree-model-row-has-child-toggled :pointer) (:skip tree-model-row-deleted :pointer) (:skip tree-model...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/cl-gtk2/gtk/gtk.tree-model.lisp
lisp
some signals methods signal methods TODO: GtkTreeModelFilter
(in-package :gtk) (define-vtable ("GtkTreeModel" tree-model) (:skip parent-instance g-type-interface) (:skip tree-model-row-changed :pointer) (:skip tree-model-row-inserted :pointer) (:skip tree-model-row-has-child-toggled :pointer) (:skip tree-model-row-deleted :pointer) (:skip tree-model-rows-reordered :...
0adb2bd01839eff0c803bd8ef9e15e98cbdf04950870d221742065fe90d435cd
ekmett/haskell
Nat.hs
{-# Language ScopedTypeVariables #-} {-# Language PatternSynonyms #-} {-# Language DerivingStrategies #-} {-# Language AllowAmbiguousTypes #-} {-# Language PolyKinds #-} {-# Language DataKinds #-} {-# Language TypeOperators #-} {-# Language StandaloneKindSignatures #-} {-# Language ViewPatterns #-} {-# Language RoleAnn...
null
https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/ulf/src/Common/Internal/Nat.hs
haskell
# Language ScopedTypeVariables # # Language PatternSynonyms # # Language DerivingStrategies # # Language AllowAmbiguousTypes # # Language PolyKinds # # Language DataKinds # # Language TypeOperators # # Language StandaloneKindSignatures # # Language ViewPatterns # # Language RoleAnnotations # # Language GADTs # # Langua...
# Language GeneralizedNewtypeDeriving # module Common.Internal.Nat ( ToInt(..) , type Z , type S , wk , wk2 , N(UnsafeN,NZ,NS) , ViewN(..) , Fin(UnsafeFin,Z,S) ) where import Data.Kind import Data.Type.Equality import GHC.TypeNats import Unsafe.Coerce class ToInt t where int :: t -> Int instance...
b46b54ed1aeff662f808e2d10453a86ce7ffc837674b353c63321e3685217dae
ijvcms/chuanqi_dev
shop_once_config.erl
%%%------------------------------------------------------------------- @author zhengsiying %%% @doc %%% 自动生成文件,不要手动修改 %%% @end Created : 2016/10/12 %%%------------------------------------------------------------------- -module(shop_once_config). -include("common.hrl"). -include("config.hrl"). -compile([export_a...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/shop_once_config.erl
erlang
------------------------------------------------------------------- @doc 自动生成文件,不要手动修改 @end -------------------------------------------------------------------
@author zhengsiying Created : 2016/10/12 -module(shop_once_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all]). get_list_conf() -> [ shop_once_config:get(X) || X <- get_list() ]. get_list() -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]. get(1) -> #shop_once_...
d7cab4374d34a58eb6cff5bebd11460930c5848a256ba4bf68686c60076234b6
shawwn/wiki
Main.hs
#!/usr/bin/env runhaskell {-# LANGUAGE OverloadedStrings #-} Debian dependencies : $ sudo apt - get install libghc - hakyll - dev libghc - pandoc - dev libghc - filestore - dev libghc - tagsoup - dev imagemagick ( GHC is needed for ; Hakyll & Pandoc do the heavy lifting of compiling Markdown files to HTML ; ...
null
https://raw.githubusercontent.com/shawwn/wiki/a36db84e606cff85b1e425483db5c5148f9ecce4/Main.hs
haskell
# LANGUAGE OverloadedStrings # make hakyll.hs & & human - readable - sizes --reduced - redundancy --guess - mime - type --default - mime - type = text / html add - header="Cache - Control : max - age=604800 , public " --delete - removed sync _ site/ s3/ & & reduced - redundancy --mime - type = text / css --add - hea...
#!/usr/bin/env runhaskell Debian dependencies : $ sudo apt - get install libghc - hakyll - dev libghc - pandoc - dev libghc - filestore - dev libghc - tagsoup - dev imagemagick ( GHC is needed for ; Hakyll & Pandoc do the heavy lifting of compiling Markdown files to HTML ; tag soup & ImageMagick are runtime ...
08ab7effcd5e4cdce09d47ca26460acef95ad99c62ec0162e98f06d65d9295b4
rmloveland/scheme48-0.53
initial-packages.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Packages involved in building the initial system. ; Access to values from packages and structures (define-structure environments environments-interface (open scheme-level-2 packages bindings meta-types fluids locations ; contents location-assign...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/initial-packages.scm
scheme
Packages involved in building the initial system. Access to values from packages and structures contents location-assigned? error package-uid package->environment link! package-for-load bind-source-filename read-forms $note-file-package scan-forms expand-forms compile-forms make-closure invoke-closure current-nois...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define-structure environments environments-interface (open scheme-level-2 packages bindings meta-types fluids (files (rts env))) EVAL and LOAD (define-structure evaluation evaluation-interface (open scheme-level-2 signals fluids) (files ...
0e3cd308cf03b8ffd68683864b4264093023fa61685a9efab5f418f2eb64a14a
RBornat/jape
answer.mli
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either ver...
null
https://raw.githubusercontent.com/RBornat/jape/afe9f207e89e965636b43ef8fad38fd1f69737ae/distrib/camlengine/answer.mli
ocaml
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either ver...
9133151c2254c0db03c162d7b1fe57d81902f425ddf40fb883f6fe176817fd71
JHU-PL-Lab/jaylang
CE-1CFA07.ml
let rec bot _ = bot () let fail _ = assert false let rec c7_COEFFICIENT_1128 = 0 let rec c6_COEFFICIENT_1126 = 0 let rec c5_COEFFICIENT_1125 = 0 let rec c4_COEFFICIENT_1123 = 0 let rec c3_COEFFICIENT_1120 = 0 let rec c2_COEFFICIENT_1118 = 0 let rec c1_COEFFICIENT_1117 = 0 let rec c0_COEFFICIEN...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/termination/CE-1CFA07.ml
ocaml
let rec bot _ = bot () let fail _ = assert false let rec c7_COEFFICIENT_1128 = 0 let rec c6_COEFFICIENT_1126 = 0 let rec c5_COEFFICIENT_1125 = 0 let rec c4_COEFFICIENT_1123 = 0 let rec c3_COEFFICIENT_1120 = 0 let rec c2_COEFFICIENT_1118 = 0 let rec c1_COEFFICIENT_1117 = 0 let rec c0_COEFFICIEN...
148c4459bd956752656d85c7f6b716e81cf7ea0a30bbfc5cdf6324bec2d7c1af
atgreen/lisp-openshift
reload.lisp
Copyright ( C ) 2001 , 2003 Copyright ( C ) 2005 " the conditions and ENSURE - SSL - FUNCALL are by . " ;;; ;;; See LICENSE for details. ;;; We do this in an extra file so that it happens ;;; - after the asd file has been loaded, so that users can ;;; customize *libssl-pathname* between loading t...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/cl%2Bssl-20120305-git/reload.lisp
lisp
See LICENSE for details. We do this in an extra file so that it happens - after the asd file has been loaded, so that users can customize *libssl-pathname* between loading the asd and LOAD-OPing the actual sources - before ssl.lisp is loaded, which needs the library at compilation time on some i...
Copyright ( C ) 2001 , 2003 Copyright ( C ) 2005 " the conditions and ENSURE - SSL - FUNCALL are by . " - but not every time ffi.lisp is re - loaded as would happen if we put this directly into ffi.lisp #+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) (cffi:define-foreign-lib...
4cd373d77fdc20dfbddef45b1baef368a0dc2d8762b293d2c8a641d351fe3087
ocaml-multicore/tezos
ticket_hash_builder.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 , < > Copyright ( c ) 2022 Ox...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/ticket_hash_builder.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 , < > Copyright ( c ) 2022 Oxhead Alpha < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WAR...
cf74912f91e171f48309c06192faf328376aa85e5779aa90c127931ff157f379
rlepigre/ocaml-earley
pa_ocaml_prelude.ml
Copyright 2016 - 2020 . open Earley_core open Input open Earley open Asttypes open Parsetree open Pa_lexing open Ast_helper let print_location ch loc = let (s, e) = Location.(loc.loc_start, loc.loc_end) in Printf.fprintf ch "Position %d:%d to %d:%d%!" s.pos_lnum (s.pos_cnum - s.pos_bol) e.pos_lnum ...
null
https://raw.githubusercontent.com/rlepigre/ocaml-earley/66d7acb2b22edae0c2f7d64ef2a50fa70d1ed112/pa_ocaml/pa_ocaml_prelude.ml
ocaml
Location function. *************************************************************************** * Gestion of attachment of ocamldoc comments * *************************************************************************** * Attach comments before only if on the previous line **************...
Copyright 2016 - 2020 . open Earley_core open Input open Earley open Asttypes open Parsetree open Pa_lexing open Ast_helper let print_location ch loc = let (s, e) = Location.(loc.loc_start, loc.loc_end) in Printf.fprintf ch "Position %d:%d to %d:%d%!" s.pos_lnum (s.pos_cnum - s.pos_bol) e.pos_lnum ...
1136fff5f3ee7055d0d12c0465c7d655b82bec7a8f612764fb9ee38c06e7a929
cushon/project-euler
82.rkt
#lang racket (require "common.rkt") ; Find the minimal path sum in a matrix from the left column to the right ; column. (define (solve) (define matrix (map (lambda (x) (map string->number (csv->lst x))) (file->lines "82.txt"))) (define slices (apply zip matrix)) (define (stomp a b) (de...
null
https://raw.githubusercontent.com/cushon/project-euler/d7fcbfff0cd59b2c3691293ff35bb2043b409f68/82.rkt
racket
Find the minimal path sum in a matrix from the left column to the right column.
#lang racket (require "common.rkt") (define (solve) (define matrix (map (lambda (x) (map string->number (csv->lst x))) (file->lines "82.txt"))) (define slices (apply zip matrix)) (define (stomp a b) (define (h a b acc) (if (empty? a) (reverse acc) (h (cdr a) (cdr b) ...
6b5d6413ae5c5a1e67351cf3a2825307286a0aa99558a58f502e1f39997b5e5c
nicdard/compiler-design-eth-tests
nicdard.ml
open Assert let global_prefix = Test_config.global_prefix ^ "./compiler-design-eth-tests/05/nicdard/" let subtype_unit_tests = let failtest (c : bool) = (fun () -> if c then failwith "should not succeed" else ()) in let passtest (c : bool) = (fun () -> if c then () else failwith "should not fail") in let s1 : ...
null
https://raw.githubusercontent.com/nicdard/compiler-design-eth-tests/1b63f4aa2c2bb3f6dbd438b90fa07c93e94788ef/05/nicdard.ml
ocaml
open Assert let global_prefix = Test_config.global_prefix ^ "./compiler-design-eth-tests/05/nicdard/" let subtype_unit_tests = let failtest (c : bool) = (fun () -> if c then failwith "should not succeed" else ()) in let passtest (c : bool) = (fun () -> if c then () else failwith "should not fail") in let s1 : ...
15c77f9f60ff80e5ad8e34bd8de64da5cc39d1bf2230207047d12c962e8ed207
sras/servant-examples
CustomPostData.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module CustomPostData where import Servant ( PlainText , JSON , Get , Post , ReqBody , Proxy(....
null
https://raw.githubusercontent.com/sras/servant-examples/923b54a13e14a4c2a37a3633dc7e2fa8fe49adc6/src/CustomPostData.hs
haskell
# LANGUAGE OverloadedStrings # Syntax for importing type operator In this example, we see how we can recive data in the request body in a custom format. This the type that our handler expects. This (along with the FromJSON instance) is what enables our endpoint to recieve a value of type instances for the concer...
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module CustomPostData where import Servant ( PlainText , JSON , Get , Post , ReqBody , Proxy(..) , type (:<|>) ...
8e809184391f1c50bd8799c115e6734257138f1af5f6639c3569097a0e6a009a
facebookarchive/pfff
treemap_graphics.mli
(*s: treemap_graphics.mli *) open Treemap (* seminal code and algorithm *) (*s: signature display_treemap *) val display_treemap : ('dir, 'file) treemap -> int * int -> 'file option Common.matrix (*e: signature display_treemap *) (*s: signature display_treemap_algo *) val display_treemap_algo : ?algo:algorithm...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/h_visualization/graphics/treemap_graphics.mli
ocaml
s: treemap_graphics.mli seminal code and algorithm s: signature display_treemap e: signature display_treemap s: signature display_treemap_algo e: signature display_treemap_algo main entry point s: signature display_treemap_interactive used to display file information in the status area e: signature display_...
open Treemap val display_treemap : ('dir, 'file) treemap -> int * int -> 'file option Common.matrix val display_treemap_algo : ?algo:algorithm -> ?drawing_file_hook: (Figures.rect_pixel -> 'file -> 'file option Common.matrix -> unit) -> ('dir, 'file) treemap -> int * int -> 'file option Common.ma...
a22066a50057dc6664516a996d0eac17d23144c91de35d91e1496f2f93d77f6c
racket/redex
ryr-test.rkt
#lang racket/base (require net/url racket/port racket/file file/gunzip file/untar) (define tmp-dir (make-temporary-file "ryr-test-~a" 'directory)) (current-directory tmp-dir) (define models-url "/~robby/lightweight-metatheory/models.tar.gz") (printf "downloading ~a\n to ~a\n" mo...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-test/redex/tests/ryr-test.rkt
racket
#lang racket/base (require net/url racket/port racket/file file/gunzip file/untar) (define tmp-dir (make-temporary-file "ryr-test-~a" 'directory)) (current-directory tmp-dir) (define models-url "/~robby/lightweight-metatheory/models.tar.gz") (printf "downloading ~a\n to ~a\n" mo...
a10bccf0713c2b359e3f4eb3719467370d137bb89835b319fa8df09d35ccc868
galdor/tungsten
concurrency.lisp
(in-package :system-test) (deftest condition-variables/signal-one-child () (let ((condition-variable (system:make-condition-variable)) (mutex (system:make-mutex)) (flag nil)) (flet ((child-function () (system:with-mutex (mutex) (when (system:wait-condition-variable con...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-system/t/concurrency.lisp
lisp
(in-package :system-test) (deftest condition-variables/signal-one-child () (let ((condition-variable (system:make-condition-variable)) (mutex (system:make-mutex)) (flag nil)) (flet ((child-function () (system:with-mutex (mutex) (when (system:wait-condition-variable con...
4445b7c2a24f1cfcd4c1b5afa7b55d0b27918991e0f884f17a9960fbe393a8e8
links-lang/links
unitTestsLensFDHelpers.ml
open UnitTestsLensCommon open OUnit2 open Links_core open Links_lens open Utility open Phrase.Value module Fun_dep = Lens.Fun_dep module H = LensTestHelpers let dat_fd_set = H.fundepset_of_string "A B -> C D; C D -> E; E -> F G" let dat_cols = H.colset_of_string "C D" let dat_closure = H.colset_of_string "C D E F G"...
null
https://raw.githubusercontent.com/links-lang/links/1e1947d757dc7c242a060b536a8e8e36b8fba411/tests/unit/lens/unitTestsLensFDHelpers.ml
ocaml
Tests
open UnitTestsLensCommon open OUnit2 open Links_core open Links_lens open Utility open Phrase.Value module Fun_dep = Lens.Fun_dep module H = LensTestHelpers let dat_fd_set = H.fundepset_of_string "A B -> C D; C D -> E; E -> F G" let dat_cols = H.colset_of_string "C D" let dat_closure = H.colset_of_string "C D E F G"...
a044763abbf0b669844c4f7aa1be7148cd5f2fab80c936cf0873b507d02caa2c
vlstill/hsExprTest
compr-var.q.hs
-- @ reflection: True -- @ require type: True import Test.Expr.Reflection expr = "empty" allUseComprehention :: ASTCheck allUseComprehention studentAST = mapM_ isComprehentionD studentAST empty :: [a] empty = [ undefined | _ <- [] ]
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/test/compr-var.q.hs
haskell
@ reflection: True @ require type: True
import Test.Expr.Reflection expr = "empty" allUseComprehention :: ASTCheck allUseComprehention studentAST = mapM_ isComprehentionD studentAST empty :: [a] empty = [ undefined | _ <- [] ]
71173756fad9211863a177f010cac2b8de4cdb12a8a0532b498a8dc40002971d
dbuenzli/topkg
topkg_fpath.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/topkg/a9664aa01fe6464032f984fe425e2fa9e07e3ce3/src/topkg_fpath.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
8207b4c501d278fee263f807e5ea5e9ecb20205fcdb782692102a77bc5e8028c
imandra-ai/imandra-ros
map_msgs_of_json.ml
open Json_utils;; open Basic_types_of_json;; open Ros_messages.Map_msgs;; let json_to_projectedMap_opt json = jreq json "projectedMap_map" Nav_msgs_of_json.json_to_occupancyGrid_opt @@ fun projectedMap_map -> jreq json "projectedMap_min_z" json_to_float64_opt @@ fun projectedMap_min_z -> jreq json "projec...
null
https://raw.githubusercontent.com/imandra-ai/imandra-ros/e1380c267ee319dd4f86c4b54e0b270bc0738796/imandra_model/src-messages-pp/map_msgs_of_json.ml
ocaml
open Json_utils;; open Basic_types_of_json;; open Ros_messages.Map_msgs;; let json_to_projectedMap_opt json = jreq json "projectedMap_map" Nav_msgs_of_json.json_to_occupancyGrid_opt @@ fun projectedMap_map -> jreq json "projectedMap_min_z" json_to_float64_opt @@ fun projectedMap_min_z -> jreq json "projec...
eecf337f1766f7fdb12bdccc9ab263313d5dfa6ffad6ad93445be3d3ae5b715e
jrslepak/Remora
naive-bayes.rkt
#lang remora/dynamic Naive Bayes classifier for the Spambase Data Set from UC Irvine 's Machine Learning Repository Bache , K. & Lichman , M. ( 2013 ) . UCI Machine Learning Repository [ ] . Irvine , CA : University of California , School of Information and Computer Science . ;;; Data set from (requir...
null
https://raw.githubusercontent.com/jrslepak/Remora/1a831dec554df9a7ef3eeb10f0d22036f1f86dbd/remora/examples/naive-bayes.rkt
racket
Data set from Training phase Split the training set into spam and legit messages How many spam and legit messages had each feature below and above the mean? Smoothed conditional probabilities for each feature Test phase Consider which side of the mean each feature is on. There's a probability of its being on t...
#lang remora/dynamic Naive Bayes classifier for the Spambase Data Set from UC Irvine 's Machine Learning Repository Bache , K. & Lichman , M. ( 2013 ) . UCI Machine Learning Repository [ ] . Irvine , CA : University of California , School of Information and Computer Science . (require racket/flonum) (d...
ea54b57908d1c7e587ae185e2f8511caddef09a5e5f82d20ee144dca3763b58c
bcambel/oss.io
prod.cljs
(ns hsm.prod (:require [hsm.core :as core])) (core/main)
null
https://raw.githubusercontent.com/bcambel/oss.io/cddb8b8ba4610084bc2f3c78c7837cdec87a8c76/env/prod/cljs/hsui/prod.cljs
clojure
(ns hsm.prod (:require [hsm.core :as core])) (core/main)
a80c188f3ee5c4ef8bd7da0f6a48f0b211045028ff030bb23b3cd46179389dff
Snapbrillia/quadraticvoting
DonationInfo.hs
-- EXTENSIONS -- {{{ {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell ...
null
https://raw.githubusercontent.com/Snapbrillia/quadraticvoting/f5de63ea38eed7d2a19423e4a3e71a7e7cbd5c90/quadraticVoting/src/Data/DonationInfo.hs
haskell
EXTENSIONS {{{ # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DeriveAnyClass # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # # LANGUAGE NumericUnderscores # # LANGUAGE LambdaCase ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE RecordWildCards # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - unused - imports # MODULE module Dat...
6c42de471a311d7988ea500e25e8ad08c3395870a5be2370f2f5e865fbfdc867
mirage/ocaml-dns
dns_mirage.ml
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix let src = Logs.Src.create "dns_mirage" ~doc:"effectful DNS layer" module Log = (val Logs.src_log src : Logs.LOG) module Make (S : Tcpip.Stack.V4V6) = struct module IPM = struct include Map.Make(struct type t = Ipaddr.t * int let compar...
null
https://raw.githubusercontent.com/mirage/ocaml-dns/e8703c5e7d679b5242b064c009bd0f195422883d/mirage/dns_mirage.ml
ocaml
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix let src = Logs.Src.create "dns_mirage" ~doc:"effectful DNS layer" module Log = (val Logs.src_log src : Logs.LOG) module Make (S : Tcpip.Stack.V4V6) = struct module IPM = struct include Map.Make(struct type t = Ipaddr.t * int let compar...
6fde21448ec03160035728432789f2de15cdb4ab1eeb9cb2ba523c8bbbba8dd0
tmattio/js-bindings
vscode_languageclient_main.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 module AnonymousInterface0 = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (ge...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageclient/vscode_languageclient_main.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 module AnonymousInterface0 = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (ge...
d085f0e3748240e9a989f0c06e43733c420179ca8a9d430d23fdb4407c218038
EgorDm/fp-pacman
Classic.hs
module Game.GameModes.Classic ( classicMode, classicCustomMode ) where import System.Random import Game.GameModes.CommonShared import Engine.Base import Game.Agents.Base import Game.Level.Base import Game.Structure.Base import Game.Context.Base import Resources classicMode = do level <- readLevel levelCla...
null
https://raw.githubusercontent.com/EgorDm/fp-pacman/19781c92c97641b0a01b8f1554f50f19ff6d3bf4/src/Game/GameModes/Classic.hs
haskell
module Game.GameModes.Classic ( classicMode, classicCustomMode ) where import System.Random import Game.GameModes.CommonShared import Engine.Base import Game.Agents.Base import Game.Level.Base import Game.Structure.Base import Game.Context.Base import Resources classicMode = do level <- readLevel levelCla...
a660ab69aec0498012a108a7369b2c0e487b79825a0c330168e6eba09ec67f08
helins/interval.cljc
user.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns user "For daydreaming at the REPL." (:require [helins.interval.dev])) ;;;;;;;;;; (comment )
null
https://raw.githubusercontent.com/helins/interval.cljc/93e419f81597a4aff4c4c4bff815aad7830aada2/src/dev/user.clj
clojure
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns user "For daydreaming at the REPL." (:require [helins.interval.dev])) (comment )
af6b952b55b6ce82d1c107701ba065370454e9fbcfdb2fdeed4d881067a9a48f
sebhoss/finj
root_finding_test.clj
; Copyright © 2013 < > ; This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . ; (ns finj.root-finding-test (:require [finj.root-finding :refer :all] [com.github.se...
null
https://raw.githubusercontent.com/sebhoss/finj/7c27cb506528642a6e8a673be1b9a49d68e533e5/src/test/clojure/finj/root_finding_test.clj
clojure
This work is free. You can redistribute it and/or modify it under the
Copyright © 2013 < > terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . (ns finj.root-finding-test (:require [finj.root-finding :refer :all] [com.github.sebhoss.predicate :refer :all] [clojure.test :refer :all])) (defn...
956deabf0860f11d0acb2ad55b36f3fa0d9e6224476ee09ede487b900fae872d
chapmanb/bcbio.variation
filter.clj
(ns bcbio.variation.filter "Filter variant calls according to supplied criteria." (:use [clojure.string :only [split]] [bcbio.variation.filter.attr :only [get-vc-attr prep-vc-attr-retriever]] [bcbio.variation.filter.classify :only [pipeline-classify-filter]] [bcbio.variation.filter.specific ...
null
https://raw.githubusercontent.com/chapmanb/bcbio.variation/c48834a6819e63dcccb5bc51540c7e19b212a019/src/bcbio/variation/filter.clj
clojure
"ALLOW_SEQ_DICT_INCOMPATIBILITY"
(ns bcbio.variation.filter "Filter variant calls according to supplied criteria." (:use [clojure.string :only [split]] [bcbio.variation.filter.attr :only [get-vc-attr prep-vc-attr-retriever]] [bcbio.variation.filter.classify :only [pipeline-classify-filter]] [bcbio.variation.filter.specific ...
2881f8b2750bdd36a66af39fda259b895adc3d609a4c68d5014b8cea8e4c8580
toschoo/mom
registry.hs
module Main where import Common import System.Exit import Test.QuickCheck import Test.QuickCheck.Monadic < --- SUT < --- SUT import Network.Mom.Patterns.Types import Data.List (nub, delete) import qualified Data.ByteString.Char8 as B i...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/patterns/test/suite/broker/registry.hs
haskell
- SUT - SUT ---------------------------------------------------------------------- who has to be sent? ---------------------------------------------------------------------- ---------------------------------------------------------------------- checkWorker buries the dead ---------------------------------------------...
module Main where import Common import System.Exit import Test.QuickCheck import Test.QuickCheck.Monadic import Network.Mom.Patterns.Types import Data.List (nub, delete) import qualified Data.ByteString.Char8 as B import Data.May...
baa0993143ca344091fc64459b595fbc86b8049660218fddd619e30dd42fd805
project-oak/hafnium-verification
DB.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/base/DB.mli
ocaml
* Database of analysis results * {2 Filename} * generic file name * Return the time when a file was last modified. The file must exist. * path expressed as a list of strings * kind of path: specifies how to interpret a path * absolute path implicitly rooted at the root of the results dir * absolute path implicit...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
fa0465e96bba8a4692043fb62496b9623179602b8283ecf2e4146b580b047d1f
mgritter/aoc-lh
LengthLemmas.hs
module LengthLemmas (filter, length, notP, lemmaFilterLength) where {-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} import Prelude hiding (length, filter) import Language.Haskell.Liquid.ProofCombinators {-@ reflect filter @-} filter :: (a -> Bool) -> [a] -> [a] filter _ [] = [] filter p (x:xs) = if p x then x:(f...
null
https://raw.githubusercontent.com/mgritter/aoc-lh/c9a96f0b89b055f437ff2c6aed09bda51f939680/2022/day11/LengthLemmas.hs
haskell
@ LIQUID "--reflection" @ @ LIQUID "--ple" @ @ reflect filter @ @ reflect length @ @ notP :: (a->Bool) -> a -> Bool @ @ reflect notP @
module LengthLemmas (filter, length, notP, lemmaFilterLength) where import Prelude hiding (length, filter) import Language.Haskell.Liquid.ProofCombinators filter :: (a -> Bool) -> [a] -> [a] filter _ [] = [] filter p (x:xs) = if p x then x:(filter p xs) else (filter p xs) length :: [a] -> Int length [] = 0 length (_...
97175258b377911a9edbb0cf224f26173e956679847f1b1afa83803a55fa7963
haskell/process
main.hs
# LANGUAGE CPP # import Control.Exception import Control.Monad (guard, unless, void) import System.Exit import System.IO.Error import System.Directory (getCurrentDirectory, setCurrentDirectory) import System.Process import Control.Concurrent import Data.Char (isDigit) import Data.IORef import Data.List (isInfixOf) impo...
null
https://raw.githubusercontent.com/haskell/process/6f62abc60c268a926e5efa9dee75b39df02c15e8/test/main.hs
haskell
| Test that withCreateProcess doesn't throw exceptions besides collect unhandled exceptions in any threads (specifically give some time for threads to finish Test that we can wait without exception twice, if the process exited on its own. Test that we can wait without exception twice, if the process was killed.
# LANGUAGE CPP # import Control.Exception import Control.Monad (guard, unless, void) import System.Exit import System.IO.Error import System.Directory (getCurrentDirectory, setCurrentDirectory) import System.Process import Control.Concurrent import Data.Char (isDigit) import Data.IORef import Data.List (isInfixOf) impo...
5c825cad0ea06d9b1bbda8e93b14af558faa5ede91bb449e77591e0497ba7be7
tlaitinen/yesod-dsl
Simplify.hs
module YesodDsl.Simplify (simplify) where import YesodDsl.AST import Data.Generics import Data.Either import Data.Generics.Uniplate.Data import qualified Data.List as L import Data.Maybe import qualified Data.Map as Map simplify :: Module -> Module simplify m = everywhere ((mkT sHandler) . (mkT sExpr) ...
null
https://raw.githubusercontent.com/tlaitinen/yesod-dsl/e248471bc708542dd050d96ac9fde627e9e349ae/YesodDsl/Simplify.hs
haskell
module YesodDsl.Simplify (simplify) where import YesodDsl.AST import Data.Generics import Data.Either import Data.Generics.Uniplate.Data import qualified Data.List as L import Data.Maybe import qualified Data.Map as Map simplify :: Module -> Module simplify m = everywhere ((mkT sHandler) . (mkT sExpr) ...
cd58f54f67bba54eb2980dffc3a5253535b1ec16b9fd37a3ea0a3165e4efc4f4
input-output-hk/plutus-apps
V2.hs
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} # OPTIONS_GHC -Wno - simplifiable - class - c...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/006f4ae4461094d3e9405a445b0c9cf48727fa81/plutus-tx-constraints/src/Ledger/Tx/Constraints/OnChain/V2.hs
haskell
# LANGUAGE MonoLocalBinds # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # | Does the 'ScriptContext' satisfy the constraints? "Input constraint" "Output constraint" "Missing datum" "Wrong validation interval" "Missing signature" "Spent value not OK" "Produce...
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - simplifiable - class - constraints # # OPTIONS_GHC -fno - specialise # # OPTIONS_GHC -fno - omit - interface - pragmas # module Ledger.Tx.Constraints.OnChain.V2 ( c...
0e4777c4ee7f6f8a0f5939b2bd9a3c84e4854fe0623b2358a349cf5adcebaf2b
8c6794b6/haskell-sc-scratch
Missing.hs
------------------------------------------------------------------------------ -- | Some ugens missing in hsc3-0.13. -- module Sound.SC3.Lepton.UGen.Missing where import Sound.SC3 -- | Integrator filter. integrator :: UGen -> UGen -> UGen integrator i coef = mkFilter "Integrator" [i, coef] 1 fromDoneAction :: DoneA...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-lepton/src/lib/Sound/SC3/Lepton/UGen/Missing.hs
haskell
---------------------------------------------------------------------------- | Some ugens missing in hsc3-0.13. | Integrator filter.
module Sound.SC3.Lepton.UGen.Missing where import Sound.SC3 integrator :: UGen -> UGen -> UGen integrator i coef = mkFilter "Integrator" [i, coef] 1 fromDoneAction :: DoneAction -> UGen fromDoneAction DoNothing = Constant_U (Constant 0) fromDoneAction PauseSynth = Constant_U (Constant 1) fromDoneAction RemoveSynth ...
d023bfa322e886150dfbea69ef39544e19fb1190cb74c05456bf535fb44b6526
janestreet/incr_dom
test.ml
open! Core open! Incr_dom_testing module App = Hello_world_example_lib.App let%expect_test "print contents" = let driver = Driver.create ~initial_model:App.initial_model ~sexp_of_model:[%sexp_of: unit] ~initial_state:() (module App) in let module H = (val Helpers.make driver) in H.s...
null
https://raw.githubusercontent.com/janestreet/incr_dom/56c04e44d6a8f1cc9b2b841495ec448de4bf61a1/example/hello_world/test/test.ml
ocaml
open! Core open! Incr_dom_testing module App = Hello_world_example_lib.App let%expect_test "print contents" = let driver = Driver.create ~initial_model:App.initial_model ~sexp_of_model:[%sexp_of: unit] ~initial_state:() (module App) in let module H = (val Helpers.make driver) in H.s...
705e43b17e73358fc7a75852ee2974a89d83dda3bfb25eccbafc3094cea309e0
GaloisInc/grift
BitLayout.hs
-- | -- Module : GRIFT.BitVector.BitLayout Copyright : ( c ) Galois Inc. 2018 -- License : BSD-3 -- Maintainer : -- Stability : experimental -- Portability : portable -- -- This module defines a 'BitLayout' datatype which encodes a chunk-to-chunk mapping (no -- overlaps) from a smaller bit vector into...
null
https://raw.githubusercontent.com/GaloisInc/grift/819a1fedf33501a79ad5fbd6e7ae03dfc7219234/grift/src/GRIFT/BitVector/BitLayout.hs
haskell
| Module : GRIFT.BitVector.BitLayout License : BSD-3 Maintainer : Stability : experimental Portability : portable This module defines a 'BitLayout' datatype which encodes a chunk-to-chunk mapping (no overlaps) from a smaller bit vector into a larger one. 'BitLayout's are especially useful for def...
Copyright : ( c ) Galois Inc. 2018 # LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeO...
05584cadd2bc6df1196c6a946ca94912a09ea4f948e529c730fb635f4a4dd989
HealthSamurai/bxb
match_test.clj
(ns mappers.match-test (:require [mappers.match :as sut] [clojure.test :as t])) (t/deftest test-match (t/is (sut/match {:a 1 :b 1} {:a 1})) (t/is (not (sut/match {:a 2 :b 1} {:a 1}))) (t/is (sut/match {:a {:b 1 :c 2} :b 1} {:a {:b 1}})) (t/is (not (sut/match {:a {:b 2} :b 1} {:a {:b 1}}))) (t/is...
null
https://raw.githubusercontent.com/HealthSamurai/bxb/2275b0b8498035e78f23608756465bba945522ec/test/mappers/match_test.clj
clojure
(ns mappers.match-test (:require [mappers.match :as sut] [clojure.test :as t])) (t/deftest test-match (t/is (sut/match {:a 1 :b 1} {:a 1})) (t/is (not (sut/match {:a 2 :b 1} {:a 1}))) (t/is (sut/match {:a {:b 1 :c 2} :b 1} {:a {:b 1}})) (t/is (not (sut/match {:a {:b 2} :b 1} {:a {:b 1}}))) (t/is...
8bf3c6f6256b1ec3f08909ce0212e7777b6729a98eafb16a22d496462959dbcc
pflanze/chj-schemelib
scheme-parse-test.scm
Copyright 2018 - 2020 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require tes...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/scheme-parse-test.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. well: well:
Copyright 2018 - 2020 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require test scheme-parse cj-source) (include "cj-standarddeclares.scm") (TEST > (scheme-parse:lambda? '(lambda...
d723fe5d81bc3fd9251aea7655703fa7c0da6707f0ab8a401412e484fe8b14b1
Deep-Symmetry/ola-clojure
service_template.clj
(ns ola-clojure.{{classname|lower}}-service (:require [flatland.protobuf.core :refer :all] [ola-clojure.{{classname|lower}}-messages :refer :all] [ola-clojure.ola-client :refer [send-request wrap-message-if-needed]])) {% for item in rpcs %} (defn {{item.method}} ([handler] ({{item....
null
https://raw.githubusercontent.com/Deep-Symmetry/ola-clojure/b99a00850a4119ee9f2962db953ae3a8d3d4082b/dev_resources/ola_clojure/service_template.clj
clojure
(ns ola-clojure.{{classname|lower}}-service (:require [flatland.protobuf.core :refer :all] [ola-clojure.{{classname|lower}}-messages :refer :all] [ola-clojure.ola-client :refer [send-request wrap-message-if-needed]])) {% for item in rpcs %} (defn {{item.method}} ([handler] ({{item....
a8addd34051f1282498da80634c8c4bcfa29c2e67ccb3b13a3b876271d868ef3
sebashack/servantRestfulAPI
DataTypes.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Domains.ContentAdminDomain.Article.DataTypes where import qualified Data.Time as TM import qualified Data.Text as T import Control.Monad (mzero) import Data.Monoid import GHC.Generics import Data.Aeson import Data.Aeson.Types import Data.CountryC...
null
https://raw.githubusercontent.com/sebashack/servantRestfulAPI/e625535d196acefaff4f5bf03108816be668fe4d/libs/Domains/ContentAdminDomain/Article/DataTypes.hs
haskell
# LANGUAGE OverloadedStrings # either esp_article or eng_article
# LANGUAGE DeriveGeneric # module Domains.ContentAdminDomain.Article.DataTypes where import qualified Data.Time as TM import qualified Data.Text as T import Control.Monad (mzero) import Data.Monoid import GHC.Generics import Data.Aeson import Data.Aeson.Types import Data.CountryCodes The ContentDomain API does ...
ff5ab1c3a7204705d2cc44754165bb75145fa8e747939848d2d0e4abe769bb5b
RallySoftware/cljreplagent
core_test.clj
(ns cljreplagent.core-test (:require [clojure.test :refer :all] [cljreplagent.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/RallySoftware/cljreplagent/061eaf2ca70e185ed8065c1092d3a707627cdb99/test/cljreplagent/core_test.clj
clojure
(ns cljreplagent.core-test (:require [clojure.test :refer :all] [cljreplagent.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
733b8fdb139907cba95c7312a9e7bd80f15b6f8a2ec69297e307863c0b1436cf
rixed/ramen
RingBufLib.ml
open Batteries open RamenLog open RamenHelpersNoLog open RamenHelpers open Stdint open RingBuf module DT = DessserTypes module Files = RamenFiles module N = RamenName module T = RamenTypes open Raql_value (* Return sersizes in bytes for any given type: *) let sersize_of_unit = 0 let sersize_of_float = round_up_to_rb_w...
null
https://raw.githubusercontent.com/rixed/ramen/0cfda343f6e15b4c695d6d010902ad59d474c66c/src/RingBufLib.ml
ocaml
Return sersizes in bytes for any given type: Technically, those could have a fixed size, but we always treat them as * variable. FIXME: Return both the value and the new offset: Returns both the value and the new offset: Until only null values have a bit: Return the array of fields and types we are suppos...
open Batteries open RamenLog open RamenHelpersNoLog open RamenHelpers open Stdint open RingBuf module DT = DessserTypes module Files = RamenFiles module N = RamenName module T = RamenTypes open Raql_value let sersize_of_unit = 0 let sersize_of_float = round_up_to_rb_word 8 let sersize_of_char = round_up_to_rb_word 1 l...
6ccf6c17ca59e0490dcf4633b81ca1d242444d9c0eb206a471c56e7a01ab265a
htm-community/sanity
second_level_motor.cljs
(ns org.numenta.sanity.demos.second-level-motor (:require [org.nfrac.comportex.demos.second-level-motor :as demo] [org.numenta.sanity.demos.comportex-common :refer [all-features]] [org.numenta.sanity.main :as main] [org.numenta.sanity.helpers :as helpers :refer [resizing-canvas]] ...
null
https://raw.githubusercontent.com/htm-community/sanity/0eae8a9a1fe732d761f6dd0cff3dba8b24ac5231/examples/demos/org/numenta/sanity/demos/second_level_motor.cljs
clojure
draw line of next position (after next saccade) draw line of current position draw eye break cycle to reset input seed input
(ns org.numenta.sanity.demos.second-level-motor (:require [org.nfrac.comportex.demos.second-level-motor :as demo] [org.numenta.sanity.demos.comportex-common :refer [all-features]] [org.numenta.sanity.main :as main] [org.numenta.sanity.helpers :as helpers :refer [resizing-canvas]] ...
f60bdfcab618d4ebf3abaa5b38bd8b47dc284bcd7966ba2d2b3247b7d080e8b1
icidasset/shikensu-haskell
Shikensu.hs
{-| Shikensu. See the README and tests for examples. -} module Shikensu ( forkDefinition , list , listF , listRelative , listRelativeF , makeDefinition , makeDictionary , module Shikensu.Internal.Types ) where import Data.Monoid ((<>)) import Flow import Shikensu.Internal.Types im...
null
https://raw.githubusercontent.com/icidasset/shikensu-haskell/121f34ae5339f50e1c380540f97bf124e9869db9/src/Shikensu.hs
haskell
| Shikensu. See the README and tests for examples. IO | Flipped version of `list`. | Same as `list`, but given a relative directory. > listRelative ["*.md"] "./articles" | Flipped version `listRelative`. Additional properties Additional properties | Make a Dictionary.
module Shikensu ( forkDefinition , list , listF , listRelative , listRelativeF , makeDefinition , makeDictionary , module Shikensu.Internal.Types ) where import Data.Monoid ((<>)) import Flow import Shikensu.Internal.Types import Shikensu.Internal.Utilities import System.FilePath i...
459e029c922ed4f488b898ffc1d0b13a73cca9be4ce5fb4802eb60fb1e5931c5
alphagov/blinken
sensu.clj
(ns govuk.blinken.service.sensu (:require [govuk.blinken.service.polling :as polling])) (defn parse-hosts [hosts-json] hosts-json {:up (map :name hosts-json) :down []}) (def status-to-type {0 :ok 1 :warning 2 :critical 3 :unknown}) (defn- parse-alert [alerts alert] (let [status-keyword (status-to-type (...
null
https://raw.githubusercontent.com/alphagov/blinken/9624cc58b4345efe5f37fc9f6fb8c976ee3f7347/src/govuk/blinken/service/sensu.clj
clojure
(ns govuk.blinken.service.sensu (:require [govuk.blinken.service.polling :as polling])) (defn parse-hosts [hosts-json] hosts-json {:up (map :name hosts-json) :down []}) (def status-to-type {0 :ok 1 :warning 2 :critical 3 :unknown}) (defn- parse-alert [alerts alert] (let [status-keyword (status-to-type (...
58aa95bdbae7a4f3ba883543a4901c18bec3ac3a2f6da79f8bde1bc469777ecc
distrap/lambdadrive
LED.hs
# LANGUAGE DataKinds # module LDrive.LED where import Ivory.Language import Ivory.Tower import Ivory.HW.Module import Ivory.BSP.STM32.Peripheral.GPIOF4 import LDrive.Utils data LEDPolarity = ActiveHigh | ActiveLow data LED = LED GPIOPin LEDPolarity ledSetup :: LED -> Ivory eff () ledSetup led@(LED pin _polarity) ...
null
https://raw.githubusercontent.com/distrap/lambdadrive/2bbf6b173fbc1c6d1f809ee4f95ec0bf737d7064/src/LDrive/LED.hs
haskell
| LED Controller: Given a set of leds and a control channel of booleans, setup the pin hardware, and turn the leds on when the control channel is true. Setup hardware before running any event handlers Run a callback on each message posted to the channel Turn pins on or off according to event value | Blink ta...
# LANGUAGE DataKinds # module LDrive.LED where import Ivory.Language import Ivory.Tower import Ivory.HW.Module import Ivory.BSP.STM32.Peripheral.GPIOF4 import LDrive.Utils data LEDPolarity = ActiveHigh | ActiveLow data LED = LED GPIOPin LEDPolarity ledSetup :: LED -> Ivory eff () ledSetup led@(LED pin _polarity) ...
cf35a3c0b3fe13b7feb12eff3e6294ed0ff657912a7140dc2008e7b3fa4d7519
phoe/wordnet
parts-of-speech.lisp
CommonLisp interface to WordNet 1995 , Artificial Intelligence Laboratory Massachusetts Institute of Technology (in-package #:wordnet) Representing parts of speech . In WordNet , the part of speech determines ;;; which index and data files to look in. (defparameter +part-of-speech-table+ nil) (defmacr...
null
https://raw.githubusercontent.com/phoe/wordnet/e8434f3f5113967dc1868aabaf8fd1fbf0cd8533/parts-of-speech.lisp
lisp
which index and data files to look in. ignore
CommonLisp interface to WordNet 1995 , Artificial Intelligence Laboratory Massachusetts Institute of Technology (in-package #:wordnet) Representing parts of speech . In WordNet , the part of speech determines (defparameter +part-of-speech-table+ nil) (defmacro define-part-of-speech (canonical-name (fi...
fc7663e00eb364fd202351d95392c483aa4689fa4887f88461fd40e4ac15d069
relferreira/metabase-sparksql-databricks-driver
hive_like_test.clj
(ns metabase.driver.hive-like-test (:require [expectations :refer [expect]] [metabase.driver.sql-jdbc.sync :as sql-jdbc.sync] [metabase.driver.sql.query-processor :as sql.qp] [metabase.util.honeysql-extensions :as hx] [honeysql.core :as hsql] )) ;; make sur...
null
https://raw.githubusercontent.com/relferreira/metabase-sparksql-databricks-driver/dfbaa3f8d4cd1dc03974aac1a9dfa9070515821a/test/metabase/driver/hive_like_test.clj
clojure
make sure the various types we use for running tests are actually mapped to the correct DB type
(ns metabase.driver.hive-like-test (:require [expectations :refer [expect]] [metabase.driver.sql-jdbc.sync :as sql-jdbc.sync] [metabase.driver.sql.query-processor :as sql.qp] [metabase.util.honeysql-extensions :as hx] [honeysql.core :as hsql] )) (expect :ty...
24d69db74046b5f4b9bbd84432fda0be76755af0a3db4e9d9087fb3b4a8273a8
mnxn/promise_jsoo
promise_lwt.mli
type +'a t = 'a Lwt.t exception Promise_error of Promise.error * [ Promise_error ] is used to wrap JS promise errors in order to reject a Lwt promise in order to reject a Lwt promise *) val of_promise : 'a Promise.t -> 'a t * [ of_promise ] converts from a JS promise to a Lwt promise If a JS promise ...
null
https://raw.githubusercontent.com/mnxn/promise_jsoo/eb8bfae0726a6b46a0f488acb8ce66eb72960be7/promise_jsoo_lwt/promise_lwt.mli
ocaml
type +'a t = 'a Lwt.t exception Promise_error of Promise.error * [ Promise_error ] is used to wrap JS promise errors in order to reject a Lwt promise in order to reject a Lwt promise *) val of_promise : 'a Promise.t -> 'a t * [ of_promise ] converts from a JS promise to a Lwt promise If a JS promise ...
8829cfafbb39030c0e32b9a4df671ae16167a8c2f39cbd59acc8487f1833d5e1
picnic/RelationExtraction
fixpred.ml
(****************************************************************************) RelationExtraction - Extraction of inductive relations for Coq (* *) (* This program is free software: you can redistribute it and/or modify *) it u...
null
https://raw.githubusercontent.com/picnic/RelationExtraction/a4cee37d0a8e5f0eff2e010e6305e037aa0d2564/fixpred.ml
ocaml
************************************************************************** This program is free software: you can redistribute it and/or modify (at your option) any later version. ...
RelationExtraction - Extraction of inductive relations for Coq 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 Copyright 2...
9aa35396baec08610784268e6c51df99a917cb05216286395efad055b2ddb4cb
fulcrologic/semantic-ui-wrapper
ui_dropdown_item.cljc
(ns com.fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-item (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$DropdownItem" :as DropdownItem]))) (def ui-dropdown-item "An item sub-component for Dropdown component. Props: - active (bool): Style as the ...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_item.cljc
clojure
(ns com.fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-item (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$DropdownItem" :as DropdownItem]))) (def ui-dropdown-item "An item sub-component for Dropdown component. Props: - active (bool): Style as the ...
646ee76c34f9ec9e703d0b9299908596a9084a50be2e12b5607516bd710e370e
agustinmista/mdviewer
Paths.hs
module Paths where import System.Directory import System.FilePath progName = "mdviewer" aboutFile = "about.md" dataRelPath = "data" stylesRelPath = "styles" getStylesSourcePath :: IO FilePath getStylesSourcePath = makeAbsolute $ dataRelPath </> stylesRelPath getAboutSourcePath :: IO FilePath getAboutSourcePath = ...
null
https://raw.githubusercontent.com/agustinmista/mdviewer/833ceabaf6ba0a44e503107b15b1bdb6f61932f0/Paths.hs
haskell
module Paths where import System.Directory import System.FilePath progName = "mdviewer" aboutFile = "about.md" dataRelPath = "data" stylesRelPath = "styles" getStylesSourcePath :: IO FilePath getStylesSourcePath = makeAbsolute $ dataRelPath </> stylesRelPath getAboutSourcePath :: IO FilePath getAboutSourcePath = ...
01c47b675f6dc16bd51c072b42b42a9f4bfa9f7e91d7fb07eeb08e31a79752ec
spurious/sagittarius-scheme-mirror
%3a143.scm
(library (srfi :143) (export :all) (import (srfi :143 fixnums)))
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a143.scm
scheme
(library (srfi :143) (export :all) (import (srfi :143 fixnums)))
019271d7409c596cd2031f360404bb639dfaa3612afe361e89a3a7cba49289c1
zlatozar/study-paip
examples.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CH8 ; Base : 10 -*- ;;; Code from Paradigms of Artificial Intelligence Programming Copyright ( c ) 1991 ;;;; File examples.lisp (in-package #:ch8) (defexamples 8 "Symbolic Mathematics: A Simplification Program" "" "'Symbolic mathematics' is to numerical...
null
https://raw.githubusercontent.com/zlatozar/study-paip/dfa1ca6118f718f5d47d8c63cbb7b4cad23671e1/ch08/examples.lisp
lisp
Syntax : COMMON - LISP ; Package : CH8 ; Base : 10 -*- Code from Paradigms of Artificial Intelligence Programming File examples.lisp
Copyright ( c ) 1991 (in-package #:ch8) (defexamples 8 "Symbolic Mathematics: A Simplification Program" "" "'Symbolic mathematics' is to numerical mathematics as algebra is to" "arithmetic: it deals with variables and expressions, not just numbers." "This chapter develops a program that simplifies algeb...
e9e4dee561e496a1250afe9b214fc36b96b3a3271578c5c777b5e88cfa242bf2
cojna/iota
Word64Spec.hs
module Data.Word64Spec (main, spec) where import Data.Proxy import Data.Word64 import Test.Prelude main :: IO () main = hspec spec spec :: Spec spec = do describe "decode64 . encode64 = id" $ do prop "Int" $ prop_decodeEncode (Proxy :: Proxy Int) prop "(Int, Int)" $ prop_decodeEncode (Proxy :: Proxy (Int, ...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/test/Data/Word64Spec.hs
haskell
module Data.Word64Spec (main, spec) where import Data.Proxy import Data.Word64 import Test.Prelude main :: IO () main = hspec spec spec :: Spec spec = do describe "decode64 . encode64 = id" $ do prop "Int" $ prop_decodeEncode (Proxy :: Proxy Int) prop "(Int, Int)" $ prop_decodeEncode (Proxy :: Proxy (Int, ...