_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 |
|---|---|---|---|---|---|---|---|---|
d723ae0d242a762bbb78ff758e839d7591c134f261ee395510b0142acc641b33 | slipstream/SlipStreamServer | external_object.cljc | (ns com.sixsq.slipstream.ssclj.resources.spec.external-object
(:require
[clojure.spec.alpha :as s]
[com.sixsq.slipstream.ssclj.resources.spec.common :as cimi-common]
[com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core]))
(s/def ::objectType ::cimi-core/identifier)
(s/def ::state #{"new" "ready"... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/spec/external_object.cljc | clojure | (ns com.sixsq.slipstream.ssclj.resources.spec.external-object
(:require
[clojure.spec.alpha :as s]
[com.sixsq.slipstream.ssclj.resources.spec.common :as cimi-common]
[com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core]))
(s/def ::objectType ::cimi-core/identifier)
(s/def ::state #{"new" "ready"... | |
912c7a5b20305f113c6c0b748d9681603557c6a3757f4cbf16b83184d2cb21b0 | fetburner/Coq2SML | refl_tauto.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/rtauto/refl_tauto.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
raises Not_found if no proof is fou... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
type atom_env=
{mutable n... |
3a285bafa821666b432ea6ab26c90db4c5b40700ad0ff9ed91f14d504f9f362e | omkamra/jnr | project.clj | (defproject com.github.omkamra/jnr "0.1.0"
:description "A Clojure wrapper for JNR-FFI"
:url ""
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-2.0/"}
:dependencies [[org.clojure/clojure "1.10.3"]
[com.github.jnr/jnr-ffi "2.2.10"]
[... | null | https://raw.githubusercontent.com/omkamra/jnr/27c40d94827e609deab0500989e01dc7a9cd99fc/project.clj | clojure | (defproject com.github.omkamra/jnr "0.1.0"
:description "A Clojure wrapper for JNR-FFI"
:url ""
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-2.0/"}
:dependencies [[org.clojure/clojure "1.10.3"]
[com.github.jnr/jnr-ffi "2.2.10"]
[... | |
eaf3823720ffdde897cb72f2f0a881faea7d523278102ca7152603fb9bb3d4c4 | wdebeaum/step | defsys.lisp | ;;;;
defsys.lisp for SimpleKB
;;;;
, , 20 Jun 2000
Time - stamp : < Thu Feb 22 11:40:15 EST 2007 ferguson >
;;;;
(unless (find-package :trips)
(load (make-pathname :directory '(:relative :up "config" "lisp")
:name "trips")))
(unless (find-package :dfc)
(load #!TRIPS"src;defcomponent;loader"))
(... | null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/SimpleKB/defsys.lisp | lisp | defsys.lisp for SimpleKB
, , 20 Jun 2000
Time - stamp : < Thu Feb 22 11:40:15 EST 2007 ferguson >
(unless (find-package :trips)
(load (make-pathname :directory '(:relative :up "config" "lisp")
:name "trips")))
(unless (find-package :dfc)
(load #!TRIPS"src;defcomponent;loader"))
(dfc:defcomponen... | |
0b467bf047e02119c7662b118731f0512de3b9128a7013d9654d12b604264ce3 | hgoes/vvt | Dataflow.hs | # LANGUAGE ViewPatterns #
module Realization.Lisp.Simplify.Dataflow where
import Args
import Realization.Lisp
import Realization.Lisp.Value
import Language.SMTLib2
import Language.SMTLib2.Internals.Expression
import Language.SMTLib2.Internals.Type.Struct (Tree(..))
import qualified Language.SMTLib2.Internals.Type.Lis... | null | https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/Realization/Lisp/Simplify/Dataflow.hs | haskell | # LANGUAGE ViewPatterns #
module Realization.Lisp.Simplify.Dataflow where
import Args
import Realization.Lisp
import Realization.Lisp.Value
import Language.SMTLib2
import Language.SMTLib2.Internals.Expression
import Language.SMTLib2.Internals.Type.Struct (Tree(..))
import qualified Language.SMTLib2.Internals.Type.Lis... | |
81af572af52435448210bddf45653d399640c62e6773bb1a1d6887f2a8fe10ff | fossas/fossa-cli | ScanSummary.hs | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
module App.Fossa.Analyze.ScanSummary (
renderScanSummary,
) where
import App.Fossa.Analyze.Project (
ProjectResult (projectResultPath),
projectResultType,
)
import App.Fossa.Analyze.Types (
AnalysisScanResult (AnalysisScanResult),
DiscoveredProjectI... | null | https://raw.githubusercontent.com/fossas/fossa-cli/8b7c53100b86aa7995242be1aa9055cae8e48ea1/src/App/Fossa/Analyze/ScanSummary.hs | haskell | | Renders Analysis Scan Summary with `ServInfo` severity.
It renders summary of all scanned projects (including skipped projects due to filters),
and it's status - failed, successful, successful with warning count,
if project count is greater than 0, otherwise it does nothing.
Scan Summary
- - - - - - -
Using... | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
module App.Fossa.Analyze.ScanSummary (
renderScanSummary,
) where
import App.Fossa.Analyze.Project (
ProjectResult (projectResultPath),
projectResultType,
)
import App.Fossa.Analyze.Types (
AnalysisScanResult (AnalysisScanResult),
DiscoveredProjectI... |
2b4161f730a68fcf6f2b7754af8bb102bf4f24af843fb86f569289b3950bf964 | binsec/haunted | high_level_predicate.ml | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/static/ai/high_level_predicate.ml | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
e7d5823964a8bb7dad3c856e74fb8179ecae10d787c7b76c35569dab4db56724 | SimulaVR/godot-haskell | Lib.hs | module Lib (exports) where
import Godot
import Project.Support
import Project.Requirements
import Game.World
exports :: GdnativeHandle -> IO ()
exports = registerAll' @Nodes @'[Bullet,Enemy,Player]
| null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/examples/top-down-ten-minutes/src/Lib.hs | haskell | module Lib (exports) where
import Godot
import Project.Support
import Project.Requirements
import Game.World
exports :: GdnativeHandle -> IO ()
exports = registerAll' @Nodes @'[Bullet,Enemy,Player]
| |
690c7658e3a5e6a8b997ff11d021db153fecb85ab5937c73777ae1263c9d6a64 | SahilKang/cl-avro | server.lisp | Copyright 2021 - 2022 Google LLC
;;;
;;; This file is part of cl-avro.
;;;
;;; cl-avro is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;;; (at your option) any later ver... | null | https://raw.githubusercontent.com/SahilKang/cl-avro/7d624253e98afb987a01729bd72c99bae02f0d7d/src/ipc/server.lisp | lisp |
This file is part of cl-avro.
cl-avro is free software: you can redistribute it and/or modify
(at your option) any later version.
cl-avro is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t... | Copyright 2021 - 2022 Google LLC
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(in-package #:cl-user)
(defpackage #:cl-avro.internal.ipc.server
(:use #:... |
db36f79e134eb22c1273e512d7dded8ab11769dcc9615220b8edcdbedcd3ba47 | 8c6794b6/haskell-sc-scratch | Thunder.hs | ------------------------------------------------------------------------------
-- |
-- Module : $Header$
CopyRight : ( c ) 8c6794b6
-- License : BSD3
Maintainer :
-- Stability : unstable
-- Portability : non-portable
--
-- From:
--
-- <>
--
-- Try:
--
-- > > withSC3 reset
-- > > runThunder
-- > > a... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/pssd/src/Pssd/Earth/Thunder.hs | haskell | ----------------------------------------------------------------------------
|
Module : $Header$
License : BSD3
Stability : unstable
Portability : non-portable
From:
<>
Try:
> > withSC3 reset
> > runThunder
> > audition $ wind
| Run thunder.
| Bolt sound.
| Load synthdefs defined in this m... | CopyRight : ( c ) 8c6794b6
Maintainer :
module Pssd.Earth.Thunder where
import Control.Concurrent (forkIO, threadDelay)
import Data.List (zipWith4)
import System.Random (newStdGen, randomRs)
import Sound.OpenSoundControl
import Sound.SC3
import Sound.SC3.ID
import Sound.SC3.Lepton
import Pssd.Util
runThun... |
04f4d45cd584c2575ad4057974887295b62228ce011c0c4dcf0239dc93c62594 | ku-fpg/hermit | Dictionary.hs | module HERMIT.Dictionary
( -- * The HERMIT Dictionary
externals
, module HERMIT.Dictionary.AlphaConversion
, module HERMIT.Dictionary.Common
, module HERMIT.Dictionary.Composite
, module HERMIT.Dictionary.Debug
, module HERMIT.Dictionary.FixPoint
, module HERMIT.Dictionary.Fold
, m... | null | https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/src/HERMIT/Dictionary.hs | haskell | * The HERMIT Dictionary
Since you cannot re-export qualified modules, we import everything *twice*.
TODO: deal with this module
------------------------------------------------------------------------
------------------------------------------------------------------------
-------------------------------------------... | module HERMIT.Dictionary
externals
, module HERMIT.Dictionary.AlphaConversion
, module HERMIT.Dictionary.Common
, module HERMIT.Dictionary.Composite
, module HERMIT.Dictionary.Debug
, module HERMIT.Dictionary.FixPoint
, module HERMIT.Dictionary.Fold
, module HERMIT.Dictionary.Function
... |
b101e8cbf8bab58a061a7c897c78d2622ed57a6be0f779b00cc22d879c1067e2 | rowangithub/DOrder | rand.mli | (**************************************************************************)
(* *)
: a generic graph library for OCaml
Copyright ( C ) 2004 - 2007
, and
(* ... | null | https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/src/rand.mli | ocaml | ************************************************************************
This software is free software; you can redistribute it and/or
described in file LICENSE.... | : a generic graph library for OCaml
Copyright ( C ) 2004 - 2007
, and
modify it under the terms of the GNU Library General Public
License version 2 , with the special exception on linking
$ I d :... |
53ff2cb3fc3889800ea3f8052fffc16397b45492500ae9882102d47d476f9a39 | OCamlPro/typerex-lint | lintParsing_Parse.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/plugins/ocp-lint-plugin-parsing/lintParsing_Parse.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
module Asttypes = LintParsing_Asttypes
module Ast_helper = LintParsing_Ast_helper
module Parsetree = Lint... |
75b85ccc928a097ce75cd6ddcba1523da10d3631e4fa252c0ebf48907734f203 | nedap/formatting-stack | project.clj | (defproject monorepo-support "unreleased"
:dependencies [[org.clojure/clojure "1.10.1"]
the version does n't matter a lot - it will be overriden via checkouts :
[formatting-stack "4.3.0"]])
| null | https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/e2e/monorepo-support/project.clj | clojure | (defproject monorepo-support "unreleased"
:dependencies [[org.clojure/clojure "1.10.1"]
the version does n't matter a lot - it will be overriden via checkouts :
[formatting-stack "4.3.0"]])
| |
b94575f007bdfa96a1e2e1a2a9814906175f45ad2f3ac75e23f632886ae4acd4 | glv2/cl-monero-tools | block.lisp | ;;;; This file is part of monero-tools
Copyright 2016 - 2018
Distributed under the GNU GPL v3 or later .
;;;; See the file LICENSE for terms of use and distribution.
(in-package :monero-tools)
(define-constant +mainnet-genesis-hash+
#.(hex-string->bytes "418015bb9ae982a1975da7d79277c2705727a56894ba0fb246... | null | https://raw.githubusercontent.com/glv2/cl-monero-tools/ab972ac3a7c5489cf23e3bdaa5d390d5cff1732b/monero-tools/blockchain/block.lisp | lisp | This file is part of monero-tools
See the file LICENSE for terms of use and distribution. | Copyright 2016 - 2018
Distributed under the GNU GPL v3 or later .
(in-package :monero-tools)
(define-constant +mainnet-genesis-hash+
#.(hex-string->bytes "418015bb9ae982a1975da7d79277c2705727a56894ba0fb246adaabb1f4632e3")
:test #'equalp)
(define-constant +testnet-genesis-hash+
#.(hex-string->bytes ... |
48e7added0df529425ecbe5b79e29ffdf8b3a3c6bb5e2c82d78ce9f7ab150c34 | haskellfoundation/error-message-index | Main.hs | module Example (answer, answer) where
answer :: Int
answer = 42
| null | https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-47854/example1/before/Main.hs | haskell | module Example (answer, answer) where
answer :: Int
answer = 42
| |
14ae681f80fa8ac45f519903341ba95d2d2b90ad6137f8cc30d350e884e4c9fe | exoscale/clojure-kubernetes-client | v1_node_list.clj | (ns clojure-kubernetes-client.specs.v1-node-list
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-node :refer :all]
[clojure-kubernetes-client.specs.v1-list-meta :refer :all]
)
(:import (java.io File)))
(declare ... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_node_list.clj | clojure | (ns clojure-kubernetes-client.specs.v1-node-list
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-node :refer :all]
[clojure-kubernetes-client.specs.v1-list-meta :refer :all]
)
(:import (java.io File)))
(declare ... | |
bc0b7d135f281e6bab2595947427ff929d10197dc035d391d6b3d853d0370add | PacktPublishing/HaskellCookbook | Main.hs | module Main where
data Days = Sunday
| Monday
| Tuesday
| Wednesday
| Thursday
| Friday
| Saturday
deriving Show
data Variant a b c d e = Variant0
| Variant1 a
| Variant2 b
| Var... | null | https://raw.githubusercontent.com/PacktPublishing/HaskellCookbook/27e146b6d91c008a7b1d06eda4ea63fe8a8cdb04/Ch_3-Defining_Data/sum-type/src/Main.hs | haskell | module Main where
data Days = Sunday
| Monday
| Tuesday
| Wednesday
| Thursday
| Friday
| Saturday
deriving Show
data Variant a b c d e = Variant0
| Variant1 a
| Variant2 b
| Var... | |
ef497afa420debb2c7949ce9e84e35be2d53fb4be431eacf075147a9a95c06a7 | TrustInSoft/tis-kernel | cabs2cil_FallsThroughCanBreak.ml | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_internals/typing/cabs2cil_FallsThroughCanBreak.ml | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
Copyright ( C ) 2001 - 2003
< > ... |
c31160434e219095754801d9e30b141d59d33fb2e9c909f79626b1ec6d6ee7c4 | kadena-io/chainweb-node | Client.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
{-# LANGUAGE RankNTypes #-}
-- |
Module : Chainweb . Rosetta . RestAPI.Client
Copyright : Copyright © 2018 - 2020 Kadena LLC .
License : MIT
Maintainer : < >
-- S... | null | https://raw.githubusercontent.com/kadena-io/chainweb-node/494b934e2db6ed7e42917e38220e8ca9bbc5f58f/src/Chainweb/Rosetta/RestAPI/Client.hs | haskell | # LANGUAGE RankNTypes #
|
Stability: experimental
integration.
* AccounT Endpoints
* Block Endpoints
* Construction Endpoints
* Network Endpoints
-------------------------------------------------------------------------- --
Accounts Endpoints
^ Contains a network id, account id, and a partial block identifi... | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
Module : Chainweb . Rosetta . RestAPI.Client
Copyright : Copyright © 2018 - 2020 Kadena LLC .
License : MIT
Maintainer : < >
This module defines the client API ... |
e2deccbc0fe186f5ca6c244e57e69e8f2ac397e050da1ed2dfc340f5103fa747 | nanocaml/nanocaml | readme_example.ml | module%language Scheme0 = struct
type expr = (* Define all forms of expressions *)
[ `Var of string
(* x *)
| `Let of string * expr * expr
(* (let (x y) e) *)
| `Lambda of string * expr
(* (lambda (x) e) *)
| `Apply of expr * expr
(* (f x) *)
| `Begin of expr list
(* (begin e .... | null | https://raw.githubusercontent.com/nanocaml/nanocaml/c856268dc8986bd9fb739c8cd6b972052997a30c/examples/readme_example.ml | ocaml | Define all forms of expressions
x
(let (x y) e)
(lambda (x) e)
(f x)
(begin e ...)
Must perfectly match the
existing production rule
Nothing to add
Declare the type of the pass
Start writing the passes over each non-terminal. In this
case, we only have [expr]
[@entry] means that the pass
function... | module%language Scheme0 = struct
[ `Var of string
| `Let of string * expr * expr
| `Lambda of string * expr
| `Apply of expr * expr
| `Begin of expr list
]
end
module%language SchemeNoLet = struct
Means that SchemeNoLet extends Scheme0
type expr =
]
end
remove_let =
Matches t... |
a9b32dc77ef1b608e80acbb3ee5d11b839238bd94edff518d3b871a476fb35d0 | amnh/ocamion | tfunc.ml | (** {1 Tfunc}
A suite of functions for testing numerical routines. *)
open Numerical
* { 2 Module definitions for Test Functions }
* Module definition for functions of one dimension .
module type OneTestFunction =
sig
val f : float -> float
val name : string
val range : (float * float) option
... | null | https://raw.githubusercontent.com/amnh/ocamion/699c2471b7fdac12f061cf24b588f9eef5bf5cb8/test/tfunc.ml | ocaml | * {1 Tfunc}
A suite of functions for testing numerical routines.
* Module definition for functions of multiple dimension. The number of
dimensions can be constrained with the [dim] value in the module.
* Uniform distribution for stochastic functions.
* TODO *
* Stochastic version of the rosenbrock function, ... |
open Numerical
* { 2 Module definitions for Test Functions }
* Module definition for functions of one dimension .
module type OneTestFunction =
sig
val f : float -> float
val name : string
val range : (float * float) option
val is_min: ?tol:float -> float -> bool
end
module type MultiTestFu... |
b9010d1138826e312b96e0813ea306f0f0986d34943499376dc6d61b8f208ff0 | solarbit/pool | base58.erl | Copyright 2016 < >
See MIT LICENSE
-module(base58).
-export([encode/1, encode/2, decode/1, decode/2, charset/1]).
-define(BITCOIN_BASE58_CHARSET, <<"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz">>).
-define(FLICKR_BASE58_CHARSET, <<"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ">>).... | null | https://raw.githubusercontent.com/solarbit/pool/5576f1b71a469dfa2fcb6b5766667402eacc3860/lib/base/src/base58.erl | erlang | Copyright 2016 < >
See MIT LICENSE
-module(base58).
-export([encode/1, encode/2, decode/1, decode/2, charset/1]).
-define(BITCOIN_BASE58_CHARSET, <<"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz">>).
-define(FLICKR_BASE58_CHARSET, <<"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ">>).... | |
38deb750714ca7eef9cd5fc275ce0c37211bccd86a1845500ebc3da31b70029e | wireapp/wire-server | Cargohold.hs | -- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License... | null | https://raw.githubusercontent.com/wireapp/wire-server/09cfa0e602321ef753f771a7171ba6c39b5ac976/libs/wire-api/src/Wire/API/Routes/Public/Cargohold.hs | haskell | This file is part of the Wire Server implementation.
This program is free software: you can redistribute it and/or modify it under
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTI... | Copyright ( C ) 2022 Wire Swiss GmbH < >
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option ) any
You should have received a copy of the GNU Affero General Public License along
module Wire.API.Routes.Public.Ca... |
2e43d8996b4d93577298b9a72007d0725f83612769c66b6706268df089dde0fb | hemmi/coq2scala | inv.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/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/tactics/inv.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************** | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Ter... |
c9b4b9ab1c1b7bfc3610b3c9b1f07d356090117b00a17e9dc682ef2ece2c63f4 | codinuum/cca | f_lib.ml |
Copyright 2013 - 2018 RIKEN
Copyright 2018 - 2020 Chiba Institude of Technology
Copyright 2020 Codinuum Software Lab < >
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 Li... | null | https://raw.githubusercontent.com/codinuum/cca/c22bbe5b4d8824695a5844b23309a8652d371e70/src/ast/analyzing/langs/fortran/f_lib.ml | ocaml |
Copyright 2013 - 2018 RIKEN
Copyright 2018 - 2020 Chiba Institude of Technology
Copyright 2020 Codinuum Software Lab < >
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 Li... | |
baac2e29543519ad2020d985033f68c23f448206197ce130660c6c02b260b1bd | ocaml-multicore/tezos | vote_repr.mli | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
(* ... | null | https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/vote_repr.mli | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETH... |
7fc4c604cb86cca54e5333832d6786a330a92d1254aa1ed6f1aa77c2e46544a8 | RyanGlScott/eliminators | TypeNats.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE Trustworthy #
|
Module : Data . Eliminator . TypeNats
Copyright : ( C ) 2017
License : BSD - style ( see the file LICENSE )
Maintainer :
Stability : Experimental
Portability : GHC
A crude imitation of an eliminator ... | null | https://raw.githubusercontent.com/RyanGlScott/eliminators/a9603a48518e225a69b21d5e94f4538616a814f6/src/Data/Eliminator/TypeNats.hs | haskell | (crudely) pretend that it is using this eliminator. | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE Trustworthy #
|
Module : Data . Eliminator . TypeNats
Copyright : ( C ) 2017
License : BSD - style ( see the file LICENSE )
Maintainer :
Stability : Experimental
Portability : GHC
A crude imitation of an eliminator ... |
f37fec4103a5f26a0c4c58a44643ab7e3c35c2213feb2e80211925a3e959e02c | callum-oakley/advent-of-code | map.clj | (ns aoc.map)
(defn +m [a b]
(merge-with + a b))
(defn -m [a b]
(merge-with - a b))
| null | https://raw.githubusercontent.com/callum-oakley/advent-of-code/e23d117c6444eda83cc1d352987917bbcbfdc605/src/aoc/map.clj | clojure | (ns aoc.map)
(defn +m [a b]
(merge-with + a b))
(defn -m [a b]
(merge-with - a b))
| |
e003f600154a05cbfa6b80ff6771e21015471919aa1722d653e4f4dbb0ba3c79 | d-plaindoux/transept | pp.ml | open Json
(* cf. *)
let rec pp ppf = function
| String value -> Format.fprintf ppf "\"%s\"" value
| Bool true -> Format.fprintf ppf "true"
| Bool false -> Format.fprintf ppf "false"
| Number value -> Format.fprintf ppf "%f" value
| Null -> Format.fprintf ppf "null"
| Array x -> Format.fprintf ppf "[@[<ho... | null | https://raw.githubusercontent.com/d-plaindoux/transept/8567803721f6c3f5d876131b15cb301cb5b084a4/lib/transept_json/pp.ml | ocaml | cf. | open Json
let rec pp ppf = function
| String value -> Format.fprintf ppf "\"%s\"" value
| Bool true -> Format.fprintf ppf "true"
| Bool false -> Format.fprintf ppf "false"
| Number value -> Format.fprintf ppf "%f" value
| Null -> Format.fprintf ppf "null"
| Array x -> Format.fprintf ppf "[@[<hov 1>%a@]]" ... |
9347129883d1004e4866de934319a259b395d12eca3f1dcb770dfd7a41eecc65 | disteph/cdsat | open.ml | (****************************************************)
(* This module is to be opened before anything else *)
as it redefines 's standard stuff
(****************************************************)
module type Pervasives = sig
val (=) : int -> int -> bool
val (<>) : int -> int -> bool
val (<) : in... | null | https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/lib/open.ml | ocaml | **************************************************
This module is to be opened before anything else
************************************************** | as it redefines 's standard stuff
module type Pervasives = sig
val (=) : int -> int -> bool
val (<>) : int -> int -> bool
val (<) : int -> int -> bool
val (>) : int -> int -> bool
val (<=) : int -> int -> bool
val (>=) : int -> int -> bool
val compare : int -> int -> int
val max: int -> i... |
c762c8de3283253ed2686091c64f1371951223830b601bab6dc4a0cb48b7e9ed | janestreet/base | int_math.mli | (** This module implements derived integer operations (e.g., modulo, rounding to
multiples) based on other basic operations. *)
open! Import
module type Make_arg = sig
type t
include Floatable.S with type t := t
include Stringable.S with type t := t
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
va... | null | https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/int_math.mli | ocaml | * This module implements derived integer operations (e.g., modulo, rounding to
multiples) based on other basic operations.
_ See the Jane Street Style Guide for an explanation of [Private] submodules:
/#private-submodules |
open! Import
module type Make_arg = sig
type t
include Floatable.S with type t := t
include Stringable.S with type t := t
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> t -> t
val ( / ) : t -> t -> t
val ( ~- ) : t -> t
include Comparisons.Infix with type t := t
val abs : t -... |
04e9ecf0586f4266d187298e75590a655b9e528259fb24ae8a3b9621df514dc0 | NorfairKing/mergeful | ClientDB.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE QuasiQuotes #
# LANGUAGE RecordWildCards #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHask... | null | https://raw.githubusercontent.com/NorfairKing/mergeful/48d5ba362342d10fdbc9a98148f1506848f13870/mergeful-persistent/test/TestUtils/ClientDB.hs | haskell | # LANGUAGE GADTs #
All the fields of 'Thing' go here.
Nothing means it's not been synced
Nothing means it's not been synced
True means this item has been tombstoned, and it must have been synced before.
True means it's been changed after it's been synced, it must have been synced before.
dummy
dummy | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE QuasiQuotes #
# LANGUAGE RecordWildCards #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFa... |
450d0312c6689bd831c6d0a62c45ead236c0bf7598e5a538c3d107d6dc23f7a4 | biocom-uib/vpf-tools | Group.hs | # language AllowAmbiguousTypes #
{-# language Strict #-}
{-# language UndecidableInstances #-}
module VPF.Frames.Dplyr.Group where
import qualified Control.Foldl as Foldl
import qualified Control.Lens as L
import Control.Lens.Type
import Data.Bifunctor (second)
import Data.Foldable (toList)
import Data.Function (on)
... | null | https://raw.githubusercontent.com/biocom-uib/vpf-tools/dd88a543f28eb339cf0dcb89f34479c84b3a8056/src/VPF/Frames/Dplyr/Group.hs | haskell | # language Strict #
# language UndecidableInstances #
# inline arrange #
# inlinable splitSortOn #
# inlinable splitOn #
NOTE: not a lawful traversal because it sorts the frame
# inline grouped #
NOTE: not a lawful traversal because it sorts the frame
# inline fixed #
NOTE: not a lawful traversal because it sorts th... | # language AllowAmbiguousTypes #
module VPF.Frames.Dplyr.Group where
import qualified Control.Foldl as Foldl
import qualified Control.Lens as L
import Control.Lens.Type
import Data.Bifunctor (second)
import Data.Foldable (toList)
import Data.Function (on)
import Data.Kind (Constraint)
import Data.Map.Strict (Map)
imp... |
2ec745c0e11886904474c7dacd1abe7ca40b37554481ac266da61ae8bef657a1 | astrada/ocaml-extjs | ext_dom_CompositeElement.ml | class type t =
object('self)
inherit Ext_dom_CompositeElementLite.t
end
class type configs =
object('self)
inherit Ext_dom_CompositeElementLite.configs
end
class type events =
object
inherit Ext_dom_CompositeElementLite.events
end
class type statics =
object
inherit Ext_dom_CompositeElement... | null | https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_dom_CompositeElement.ml | ocaml | class type t =
object('self)
inherit Ext_dom_CompositeElementLite.t
end
class type configs =
object('self)
inherit Ext_dom_CompositeElementLite.configs
end
class type events =
object
inherit Ext_dom_CompositeElementLite.events
end
class type statics =
object
inherit Ext_dom_CompositeElement... | |
ff76cf8280504fc659b14b351d50cf1963848cf71d8c30e09b437b36fd9f7fe7 | rescript-association/reanalyze | CL.ml | Compiler libs : use the host compiler libs except on 4.06 use vendored ones .
This allows to target 4.06 on any compiler by overriding OCAML_VERSION .
This allows to target 4.06 on any compiler by overriding OCAML_VERSION. *)
#if OCAML_VERSION <= (4, 06, 1)
include Compilerlibs406
#else
module Asttypes = Ast... | null | https://raw.githubusercontent.com/rescript-association/reanalyze/19c74f53b7b591ccfc74cb30cc1fd1a40b0938b0/src/CL.ml | ocaml | Compiler libs : use the host compiler libs except on 4.06 use vendored ones .
This allows to target 4.06 on any compiler by overriding OCAML_VERSION .
This allows to target 4.06 on any compiler by overriding OCAML_VERSION. *)
#if OCAML_VERSION <= (4, 06, 1)
include Compilerlibs406
#else
module Asttypes = Ast... | |
7f2eca48d8700618036ff35bb3c85c856134b5bb4ab8833f7625f1f7ab2ed192 | erlangonrails/devdb | mod_muc_log.erl | %%%----------------------------------------------------------------------
%%% File : mod_muc_log.erl
%%% Author :
%%% Purpose : MUC room logging
Created : 12 Mar 2006 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
m... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ejabberd-2.1.4/src/mod_muc/mod_muc_log.erl | erlang | ----------------------------------------------------------------------
File : mod_muc_log.erl
Author :
Purpose : MUC room logging
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
... | Created : 12 Mar 2006 by < >
ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Tem... |
938b948a39b2ca2f08ea5ff7d370b733a2727bade8400513cd38052a5e67226e | 2600hz/kazoo | knm_bandwidth.erl | %%%-----------------------------------------------------------------------------
( C ) 2011 - 2020 , 2600Hz
@doc Handle client requests for phone_number documents
@author
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with thi... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_numbers/src/carriers/knm_bandwidth.erl | erlang | -----------------------------------------------------------------------------
@end
-----------------------------------------------------------------------------
API
------------------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------... | ( C ) 2011 - 2020 , 2600Hz
@doc Handle client requests for phone_number documents
@author
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(knm_bandwidth).
-behaviour(knm_gen_ca... |
0ec357d20779c33b210e163f84d329191f5df3b13a6c6705f37e1583cf0f466f | tsoding/kgbotka | Sqlite.hs | module KGBotka.Sqlite where
import Control.Concurrent
import Database.SQLite.Simple
TODO(#208 ): make withLockedTransaction to always handle Exceptions from Sqlite library
-- Give the user some endpoints to log the errors
withLockedTransaction :: MVar Connection -> (Connection -> IO a) -> IO a
withLockedTransacti... | null | https://raw.githubusercontent.com/tsoding/kgbotka/67278a93611b0abe4e07df7967559884263147aa/src/KGBotka/Sqlite.hs | haskell | Give the user some endpoints to log the errors | module KGBotka.Sqlite where
import Control.Concurrent
import Database.SQLite.Simple
TODO(#208 ): make withLockedTransaction to always handle Exceptions from Sqlite library
withLockedTransaction :: MVar Connection -> (Connection -> IO a) -> IO a
withLockedTransaction mvarDbConn action =
withMVar mvarDbConn $ \dbCo... |
8f3853f3279708858ba57af556274b01c7708b93766bc416c1da287ccffca3e0 | weavejester/substream | core.clj | (ns substream.core
(:import substream.FnInputStream))
(defprotocol ToOctet
(to-octet [x]))
(extend-protocol ToOctet
Integer
(to-octet [x] x)
Long
(to-octet [x] (Integer/valueOf x))
Byte
(to-octet [x] (Integer/valueOf (bit-and x 0xff)))
nil
(to-octet [_] (Integer/valueOf -1)))
(defn input-stream
... | null | https://raw.githubusercontent.com/weavejester/substream/4dcc203ea68d2f163a3ab9e34f38928b8bff699b/src/clojure/substream/core.clj | clojure | (ns substream.core
(:import substream.FnInputStream))
(defprotocol ToOctet
(to-octet [x]))
(extend-protocol ToOctet
Integer
(to-octet [x] x)
Long
(to-octet [x] (Integer/valueOf x))
Byte
(to-octet [x] (Integer/valueOf (bit-and x 0xff)))
nil
(to-octet [_] (Integer/valueOf -1)))
(defn input-stream
... | |
c6bfcf4438086f047a46555c225d41824f20a7bb7e8657e1603770006b02d824 | erdos/stencil | model.clj | (ns stencil.model
"Handling the meta-model of OOXML documents.
See:
"
(:import [java.io File])
(:require [clojure.data.xml :as xml]
[clojure.java.io :as io :refer [file]]
[stencil.eval :as eval]
[stencil.merger :as merger]
[stencil.model.numbering :as numberin... | null | https://raw.githubusercontent.com/erdos/stencil/4e29ca34d093734deba234c2f1f2d0d8b615565a/src/stencil/model.clj | clojure | all insertable fragments. map of id to frag def.
set of already inserted fragment ids.
set of extra relations to be added after evaluating document
Headers and footers are not used in fragments.
create a rels file for the current xml
add relations if any
relation file will be rendered instead of copied
returns ... | (ns stencil.model
"Handling the meta-model of OOXML documents.
See:
"
(:import [java.io File])
(:require [clojure.data.xml :as xml]
[clojure.java.io :as io :refer [file]]
[stencil.eval :as eval]
[stencil.merger :as merger]
[stencil.model.numbering :as numberin... |
438870dd168bdc90e30266f27a98f555495b612e56c69b4c09ad19766e147709 | caisah/sicp-exercises-and-examples | factorial.scm | (define (factorial n)
(if (= n 1)
1
(* n (factorial (- n 1)))))
(factorial 3)
(define (fact-iter product counter max-count)
(if (> counter max-count)
product
(fact-iter (* counter product)
(+ counter 1)
max-count)))
(define (factorial n)
(fact-iter 1 1 n... | null | https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/1.2.1-linear_recursion_and_iteration/factorial.scm | scheme | (define (factorial n)
(if (= n 1)
1
(* n (factorial (- n 1)))))
(factorial 3)
(define (fact-iter product counter max-count)
(if (> counter max-count)
product
(fact-iter (* counter product)
(+ counter 1)
max-count)))
(define (factorial n)
(fact-iter 1 1 n... | |
9f8289a96daab8dab00054de295d6f1436745898c3e57c4c29197420f55058f7 | plum-umd/fundamentals | hangman.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 hangman) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #... | null | https://raw.githubusercontent.com/plum-umd/fundamentals/eb01ac528d42855be53649991a17d19c025a97ad/0/www/code/hangman.rkt | racket | about the language level of this file in a form that our tools can easily process.
Main
String -> Hangman
Play a game of hangman trying to guess s
Data definitions
Interpretation: word is the (partially) guessed word
misses is a list of incorrect guesses
A Word is one of:
- '()
- (cons Letter Word)
Interpr... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname hangman) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/image)
(require 2htdp/universe)
(define (main s... |
6f471adf741120f712249ecd0434942ffbdfb7e78951f34efc2bf95b7e013d42 | agentultra/rosby | Spec.hs | main :: IO ()
main = putStrLn "Not implemented"
| null | https://raw.githubusercontent.com/agentultra/rosby/8e81794e44f38d6e8676ef022c6ec15611571fd7/rosby-server/test/Spec.hs | haskell | main :: IO ()
main = putStrLn "Not implemented"
| |
d078bc8aafcc6a6dfa1c1c4003c6014e57638bb5492301a6544d43c8acb5d63c | paurkedal/episql | insert_builder.mli | Copyright ( C ) 2021 - -2022 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/paurkedal/episql/79a6b6e65a0917292fdc02bcb5d7f972078dffa2/caqti-persist/lib/insert_builder.mli | ocaml | Copyright ( C ) 2021 - -2022 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | |
d49df2292548c2c8b85737d13aeb672fca5cadfc967c683ebe4999ac6b2da5ad | dfinity-side-projects/winter | Main.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module Main where
import Control.Applicative ((<|>))
import Control.Monad (void, forM_)
import Control.Monad.Except (runExceptT)
import Data.Bina... | null | https://raw.githubusercontent.com/dfinity-side-projects/winter/2cc31576fe029d85c37d21fc9ea4902c5c64b5a9/app/Main.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings # | # LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
module Main where
import Control.Applicative ((<|>))
import Control.Monad (void, forM_)
import Control.Monad.Except (runExceptT)
import Data.Binary.Get (runGet)
import Data.Default.Class (Defa... |
fba119a241a6231b431c10006b3d0353d23392a0d4479fa492bd6cf85e1b7e52 | cloudkj/layer | main.scm | (declare (uses functions options util convolutional full pooling))
(use getopt-long srfi-13)
(define prog-name "layer")
(define prog-desc "Neural network inference")
(define commands
(sort (list (list "full" "Fully connected layer" full-layer-options full)
(list "convolutional" "... | null | https://raw.githubusercontent.com/cloudkj/layer/eb9d36207a33e770591bb8c0fd639ec4f0f63466/src/main.scm | scheme | TODO: figure out how to print original error message
No given command
General usage
No matching command
Command usage | (declare (uses functions options util convolutional full pooling))
(use getopt-long srfi-13)
(define prog-name "layer")
(define prog-desc "Neural network inference")
(define commands
(sort (list (list "full" "Fully connected layer" full-layer-options full)
(list "convolutional" "... |
326cf4c3fc734741c564adbaa1a79ce330e6a3c6ef920b93f68e014935fb52ff | BU-CS320/Fall-2018 | Lang3Parser.hs | module Lang3Parser where
import Data.Char
for State in tests
import Lang3 hiding (test1, test2, test3)
import MyParserLib
-- It is recommended you use the following helper functions
idParser : :
-- idParser = eatS varParser `mapParser` \ str -> Id str
--
--
parseAstInt : :
-- parse... | null | https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/assignments/week7/hw/src/Lang3Parser.hs | haskell | It is recommended you use the following helper functions
idParser = eatS varParser `mapParser` \ str -> Id str
parseAstInt = eatS intParser
`mapParser` (\ i -> AstInt i)
pluses = (rep ( eatS ((literal "+") +++ parseIntOrParensOrEq)
seperators = undefined
parseParens = eatS... | module Lang3Parser where
import Data.Char
for State in tests
import Lang3 hiding (test1, test2, test3)
import MyParserLib
idParser : :
parseAstInt : :
assignParser : :
assignParser = undefined
pluses : : [ Ast ]
( _ , ast ) - > ast ) )
seperators : ... |
c9ca6c8ce4ae027073d39a22e1bbca875c286f6ebf1ec49383a1fa05c81f160c | mirleft/tlstools | config.ml | #!/usr/bin/env ocaml
#directory "pkg"
#use "topkg-ext.ml"
module Config = struct
include Config_default
let vars =
[ "NAME", "tlstools";
"VERSION", Git.describe ~chop_v:true "master";
"MAINTAINER", "Hannes Mehnert <hannes\\@mehnert.org>" ]
end
| null | https://raw.githubusercontent.com/mirleft/tlstools/273d0544ab01af8145a37280ac5a0904fb6829c3/pkg/config.ml | ocaml | #!/usr/bin/env ocaml
#directory "pkg"
#use "topkg-ext.ml"
module Config = struct
include Config_default
let vars =
[ "NAME", "tlstools";
"VERSION", Git.describe ~chop_v:true "master";
"MAINTAINER", "Hannes Mehnert <hannes\\@mehnert.org>" ]
end
| |
5cbad3c54d4ff5e0db63a2dab02c39131cf6a94e4335710132a38b79dd287928 | kazzmir/master-of-magic | uTF8.mli |
* UTF-8 - UTF-8 encoded Unicode string
* Copyright 2002 , 2003 ( C ) .
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the Licen... | null | https://raw.githubusercontent.com/kazzmir/master-of-magic/830bfd1c549a5ac7370fa6a72bb06be5d3435fa0/lib/extlib-1.5/uTF8.mli | ocaml | * UTF-8 encoded Unicode strings.
The Module for UTF-8 encoded Unicode strings.
* UTF-8 encoded Unicode strings. the type is normal string.
* [get s n] returns [n]-th Unicode character of [s].
The call requires O(n)-time.
* [init len f]
returns a new string which contains [len] Unicode characters.
... |
* UTF-8 - UTF-8 encoded Unicode string
* Copyright 2002 , 2003 ( C ) .
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the Licen... |
ba90a1fba2273912aea5b2ed081ef6a14a20cd503cd5b2495628c50fac13fb2d | shop-planner/shop3 | pfile3.lisp | (in-package :shop-user)
(defproblem pfile3 DEPOT
(
;;;
;;; facts
;;;
(DEPOT DEPOT0)
(DEPOT DEPOT1)
(DEPOT DEPOT2)
(DEPOT DEPOT3)
(DEPOT DEPOT4)
(DEPOT DEPOT5)
(DEPOT DEPOT6)
(DEPOT DEPOT7)
(DEPOT DEPOT8)
(DEPOT DEPOT9)
(DISTRIBUTOR DISTRIBUTOR0)
(DISTRIBUTO... | null | https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/depots/pfile3.lisp | lisp |
facts
initial states
goals
| (in-package :shop-user)
(defproblem pfile3 DEPOT
(
(DEPOT DEPOT0)
(DEPOT DEPOT1)
(DEPOT DEPOT2)
(DEPOT DEPOT3)
(DEPOT DEPOT4)
(DEPOT DEPOT5)
(DEPOT DEPOT6)
(DEPOT DEPOT7)
(DEPOT DEPOT8)
(DEPOT DEPOT9)
(DISTRIBUTOR DISTRIBUTOR0)
(DISTRIBUTOR DISTRIBUTOR1)
(DISTRIBUTO... |
7e10951142b567a26b4c95536f7c6f3c3729a6f19937df4c11b88ccd6669f1b5 | vnarek/jude | actor.ml | type 'a set = ('a, unit) Hashtbl.t
type process_flags = [ `Trap_exit ]
type t = {
self_pid : Pid.t;
mailbox : (string * bytes) Mailbox.t;
cont : Matcher.t ref;
links : Pid.t set;
monitors : Pid.t set;
flags : process_flags set;
}
type beh = t -> Matcher.t
let create pid =
let mailbox = Mailbox.create ... | null | https://raw.githubusercontent.com/vnarek/jude/b1e9387d0242cd83b3b72695bce267c970de1857/lib/actor.ml | ocaml | type 'a set = ('a, unit) Hashtbl.t
type process_flags = [ `Trap_exit ]
type t = {
self_pid : Pid.t;
mailbox : (string * bytes) Mailbox.t;
cont : Matcher.t ref;
links : Pid.t set;
monitors : Pid.t set;
flags : process_flags set;
}
type beh = t -> Matcher.t
let create pid =
let mailbox = Mailbox.create ... | |
6351e9de17a1c0097926c151b0e7cc2ae478854239e39158e8b4f2434c535684 | leftaroundabout/linearmap-family | TensorQuot.hs | -- |
Module : Math . . Category . TensorQuot
Copyright : ( c ) 2016
-- License : GPL v3
--
-- Maintainer : (@) jsag $ hvl.no
-- Stability : experimental
-- Portability : portable
--
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE TypeFamilies ... | null | https://raw.githubusercontent.com/leftaroundabout/linearmap-family/7794c83f2bcd0fe40ed003d1cdfa32fa078ec881/Math/LinearMap/Category/TensorQuot.hs | haskell | |
License : GPL v3
Maintainer : (@) jsag $ hvl.no
Stability : experimental
Portability : portable
# LANGUAGE CPP #
# LANGUAGE TypeOperators #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE ConstraintKinds #
| Generalised multiplication o... | Module : Math . . Category . TensorQuot
Copyright : ( c ) 2016
# LANGUAGE TypeFamilies #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# LANGUAGE UnicodeSyntax #
# LANGUAGE TupleSections #
module Math.LinearMap.C... |
4f0eef11b3e56994951c2553f0d3ffeefa6f0aa4c4a5406afa9c8d989c76152e | jakubfijalkowski/hsass | CompilationSpec.hs | module Text.Sass.CompilationSpec where
import System.IO
import System.IO.Temp
import Test.Hspec
import Text.Sass
import Data.ByteString.Char8 (pack)
import Data.Either (isLeft, isRight)
import Data.Maybe (isJust)
import ... | null | https://raw.githubusercontent.com/jakubfijalkowski/hsass/afbce06f13edcc1ec16eb8f93cc730bc735dfdaf/test/Text/Sass/CompilationSpec.hs | haskell | module Text.Sass.CompilationSpec where
import System.IO
import System.IO.Temp
import Test.Hspec
import Text.Sass
import Data.ByteString.Char8 (pack)
import Data.Either (isLeft, isRight)
import Data.Maybe (isJust)
import ... | |
3779b78c3bc9630469cf2cdf6e8fabe1203e71260f410c22620c5f2453bfee54 | fractalide/fractalide | model.rkt | #lang racket
(provide (contract-out
[struct model ((wallets set?)
(id number?))]
[struct wallet ((id number?)
(name string?)
(balance number?)
(addresses list?))]
[model-add-wallet (-> m... | null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/edges/cardano-wallet/model.rkt | racket | #lang racket
(provide (contract-out
[struct model ((wallets set?)
(id number?))]
[struct wallet ((id number?)
(name string?)
(balance number?)
(addresses list?))]
[model-add-wallet (-> m... | |
d9db34505468007bf3cd4e7295b61461a0be62a270be7b09f860d1bab27d8911 | FranklinChen/hugs98-plus-Sep2006 | Extras.hs | -- #hide
module Text.XHtml.Extras where
import Text.XHtml.Internals
import Text.XHtml.Strict.Elements
import Text.XHtml.Strict.Attributes
--
-- * Converting strings to HTML
--
-- | Convert a 'String' to 'Html', converting
-- characters that need to be escaped to HTML entities.
stringToHtml :: String -> Html
strin... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/xhtml/Text/XHtml/Extras.hs | haskell | #hide
* Converting strings to HTML
| Convert a 'String' to 'Html', converting
characters that need to be escaped to HTML entities.
| This converts a string, but keeps spaces as non-line-breakable.
| This converts a string, but keeps spaces as non-line-breakable,
and adds line breaks between each of the str... |
module Text.XHtml.Extras where
import Text.XHtml.Internals
import Text.XHtml.Strict.Elements
import Text.XHtml.Strict.Attributes
stringToHtml :: String -> Html
stringToHtml = primHtml . stringToHtmlString
lineToHtml :: String -> Html
lineToHtml = primHtml . concatMap htmlizeChar2 . stringToHtmlString
where
... |
9836e168a7bf5dd8288f6ad0abba295a097181cd9523474284e6f445dbe6d403 | puppetlabs/puppetserver | jruby_metrics_core.clj | (ns puppetlabs.services.jruby.jruby-metrics-core
(:require [schema.core :as schema]
[puppetlabs.metrics :as metrics]
[puppetlabs.services.jruby-pool-manager.jruby-schemas :as jruby-schemas]
[clojure.string :as str]
[clojure.tools.logging :as log]
[puppetlabs... | null | https://raw.githubusercontent.com/puppetlabs/puppetserver/2d6ca01b4b72716ca543b606f752261b969e401b/src/clj/puppetlabs/services/jruby/jruby_metrics_core.clj | clojure |
using
rather than keywords since these need to be serialized over the wire
Private
Regexes contain characters that create escaping
problems in downstream services that use regexes
to search for or select metrics by name.
static method that returns a filter which can be passed
directly to .getTime... | (ns puppetlabs.services.jruby.jruby-metrics-core
(:require [schema.core :as schema]
[puppetlabs.metrics :as metrics]
[puppetlabs.services.jruby-pool-manager.jruby-schemas :as jruby-schemas]
[clojure.string :as str]
[clojure.tools.logging :as log]
[puppetlabs... |
184629fbe1fad4de2129a1d359465b4281657c5e55f7820b543cc930c7197487 | spurious/sagittarius-scheme-mirror | patch.scm | -*- mode : scheme ; coding : utf-8 ; -*-
;;;
;;; text/json/patch.scm - JSON Patch
;;;
Copyright ( c ) 2018 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistribu... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/text/json/patch.scm | scheme | coding : utf-8 ; -*-
text/json/patch.scm - JSON Patch
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of cond... | Copyright ( c ) 2018 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
#!nounbound
(library (text json patch)
(export ... |
ffd28782b26cad3490711ccdf83fd14fa59186c223443c923aa02b0e28d281b0 | skanev/playground | 16.scm | EOPL exercise 3.16
;
; Extend the language so that a let declaration can declare an arbitrary
; number of variables, using the grammar
;
Expression : : = let { Identifier = Expression } * in Expression
;
; As in Scheme's let, each of the right-hand sides is evaluated in the current
; environment, and the body is ... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/16.scm | scheme |
Extend the language so that a let declaration can declare an arbitrary
number of variables, using the grammar
As in Scheme's let, each of the right-hand sides is evaluated in the current
environment, and the body is evaluated with each new variable bound to the
value of its associated right-hand side. For examp... | EOPL exercise 3.16
Expression : : = let { Identifier = Expression } * in Expression
let x = 30
in let x = -(x , 1 )
y = -(x , 2 )
should evaluate to 1 .
(load-relative "cases/let/env.scm")
(define-datatype expression expression?
(const-exp
(num number?))
(minus-exp
(expr expres... |
b41868f09f817fe68af271ce43f696b1af007c14e98b3f8c6d3b943c14abc09b | boomerang-lang/boomerang | int.ml | (*********************************************************)
The Harmony Project
(* *)
(* int.ml - structures of ints *)
(*****************************************************... | null | https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/hbase/int.ml | ocaml | *******************************************************
int.ml - structures of ints
******************************************************* | The Harmony Project
$ Id$
type t = int
module type SET = sig include Set.S end
module M =
Mapplus.Make(
struct
type t = int
let compare x y = if x < y then -1 else if x = y then 0 else 1
let to_string = string_of_int
en... |
17566363132b8da8a1413f072c54d2ec226a607a9f13413142a32869c995b836 | aesiniath/unbeliever | WarpSnippet.hs | # LANGUAGE ImportQualifiedPost #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE QuasiQuotes #
# OPTIONS_GHC -fno - warn - missing - signatures #
# OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - top - binds #
import Control.Exception (br... | null | https://raw.githubusercontent.com/aesiniath/unbeliever/a315a894c580b72ca32b3157518c6ba4653d9381/tests/WarpSnippet.hs | haskell | # LANGUAGE OverloadedStrings #
type Application =
type Application =
Request -> | # LANGUAGE ImportQualifiedPost #
# LANGUAGE QuasiQuotes #
# OPTIONS_GHC -fno - warn - missing - signatures #
# OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - top - binds #
import Control.Exception (bracket_)
import Core.Program
import ... |
10a4265cb7b9d8bf7d23a5cc68374e3be37ca61194214318810928926233fb6f | TyOverby/mono | header.ml | { { { Copyright ( c ) 2012 Anil Madhavapeddy < >
* Copyright ( c ) 2011 - 2012 < >
* Copyright ( c ) 2010
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission ... | null | https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/mirage-ocaml-cohttp/cohttp/src/header.ml | ocaml | If we see a "Content-Range" header, than we should limit the
number of bytes we attempt to read
some sanity checking before we act on these values
Grab "foo/bar" from " foo/bar ; charset=UTF-8"
Only add a header if one doesnt already exist, e.g. from the app
TODO: this is a protocol violation | { { { Copyright ( c ) 2012 Anil Madhavapeddy < >
* Copyright ( c ) 2011 - 2012 < >
* Copyright ( c ) 2010
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission ... |
134a0413a8adc1c6a5391210c4a40a6b41143413b7bb7d502589833817282532 | gonzojive/parenscript | package-system-tests.lisp | (in-package #:parenscript-test)
(in-suite package-system-tests)
(test-ps-js operator-packages1
(#:new)
"new();")
(defpackage #:ps-test.my-library
(:use #:parenscript))
(setf (ps-package-prefix '#:ps-test.my-library) "my_library_")
(test-ps-js lib-function1
(defun ps-test.my-library::library-function (x y)
... | null | https://raw.githubusercontent.com/gonzojive/parenscript/5d4772369e28c33cd3522ad46d3de357f7cacf70/t/package-system-tests.lisp | lisp |
")
")
")
")
")
") | (in-package #:parenscript-test)
(in-suite package-system-tests)
(test-ps-js operator-packages1
(#:new)
"new();")
(defpackage #:ps-test.my-library
(:use #:parenscript))
(setf (ps-package-prefix '#:ps-test.my-library) "my_library_")
(test-ps-js lib-function1
(defun ps-test.my-library::library-function (x y)
... |
e5c69a417955431c123604990be292a9a8729111f686b644950e17cdc28c2089 | fpottier/stores | StoreTransactionalRef.ml | include HStoreTransactionalRef
type 'a store = HStoreTransactionalRef.store
| null | https://raw.githubusercontent.com/fpottier/stores/0752321be1ba6c355a7008ebb210bbd91a77e001/src/StoreTransactionalRef.ml | ocaml | include HStoreTransactionalRef
type 'a store = HStoreTransactionalRef.store
| |
5512f48abe12999d40af4292702ec2630b54939cc02c29f82db908fd4df2bae6 | erlang-lager/lager | lager_stdlib.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/erlang-lager/lager/8b87339a43721a382eabe35a71f4f1e0e664c0b3/src/lager_stdlib.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
@doc Functions from Erlang OTP distribut... |
4334ce897b64d61fad874b1183de76927bfc1b0497c27bdc7648d11da662447d | unnohideyuki/bunny | sample323.hs | xs = [Just 3, Just 2, Nothing, Just 9, Nothing, Nothing, Just 8]
main = print $ sum $ [y | Just x <- xs, let y = x * 2]
| null | https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample323.hs | haskell | xs = [Just 3, Just 2, Nothing, Just 9, Nothing, Nothing, Just 8]
main = print $ sum $ [y | Just x <- xs, let y = x * 2]
| |
6a0a130f4fabedb594cbf290b0c9567007ffae99c67363bd7c434b820e9dfff1 | danieljharvey/mimsa | HashModule.hs | module Language.Mimsa.Modules.HashModule (serializeModule, deserializeModule) where
import qualified Data.Aeson as JSON
import Data.Bifunctor
import qualified Data.ByteString.Lazy as LBS
import Data.Coerce
import Data.Functor
import Language.Mimsa.Core
import Language.Mimsa.Store.Hashing
import Language.Mimsa.Types.Pr... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/src/Language/Mimsa/Modules/HashModule.hs | haskell | we remove annotations before producing the hash
so formatting does not affect it
this is the only encode we should be doing
this is the only json decode we should be doing | module Language.Mimsa.Modules.HashModule (serializeModule, deserializeModule) where
import qualified Data.Aeson as JSON
import Data.Bifunctor
import qualified Data.ByteString.Lazy as LBS
import Data.Coerce
import Data.Functor
import Language.Mimsa.Core
import Language.Mimsa.Store.Hashing
import Language.Mimsa.Types.Pr... |
c9a6563dea17814c17e225ea65f4cbf0f2e45c8ff9387f070008434337c6e118 | fulcrologic/semantic-ui-wrapper | ui_image_group.cljc | (ns com.fulcrologic.semantic-ui.elements.image.ui-image-group
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$ImageGroup" :as ImageGroup])))
(def ui-image-group
"A group of images.
Props:
- as (elementType): An element type to render as (string or functio... | null | https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/elements/image/ui_image_group.cljc | clojure | (ns com.fulcrologic.semantic-ui.elements.image.ui-image-group
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$ImageGroup" :as ImageGroup])))
(def ui-image-group
"A group of images.
Props:
- as (elementType): An element type to render as (string or functio... | |
19d8bf85ba80841d0ca078c047f1bc487759bba4250f4dd62e3223dc8a41984d | andersfugmann/ppx_protocol_conv | testable.ml | module type Driver = sig
include Protocol_conv.Runtime.Driver
val of_driver_exn: t -> t
val of_driver: t -> (t, error) Protocol_conv.Runtime.result
val to_driver: t -> t
val name: string
val serialize: t -> string
val deserialize: string -> t
val sexp_of_t: t -> Sexplib.Sexp.t
end
module type Test = fu... | null | https://raw.githubusercontent.com/andersfugmann/ppx_protocol_conv/e93eb01ca8ba8c7dd734070316cd281a199dee0d/test/testable.ml | ocaml | module type Driver = sig
include Protocol_conv.Runtime.Driver
val of_driver_exn: t -> t
val of_driver: t -> (t, error) Protocol_conv.Runtime.result
val to_driver: t -> t
val name: string
val serialize: t -> string
val deserialize: string -> t
val sexp_of_t: t -> Sexplib.Sexp.t
end
module type Test = fu... | |
6a5020efd739824dec8710dbb7cb75998741f36284f0ba78aefc496a6040abb1 | donut/OCamURL-server | alias_redirect_j.ml | (* Auto-generated from "alias_redirect.atd" *)
type database = Database_t.t
type cache = Alias_redirect_t.cache = {
max_record_age: float;
target_length: int;
trim_length: int
}
type t = Alias_redirect_t.t = {
port: int;
database: database;
cache: cache;
pathless_redirect_uri: string option;
error_4... | null | https://raw.githubusercontent.com/donut/OCamURL-server/87738c1a0bbfc2c848f9f4e2052cacc81a176489/lib/config/alias_redirect_j.ml | ocaml | Auto-generated from "alias_redirect.atd" |
type database = Database_t.t
type cache = Alias_redirect_t.cache = {
max_record_age: float;
target_length: int;
trim_length: int
}
type t = Alias_redirect_t.t = {
port: int;
database: database;
cache: cache;
pathless_redirect_uri: string option;
error_404_page_path: string option;
error_50x_page_p... |
882c9e6bc8c642ccd25f098ec3a5f1a943263df26d6a01fef264494f082a399b | haskell-opengl/OpenGLRaw | LightTexture.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.EXT.LightTexture
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
-------------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/LightTexture.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.EXT.LightTexture
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums
* Functions | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.EXT.LightTexture (
glGetEXTLightTexture,
gl_EXT_light_texture,
pattern GL_ATTENUATION_EXT,
pattern GL_FRAGMENT_COLOR_EXT,
pattern GL_FRAGMENT_DEPTH_EXT,
pattern GL_FRAGMENT_MATERIAL_EXT,
pattern GL_F... |
38169f84a5d5c172a0373787327e765b06104422399b0ddc5d760a9e34ff39da | facebookarchive/futil | Test.hs | module Main where
import Data.Char
import Data.List
import Test.QuickCheck
import FUtil
chkInterBreaks :: Char -> [Char] -> Bool
chkInterBreaks c s = intercalate [c] (breaks (== c) s) == s
chkCalate :: [Char] -> [Char] -> Bool
chkCalate glue s = s == intercalate glue (uncalate glue s)
main = do
quickCheck chkInte... | null | https://raw.githubusercontent.com/facebookarchive/futil/d02365610a6e200eef2ab21d3c6b358d8b8ae6a2/src/Test.hs | haskell | module Main where
import Data.Char
import Data.List
import Test.QuickCheck
import FUtil
chkInterBreaks :: Char -> [Char] -> Bool
chkInterBreaks c s = intercalate [c] (breaks (== c) s) == s
chkCalate :: [Char] -> [Char] -> Bool
chkCalate glue s = s == intercalate glue (uncalate glue s)
main = do
quickCheck chkInte... | |
6da90f9dfff100be6772a6a5362cec9571af01bb5924604d1446ceae5fa35d87 | ejlilley/AbstractMusic | Util.hs | # LANGUAGE ViewPatterns ,
MultiParamTypeClasses #
MultiParamTypeClasses #-}
module Util where
import Control.Monad
import Data.Ratio
import Data.Semigroup
import Data.List
interleave (x:xs) (y:ys) = [x, y] ++ (interleave xs ys)
interleave [] ys = ys
interleave ys [] = ys
log2 x = (log x... | null | https://raw.githubusercontent.com/ejlilley/AbstractMusic/815ab33ee204dd3ebf29076bde330bfdf6938677/Util.hs | haskell | iterateM is just like iterate, except it can keep track of
arbitrary state, and only (f state) ends up in the output list.
to enable pattern-matching against the ratio constructor
foldSG' f e (x:[]) = f x e
pairSortKey (x, y) = (abs x) + (abs y)
all pairs (eventually) | # LANGUAGE ViewPatterns ,
MultiParamTypeClasses #
MultiParamTypeClasses #-}
module Util where
import Control.Monad
import Data.Ratio
import Data.Semigroup
import Data.List
interleave (x:xs) (y:ys) = [x, y] ++ (interleave xs ys)
interleave [] ys = ys
interleave ys [] = ys
log2 x = (log x... |
0085a272e81567a2381554781ea97df9345933f9fd56d49a897ecb330b98d347 | pallet/pallet | settings_test.clj | (ns pallet.actions.direct.settings-test
(:require
[clojure.stacktrace :refer [print-cause-trace]]
[clojure.test :refer :all]
[pallet.actions :refer [assoc-in-settings assoc-settings remote-file-content]]
[pallet.algo.fsmop :refer [failed?]]
[pallet.api :refer [group-spec lift plan-fn with-admin-user]]
... | null | https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/test/pallet/actions/direct/settings_test.clj | clojure | (ns pallet.actions.direct.settings-test
(:require
[clojure.stacktrace :refer [print-cause-trace]]
[clojure.test :refer :all]
[pallet.actions :refer [assoc-in-settings assoc-settings remote-file-content]]
[pallet.algo.fsmop :refer [failed?]]
[pallet.api :refer [group-spec lift plan-fn with-admin-user]]
... | |
c0c9a5c31aa2b1a9209b73461e7a0b95b25299e20658dd77d359ddea892bac9c | UBTECH-Walker/WalkerSimulationFor2020WAIC | moveDistance.lisp | ; Auto-generated. Do not edit!
(cl:in-package cruiser_msgs-srv)
;//! \htmlinclude moveDistance-request.msg.html
(cl:defclass <moveDistance-request> (roslisp-msg-protocol:ros-message)
((reserved
:reader reserved
:initarg :reserved
:type cl:integer
:initform 0))
)
(cl:defclass moveDistance-request... | null | https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/cruiser_msgs/srv/moveDistance.lisp | lisp | Auto-generated. Do not edit!
//! \htmlinclude moveDistance-request.msg.html
//! \htmlinclude moveDistance-response.msg.html |
(cl:in-package cruiser_msgs-srv)
(cl:defclass <moveDistance-request> (roslisp-msg-protocol:ros-message)
((reserved
:reader reserved
:initarg :reserved
:type cl:integer
:initform 0))
)
(cl:defclass moveDistance-request (<moveDistance-request>)
())
(cl:defmethod cl:initialize-instance :after ((... |
8c3de421641e93d7805789a646b3c73156846c2a2b5ff2b81a6a6eb1d8e27f58 | chrisdone/lucid | HtmlBenchmarks.hs | | This is a collection of HTML benchmarks for BlazeMarkup .
--
# LANGUAGE ExtendedDefaultRules #
{-# LANGUAGE OverloadedStrings, ExistentialQuantification #-}
# OPTIONS_GHC -fno - warn - unused - do - bind #
module HtmlBenchmarks where
import Data.Monoid (Monoid,mappend,mempty)
import Data.Text ... | null | https://raw.githubusercontent.com/chrisdone/lucid/cc7b2e77c65fc87d5729fabd942486d5729789de/lucid1/benchmarks/HtmlBenchmarks.hs | haskell |
# LANGUAGE OverloadedStrings, ExistentialQuantification #
import qualified Data.Text.Lazy.Builder as B
| Description of an HTML benchmark
^ Name.
^ Rendering function.
^ Data.
^ Longer description.
| List containing all benchmarks.
| Render the argument matrix as an HTML table.
^ Matrix.
^ Result.
| Rend... | | This is a collection of HTML benchmarks for BlazeMarkup .
# LANGUAGE ExtendedDefaultRules #
# OPTIONS_GHC -fno - warn - unused - do - bind #
module HtmlBenchmarks where
import Data.Monoid (Monoid,mappend,mempty)
import Data.Text (Text)
import qualified Data.Text as T
import qualified Prelude ... |
5135d690f047ce0464d55632d70f281d68519b2d72d5773b045f3785636cc2be | hypernumbers/hypernumbers | userdef_rb.erl | ( C ) 2009 - 2014 , Hypernumbers Ltd.
%%%-------------------------------------------------------------------
%%%
%%% LICENSE
%%%
%%% This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation versi... | null | https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/formula_engine-1.0/src/userdef_rb.erl | erlang | -------------------------------------------------------------------
LICENSE
This program is free software: you can redistribute it and/or modify
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICU... | ( C ) 2009 - 2014 , Hypernumbers Ltd.
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3
You should have received a copy of the GNU Affero General Public License
@private
-module(userdef_rb).
-export([
stop/0,
test/2,
... |
ae99c264f6f765f0dda649b115963fffb4dc1802a9be18af88623c7283e4e18c | fraidev/tornado | bencode_utils.ml | let bencode_to_string bencode field =
let bencode_opt = Bencode.dict_get bencode field in
TODO improve this
let bencode_field = Option.get bencode_opt in
Bencode.as_string bencode_field
;;
let bencode_to_int bencode field =
let bencode_opt = Bencode.dict_get bencode field in
TODO improve this
let bencode... | null | https://raw.githubusercontent.com/fraidev/tornado/efc0b7820f6fe5425537156074b22d5f1a41ec9a/lib/bencode_utils.ml | ocaml | let bencode_to_string bencode field =
let bencode_opt = Bencode.dict_get bencode field in
TODO improve this
let bencode_field = Option.get bencode_opt in
Bencode.as_string bencode_field
;;
let bencode_to_int bencode field =
let bencode_opt = Bencode.dict_get bencode field in
TODO improve this
let bencode... | |
ca88cf77ca2339859d391ed9d7c97c38ab4dd5946e8c3a58bce8d70bf8fb8ba1 | clojure/test.check | impl.cljc | Copyright ( c ) , , and contributors .
; 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 a... | null | https://raw.githubusercontent.com/clojure/test.check/c05034f911fa140913958b79aa51017d3f2f4426/src/main/clojure/clojure/test/check/impl.cljc | clojure | 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
the terms of this license.... | Copyright ( c ) , , and contributors .
(ns clojure.test.check.impl)
(defn get-current-time-millis []
#?(:clj (System/currentTimeMillis)
:cljs (.valueOf (js/Date.))))
|
6dd24ef8285f7c9ab66cae83c8d735ba8cb893a97fad6abf30065d9edf9a8272 | fourier/git-api | wrapper-test.lisp | ;;;; wrapper-test.lisp
;; NOTE: To run this test file, execute `(asdf:test-system :git-api)' in your Lisp.
;;
(in-package :cl-user)
(defpackage git-api.test.wrapper-test
(:use :cl
:alexandria
:git-api.utils
:git-api.test.base
:git-api.zlib.wrapper
:prove))
(in-package git-api... | null | https://raw.githubusercontent.com/fourier/git-api/c4a12240ade7f33864e90ae2ca5fc0920d5b8299/t/wrapper-test.lisp | lisp | wrapper-test.lisp
NOTE: To run this test file, execute `(asdf:test-system :git-api)' in your Lisp.
|
(in-package :cl-user)
(defpackage git-api.test.wrapper-test
(:use :cl
:alexandria
:git-api.utils
:git-api.test.base
:git-api.zlib.wrapper
:prove))
(in-package git-api.test.wrapper-test)
import unexterned(private for package ) functions
(from git-api.zlib.wrapper import unc... |
01275cddf4b882fe50a8ac160dde1f118b6c71bf462604b2836c9089d07f6edf | montelibero-org/veche | Stellar.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module Handler.Stellar (getStellarFederationR) where
import Import
import Genesis (escrowAddress, escrowFederatedHost)
getStellarFederationR :: Handler Value
getStellarFederationR = do
queryType <- lookupGetParam "type"
case queryType of
... | null | https://raw.githubusercontent.com/montelibero-org/veche/9982a895786b86fd4ed82aa1b4ea5c185c957a71/veche-web/src/Handler/Stellar.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
module Handler.Stellar (getStellarFederationR) where
import Import
import Genesis (escrowAddress, escrowFederatedHost)
getStellarFederationR :: Handler Value
getStellarFederationR = do
queryType <- lookupGetParam "type"
case queryType of
Just "id" -> notFound
... |
8cbc628800aabf312dc72a714bfb69df00e26455244e82f0021fec8e9c462292 | AshleyYakeley/Truth | Type.hs | {-# OPTIONS -fno-warn-orphans #-}
module Language.Expression.Dolan.Type
( BisubstitutablePolyShim(..)
, IsDolanPolyShim
, IsDolanGroundType(..)
, SomeGroundType(..)
, DebugIsDolanGroundType
, DolanShimWit
, DolanIsoShimWit
, DolanType(..)
, DolanTypeSub(..)
, dolanToMaybeTypeShi... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/3ee367ebf3f9ff956eb768e42ee9473e6aa3d761/Pinafore/typed-expression/lib/Language/Expression/Dolan/Type.hs | haskell | # OPTIONS -fno-warn-orphans #
| This is \"soft\" typing: it mostly represents types, but relies on unsafe coercing to and from a raw type ('UVarT') for type variables.
RecursiveDolanSingularType represents equirecursive type using type families,
similar to -haskell-types/
| OK if there are no contravariant uses |
module Language.Expression.Dolan.Type
( BisubstitutablePolyShim(..)
, IsDolanPolyShim
, IsDolanGroundType(..)
, SomeGroundType(..)
, DebugIsDolanGroundType
, DolanShimWit
, DolanIsoShimWit
, DolanType(..)
, DolanTypeSub(..)
, dolanToMaybeTypeShim
, typeToSomeDolan
, shim... |
8a1789260f3354206a6976566460124ca15566adf201b8eb7a0393b287226eb9 | dasuxullebt/uxul-world | player.lisp | Copyright 2009 - 2011
(in-package :uxul-world)
;; define the standard-class player, which will represent the
;; player.
(defclass player (game-object-with-animation)
((dont-ignore :initarg :dont-ignore
:initform T
:accessor dont-ignore
:documentation "When we're testing whether we can go
on or not wit... | null | https://raw.githubusercontent.com/dasuxullebt/uxul-world/f05e44b099e5976411b3ef1f980ec616bd221425/player.lisp | lisp | define the standard-class player, which will represent the
player.
Interaction with enemies
interaction with items
SIMPLE GRAVITY HACK | Copyright 2009 - 2011
(in-package :uxul-world)
(defclass player (game-object-with-animation)
((dont-ignore :initarg :dont-ignore
:initform T
:accessor dont-ignore
:documentation "When we're testing whether we can go
on or not without colliding, we will set this flag to
nil, which means, that all col... |
3f2f4083d8a3be4bfa6c47d2ce7455f048a08dcc8dddd1054435adb6caa50854 | haskell-game/sdl2 | Lesson17.hs | # LANGUAGE CPP #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
module Lazyfoo.Lesson17 (main) where
import Prelude hiding (foldl1, and)
import Control.Monad
import Data.Foldable
import Data.Monoid
import Data.Maybe
import Foreign.C.Types
import SDL.Vect
import SDL (($=))
import qualified SDL
import Paths... | null | https://raw.githubusercontent.com/haskell-game/sdl2/a2646ede53d98aebf8f7c49b01f99236701b7e44/examples/lazyfoo/Lesson17.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE CPP #
# LANGUAGE LambdaCase #
module Lazyfoo.Lesson17 (main) where
import Prelude hiding (foldl1, and)
import Control.Monad
import Data.Foldable
import Data.Monoid
import Data.Maybe
import Foreign.C.Types
import SDL.Vect
import SDL (($=))
import qualified SDL
import Paths_sdl2 (getDataFileName)
#if !MIN_V... |
2e6bffc80fefaedb03ae1aec95175f0ca443e9a703764ac52ce1c823e681b43c | ymyzk/lambda-dti | pp.ml | open Format
open Syntax
exception Syntax_error
let with_paren flag ppf_e ppf e =
fprintf ppf (if flag then "(%a)" else "%a") ppf_e e
let rec gt_ty (u1: ty) u2 = match u1, u2 with
| TyVar (_, { contents = Some u1 }), u2
| u1, TyVar (_, { contents = Some u2 }) -> gt_ty u1 u2
| _, TyFun _ -> true
| _ -> fals... | null | https://raw.githubusercontent.com/ymyzk/lambda-dti/f476c0094832cbaaa336dc1bc86babfb8b652f14/lib/pp.ml | ocaml | * Pretty-printer for types. Show the raw index of a type variable (e.g., 'x123->'x124).
* Pretty-printer for types. Type variables are renamed (e.g., 'a->'b). | open Format
open Syntax
exception Syntax_error
let with_paren flag ppf_e ppf e =
fprintf ppf (if flag then "(%a)" else "%a") ppf_e e
let rec gt_ty (u1: ty) u2 = match u1, u2 with
| TyVar (_, { contents = Some u1 }), u2
| u1, TyVar (_, { contents = Some u2 }) -> gt_ty u1 u2
| _, TyFun _ -> true
| _ -> fals... |
293f6d1fc2f0e323d29a811a17656325a059abf5291ee88e71e027fc1519c6d8 | babashka/babashka | shutdown_hook_test.clj | (ns babashka.shutdown-hook-test
{:no-doc true}
#_(:import [java.nio.charset Charset])
#_(:require [babashka.test-utils :as tu]
[clojure.java.io :as io]
[clojure.test :refer [deftest is]]))
#_(defn- stream-to-string
([in] (stream-to-string in (.name (Charset/defaultCharset))))
([in enc... | null | https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test/babashka/shutdown_hook_test.clj | clojure | (ns babashka.shutdown-hook-test
{:no-doc true}
#_(:import [java.nio.charset Charset])
#_(:require [babashka.test-utils :as tu]
[clojure.java.io :as io]
[clojure.test :refer [deftest is]]))
#_(defn- stream-to-string
([in] (stream-to-string in (.name (Charset/defaultCharset))))
([in enc... | |
095e8ad5a63a12b9545d3eca200b6d9de989ef65cefca7a8a47f2927a7f74ff0 | bellissimogiorno/nominal | IdealisedEUTxOSpec.hs | {-|
__Please read the source code to view the tests.__
-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
{-# LANGUAGE GADTs #-}
# LANGUAGE MultiParamTypeCla... | null | https://raw.githubusercontent.com/bellissimogiorno/nominal/ab3306ee349dc481d2e2e6d103d90ffdd14ccaa9/src/Language/Nominal/Properties/Examples/IdealisedEUTxOSpec.hs | haskell | |
__Please read the source code to view the tests.__
# LANGUAGE ConstraintKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE GADTs #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeSynonymInstances #
# OPTIONS_GHC... | # LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -Wno - orphans #
module Language.Nominal.Properties.Examples.IdealisedEUTxOSpec
where
import Control.Monad (replicateM)
imp... |
aabaabdd045c222018fb1b154c2ea7b3dc6da4b9d1213eeb3d7b717df04f86df | CloudI/CloudI | ranch_crc32c.erl | Copyright ( c ) 2018 , < >
%%
%% 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 " AS IS " AND THE AUTHOR DISCLAIMS A... | null | https://raw.githubusercontent.com/CloudI/CloudI/75b93bb0e7dc4734f5cd1ef913788e44b577a3d5/src/external/cloudi_x_ranch/src/ranch_crc32c.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 ) 2018 , < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(ranch_crc32c).
-export([crc32c/1]).
-export([crc32c... |
8304c8d6e2d29c93b9417b0a352319d8ecd5f370b52d930abe96f96768b849c7 | rbee3u/esugar | esugar_do_transform_error.erl | -module(esugar_do_transform_error).
-export(['>>='/2, return/1, fail/1]).
-export_type([error/1]).
-type error(A) :: {ok, A} | {error, any()}.
-spec '>>='(MA, fun((A) -> MB)) -> MB when
MA :: error(A), MB :: error(_B).
'>>='({ok, Result}, Fun) -> Fun(Result);
'>>='({error, _} = Error, _Fun) -> Error.
... | null | https://raw.githubusercontent.com/rbee3u/esugar/441abf33dcd51e8eedeb3b19db2fc5e39e13d770/test/esugar_do_transform_error.erl | erlang | -module(esugar_do_transform_error).
-export(['>>='/2, return/1, fail/1]).
-export_type([error/1]).
-type error(A) :: {ok, A} | {error, any()}.
-spec '>>='(MA, fun((A) -> MB)) -> MB when
MA :: error(A), MB :: error(_B).
'>>='({ok, Result}, Fun) -> Fun(Result);
'>>='({error, _} = Error, _Fun) -> Error.
... | |
054c7d9d1e197d385a53418405f6dc0ec262843148a6a35f23a7ee004a22d478 | atolab/yaks-ocaml | yaks_api.ml | open Apero
open Lwt.Infix
open Yaks_types
type yid = string
type feid = string
type beid = string
type stid = string
type sid = string
type subid = Zenoh.sub
type listener_t = (Path.t * change) list -> unit Lwt.t
type eval_callback_t = Path.t -> properties -> Value.t Lwt.t
type transcoding_fallback = Fail | Drop |... | null | https://raw.githubusercontent.com/atolab/yaks-ocaml/cdae19e0bcc315560d352acb57ee9dca2962d7fa/lib/yaks_api.ml | ocaml | TODO: explicit close session... unsubscribe? unstore? | open Apero
open Lwt.Infix
open Yaks_types
type yid = string
type feid = string
type beid = string
type stid = string
type sid = string
type subid = Zenoh.sub
type listener_t = (Path.t * change) list -> unit Lwt.t
type eval_callback_t = Path.t -> properties -> Value.t Lwt.t
type transcoding_fallback = Fail | Drop |... |
7e24b467b84419a7bd16f3a4b7a272dc8dd8d345ec0a0b39425948266f3941ac | alanz/ghc-exactprint | overloadedrecfldsfail05.hs | # LANGUAGE DuplicateRecordFields #
# OPTIONS_GHC -fwarn - unused - binds -Werror #
module Main (main, T(MkT)) where
data S = MkS { foo :: Int }
data T = MkT { foo :: Int }
This should count as a use of ) but not T(foo )
main = print ((\ MkS{foo=foo} -> foo) (MkS 3))
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/overloadedrecfldsfail05.hs | haskell | # LANGUAGE DuplicateRecordFields #
# OPTIONS_GHC -fwarn - unused - binds -Werror #
module Main (main, T(MkT)) where
data S = MkS { foo :: Int }
data T = MkT { foo :: Int }
This should count as a use of ) but not T(foo )
main = print ((\ MkS{foo=foo} -> foo) (MkS 3))
| |
5cc6e35621512e9328461d69d9f8a30aee81ed4ce3f158d6fac0c136ddb38f1d | alanz/ghc-exactprint | TopLevelSemis1.hs | module TopLevelSemis1 where
x = 1
C1
C2
;
C3
;
-- C4
data Foo = Foo
After TyClD
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/309efa8689e1ce2407523ba2ebe058b97757ba8b/tests/examples/ghc92/TopLevelSemis1.hs | haskell | C4 | module TopLevelSemis1 where
x = 1
C1
C2
;
C3
;
data Foo = Foo
After TyClD
|
c25a807a7e6810241b183c4ac63a3a5d8eb1775454bba897dba4c5b2c00752d6 | esl/esl-rabbitmq-client | esl_rabbitmq_client_sup.erl | -module(esl_rabbitmq_client_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% `supervisor' behaviour callbacks
-export([init/1]).
%% =============================================================================
%% API
%% =============================================================================
-spe... | null | https://raw.githubusercontent.com/esl/esl-rabbitmq-client/0bcd0ff7ca4cf1a982c7a9d2d1fdf29f0a82ac8f/src/esl_rabbitmq_client_sup.erl | erlang | API
`supervisor' behaviour callbacks
=============================================================================
API
============================================================================= | -module(esl_rabbitmq_client_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-spec start_link() ->
{ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-spec init(Args::term()) ->
{ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
init(_Args) ->
... |
944cb4103aeeff6cfe52a30c775f51394f10e83cf053813f57f49ef7bc6bcd51 | adamConnerSax/knit-haskell | Logger.hs | {-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE PolyKinds #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
{-# LANGUAGE LambdaCase #-}
# LANGUAGE MultiP... | null | https://raw.githubusercontent.com/adamConnerSax/knit-haskell/80c5ac13cc1aff1990a2e22871242addc3c3dea3/src/Knit/Effect/Logger.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DataKinds #
# LANGUAGE DeriveDataTypeable #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
* Logging Types
* Effects
* Actions
... | # LANGUAGE PolyKinds #
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fwarn - incomplete - patterns #
|
Module : Kni... |
4fe1171f6465a55c93ade187db2428bcb955d22efeaf77b634b847270c22a1bd | philnguyen/soft-contract | gc.rkt | #lang typed/racket/base
(provide gc@)
(require racket/set
racket/match
racket/splicing
racket/vector
typed/racket/unit
set-extras
unreachable
"../utils/vector.rkt"
"../ast/signatures.rkt"
"../runtime/signatures.rkt"
"../signatur... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/execution/gc.rkt | racket | Look up full context to span addresses,
but only copy entries from the store-delta in focus
Try to re-use old instance
Try to reuse old instance
try to reuse old instance
try to reuse old instance
TODO: this may not work properly with sub-structs
want both due to Racket's internal opt.
Compute free variables fo... | #lang typed/racket/base
(provide gc@)
(require racket/set
racket/match
racket/splicing
racket/vector
typed/racket/unit
set-extras
unreachable
"../utils/vector.rkt"
"../ast/signatures.rkt"
"../runtime/signatures.rkt"
"../signatur... |
3a1076332c366d30001bd92d00972726877602090ff9a29be98fd727e26554a8 | kutyel/haskell-book | Chapter26.hs | module Chapter26 where
import Control.Applicative (Alternative (..))
import Control.Arrow (first)
import Control.Monad (guard)
import Data.Functor.Identity (Identity (Identity))
newtype MaybeT m a = MaybeT
{ runMaybeT :: m (Maybe a)
}
instance (Functor f) => Functor (MaybeT f) where
fmap f (MaybeT fma) = Maybe... | null | https://raw.githubusercontent.com/kutyel/haskell-book/fd4dc0332b67575cfaf5e3fb0e26687dc01772a0/src/Chapter26.hs | haskell | exercises: EitherT
ReaderT
exercises: StateT
exercise: wrap it up
exercises: Lift More
exercises: Some Instances
chapter exercises
fix the code
This instance is here so that I can use `guard` with MaybeT | module Chapter26 where
import Control.Applicative (Alternative (..))
import Control.Arrow (first)
import Control.Monad (guard)
import Data.Functor.Identity (Identity (Identity))
newtype MaybeT m a = MaybeT
{ runMaybeT :: m (Maybe a)
}
instance (Functor f) => Functor (MaybeT f) where
fmap f (MaybeT fma) = Maybe... |
957917bffd6cc74394d4c0e4ef060720985b04c45645a734ab73eb5ac8720ed4 | eholk/elegant-weapons | match.scm | ;;; match.ss
This program was originally designed and implemented by
Friedman . It was redesigned and implemented by ;
some improvements were suggested by . Additional
modifications were made by .
( Jan 2008 )
added match / lexical - context trace - match / lexical - context
( Nov 2007 )
... | null | https://raw.githubusercontent.com/eholk/elegant-weapons/ce51432c614cdba5d2f12c7b5451af01095257a4/lib/elegant-weapons/match.scm | scheme | match.ss
code thread and fixed a couple of minor problems.
variables. The patterns represented by the variables are compared
using the value of the parameter match-equality-test, which defaults
to equal?.
> (match '(1 2 1 2 1)
((,a ,b ,a ,b ,a) (guard (number? a) (number? b)) (+ a b)))
;;
(((,a ...)... |
This program was originally designed and implemented by
some improvements were suggested by . Additional
modifications were made by .
( Jan 2008 )
added match / lexical - context trace - match / lexical - context
( Nov 2007 )
added it to ikarus .
( Apr 2007 )
ported it to r6rs .
( 1... |
3a0a7104f0d24da7df65538702cd886f955a2fa1f1f99230ef8ca0de86d6dc75 | vernemq/vernemq | vmq_metadata.erl | Copyright 2018 Erlio GmbH Basel Switzerland ( )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, sof... | null | https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_metadata.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2018 Erlio GmbH Basel Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_metadata).
-export([
start/0,
stop/0,
put/3,
get/2,
delete/2,
fold/3,
subscribe/1
]).... |
a33fb36a13a55421c518bddde921a466d654fc59af20d9f64c0f889d2cc88673 | zack-bitcoin/verkle | unit_tests.erl | -module(unit_tests).
-export([doit/1]).
doit(0) ->
S = success,
io:fwrite("leaf\n"),
S = leaf_verkle:test(1),
io:fwrite("stem\n"),
S = stem_verkle:test(1),
io:fwrite("get\n"),
S = get_verkle:test(1),
lists:map(fun(N) ->
io:fwrite("fr "),
io:fw... | null | https://raw.githubusercontent.com/zack-bitcoin/verkle/fb97b0a9eb61e0fc8808fe610354d755bb0cbf05/src/unit_tests.erl | erlang | -module(unit_tests).
-export([doit/1]).
doit(0) ->
S = success,
io:fwrite("leaf\n"),
S = leaf_verkle:test(1),
io:fwrite("stem\n"),
S = stem_verkle:test(1),
io:fwrite("get\n"),
S = get_verkle:test(1),
lists:map(fun(N) ->
io:fwrite("fr "),
io:fw... | |
90124425e9cf4e829b85d69ec5c83f9355a716131b634728a947e09a111916bd | kadena-io/chainweb-node | CutDB.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE La... | null | https://raw.githubusercontent.com/kadena-io/chainweb-node/aff594a05096341d01ae50a9f37056b2519025d2/src/Chainweb/CutDB.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE DeriveAnyClass #
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
|
Stability: experimental
* Cut Hashes Table
* CutDb
* Membership Queries
* Some CutDb
* Queue Statistics
internal modules
-----------------------------------------------------------... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAG... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.