_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
ef8febd2badc71a6a5cf64c28a79ab0c8543bb1f116d7965ae762e2fd975356e
racket/racket7
future.rkt
#lang racket/base (require "check.rkt" "internal-error.rkt" "engine.rkt" "atomic.rkt" "parameter.rkt" "../common/queue.rkt" "thread.rkt" "lock.rkt") (provide futures-enabled? processor-count current-future future future...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/thread/future.rkt
racket
not sure of order here... ---------------------------- futures ---------------------------------- id cond lock prompt would-be? thunk engine cont result done? blocked? resumed? cond-wait? got lock someone else ran continuation we need to run continuation this should never be called from outside a fut...
#lang racket/base (require "check.rkt" "internal-error.rkt" "engine.rkt" "atomic.rkt" "parameter.rkt" "../common/queue.rkt" "thread.rkt" "lock.rkt") (provide futures-enabled? processor-count current-future future future...
f6b89f9899a02a2893c60c0e01a44bc4ec4bf22190004e357a6bc65bbe1f9e16
thephoeron/quipper-language
CircLifting.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # LANGUAGE ScopedTypeVariables # {-# LANGUAGE Typ...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/quipper/Quipper/CircLifting.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== # LANGUAGE TypeSynonymInstances # | This module provides a user-friendly interface to building quantum circuits out of classical funct...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # @'decToCircMonad'@ , a specialized version of @'decToMonad'@ , and ...
4fc666a823096a0d21bb886bcb37fc13bf95e92440259deb14922dc4523d7fd1
Platonic-Systems/generics-sop-examples
Main.hs
module Main where import Control.Monad (forM_, unless) import Equality (These (That, These, This), geq, nc_geq) import RouteEncoding ( BlogRoute (..), IsRoute (decodeRoute, encodeRoute), PostSlug (PostSlug), Route (..), ) import Test.QuickCheck (quickCheck) prop_routeEncodingIsoMorphism :: Route -> Bo...
null
https://raw.githubusercontent.com/Platonic-Systems/generics-sop-examples/a020669ce5bc661926f99ccdeaa3232772758622/src/Main.hs
haskell
module Main where import Control.Monad (forM_, unless) import Equality (These (That, These, This), geq, nc_geq) import RouteEncoding ( BlogRoute (..), IsRoute (decodeRoute, encodeRoute), PostSlug (PostSlug), Route (..), ) import Test.QuickCheck (quickCheck) prop_routeEncodingIsoMorphism :: Route -> Bo...
d7041759170e48a0ada17b0cfc8a12376e59b45eebe8bc710fa61fa9e35a89a8
robert-strandh/Clump
deletion.lisp
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defgeneric replace-and-shrink (parent old-child new-child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf)) (defmethod delete-child ((tree tree) child) (declare (ignore child)) (setf (cont...
null
https://raw.githubusercontent.com/robert-strandh/Clump/1ea4dbac1cb86713acff9ae58727dd187d21048a/2-3-tree/deletion.lisp
lisp
OLD-CHILD is identical to RIGHT.
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defgeneric replace-and-shrink (parent old-child new-child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf)) (defmethod delete-child ((tree tree) child) (declare (ignore child)) (setf (cont...
1f4b3b7fe5beff2baae5b6d784df8fd2becebeec6c28aef44dc06bebccafe026
40ants/html2text
core.lisp
(defpackage #:html2text-test/core (:use #:cl #:rove #:hamcrest/rove) (:shadowing-import-from #:html2text/core #:write) (:import-from #:html2text/core #:html2text #:text-block #:inline-block)) (in-package html2text-test/core)...
null
https://raw.githubusercontent.com/40ants/html2text/b5620fdd435df5254a713f3c10bd756632df3dce/t/core.lisp
lisp
This test does not work yet, because Plump parses this documents as <p>Foo<p>bar</p></p> (testing "Also, spaces are removed from the beginning and the end of paragraph texts" (ok (equal (html2text "<p> Foo <p> bar ") "Foo bar "))) This case is not handled by python's html2text! Note,...
(defpackage #:html2text-test/core (:use #:cl #:rove #:hamcrest/rove) (:shadowing-import-from #:html2text/core #:write) (:import-from #:html2text/core #:html2text #:text-block #:inline-block)) (in-package html2text-test/core)...
61d3fb91d5059b62790b8206c62ea35b65a087e15fc9ddce4174504af75e8a6b
databrary/databrary
Party.hs
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} module View.Party ( htmlPartyViewLink , htmlPartyView , htmlPartyEdit , htmlPartySearch , htmlPartyAdmin , htmlPartyDelete ) where import Control.Monad (when, forM_, void) import qualified Data.ByteString.Char8 as BSC import Data.Maybe (fromMaybe) impor...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/View/Party.hs
haskell
# LANGUAGE OverloadedStrings, RecordWildCards # # SOURCE # # SOURCE # # SOURCE # # SOURCE #
module View.Party ( htmlPartyViewLink , htmlPartyView , htmlPartyEdit , htmlPartySearch , htmlPartyAdmin , htmlPartyDelete ) where import Control.Monad (when, forM_, void) import qualified Data.ByteString.Char8 as BSC import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Network.HTTP.Types.Query...
2f98cf3c57048f3a96462bb96cee3f9f25195e5ff6cbc23e0d577ad70f3d2652
ucsd-progsys/dsolve
constraint.mli
open Consdef val pprint_fenv : Format.formatter -> Frame.t Liqenv.t -> unit val formals_addn: Frame.qvar list -> unit val solve: string -> (Consdef.Sol.s -> unit) -> Env.t -> int list -> Parsetree.qualifier_declaration list -> labeled_constraint list -> (Frame.qvar -> Qualifier.t list) * (labeled_co...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/liquid/constraint.mli
ocaml
open Consdef val pprint_fenv : Format.formatter -> Frame.t Liqenv.t -> unit val formals_addn: Frame.qvar list -> unit val solve: string -> (Consdef.Sol.s -> unit) -> Env.t -> int list -> Parsetree.qualifier_declaration list -> labeled_constraint list -> (Frame.qvar -> Qualifier.t list) * (labeled_co...
f6fc398a305de32e91bc4c2f3e8f2c6dae817617e272854dd2f17e68fdb45fb4
fukamachi/clozure-cl
ppc-hash.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as th...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/PPC/ppc-hash.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at ppc;ppc - hash.lisp Equivalent to cl:mod when both args are positive fixnums...
Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed with Clozure CL as ...
ab1d595bcf55942e91ce4fc3112e817668085924fb7c46c8fac732b83c01d615
UnrelatedString/Perhaps
Main.hs
- SPDX - FileCopyrightText : 2020 - 2021 UnrelatedString < > and other Perhaps contributors - - SPDX - License - Identifier : CC0 - 1.0 - SPDX-FileCopyrightText: 2020-2021 UnrelatedString <> and other Perhaps contributors - - SPDX-License-Identifier: CC0-1.0 -} module Main where import Perhaps.Invoke...
null
https://raw.githubusercontent.com/UnrelatedString/Perhaps/6000091ce3dbb36e40cdb5aa01f848f59db066a2/app/Main.hs
haskell
- SPDX - FileCopyrightText : 2020 - 2021 UnrelatedString < > and other Perhaps contributors - - SPDX - License - Identifier : CC0 - 1.0 - SPDX-FileCopyrightText: 2020-2021 UnrelatedString <> and other Perhaps contributors - - SPDX-License-Identifier: CC0-1.0 -} module Main where import Perhaps.Invoke...
393937e2e0c709cf2c54d6a8aa4678919cf5d26fc4bb01a8d6c54fe211da7847
bufferswap/ViralityEngine
thread-pool-defs.lisp
(in-package #:virality) (defclass thread-pool () ((%worker-count :reader worker-count :initarg :worker-count) (%channels :reader channels :initform (u:dict #'eq)) (%queues :reader queues :initform (u:dict #'eq))))
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/datatype/thread-pool-defs.lisp
lisp
(in-package #:virality) (defclass thread-pool () ((%worker-count :reader worker-count :initarg :worker-count) (%channels :reader channels :initform (u:dict #'eq)) (%queues :reader queues :initform (u:dict #'eq))))
1f7a5a2323c1ffb2f6bf3eda3e7d18cb85115617bdbde4344220d265109244b7
ucsd-progsys/dsolve
bs.ml
val arraysize: ('a).{n:nat} 'a array(n) -> int(n) fun bs_aux vec key l u = if u + 1 = l then ~1 else let val m = l + (u-l) / 2 val x = sub (vec, m) in if x < key then bs_aux vec key (m+1) u else if x > key then bs_aux vec key l (m-1) else m end withtype {n:na...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/xiog/DMLex/bs.ml
ocaml
val arraysize: ('a).{n:nat} 'a array(n) -> int(n) fun bs_aux vec key l u = if u + 1 = l then ~1 else let val m = l + (u-l) / 2 val x = sub (vec, m) in if x < key then bs_aux vec key (m+1) u else if x > key then bs_aux vec key l (m-1) else m end withtype {n:na...
e177fc4fd369335313c5b3a3ff46bb9935bd624ca802b15c9aad6c9b7077fe14
diku-dk/futhark
Sequential.hs
# LANGUAGE TypeFamilies # -- | Compile Futhark to sequential imperative code. module Futhark.CodeGen.ImpGen.Sequential ( compileProg, ImpGen.Warnings, ) where import Futhark.CodeGen.ImpCode.Sequential qualified as Imp import Futhark.CodeGen.ImpGen qualified as ImpGen import Futhark.IR.SeqMem import Futhark.Mo...
null
https://raw.githubusercontent.com/diku-dk/futhark/174e8d862def6f52d5c9a36fa3aa6e746049776e/src/Futhark/CodeGen/ImpGen/Sequential.hs
haskell
| Compile Futhark to sequential imperative code.
# LANGUAGE TypeFamilies # module Futhark.CodeGen.ImpGen.Sequential ( compileProg, ImpGen.Warnings, ) where import Futhark.CodeGen.ImpCode.Sequential qualified as Imp import Futhark.CodeGen.ImpGen qualified as ImpGen import Futhark.IR.SeqMem import Futhark.MonadFreshNames | Compile a ' SeqMem ' program to s...
fe3d228a71da427fbc989817b1fc16cb87479643ac10c695635aaea5c1997887
macourtney/Conjure
plugin_destroyer.clj
(ns conjure.script.destroyers.plugin-destroyer (:require [clojure.tools.logging :as logging] [conjure.plugin.util :as plugin-util] [clojure.tools.file-utils :as file-utils])) (defn #^{:doc "Prints out how to use the destroy plugin command."} usage [] (println "You must supply a name (Like...
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_script_plugin/src/conjure/script/destroyers/plugin_destroyer.clj
clojure
(ns conjure.script.destroyers.plugin-destroyer (:require [clojure.tools.logging :as logging] [conjure.plugin.util :as plugin-util] [clojure.tools.file-utils :as file-utils])) (defn #^{:doc "Prints out how to use the destroy plugin command."} usage [] (println "You must supply a name (Like...
061b523c5a296dc3ec21fea046a02580b509aa3c233e0da7a2a40ceef13803b0
rmloveland/scheme48-0.53
sgol.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . Lexer for Infix Scheme ( JAR 's obscure syntax ) Bears no relation to Pratt 's CGOL To do : add ML - ish binding constructs . ; (sgol-read) reads an expression ; ; semicolon terminates input ; comment character is # (comment goes to end of l...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/infix/sgol.scm
scheme
(sgol-read) reads an expression semicolon terminates input comment character is # (comment goes to end of line) f(x, y) reads as (f x y) if x then y else z reads as (if x y z) x and y, x or y, not x do the obvious thing x + y reads as (+ x y) - similarly for - * / = < > <= >= [...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . Lexer for Infix Scheme ( JAR 's obscure syntax ) Bears no relation to Pratt 's CGOL To do : add ML - ish binding constructs . reads as ( cons x y ) - ML 's syntax x++y reads as ( append x y ) - whose syntax ? 's ? ...
adbbad107ee79bf23a2992b433f55bb978707fdcd233fd57af7305f2795fb9ba
ucsd-progsys/liquid-sf
ThmForallPerm.hs
{-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} module ThmForallPerm where import qualified Language.Haskell.Liquid.Bag as B import Language.Haskell.Liquid.ProofCombinators import Lists import Permutations import Prelude hiding ((++)) import qualified Data.Set as S {-@ infix ++ @-} {-@ infix : @-} @ r...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-sf/10f864e0521ef5920bb35af40a14c086f94370dd/vfa2/ThmForallPerm.hs
haskell
@ LIQUID "--reflection" @ @ LIQUID "--ple" @ @ infix ++ @ @ infix : @ @ assert :: b:{Bool | b } -> { b } @ @ permutationsElem :: x:a -> ys:[a] -> xs:{[a] | permutation xs ys } -> { S.member x (listElts xs) <=> S.member x (listElts ys) } @
module ThmForallPerm where import qualified Language.Haskell.Liquid.Bag as B import Language.Haskell.Liquid.ProofCombinators import Lists import Permutations import Prelude hiding ((++)) import qualified Data.Set as S @ reflect forall2 @ forall2 :: (a->Bool) -> [a] -> Bool forall2 f [] = True forall2 f (x:...
dadb897c1de736c7f5522b0edf1a560e810f5b4af469dd626659f4170d5782ff
RichiH/git-annex
AutoCorrect.hs
git autocorrection using Damerau - Levenshtein edit distance - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.AutoCorrect where import Common import Git.Types import qu...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Git/AutoCorrect.hs
haskell
These are the same cost values as used in git. Git's source calls this "an empirically derived magic number" Finds inexact matches for the input among the choices. - Returns an ordered list of good enough matches, or an empty list if - nothing matches well. Takes action based on git's autocorrect configuration...
git autocorrection using Damerau - Levenshtein edit distance - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.AutoCorrect where import Common import Git.Types import qu...
ec71c550e3cea06e54ebf82ee8caaeb450e42a085209bcab297ccea80a9714fb
district0x/district-registry
dev.cljs
(ns district-registry.server.dev (:require [cljs.nodejs :as nodejs] [cljs.pprint :as pprint] [clojure.pprint :refer [print-table]] [clojure.string :as str] [district-registry.server.constants :as constants] district-registry.server.db district-re...
null
https://raw.githubusercontent.com/district0x/district-registry/c2dcf7978d2243a773165b18e7a76632d8ad724e/src/district_registry/server/dev.cljs
clojure
(ns district-registry.server.dev (:require [cljs.nodejs :as nodejs] [cljs.pprint :as pprint] [clojure.pprint :refer [print-table]] [clojure.string :as str] [district-registry.server.constants :as constants] district-registry.server.db district-re...
25ed49b164b97b8cd4b797b652c6240085d0c42f1d198f5835fd584f14d4734a
pirapira/coq2rust
vars.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/kernel/vars.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * [closedn n M] is true iff [M] is a...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Constr open C...
5a9d7e4cec41743f7f264e2ea6d45ce73c90f191b02dc973b4d8e415d60dd091
ivanjovanovic/sicp
e-1.16.scm
Exercise 1.16 . ; ; Design a procedure that evolves an iterative exponentiation process that uses successive ; squaring and uses a logarithmic number of steps, as does fast-expt. ; (Hint: Using the observation that (b^(n/2))^2 = (b^2)^(n/2), keep, along with the exponent ; n and the base b, an additional state variab...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/1.2/e-1.16.scm
scheme
Design a procedure that evolves an iterative exponentiation process that uses successive squaring and uses a logarithmic number of steps, as does fast-expt. (Hint: Using the observation that (b^(n/2))^2 = (b^2)^(n/2), keep, along with the exponent n and the base b, an additional state variable a, and define the st...
Exercise 1.16 . the process a is taken to be 1 , and the answer is given by the value of a at the end of the as suggested in the task . One porblem is that the way fast - expt in (load "../common.scm") (define (expt b n) (fast-expt b n 1)) (define (fast-expt b n product) (cond ((= n 0) product) ...
f99c7c06a2583c2ef73af2ab3dedd1615b861e67c3b48c08b650ba99ea196cb2
sondresl/AdventOfCode
12.hs
import Data.Maybe import Control.Arrow import Data.List.Extra import qualified Data.Set as S import qualified Data.Map as M type Id = Int type Nodes = M.Map Id [Id] parse' :: String -> Nodes parse' = M.fromList . map (((read . head) &&& (map read . drop 2)) . splitOn " ") . lines ...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/a460af1866077639e0c58947354d750d1b96975c/2017/Haskell/12.hs
haskell
import Data.Maybe import Control.Arrow import Data.List.Extra import qualified Data.Set as S import qualified Data.Map as M type Id = Int type Nodes = M.Map Id [Id] parse' :: String -> Nodes parse' = M.fromList . map (((read . head) &&& (map read . drop 2)) . splitOn " ") . lines ...
4d4f24af90cfaafff4efa70637efc7cf04913ac92b79c10e88318f55124c53f8
icicle-lang/zebra-ambiata
Logical.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Test.Zebra.Serial.Json.Logical where import Disorder.Jack (Property, forAllProperties, quickCheckWithResult, maxSuccess, stdArgs) import Disorder.Jack (gamble) import P import System.IO (IO) import T...
null
https://raw.githubusercontent.com/icicle-lang/zebra-ambiata/394ee5f98b4805df2c76abb52cdaad9fd7825f81/zebra-core/test/Test/Zebra/Serial/Json/Logical.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Test.Zebra.Serial.Json.Logical where import Disorder.Jack (Property, forAllProperties, quickCheckWithResult, maxSuccess, stdArgs) import Disorder.Jack (gamble) import P import System.IO (IO) import T...
47c517f4765127fe4f7b2084617f54079679ec73b59cf0f5b59d58e4d52cbb23
mrkkrp/megaparsec
Common.hs
# LANGUAGE DeriveGeneric # module ParsersBench.Json.Common ( Result (..), Object, Array, Value (..), ) where import Control.DeepSeq import qualified Data.HashMap.Strict as H import Data.Scientific (Scientific) import Data.Text (Text) import Data.Vector (Vector) import GHC.Generics data Result a = E...
null
https://raw.githubusercontent.com/mrkkrp/megaparsec/a804c07ff3887c3c60ab41bfb3faa71291ef82dc/parsers-bench/ParsersBench/Json/Common.hs
haskell
# LANGUAGE DeriveGeneric # module ParsersBench.Json.Common ( Result (..), Object, Array, Value (..), ) where import Control.DeepSeq import qualified Data.HashMap.Strict as H import Data.Scientific (Scientific) import Data.Text (Text) import Data.Vector (Vector) import GHC.Generics data Result a = E...
9c4167fc702b0f70462f05f612cd911599a57b8836842f76b1a151cb088e6755
joachimdb/dl4clj
rnn_output_layer.clj
(ns ^{:doc "see "} dl4clj.nn.conf.layers.rnn-output-layer (:require [dl4clj.nn.conf.layers.base-output-layer :as base-out-layer] [nd4clj.linalg.lossfunctions.loss-functions :as loss-functions]) (:import [org.deeplearning4j.nn.conf.layers RnnOutputLayer RnnOutputLayer$Builder] [org.nd4j.lina...
null
https://raw.githubusercontent.com/joachimdb/dl4clj/fe9af7c886b80df5e18cd79923fbc6955ddc2694/src/dl4clj/nn/conf/layers/rnn_output_layer.clj
clojure
(ns ^{:doc "see "} dl4clj.nn.conf.layers.rnn-output-layer (:require [dl4clj.nn.conf.layers.base-output-layer :as base-out-layer] [nd4clj.linalg.lossfunctions.loss-functions :as loss-functions]) (:import [org.deeplearning4j.nn.conf.layers RnnOutputLayer RnnOutputLayer$Builder] [org.nd4j.lina...
31eeeb44f87bc261c69c4805e7b7151ac02c0dc10b6c095b365db57f746a6040
janestreet/accessor
applicative_without_return.mli
include Applicative_without_return_intf.Applicative_without_return
null
https://raw.githubusercontent.com/janestreet/accessor/e905e32c808dfda6950be29987a4bf4f2595fbfc/applicative_without_return/src/applicative_without_return.mli
ocaml
include Applicative_without_return_intf.Applicative_without_return
9f87ff278ede349ab5d387a6954d88b3744dbd000f6a5237e6f9eb99a3505002
neongreen/haskell-ex
Main.hs
module Main where import Data.Char (toLower, ord, isAsciiLower) isScary :: String -> Bool isScary word = countSum word == 13 countSum :: String -> Int countSum = sum . map (\c -> ord c - ord 'a' + 1) . filter isAsciiLower . map toLower main :: IO () main = processFile "/usr/share/dict/words" processFile inputFile =...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week1/scary/borboss366/Main.hs
haskell
module Main where import Data.Char (toLower, ord, isAsciiLower) isScary :: String -> Bool isScary word = countSum word == 13 countSum :: String -> Int countSum = sum . map (\c -> ord c - ord 'a' + 1) . filter isAsciiLower . map toLower main :: IO () main = processFile "/usr/share/dict/words" processFile inputFile =...
bd15cc9c19605f24671ed34d9e045067b9ced7baeb23334e49a4335d438a31f0
sinasamavati/mad
one.erl
-module(one). -export([ping/0]). -export([test_inc_hrl/0]). -export([test_src_hrl/0]). -include("one_src.hrl"). -include_lib("one_inc.hrl"). ping() -> pong. test_inc_hrl() -> ?INC_HRL. test_src_hrl() -> ?SRC_HRL.
null
https://raw.githubusercontent.com/sinasamavati/mad/2d728caf07d26d991f767648b7cdeb756497c6bd/test/mad_compile_SUITE_data/deps/one/src/one.erl
erlang
-module(one). -export([ping/0]). -export([test_inc_hrl/0]). -export([test_src_hrl/0]). -include("one_src.hrl"). -include_lib("one_inc.hrl"). ping() -> pong. test_inc_hrl() -> ?INC_HRL. test_src_hrl() -> ?SRC_HRL.
e8f22b5198bc695f4d1834e8a48b06db12fe7e63d85746c29204048cbde642c9
onedata/op-worker
file_meta.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Model for file's metadata. Implements ...
null
https://raw.githubusercontent.com/onedata/op-worker/c7e9d655ccd57b0c2712759ef9e588d79f3e52bd/src/modules/datastore/models/file/metadata/file_meta.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Model for file's metadata. Implements low-level metadata operations such as walking through file graph. @end -------------------------------------------------------------...
@author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(file_meta). -author("Rafal Slota"). -include("global_definitions.hrl"). -include("modules/datastore/datastore_models.hrl"). -include("modules/datastore/datastore_runner.hrl"). -include("mod...
1edd73ab71169429c8be00bcb0e4822ad0b91993bd78bd0bba9609ea22eedf92
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude -- `licence-file` missing. main = cabalTest $ fails $ cabal "check" []
null
https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/ConfiguredPackage/License/NoFileSpecified/cabal.test.hs
haskell
`licence-file` missing.
import Test.Cabal.Prelude main = cabalTest $ fails $ cabal "check" []
a7c4e30b8af4a78de7ebf176ed1d742ea9aef3628fb0a01bb20a1d8901adb122
commsor/titanoboa-tasklets
project.clj
(defproject io.titanoboa.tasklet/http-client "0.1.1" :description "http client step function for titanoboa.io" :url "" :license {:name "unlicense" :url "/"} :dependencies [[clj-http "3.12.3"]] :source-paths ["src/clj"] :profiles {:dev {:dependencies [[org.clojure/clojure "1.10.0"]]} ...
null
https://raw.githubusercontent.com/commsor/titanoboa-tasklets/9e1efdf373243624b5def938900e0d250a5a8580/http-client/project.clj
clojure
(defproject io.titanoboa.tasklet/http-client "0.1.1" :description "http client step function for titanoboa.io" :url "" :license {:name "unlicense" :url "/"} :dependencies [[clj-http "3.12.3"]] :source-paths ["src/clj"] :profiles {:dev {:dependencies [[org.clojure/clojure "1.10.0"]]} ...
ab5de21a6618ec88644dbd52d448a7977a6d8aeb8d80a57a77a192bc538d2089
rurban/clisp
image.lisp
-*- Mode : Lisp ; Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : T -*- CLX Image functions ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual or institu...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/clx/mit-clx/image.lisp
lisp
Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : T -*- P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentat...
CLX Image functions TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package :xlib) (defmacro with-image-data-buffer ((buffer size) &body body) (declare (inden...
2e01f2a031c7a52c237884c42b15a08f4d2ab52c3b60f30323ab0a4e2b49797f
brownplt/TeJaS
bare_env.mli
open Prelude open Sig open Strobe_sigs open Bare_sigs module MakeExt : functor (Bare : BARE_MODULE) -> functor (BareKinding : BARE_KINDING with type typ = Bare.typ with type kind = Bare.kind with type binding = Bare.binding with type baseTyp = Bare.baseTyp with type baseKind = Bare.baseKind ...
null
https://raw.githubusercontent.com/brownplt/TeJaS/a8ad7e5e9ad938db205074469bbde6a688ec913e/src/bare/bare_env.mli
ocaml
open Prelude open Sig open Strobe_sigs open Bare_sigs module MakeExt : functor (Bare : BARE_MODULE) -> functor (BareKinding : BARE_KINDING with type typ = Bare.typ with type kind = Bare.kind with type binding = Bare.binding with type baseTyp = Bare.baseTyp with type baseKind = Bare.baseKind ...
5d685e778348eb5741673bcfec17e8e2a54dec06e01f7a2765898d5512f6cd3b
ghc/packages-dph
Arrays.hs
{-# OPTIONS -Wall -fno-warn-orphans -fno-warn-missing-signatures #-} {-# LANGUAGE EmptyDataDecls, ScopedTypeVariables #-} # LANGUAGE CPP # #include "fusion-phases.h" -- | Operations on distributed arrays. module Data.Array.Parallel.Unlifted.Distributed.Arrays ( -- * Distribution phantom parameter Di...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-prim-par/Data/Array/Parallel/Unlifted/Distributed/Arrays.hs
haskell
# OPTIONS -Wall -fno-warn-orphans -fno-warn-missing-signatures # # LANGUAGE EmptyDataDecls, ScopedTypeVariables # | Operations on distributed arrays. * Distribution phantom parameter * Array Lengths * Splitting and joining * Permutations * Update * Carry Distribution --------------------------------------------...
# LANGUAGE CPP # #include "fusion-phases.h" module Data.Array.Parallel.Unlifted.Distributed.Arrays Distribution, balanced, unbalanced , lengthD, splitLenD, splitLenIdxD , splitAsD, splitD, joinLengthD, joinD, splitJoinD, joinDM , permuteD, bpermuteD , atomicUpdateD ...
0daa5b74de1d1658212abcec7ba3854f182b6afd1d540ea084c8f670ca51ef70
processone/tsung
ts_test_mochi.erl
-module(ts_test_mochi). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). xpath_parse_test() -> Data="\r\n\r\n<html><body><a href='/index.html?name=A&value=B&C'></a></body></html>", XPath = "//a/@href", Tree = mochiweb_html:parse(list_to_binary(Data)), ?assertEqual({<<"html">>,[], [{...
null
https://raw.githubusercontent.com/processone/tsung/e9babe2acfb4298e3b51bd56886561b052979884/src/test/ts_test_mochi.erl
erlang
-module(ts_test_mochi). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). xpath_parse_test() -> Data="\r\n\r\n<html><body><a href='/index.html?name=A&value=B&C'></a></body></html>", XPath = "//a/@href", Tree = mochiweb_html:parse(list_to_binary(Data)), ?assertEqual({<<"html">>,[], [{...
c71ee9888e8bf20445a2ad0b43a1cfd172df158abe526efc93c812a0d7b1e78c
mbutterick/pollen
cache-utils.rkt
#lang racket/base (require "file-utils.rkt" "../setup.rkt" "project.rkt" "log.rkt" file/cache racket/file racket/path racket/list racket/port racket/match sugar/coerce sugar/test racket/fasl racket/seria...
null
https://raw.githubusercontent.com/mbutterick/pollen/39cfc2ed5474e919f2b4f16f472f10fce00248c6/pollen/private/cache-utils.rkt
racket
can't use relative paths for cache keys because source files include `here-path` which is absolute. problem is that cache could appear valid on another filesystem (based on relative pathnames & mod dates) but would actually be invalid (because the `here-path` names are wrong). key is list of file + mod-time pairs, ...
#lang racket/base (require "file-utils.rkt" "../setup.rkt" "project.rkt" "log.rkt" file/cache racket/file racket/path racket/list racket/port racket/match sugar/coerce sugar/test racket/fasl racket/seria...
eb35fbb598ba9671a4c78d278075b2f9a0644628753bdb16689525c2970608e8
bondy-io/bondy
bondy_wamp_utils.erl
%% ============================================================================= %% bondy_wamp_utils.erl - %% Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License....
null
https://raw.githubusercontent.com/bondy-io/bondy/a1267e7e5526db24f278e12315020753f3168b44/apps/bondy/src/bondy_wamp_utils.erl
erlang
============================================================================= bondy_wamp_utils.erl - you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR...
Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(bondy_wamp_utils). -include_lib("wamp/include/wamp.hrl"). -include("bondy.hrl"). -export([maybe_err...
86f97237d6566542fb9c84076e55200bd6b97ef60ff726fe2e110cd59a7be9b6
TyGuS/hoogle_plus
Generate.hs
# LANGUAGE ViewPatterns , PatternGuards , OverloadedStrings , Rank2Types # module Database.Generate where import Control.Monad.IO.Class import Language.Haskell.Exts import Data.Conduit import Data.Data import qualified Data.ByteString as B import qualified Data.Map as Map import qualified Data.Set as Set import Data....
null
https://raw.githubusercontent.com/TyGuS/hoogle_plus/d02a1466d98f872e78ddb2fb612cb67d4bd0ca18/src/Database/Generate.hs
haskell
partial application, to share the initialisation cost newtype constructors tuple constructors tuple data type
# LANGUAGE ViewPatterns , PatternGuards , OverloadedStrings , Rank2Types # module Database.Generate where import Control.Monad.IO.Class import Language.Haskell.Exts import Data.Conduit import Data.Data import qualified Data.ByteString as B import qualified Data.Map as Map import qualified Data.Set as Set import Data....
eb024aab831c83d00d1b6d4adb5e08ef4fd303dba72d87357cc7e614aaa7c243
exercism/common-lisp
pascals-triangle.lisp
(defpackage :pascals-triangle (:use :cl) (:export :rows)) (in-package :pascals-triangle) (defun rows (n))
null
https://raw.githubusercontent.com/exercism/common-lisp/f3cdf6cf7e607138d1bb4d26c57999d4364af243/exercises/practice/pascals-triangle/pascals-triangle.lisp
lisp
(defpackage :pascals-triangle (:use :cl) (:export :rows)) (in-package :pascals-triangle) (defun rows (n))
87bc10ba84c379f890dabbf4027600589dd009cd2c0e1258e7e8f1b750c7c2bb
agda/agda
Emacs.hs
| Functions which give precise syntax highlighting info to Emacs . module Agda.Interaction.Highlighting.Emacs ( lispifyHighlightingInfo , lispifyTokenBased ) where import Prelude hiding (null) import Agda.Interaction.Highlighting.Common import Agda.Interaction.Highlighting.Precise import Agda.Interaction.Hi...
null
https://raw.githubusercontent.com/agda/agda/cbba4e4c6f658e8d9d332ed6173caf98ea075904/src/full/Agda/Interaction/Highlighting/Emacs.hs
haskell
---------------------------------------------------------------------- Read/show functions | Shows meta information in such a way that it can easily be read ^ Must contain a mapping for the definition site's module, if any. added. | Turns syntax highlighting information into a list of S-expressions. TODO: The "g...
| Functions which give precise syntax highlighting info to Emacs . module Agda.Interaction.Highlighting.Emacs ( lispifyHighlightingInfo , lispifyTokenBased ) where import Prelude hiding (null) import Agda.Interaction.Highlighting.Common import Agda.Interaction.Highlighting.Precise import Agda.Interaction.Hi...
6d08927b8012d8c774e40c31a3cfe675764570349297a81729d2db412eca6420
brianium/clean-todos
list_todos_test.clj
(ns todos.core.use-case.list-todos-test (:require [clojure.test :refer :all] [clojure.core.async :refer [chan go]] [yoose.core :as yoose] [todos.core.entity.todo :as todo] [todos.core.action :as action] [todos.storage.todo.collection :refer [make-storage]] ...
null
https://raw.githubusercontent.com/brianium/clean-todos/fca2320fe3bca052787c4ace479ce69d23d58a12/test/todos/core/use_case/list_todos_test.clj
clojure
(ns todos.core.use-case.list-todos-test (:require [clojure.test :refer :all] [clojure.core.async :refer [chan go]] [yoose.core :as yoose] [todos.core.entity.todo :as todo] [todos.core.action :as action] [todos.storage.todo.collection :refer [make-storage]] ...
febf70dfc79fc7b37c8c7f43e646fd46dba3e5e1762fdec3062be527f54518b0
symphonyoss/clj-symphony
chat.clj
; Copyright 2017 Fintech Open Source Foundation SPDX - License - Identifier : Apache-2.0 ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicab...
null
https://raw.githubusercontent.com/symphonyoss/clj-symphony/6efcb46c931d48ec7abccfd3b891436fb3261d46/src/clj_symphony/chat.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing pe...
Copyright 2017 Fintech Open Source Foundation SPDX - License - Identifier : Apache-2.0 distributed under the License is distributed on an " AS IS " BASIS , (ns clj-symphony.chat "Operations related to 'chats'. A 'chat' may contain 2 or more participants from 1 or 2 pods, and are different to rooms in that t...
b8fe22767be9905a17f40348dd3aa0f08e3d70d46eeb10db07484c9f40f1300e
hiratara/Haskell-Nyumon-Sample
chap08-samples-8-5-3.hs
module Main where import Control.Monad (forever) import Control.Concurrent Control . Exceptionの代わりにControl . Exception . Safeをimportしても実行できる import Control.Exception (mask, try, throwIO, finally, Exception, SomeException) import Data.Typeable data MyException = ThisException | ThatException deriving (Show, Typeabl...
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap08-samples/chap08-samples-8-5-3.hs
haskell
module Main where import Control.Monad (forever) import Control.Concurrent Control . Exceptionの代わりにControl . Exception . Safeをimportしても実行できる import Control.Exception (mask, try, throwIO, finally, Exception, SomeException) import Data.Typeable data MyException = ThisException | ThatException deriving (Show, Typeabl...
fbff6f9ea0b019ec628e17d44d8d34604fe23c672d8379dd9d039f5ca6f8e905
emaphis/HtDP2e-solutions
ex017.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex017) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/02-Functions/ex017.rkt
racket
about the language level of this file in a form that our tools can easily process. Define the function image-classify, which consumes an image and produces "tall" if the image is taller than wide, "wide" if it is wider than tall, or "square" if its width and height are the same. "tall" "wide" "square"
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex017) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) Ex . 17 : based on ex . 8 (define (ima...
09fe8e9a3634f9778578bff8dd384057812dfb0013fcd3fc07d459bd8f7c1e28
sylphbio/pontiff
pontiff.scm
(module bin.pontiff () (import scheme) (import chicken.base) (import chicken.type) (import chicken.string) (import chicken.format) (import chicken.process-context) (import tabulae) (import tabulae.monad) (import ix) (import (prefix state state:)) (import (prefix argv argv:)) (import (prefix command command:)) ; nic...
null
https://raw.githubusercontent.com/sylphbio/pontiff/8af6c1932e687b5f4219d2c649c1aa4bb92d543a/src/bin/pontiff.scm
scheme
nice future things... * __VERSION__ __LINE__ etc replacements. possibly by user compiler pass? pontiff language extensions lol * our own import files, so we can fully parallelize compilation maybe a declare that indicates no macros are exported... complicated tho, we need to parse existing import files to reso...
(module bin.pontiff () (import scheme) (import chicken.base) (import chicken.type) (import chicken.string) (import chicken.format) (import chicken.process-context) (import tabulae) (import tabulae.monad) (import ix) (import (prefix state state:)) (import (prefix argv argv:)) (import (prefix command command:)) * v...
130239488c50fc92128d967bdeb8212629214c532099f98af4ccbbbded99cdbf
haskell/cabal
InstalledPreference.hs
module Distribution.Solver.Types.InstalledPreference ( InstalledPreference(..), ) where import Prelude (Show) -- | Whether we prefer an installed version of a package or simply the latest -- version. -- data InstalledPreference = PreferInstalled | PreferLatest | PreferOldest deriving Show
null
https://raw.githubusercontent.com/haskell/cabal/207d4ee08b929ae71ae2c746fe6da660bc129f05/cabal-install-solver/src/Distribution/Solver/Types/InstalledPreference.hs
haskell
| Whether we prefer an installed version of a package or simply the latest version.
module Distribution.Solver.Types.InstalledPreference ( InstalledPreference(..), ) where import Prelude (Show) data InstalledPreference = PreferInstalled | PreferLatest | PreferOldest deriving Show
afe4d694e1b4088a873029bbe785cf35678160b06e2dde18081eca337e2edfb3
nuprl/gradual-typing-performance
roof-north.rkt
#lang racket/base (provide roof-north) (require racket/draw racket/runtime-path) (define-runtime-path roof-north-img "roof-north.png") (define roof-north (read-bitmap roof-north-img))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/planetcute/roof-north.rkt
racket
#lang racket/base (provide roof-north) (require racket/draw racket/runtime-path) (define-runtime-path roof-north-img "roof-north.png") (define roof-north (read-bitmap roof-north-img))
92119a6510a9dc5d8651b9af7473bcd38aec4442a6bd3f5470a3a7c213ed0bb2
hopv/MoCHi
cunFormula.ml
open Util open Combinator open Term (** Formulas on unit, booleans, integers, and predicate variable applications *) (* val eq_pva : Pva.t -> Pva.t -> Formula.t *) let eq_pva pva1 pva2 = Pva.fold (fun p1 tts1 -> Pva.fold (fun p2 tts2 -> assert (p1 = p2); List.map2 NumFormula.eq_tt tts1 tt...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/cunFormula.ml
ocaml
* Formulas on unit, booleans, integers, and predicate variable applications val eq_pva : Pva.t -> Pva.t -> Formula.t 0-ary predvar app let bounded boolean variable Formula.forall (TypEnv.of_sexp tenv) (of_sexp is_real pvars env e) * @return whether t does not contain a subexpression of the type unit * case a...
open Util open Combinator open Term let eq_pva pva1 pva2 = Pva.fold (fun p1 tts1 -> Pva.fold (fun p2 tts2 -> assert (p1 = p2); List.map2 NumFormula.eq_tt tts1 tts2 |> Formula.band) pva2) pva1 let size = Formula.fold (object method fatom atm = CunAtom.size atm ...
237604b703e1475d207baae381aa7a96506edd38e0c4519cffe43adbb875c018
ssor/erlangDemos
tr_server.erl
%%%------------------------------------------------------------------- @author Martin & Eric < > %%% [] 2008 - 2010 Erlware %%% @doc RPC over TCP server. This module defines a server process that %%% listens for incoming TCP connections and allows the user to %%% execute RPC commands via that TCP strea...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/erlware-Erlang-and-OTP-in-Action-Source/tcp_rpc/lib/tcp_rpc/src/tr_server.erl
erlang
------------------------------------------------------------------- [] @doc RPC over TCP server. This module defines a server process that listens for incoming TCP connections and allows the user to execute RPC commands via that TCP stream. @end ----------------------------------------------------------...
@author Martin & Eric < > 2008 - 2010 Erlware -module(tr_server). -behaviour(gen_server). -include_lib("eunit/include/eunit.hrl"). -export([ start_link/0, start_link/1, get_count/0, stop/0 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, t...
a0ccbc582759dcc1b0fbe37ce0e07886410d22813ba1039364fd4f50e0157a07
noinia/hgeometry
RandomMonotone.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE PatternSynonyms # module RandomMonotone (randomMonotoneShowcase ) where import Geometry.Polygon.Monotone (randomMonotoneDirected, randomNonZeroVector) import Control.Lens ((&), (.~), (^.)) import Control.Monad.Random import Data...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-showcase/src/RandomMonotone.hs
haskell
# LANGUAGE DataKinds # Animation overview: * Start with N random points. * Draw polygon outline. * Scan through polygon, highlighting intersections. * Fade out everything except points. * Interpolate to new random set of points. This happens when an edge is parallel with the given direction. I think it's corr...
# LANGUAGE PatternSynonyms # module RandomMonotone (randomMonotoneShowcase ) where import Geometry.Polygon.Monotone (randomMonotoneDirected, randomNonZeroVector) import Control.Lens ((&), (.~), (^.)) import Control.Monad.Random import Data.Ext (_core, ...
06ed2c935215c21aba47e1924c1ab6ca66470d605d0a3cdbc7142eb29b2cffd9
htm-community/comportex
project.clj
(defproject org.nfrac/comportex "0.0.16-SNAPSHOT" :description "Hierarchical Temporal Memory in Clojure" :url "-community/comportex/" :license {:name "GNU Affero General Public Licence" :url "-3.0.en.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha12"] [org.clojure/core.async...
null
https://raw.githubusercontent.com/htm-community/comportex/cd318492cf2e43cb7f25238b116b90b8195ec5aa/project.clj
clojure
(defproject org.nfrac/comportex "0.0.16-SNAPSHOT" :description "Hierarchical Temporal Memory in Clojure" :url "-community/comportex/" :license {:name "GNU Affero General Public Licence" :url "-3.0.en.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha12"] [org.clojure/core.async...
82261e8e1bcaf187798791583bd53bc09c7fa6a6ae627f1d6fa79e42a09861a8
TrustInSoft/tis-interpreter
utf8_logic.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/libraries/utils/utf8_logic.mli
ocaml
************************************************************************ alternatives) Automatique) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en Lesser General Pu...
61957cbb0e46ee35093ac6c2c39751984947bb51bbf214208400c260bd7807c7
racket/old-plt
define-opt.scm
(define-syntax define-opt (syntax-rules (optional) ((define-opt (name . bindings) . bodies) (define-opt "seek-optional" bindings () ((name . bindings) . bodies))) ((define-opt "seek-optional" ((optional . _opt-bindings)) (reqd ...) ((name . _bindings) . _bodies)) (define (name reqd ... . _...
null
https://raw.githubusercontent.com/racket/old-plt/a580d75deae2a0d2f3d8a93bc3c4f8f1f619b5b7/collects/ssax/define-opt.scm
scheme
no optional args, unlikely No optional found, regular define Just the definition for 'name', for compatibilibility with define
(define-syntax define-opt (syntax-rules (optional) ((define-opt (name . bindings) . bodies) (define-opt "seek-optional" bindings () ((name . bindings) . bodies))) ((define-opt "seek-optional" ((optional . _opt-bindings)) (reqd ...) ((name . _bindings) . _bodies)) (define (name reqd ... . _...
f971b6e749b520e37148e8ffe220e3b366c31960de011e121dd5b56da40d85c1
janestreet/memtrace
memtrace.ml
type tracer = Memprof_tracer.t let getpid64 () = Int64.of_int (Unix.getpid ()) let start_tracing ~context ~sampling_rate ~filename = if Memprof_tracer.active_tracer () <> None then failwith "Only one Memtrace instance may be active at a time"; let fd = try Unix.openfile filename Unix.[O_CREAT;O_WRONLY] 0o...
null
https://raw.githubusercontent.com/janestreet/memtrace/ec1106fd6ab76c3565e22fe372f748a8d3235ec3/src/memtrace.ml
ocaml
On special files (e.g. /dev/null), ftruncate fails. Ignoring errors here gives us the truncate-if-a-regular-file behaviour of O_TRUNC. Prevent spawned OCaml programs from being traced
type tracer = Memprof_tracer.t let getpid64 () = Int64.of_int (Unix.getpid ()) let start_tracing ~context ~sampling_rate ~filename = if Memprof_tracer.active_tracer () <> None then failwith "Only one Memtrace instance may be active at a time"; let fd = try Unix.openfile filename Unix.[O_CREAT;O_WRONLY] 0o...
acd81ac3151f778ad489e15bca26f41aa2080fcc58921e50bee318e53436ba58
myme/nixon
Logging.hs
module Test.Nixon.Logging (logging) where import Control.Monad.Trans.RWS import Nixon.Logging import Nixon.Prelude import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances.Text () newtype TestLogging a = TestLogging (RWS LogLevel [Text] () a) deriving (Functor, Applicative, Monad) runLogger :: Log...
null
https://raw.githubusercontent.com/myme/nixon/30a1ff6c1e902c2fb06ddfb003ab4124c447cc81/test/Test/Nixon/Logging.hs
haskell
module Test.Nixon.Logging (logging) where import Control.Monad.Trans.RWS import Nixon.Logging import Nixon.Prelude import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances.Text () newtype TestLogging a = TestLogging (RWS LogLevel [Text] () a) deriving (Functor, Applicative, Monad) runLogger :: Log...
f2bcced2dd3ca53f305f871a135c767d2558b152a6651c3e41b313a9baf8802c
zlatozar/study-paip
exercises.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CH7 - EXERCISES ; Base : 10 -*- ;;;; File exercises.lisp (in-package #:ch7-exercises)
null
https://raw.githubusercontent.com/zlatozar/study-paip/dfa1ca6118f718f5d47d8c63cbb7b4cad23671e1/ch07/exercises.lisp
lisp
Syntax : COMMON - LISP ; Package : CH7 - EXERCISES ; Base : 10 -*- File exercises.lisp
(in-package #:ch7-exercises)
971716887b4cda60bb63a5067806e6ce6c48d3fed6da113451917436d6266209
rpgoldman/pddl-tools
commons.lisp
;;; ------------------------------------------------------------------------- Copyright 2011 - 2016 , SIFT , LLC , , and Available under the BSD 3 - clause license , see license.txt ;;;--------------------------------------------------------------------------- (in-package :pddl-utils) (deftype domain () `(...
null
https://raw.githubusercontent.com/rpgoldman/pddl-tools/0daf06dbbae9024e31558bba570516ffd0522c20/utils/commons.lisp
lisp
------------------------------------------------------------------------- --------------------------------------------------------------------------- Primitives: makers misc utility FIXME: this assumes that the domain is typed. Should handle untyped domains, as well. Assumes the ACTIONS-LIST is a list of well-f...
Copyright 2011 - 2016 , SIFT , LLC , , and Available under the BSD 3 - clause license , see license.txt (in-package :pddl-utils) (deftype domain () `(and list (satisfies domain-sexp-p))) (deftype problem () `(and list (satisfies problem-sexp-p))) (deftype action () `(and list (satisfies action-sexp-p...
898f03514eb752c615a3fd125aff47dc632b0046929f88ec94697c1eda3e72ab
day8/re-frame-10x
defaults.clj
(ns day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.runtime.defaults (:require [day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.container.atom :refer [->AtomStyleContainer]])) (defonce shared-styles-atom (atom nil)) (defn create-container [] (->AtomStyleContainer shared-styles-atom))
null
https://raw.githubusercontent.com/day8/re-frame-10x/e7105ccc00b8458cdb2e5696eecc4b8602b53bca/gen-src/day8/re_frame_10x/inlined_deps/spade/git_sha_93ef290/runtime/defaults.clj
clojure
(ns day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.runtime.defaults (:require [day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.container.atom :refer [->AtomStyleContainer]])) (defonce shared-styles-atom (atom nil)) (defn create-container [] (->AtomStyleContainer shared-styles-atom))
1fd596a99c36db4c3ad7839b19360aff412bfa1c2a592996b6919492f52e58f7
bugczw/Introduction-to-Functional-Programming-in-OCaml
W1_S3_1.ml
INTEGER IDENTIFIERS ( 2/2 points ) Suppose that a variable x exists and is an integer . Define a variable x_power_8 that uses three multiplications to calculate x to the power of 8 . The only function you are allowed to call is the ( * ) operator . Hint : use auxiliary variables . THE GIVEN PRELUDE le...
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W1_ALL/Exercise/W1_S3_1.ml
ocaml
not 0
INTEGER IDENTIFIERS ( 2/2 points ) Suppose that a variable x exists and is an integer . Define a variable x_power_8 that uses three multiplications to calculate x to the power of 8 . The only function you are allowed to call is the ( * ) operator . Hint : use auxiliary variables . THE GIVEN PRELUDE le...
f77eafd56aee19b09bd8843091aef081ed2144e6ce169fcb61b99486787f5513
smallhadroncollider/brok
DB.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Brok.Parser.DB ( db ) where import ClassyPrelude import Data.Attoparsec.Text import Brok.Parser.Links (url) import Brok.Types.URL (URL) line :: Parser (URL, Integer) line = (,) <$> (url <* char ' ') <*> (decimal <* endOfLine) entr...
null
https://raw.githubusercontent.com/smallhadroncollider/brok/bf62288d913af5fc694e683cc247f66426025400/src/Brok/Parser/DB.hs
haskell
# LANGUAGE OverloadedStrings # run parser
# LANGUAGE NoImplicitPrelude # module Brok.Parser.DB ( db ) where import ClassyPrelude import Data.Attoparsec.Text import Brok.Parser.Links (url) import Brok.Types.URL (URL) line :: Parser (URL, Integer) line = (,) <$> (url <* char ' ') <*> (decimal <* endOfLine) entries :: Parser [(URL, Integer)] entr...
1095e29efae987458179cb3a3c0d24bed39c5f35757f2767aa64802eefef0c7e
ghc/testsuite
T5858.hs
# LANGUAGE FlexibleInstances , GADTs # module T5858 where class InferOverloaded a where infer :: a -> String instance ( t1 ~ String , t2 ~ String ) = > InferOverloaded ( ) where instance (t1 ~ String) => InferOverloaded (t1,t1) where infer = show . fst foo = infer ([],[])
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/T5858.hs
haskell
# LANGUAGE FlexibleInstances , GADTs # module T5858 where class InferOverloaded a where infer :: a -> String instance ( t1 ~ String , t2 ~ String ) = > InferOverloaded ( ) where instance (t1 ~ String) => InferOverloaded (t1,t1) where infer = show . fst foo = infer ([],[])
f5bdba6ad82ae4f60f1694ea7f0ab952f41beac56d307fb4c945c0cf40cfe9d3
cruxlang/crux
Main.hs
# LANGUAGE OverloadedStrings , TemplateHaskell , LambdaCase # module Main ( main ) where import Crux.Module (newMemoryLoader, loadProgram, pathToModuleName, MainModuleMode(..)) import Data.FileEmbed (embedDir, embedFile) import Data.ByteString (ByteString) import Data.Text (Text) import Data.Text.Encoding (de...
null
https://raw.githubusercontent.com/cruxlang/crux/883f642d15fb85ce17d9c485ee91158d9e826a2f/cruxjs/src/Main.hs
haskell
TODO: we can return the result object instead of taking it as an argument
# LANGUAGE OverloadedStrings , TemplateHaskell , LambdaCase # module Main ( main ) where import Crux.Module (newMemoryLoader, loadProgram, pathToModuleName, MainModuleMode(..)) import Data.FileEmbed (embedDir, embedFile) import Data.ByteString (ByteString) import Data.Text (Text) import Data.Text.Encoding (de...
26e95b9dc2c210ebb1aa8d9ffdab0c5e16c814103270cec530dc00e5925d4957
haskell-repa/repa
Shape.hs
{-# LANGUAGE RankNTypes #-} -- | Class of types that can be used as array shapes and indices. module Data.Array.Repa.Shape ( Shape(..) , inShape , showShape ) where -- Shape ---------------------------------------------------------------------- -- | Class of types that can be used as array sha...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Shape.hs
haskell
# LANGUAGE RankNTypes # | Class of types that can be used as array shapes and indices. Shape ---------------------------------------------------------------------- | Class of types that can be used as array shapes and indices. | Get the number of dimensions in a shape. | The shape of an array with size one, with a...
module Data.Array.Repa.Shape ( Shape(..) , inShape , showShape ) where class Eq sh => Shape sh where rank :: sh -> Int | The shape of an array of size zero , with a particular dimensionality . zeroDim :: sh unitDim :: sh | Compute the intersection of two shap...
e607d34fa4d7c42e7eca67542ad76c3ad66323e93df84e9a697379575b5efa55
arcadia-unity/catcon
edn.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/arcadia-unity/catcon/6c69f424d3c14639ff11a3ea7d9da6aa81328f8a/Arcadia/Internal/clojure/edn.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns ^{:doc "edn reading." :author "Rich Hickey"} clojure.edn (:refer-clojure :exclude [read read-string])) (defn read "Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaults to the current v...
b4176bc9f8e1ca25e1c9cc0d663883262be2e24512bc0571bcf5ca40fdfd1bff
juxt/site
alpha.clj
Copyright © 2021 , JUXT LTD . (ns juxt.dave.alpha)
null
https://raw.githubusercontent.com/juxt/site/63765936c69623d83d693431e89cf584cbf500d4/src/juxt/dave/alpha.clj
clojure
Copyright © 2021 , JUXT LTD . (ns juxt.dave.alpha)
44d03e7377a3aeaa0323fae5239e050aa69265a795f4b1281682388a7c554b6c
Tritlo/dynamic-haskell-plugin
Example.hs
# LANGUAGE PatternSynonyms # {-# OPTIONS_GHC -fplugin=Data.Dynamic.Plugin -dcore-lint #-} --fplugin-opt=Data.Dynamic.Plugin:debug # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ConstraintKinds #-} # LANGUAGE AllowAmbiguousTypes # # LANGUAGE Vie...
null
https://raw.githubusercontent.com/Tritlo/dynamic-haskell-plugin/42aafc28dfdf765f9dfc9c048094e79f657c1d54/Example/Example.hs
haskell
# OPTIONS_GHC -fplugin=Data.Dynamic.Plugin -dcore-lint # fplugin-opt=Data.Dynamic.Plugin:debug # LANGUAGE RankNTypes # # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # Is A -> "was 2A" Fails, since we don't create an instance of Eq [C], since we cannot construct that when we don't kn...
# LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE ViewPatterns # module Main where import Data.Dynamic import Data.Dynamic.Plugin import Data.List data A = A | B deriving (Show, Eq, Ord) data C = C deriving (Show, Eq, Ord) class Foo a where foo :: a -> Int ...
908a2ee6b1e7d5386844832c466f2562552e9c6fdc53c21fe6be9ae4e786c5e3
GaloisInc/mistral
LambdaLift.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module Mistral.CodeGen.LambdaLift ( lambdaLift ) where import Mistral.Driver import Mistral.ModuleSystem.Export ( Export(..) ) import Mistral.TypeCheck.AST import Mistral.TypeCheck.Unify import Mistral.Utils.Names import Mistral.Utils.PP...
null
https://raw.githubusercontent.com/GaloisInc/mistral/3464ab332d73c608e64512e822fe2b8a619ec8f3/src/Mistral/CodeGen/LambdaLift.hs
haskell
| Perform lambda-lifting on a module. Lambda-lifting Monad -------------------------------------------------------- | Call-site rewriting. ^ Number of type parameters bound ^ The current largest closure ^ Names provided as paramters ^ Rewriting call sites | Emit a group of declarations to the top level. It's a...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module Mistral.CodeGen.LambdaLift ( lambdaLift ) where import Mistral.Driver import Mistral.ModuleSystem.Export ( Export(..) ) import Mistral.TypeCheck.AST import Mistral.TypeCheck.Unify import Mistral.Utils.Names import Mistral.Utils.PP...
7330aae56a6da87fb94ea56a64c682260bdebd3253df1a8d26dceb4e9335b03a
emqx/emqx
emqx_psk_app.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_psk/src/emqx_psk_app.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_psk_app). -behaviour(application). -export([ start/2, stop/1 ]). start(_...
4a006c27ecf6d4a7775fbb6cfe64af05c6a288c56ef94f34c5e9f4893d420dcc
liarokapisv/danac
Derive.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleInstances # module Danac.Util.Derive where import Data.Comp.Multi.Show import Data.Comp.Derive.Utils import Data.Comp.Multi.HFunctor import Language.Haskell.TH showConstr :: String -> [String] -> String showConstr con [] = con show...
null
https://raw.githubusercontent.com/liarokapisv/danac/662408790ea1bd18ef2462dce45b947e3b8efa74/src/Danac/Util/Derive.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # module Danac.Util.Derive where import Data.Comp.Multi.Show import Data.Comp.Derive.Utils import Data.Comp.Multi.HFunctor import Language.Haskell.TH showConstr :: String -> [String] -> String showConstr con [] = con showConstr con args = "(" ++ con ++ " "...
c66baa75e4db2ab8bf96d046a80e6c6bfa5924a98d88d3da5c4860aa59ff2d05
askonomm/clarktown
bold_test.clj
(ns clarktown.renderers.bold-test (:require [clojure.test :refer [deftest testing is]] [clarktown.renderers.bold :as bold])) (deftest bold-renderer-test (testing "Creating bold text with two surrounding asterisk characters" (is (= "<strong>This is bold.</strong>" (bold/render "**This is bol...
null
https://raw.githubusercontent.com/askonomm/clarktown/dcb21ec0104cdec3ca9976374868c5837ad9d0b9/test/clarktown/renderers/bold_test.clj
clojure
(ns clarktown.renderers.bold-test (:require [clojure.test :refer [deftest testing is]] [clarktown.renderers.bold :as bold])) (deftest bold-renderer-test (testing "Creating bold text with two surrounding asterisk characters" (is (= "<strong>This is bold.</strong>" (bold/render "**This is bol...
af142163d8fe44883eb2e68c0f1ddb1957d3305ba9cd694dd9abc9ef565ce0f8
pfdietz/ansi-test
nsubst.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Apr 19 21:49:58 2003 Contains : Tests of (defvar *nsubst-tree-1* '(10 (30 20 10) (20 10) (10 20 30 40))) (deftest nsubst.1 (check-nsubst "Z" 30 (copy-tree *nsubst-tree-1*)) (10 ("Z" 20 10) (20 10) (10 20 "Z" 40))) (deftest nsubst.2 (check-nsubst ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/cons/nsubst.lsp
lisp
-*- Mode: Lisp -*- Order of argument evaluation Error cases
Author : Created : Sat Apr 19 21:49:58 2003 Contains : Tests of (defvar *nsubst-tree-1* '(10 (30 20 10) (20 10) (10 20 30 40))) (deftest nsubst.1 (check-nsubst "Z" 30 (copy-tree *nsubst-tree-1*)) (10 ("Z" 20 10) (20 10) (10 20 "Z" 40))) (deftest nsubst.2 (check-nsubst "A" 0 (copy-tree *nsubst...
a292909cabda5ca94c5dc0dee8ebae12e6e7375d04a513b0e0ab290d9ffd31ff
haskell/cabal
Newtype.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DefaultSignatures #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # | Per , the ' Newtype ' typeclass represents the packing and -- unpacking of a newtype, and allows you to operate under that newtype with -- functions such as 'ala...
null
https://raw.githubusercontent.com/haskell/cabal/63841fb3380b902d12118fc272b5421a923cd647/Cabal-syntax/src/Distribution/Compat/Newtype.hs
haskell
# LANGUAGE CPP # # LANGUAGE DefaultSignatures # unpacking of a newtype, and allows you to operate under that newtype with functions such as 'ala'. Since Cabal-3.0 class arguments are in a different order than in @newtype@ package. Unfortunately one has to repeat inner type. @ newtype New...
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # | Per , the ' Newtype ' typeclass represents the packing and module Distribution.Compat.Newtype ( Newtype (..), ala, alaf, pack', unpack', ) where import Data.Functor.Identity (Identity (..)) import Data.Monoid (Sum (....
cf7c8f1001905dd9dab19ac053f3607e8f0249a58d9e0e9a92245575e9cc446d
johnwhitington/ocamli
ocamlilib.ml
open Tinyocaml open Ocamliutil open Parsetree let debug = ref false let otherlibs = ref "" let showstdlibinit = ref false (* Beginning of what was ocamilib.ml *) let load_stdlib = ref true let stdlib_dir = let tname = Filename.temp_file "ocaml" "ocamli" in ignore (Sys.command ("ocamlc -config >" ^ tname)); ...
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/ocamlilib.ml
ocaml
Beginning of what was ocamilib.ml Read the definitions from a loaded module, so they can be put into the environment. FIXME: Fill in the rest pervasives Prefix the type name and type constructors pervasives FIXME env? <-- module initialisation let stdlib_modules () = [("Example", "./stdlib", "example....
open Tinyocaml open Ocamliutil open Parsetree let debug = ref false let otherlibs = ref "" let showstdlibinit = ref false let load_stdlib = ref true let stdlib_dir = let tname = Filename.temp_file "ocaml" "ocamli" in ignore (Sys.command ("ocamlc -config >" ^ tname)); let tmp = open_in tname in let li...
695c47ae414d4cfb46bf70836fa04e45fca2adae408a968fecd3089d6c17ccad
angavrilov/ecl-compute
util-arrays.lisp
;;; -*- mode:lisp; indent-tabs-mode: nil; -*- (in-package fast-compute) (ffi:clines "#include <stdio.h>") (defun dump-array (file arr) (ffi:c-inline (file (if (typep arr 'multivalue) (multivalue-data-f arr :read) arr)) (:cstring :object) :void "{ FILE *f; ...
null
https://raw.githubusercontent.com/angavrilov/ecl-compute/466f0d287f8b6ab0e2b5c2ac03693ad4f4df6a3f/util-arrays.lisp
lisp
-*- mode:lisp; indent-tabs-mode: nil; -*- i < arr->array.rank; i++) { }")) i < rank; i++) { }"))
(in-package fast-compute) (ffi:clines "#include <stdio.h>") (defun dump-array (file arr) (ffi:c-inline (file (if (typep arr 'multivalue) (multivalue-data-f arr :read) arr)) (:cstring :object) :void if (!ARRAYP(arr) && !VECTORP(arr)) if ((VECTORP(arr)...
18f449dd0a05b612e3b67b534cf41737bf003ee1c195cffd311cd87c6dd0a96e
tarides/dune-release
cli.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/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/bin/cli.ml
ocaml
Converters and arguments Terms use cmdliner evaluation error Error handling
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
cb4d1584bb74b476adb80cf1cabbe66af74bb7f8c8f1847f856213d3a89c254b
ninenines/cowboy
cookie_app.erl
%% Feel free to use, reuse and abuse the code in this file. @private -module(cookie_app). -behaviour(application). %% API. -export([start/2]). -export([stop/1]). %% API. start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {'_', toppage_h, []} ]} ]), {ok, _} = cowboy:start_clear(http, [{por...
null
https://raw.githubusercontent.com/ninenines/cowboy/8795233c57f1f472781a22ffbf186ce38cc5b049/examples/cookie/src/cookie_app.erl
erlang
Feel free to use, reuse and abuse the code in this file. API. API.
@private -module(cookie_app). -behaviour(application). -export([start/2]). -export([stop/1]). start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {'_', toppage_h, []} ]} ]), {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ env => #{dispatch => Dispatch} }), cookie_sup:start_link()...
f971b9be1ba5edb4a7c2e29d4f0b91b517fb262f6174c3324ecba45564ef4f32
exercism/babashka
project.clj
(defproject annalyns-infiltration "0.1.0-SNAPSHOT" :description "annalyns-infiltration exercise." :url "-infiltration" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/concept/annalyns-infiltration/project.clj
clojure
(defproject annalyns-infiltration "0.1.0-SNAPSHOT" :description "annalyns-infiltration exercise." :url "-infiltration" :dependencies [[org.clojure/clojure "1.10.0"]])
71e9e4a5e3ef8365a231cac913a2c09f3f210c4e87845f4f1812b86e13f232b8
aycanirican/hweblib
Rfc3986.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # -- | Module : Network . Parser.3986 Copyright : Aycan iRiCAN 2010 - 2020 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- Uniform Resource Identifier (URI): Generic Syntax -- <>...
null
https://raw.githubusercontent.com/aycanirican/hweblib/e0031eee26cb83f131ca2ccadf58456856b4c641/src/Network/Parser/Rfc3986.hs
haskell
# LANGUAGE OverloadedStrings # | License : BSD3 Maintainer : Stability : experimental Portability : unknown Uniform Resource Identifier (URI): Generic Syntax <> TODO: implement ipv6 and ipvfuture # INLINABLE pctEncoded # >> parse pathRootless "foo/bar/baz " Done " " "foo/bar/baz" TODO: IP-lite...
# LANGUAGE TupleSections # Module : Network . Parser.3986 Copyright : Aycan iRiCAN 2010 - 2020 module Network.Parser.Rfc3986 where import Control.Applicative (Alternative (many, (<|>))) import Control.Monad (join) import Data.Attoparsec.ByteString ( Parser, inClass, many1, match, ...
6335b82663aaf39ccc61f3048336a31976e93b38952f92f17141257a71e8d3b2
saltysystems/overworld
ow_protocol.erl
%%========================================================================= %% Overworld Protocol %% %% This module handles: %% - Registering/deregistering new opcodes for message types %% - Routing messages to appropriate modules to deserialization %% %%===============================================================...
null
https://raw.githubusercontent.com/saltysystems/overworld/6589d2109789ad520cff1096229131e85a450fb5/src/ow_protocol.erl
erlang
========================================================================= Overworld Protocol This module handles: - Registering/deregistering new opcodes for message types - Routing messages to appropriate modules to deserialization ========================================================================= publ...
-module(ow_protocol). -behaviour(gen_server). -define(SERVER, ?MODULE). -export([ start/1, stop/0, registered_apps/0, registered_ops/0, register/1, register_app/1, op_info/1, decode/2, response/1, response/2 ]). -export([ init/1, handle_call/3, handle_cast/2, ...
cfdaa1fe12532ad2726afb64a011e716e3176dd078982efdee34e2c79cc16622
imitator-model-checker/imitator
AlgoPRP.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : PRP algorithm...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/AlgoPRP.ml
ocaml
********************************************************** ********************************************************** Modules ********************************************************** ********************************************************** ********************************************************** ***************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : PRP algorithm...
efd7f20f262730b74c7f5058478151be39b228b6047e1b2f6c3aafc35f5d0f40
gearnode/erl-imf
imf_address_field.erl
Copyright ( c ) 2022 < > . Copyright ( c ) 2021 Exograd SAS . %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED...
null
https://raw.githubusercontent.com/gearnode/erl-imf/0a75ff29b7409bb4a60de2ac2e072bc8bac1ce0f/src/imf_address_field.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2022 < > . Copyright ( c ) 2021 Exograd SAS . THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(imf_address_field)....
c7d59f8ace893d17a7cadb1b896d87efd902270a0d9f8eac4e11cfd455dbe452
vimus/libmpd-haskell
StringConn.hs
# LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses # # OPTIONS_GHC -Wwarn # -- | Module : StringConn Copyright : ( c ) 2005 - 2009 License : MIT ( see LICENSE ) -- Stability : alpha -- A testing scaffold for MPD commands module StringConn where import Control.Applicativ...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/tests/StringConn.hs
haskell
| Stability : alpha | An expected request. expected, then actual | Run an action against a set of expected requests and responses, and an expected result. The result is Nothing if everything matched what was expected. If anything differed the result of the computation is returned along with pairs of expected...
# LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses # # OPTIONS_GHC -Wwarn # Module : StringConn Copyright : ( c ) 2005 - 2009 License : MIT ( see LICENSE ) A testing scaffold for MPD commands module StringConn where import Control.Applicative import Prelude hidi...
11e468e1188f58bea1e541c3af1b9ef79e81e2fcdf569762bf55c085eaae5f55
Risto-Stevcev/bastet
Function.ml
open Interface let flip = (fun f b a -> f a b : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c) and const = (fun a _ -> a : 'a -> 'b -> 'a) module type FUNCTOR_F = functor (T : TYPE) -> FUNCTOR with type 'a t = T.t -> 'a module type APPLY_F = functor (T : TYPE) -> APPLY with type 'a t = T.t -> 'a module type INVARIANT_F = fun...
null
https://raw.githubusercontent.com/Risto-Stevcev/bastet/030db286f57d2e316897f0600d40b34777eabba6/bastet/src/Function.ml
ocaml
open Interface let flip = (fun f b a -> f a b : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c) and const = (fun a _ -> a : 'a -> 'b -> 'a) module type FUNCTOR_F = functor (T : TYPE) -> FUNCTOR with type 'a t = T.t -> 'a module type APPLY_F = functor (T : TYPE) -> APPLY with type 'a t = T.t -> 'a module type INVARIANT_F = fun...
0ec1a2fa77a185bc416d9ad3844123e0b85f8c136b738c3837e3902049f2f4a7
mbj/stratosphere
ResponsePlan.hs
module Stratosphere.SSMIncidents.ResponsePlan ( module Exports, ResponsePlan(..), mkResponsePlan ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SSMIncidents.ResponsePlan.ActionProperty as Exports im...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ssmincidents/gen/Stratosphere/SSMIncidents/ResponsePlan.hs
haskell
# SOURCE # # SOURCE # # SOURCE # # SOURCE #
module Stratosphere.SSMIncidents.ResponsePlan ( module Exports, ResponsePlan(..), mkResponsePlan ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value ...
66cedb5024b8107ada5920788d071a71522e29774b043532e36ced954a29db2c
icfpcontest2021/icfpcontest2021.github.io
GenerateHole.hs
module Main where import qualified BrainWall.Main.GenerateHole main :: IO () main = BrainWall.Main.GenerateHole.main
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/src/GenerateHole.hs
haskell
module Main where import qualified BrainWall.Main.GenerateHole main :: IO () main = BrainWall.Main.GenerateHole.main
6202a6f4d2991804ba5abdd987336e47594e8cf3e7e8d59cecd79316e7d8be96
ucsd-progsys/liquidhaskell
LNot.hs
{-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} module LNot where import Prelude hiding (any, all, filter, nub, foldr, flip) {-@ lemma_all_ex_not :: f:(a->Bool) -> ls:[a] -> { (bnot (any f ls)) == all (bnot . f) ls} @-} lemma_all_ex_not :: (a->Bool) -> [a] -> () lemma_all_ex_not f [] = () lemma_all_ex...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/b8780ee8d73d123adb39675ef87a2883f8aa1ecd/tests/pos/LNot.hs
haskell
@ LIQUID "--reflection" @ @ LIQUID "--ple" @ @ lemma_all_ex_not :: f:(a->Bool) -> ls:[a] -> { (bnot (any f ls)) == all (bnot . f) ls} @ @ reflect any @ @ reflect all @ @ reflect bnot @
module LNot where import Prelude hiding (any, all, filter, nub, foldr, flip) lemma_all_ex_not :: (a->Bool) -> [a] -> () lemma_all_ex_not f [] = () lemma_all_ex_not f (x:xs) | f x = lemma_all_ex_not f xs lemma_all_ex_not f (x:xs) | (bnot . f) x = lemma_all_ex_not f xs any :: (a -> Bool) -> [a] -> Bool any...
1ee7cfda53114a64e77917f0c26931890e09e22e36576f4c1010cf342d678d92
caisah/sicp-exercises-and-examples
sequence_operation.scm
(map square (list 1 2 3 4 5)) ;; (1 4 9 16 25) (define (filter predicate sequence) (cond ((null? sequence) '()) ((predicate (car sequence)) (cons (car sequence) (filter predicate (cdr sequence)))) (else (filter predicate (cdr sequence))))) (filter odd? (list 1 2 3 4 5)) ;; (1...
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/2.2.3-sequences_as_conventional_interfaces/sequence_operation.scm
scheme
(1 4 9 16 25) (1 3 5) (2 3 4 5 6 7) (1 2 3 4 5)
(map square (list 1 2 3 4 5)) (define (filter predicate sequence) (cond ((null? sequence) '()) ((predicate (car sequence)) (cons (car sequence) (filter predicate (cdr sequence)))) (else (filter predicate (cdr sequence))))) (filter odd? (list 1 2 3 4 5)) (define (accumulate o...
ea146f8bd0be8b438d41f6253e8b4189adcb3aa5dbd7a4e83769c4c6f12147ca
yuanqing/code-problems
test.ml
open OUnit2 open String_rotation let () = run_test_tt_main ("string_rotation x y" >::: [ "identical; empty" >:: (fun _ -> assert_equal true (string_rotation "" "") ); "identical; single character" >:: (fun _ -> assert_equal true (string_rotation "a" "a") ); "identical; multiple characters" >:: (fu...
null
https://raw.githubusercontent.com/yuanqing/code-problems/30eb34ad616146306cddc50594a47deff111f341/src/string_rotation/test.ml
ocaml
open OUnit2 open String_rotation let () = run_test_tt_main ("string_rotation x y" >::: [ "identical; empty" >:: (fun _ -> assert_equal true (string_rotation "" "") ); "identical; single character" >:: (fun _ -> assert_equal true (string_rotation "a" "a") ); "identical; multiple characters" >:: (fu...
62161e97b1aa50088e917a998c5e537316ec31718264aef1102b6cdf08acc65a
mput/sicp-solutions
2_58.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_58.rkt") (define tests (test-suite "Test for exercise 2_58" (test-case "Sum deriv tests" (check-equal? (deriv '(x + 1) 'x) 1) (check-equal? (deriv '(x + (1 ...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_58.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_58.rkt") (define tests (test-suite "Test for exercise 2_58" (test-case "Sum deriv tests" (check-equal? (deriv '(x + 1) 'x) 1) (check-equal? (deriv '(x + (1 ...
e837082085e9bb616aa43addcb92ba009e254eddf672c1dd1f4d5c11d895ebdd
ghc/testsuite
tc154.hs
-- The type sig mentions a type variable that doesn't appear in the type . This one killed GHC 5.03 , in a trivial way . module ShouldCompile where type T a = () -> () f :: T a f () = ()
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/tc154.hs
haskell
The type sig mentions a type variable that doesn't appear in
the type . This one killed GHC 5.03 , in a trivial way . module ShouldCompile where type T a = () -> () f :: T a f () = ()
9e3c0dce551161522e780b51f1db85986cbb12cbe5948a427de4b2bb421c7c9e
paurkedal/viz
ocaml_prereq.mli
Copyright ( C ) 2011 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Standard Library < / > . * * The Viz Standard Library ( VSL ) is free software : you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public License * as published by the Free Softw...
null
https://raw.githubusercontent.com/paurkedal/viz/ab1f1071fafdc51eae69185ec55d7a6e7bb94ea9/vsl/compat/ocaml_prereq.mli
ocaml
* A type tag for top-level "world" actions. * The top-level monad. * Don't use this. If it has any effect outside internal code, then there is a bug in some API. * Don't use this. It is reserved for compiler-generated code. This type should be (((∀'a. 'a io -> 'a io) -> 'b io) -> 'b io) but we * don't rely ...
Copyright ( C ) 2011 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Standard Library < / > . * * The Viz Standard Library ( VSL ) is free software : you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public License * as published by the Free Softw...
7ba22b1003e9bf3d5e22eae7f4bdfd0dbd44b6725b0a66355a88a68839aff403
district0x/cljs-ipfs-http-client
deps.cljs
{:npm-deps {"axios" "0.27.2" "buffer" "6.0.3"}}
null
https://raw.githubusercontent.com/district0x/cljs-ipfs-http-client/e4473f5d205ea2b36cb2d0c54d48008998c71f55/src/deps.cljs
clojure
{:npm-deps {"axios" "0.27.2" "buffer" "6.0.3"}}
3069fcfd8a94c17a622270dd0825dfc8839a63615593271a844c31ce2fcd4663
inhabitedtype/ocaml-aws
modifyDBInstance.ml
open Types open Aws type input = ModifyDBInstanceMessage.t type output = ModifyDBInstanceResult.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/modifyDBInstance.ml
ocaml
open Types open Aws type input = ModifyDBInstanceMessage.t type output = ModifyDBInstanceResult.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_...
af691c98903243281e41a81cb816783e4f0be4bc8aa1c0a87c1b8b9588f1f5bc
danr/hipspec
Ordinals.hs
module Ordinals where import Prelude () data Nat = Z | S Nat Z + y = y (S x) + y = S (x + y) Z * _ = Z (S x) * y = y + (x * y) data Ord = Zero | Suc Ord | Lim (Nat -> Ord) (++) :: Ord -> Ord -> Ord Zero ++ y = y Suc x ++ y = Suc (x ++ y) Lim f ++ y = Lim (\n -> f n ++ y) (**) :: Ord -> Ord -> Ord Zero ** y = Zer...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/tfp1/tests/Ordinals.hs
haskell
module Ordinals where import Prelude () data Nat = Z | S Nat Z + y = y (S x) + y = S (x + y) Z * _ = Z (S x) * y = y + (x * y) data Ord = Zero | Suc Ord | Lim (Nat -> Ord) (++) :: Ord -> Ord -> Ord Zero ++ y = y Suc x ++ y = Suc (x ++ y) Lim f ++ y = Lim (\n -> f n ++ y) (**) :: Ord -> Ord -> Ord Zero ** y = Zer...
6d51188ee547d965f39ae2555b10a3537b03cf0658f260e43778216592457ec5
SKS-Keyserver/sks-keyserver
sksdump.ml
(***********************************************************************) sksdump.ml - takes content of SKS keyserver and creates key dump (* from that *) (* *) Copyright ( C ) 2002 , 20...
null
https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/sksdump.ml
ocaml
********************************************************************* from that redistribute it and/or modify it under ...
sksdump.ml - takes content of SKS keyserver and creates key dump Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published b...
a4427a30ac3612eca334cf36bf636f3697c6f901b93eecadfa682b0846ceaf81
SNePS/SNePS2
act-utils.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : act - utils.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this fi...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/ds/act-utils.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : act - utils.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS...
7f8228b8c7d7a44c01df56bfbb7e8b45e4f8edc4437322600b079cfa3394cfed
ocaml/oasis
BaseContext.mli
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/base/BaseContext.mli
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
ed1c342561f6afd8a93b9ae01f9ac5c79c6606623dbe97070a4a05e49259f9f8
mzp/coq-ruby
alpha.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tools/coqdoc/alpha.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 _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : alpha.mli 5920 20...
60b8e40fae4cd447042b0159460b8bedf1e6531b0f1ceb190a3f59fd996b7f47
polysemy-research/polysemy
Fundep.hs
# LANGUAGE CPP # {-# LANGUAGE DerivingStrategies #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # ------------------------------------------------------------------------------ The MIT License ( MIT ) -- Co...
null
https://raw.githubusercontent.com/polysemy-research/polysemy/f9b19c022b0a5c18e473b0127172b6a3c4f94be2/polysemy-plugin/src/Polysemy/Plugin/Fundep.hs
haskell
# LANGUAGE DerivingStrategies # ---------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to rights to use, copy, modify, merge, publish, dis...
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # The MIT License ( MIT ) Copyright ( c ) 2017 , 2019 deal in the Software without restriction , including without limitation the sell copies of t...
c0b49f4ec04f36fc957039aad6444b64492a9443a25582ae0aa317b8ca9b47fc
jeapostrophe/raart
info.rkt
#lang info (define collection "raart") (define deps '("gui-lib" "htdp-lib" "pict-lib" "plot-gui-lib" "plot-lib" "lux" "unix-signals" "reprovide-lang" "ansi" "struct-define" ...
null
https://raw.githubusercontent.com/jeapostrophe/raart/09ec9f46979f052f95625530b649ec346b965e49/info.rkt
racket
#lang info (define collection "raart") (define deps '("gui-lib" "htdp-lib" "pict-lib" "plot-gui-lib" "plot-lib" "lux" "unix-signals" "reprovide-lang" "ansi" "struct-define" ...
f1602ff2e85e7dbee01bbe8e468c94920139595f8154bc2897a2c049074d4cd5
UU-ComputerScience/uhc
Category.hs
# LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Control.Category Copyright : ( c ) 2007 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability : experimental -- Portability : portable ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/base/Control/Category.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Category License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable | A class for categories. id and (.) must form a monoid. | t...
# LANGUAGE CPP # Copyright : ( c ) 2007 module Control.Category where import Prelude hiding (id,(.)) import qualified Prelude infixr 9 . infixr 1 >>>, <<< class Category cat where id :: cat a a (.) :: cat b c -> cat a b -> cat a c instance Category (->) where id = Prelude.id #if...
80065c32d0b981066f75b4d4f91a20a44e28c77ed4afdb7aea8763119496e807
nchataing/caml-migrate-floatarray
refactor.ml
(******************************************************************) Copyright ( C ) 2020 - 2021 . All rights reserved . (* *) (* This software may be modified and distributed under the terms *) of the BSD license . See the LICENSE file for details...
null
https://raw.githubusercontent.com/nchataing/caml-migrate-floatarray/9e7bb55ba7a801f20cdd9ce7701f0bb0200c1459/src/refactor.ml
ocaml
**************************************************************** This software may be modified and distributed under the terms **************************************************************** ??? Case where we inspect polymorphic uses of 'a array as...
Copyright ( C ) 2020 - 2021 . All rights reserved . of the BSD license . See the LICENSE file for details . let get_or_set_used = ref false let ghost_get_set = ref None TODO put log in a separate file module Log = struct let log : Buffer.t = Buffer.create 0 let add_file_entries file entries =...