_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 |
|---|---|---|---|---|---|---|---|---|
c1a61d19afaaba0e680c85f79bd62ece9e94138464803b3ef29994f600486756 | kind2-mc/kind2 | pretty.ml | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you
may not use this file except in compliance with the License . You
may obtain a copy of the License a... | null | https://raw.githubusercontent.com/kind2-mc/kind2/502a365efe17f6c8cff17a2baed0479f2f363711/src/utils/pretty.ml | ocaml | Set width of pretty printing boxes to number of columns
try
with Not_found -> eprintf "didnr find %s@." t; raise Not_found
pp_set_tags formatter true;
**********************************************************************
Event tags used when outputting info.
*************... | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you
may not use this file except in compliance with the License . You
may obtain a copy of the License a... |
00682a116303f93eaa7ccedda98c3b248cb20001b08fef256779e5e99e036d52 | autolwe/autolwe | Parse.ml | (* * Wrapper functions for parser with error handling. *)
module S = String
module PT = ParserTools
let convert_error f =
PT.wrap_error_exn
(fun sbuf ->
try f sbuf
with Parser.Error -> raise PT.ParserError)
* oracle definition .
let odef = convert_error (Parser.odef Lexer.lex)
(** Parse instruct... | null | https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Parser/Parse.ml | ocaml | * Wrapper functions for parser with error handling.
* Parse instruction definition. |
module S = String
module PT = ParserTools
let convert_error f =
PT.wrap_error_exn
(fun sbuf ->
try f sbuf
with Parser.Error -> raise PT.ParserError)
* oracle definition .
let odef = convert_error (Parser.odef Lexer.lex)
let instruction = convert_error (Parser.instruction Lexer.lex)
* theory de... |
30922d9733308a1cfc175f05bd6610b98db740de151da43474c45a79681687a3 | e-bigmoon/haskell-blog | exercise1.hs | #!/usr/bin/env stack
-- stack script --resolver lts-17.3
{-# LANGUAGE OverloadedStrings #-}
import Data.Aeson (Value)
import qualified Data.ByteString.Char8 as S8
import qualified Data.Yaml as Yaml
import Network.HTTP.Simple
main :: IO ()
main = do
let request
... | null | https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/appendix/ap4/exercise/exercise1.hs | haskell | stack script --resolver lts-17.3
# LANGUAGE OverloadedStrings # | #!/usr/bin/env stack
import Data.Aeson (Value)
import qualified Data.ByteString.Char8 as S8
import qualified Data.Yaml as Yaml
import Network.HTTP.Simple
main :: IO ()
main = do
let request
= setRequestMethod "PUT"
$ setRequestPath "/put"
... |
1d7fceb6e102e00fca353aeaab7682573f665bc6923bdd802888284ce6f54b58 | Incubaid/baardskeerder | leaf.ml |
* This file is part of Baardskeerder .
*
* Copyright ( C ) 2011 Incubaid BVBA
*
* Baardskeerder 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 , o... | null | https://raw.githubusercontent.com/Incubaid/baardskeerder/3975cb7f0e92e1f35eeab17beeb906344e43dae0/src/leaf.ml | ocaml |
* This file is part of Baardskeerder .
*
* Copyright ( C ) 2011 Incubaid BVBA
*
* Baardskeerder 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 , o... | |
03a9ba21c3643e8c3a0b4dbb4c39f77634a5832d44f0e75ff5201c1157acd576 | yesodweb/wai | WarpTLS.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE PatternGuards #
| HTTP over TLS support for Warp via the TLS package .
--
If HTTP\/2 is negotiated by ALPN , HTTP\/2 over TLS is used .
Otherwise HTTP\/1... | null | https://raw.githubusercontent.com/yesodweb/wai/3887d7c51db18ea28d42efafe3dd17f34ff9cb6d/warp-tls/Network/Wai/Handler/WarpTLS.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
# LANGUAGE DeriveDataTypeable #
Support for SSL is now obsoleted.
* Runner
* Settings
* Smart constructors
** From files
** From memory
** From references
* Accessors
* Exception
* DH parameters (re-exports)
------------------------------------------... | # LANGUAGE CPP #
# LANGUAGE RecordWildCards #
# LANGUAGE PatternGuards #
| HTTP over TLS support for Warp via the TLS package .
If HTTP\/2 is negotiated by ALPN , HTTP\/2 over TLS is used .
Otherwise HTTP\/1.1 over TLS is used .
module Network.Wai.Handler.WarpTLS (
runTLS
, runTLSSocket
, TLSS... |
f1fafbbdfeaac8eb2dd57e6985fb56b79c9cce3faaaf9e903f6ca1243982cd19 | tek/polysemy-hasql | MergePartialTest.hs | module Polysemy.Hasql.Test.Tree.MergePartialTest where
import Polysemy.Db.Kind.Data.Tree (PrimTree, ProdRoot, ProdTree)
import Polysemy.Db.Tree.Merge (mergeAtNames)
import Polysemy.Db.Tree.Partial (PartialTree, field, partially, (++>))
import Polysemy.Test (UnitTest, runTestAuto, (===))
data Sub1 =
Sub1 {
int :... | null | https://raw.githubusercontent.com/tek/polysemy-hasql/443ccf348bb8af0ec0543981d58af8aa26fc4c10/packages/hasql/test/Polysemy/Hasql/Test/Tree/MergePartialTest.hs | haskell | module Polysemy.Hasql.Test.Tree.MergePartialTest where
import Polysemy.Db.Kind.Data.Tree (PrimTree, ProdRoot, ProdTree)
import Polysemy.Db.Tree.Merge (mergeAtNames)
import Polysemy.Db.Tree.Partial (PartialTree, field, partially, (++>))
import Polysemy.Test (UnitTest, runTestAuto, (===))
data Sub1 =
Sub1 {
int :... | |
e0fbd9fc3b3537ffe74492890741d306c9595687f53d98ebac10c3a5924fa90f | sellout/Kilns | reader.lisp | (in-package #:kilns)
(defun eval (form)
(if (listp form)
(let* ((operation (car form))
(definition (gethash operation
kell-calculus::*global-definitions*)))
(if definition
(@ definition
(make-instance 'named-concretion
... | null | https://raw.githubusercontent.com/sellout/Kilns/467ba599f457812daea41a7c56f74a1ec1cdc9b2/src/reader.lisp | lisp | that represents what is to be run in the local instance. It should
work as if the following (illegal) trigger were used: | (in-package #:kilns)
(defun eval (form)
(if (listp form)
(let* ((operation (car form))
(definition (gethash operation
kell-calculus::*global-definitions*)))
(if definition
(@ definition
(make-instance 'named-concretion
... |
b46da1fc0a97a64a69eab1a7b37724103ad574461710b8e764c693ded8303ebd | berberman/nvfetcher | Options.hs | # LANGUAGE LambdaCase #
# LANGUAGE TemplateHaskell #
| Copyright : ( c ) 2021 - 2022 berberman
SPDX - License - Identifier : MIT
Maintainer : < >
-- Stability: experimental
-- Portability: portable
--
CLI interface of nvfetcher
module NvFetcher.Options
( CLIOptions (..),
Target (..),
cliOptionsPars... | null | https://raw.githubusercontent.com/berberman/nvfetcher/4be597cbe9b988d074e4d13baecaf24f8299350a/src/NvFetcher/Options.hs | haskell | Stability: experimental
Portability: portable
| Options for nvfetcher CLI | # LANGUAGE LambdaCase #
# LANGUAGE TemplateHaskell #
| Copyright : ( c ) 2021 - 2022 berberman
SPDX - License - Identifier : MIT
Maintainer : < >
CLI interface of nvfetcher
module NvFetcher.Options
( CLIOptions (..),
Target (..),
cliOptionsParser,
getCLIOptions,
)
where
import Options.Applic... |
ed9a1e05bd80499ef62550c907c657bbc6ddedd0f291aa5be0d2961ba683a86b | nuscr/nuscr | ltype.mli | (** Local type management *)
(** This module defines local types and basic operations on them. *)
open! Base
open Message
open Names
(** Local types. See also {!LiteratureSyntax.local} for a simpler syntax. *)
type t =
| RecvL of message * RoleName.t * t
(** [RecvL (msg, name, t)] waits for message [msg] fro... | null | https://raw.githubusercontent.com/nuscr/nuscr/afef8aa7b0452e51b48cd101278512dcd7869b3b/lib/mpst/ltype.mli | ocaml | * Local type management
* This module defines local types and basic operations on them.
* Local types. See also {!LiteratureSyntax.local} for a simpler syntax.
* [RecvL (msg, name, t)] waits for message [msg] from [name] and
continues as [t]
* [ChoiceL (name, ts)] is a choice (internal or external) from [... |
open! Base
open Message
open Names
type t =
| RecvL of message * RoleName.t * t
| SendL of message * RoleName.t * t
* [ ( msg , name , t ) ] sends message [ msg ] to [ name ] and continues
as [ t ]
as [t] *)
| ChoiceL of RoleName.t * t list
| TVarL of TypeVariableName.t * Expr.t list
*... |
9b2454b309134e5a77f8bef4788a40fbe7b5c8a421742182479f77bd17c7eae2 | mhayashi1120/Gauche-net-twitter | trends.scm | (define-module net.twitter.trends
(extend net.twitter.base)
(use net.twitter.core)
(export
available/json
closest/json
place/json
))
(select-module net.twitter.trends)
;;;
;;; JSON api
;;;
(define (available/json cred . _keys)
(call/oauth->json cred 'get #"/1.1/trends/available"
... | null | https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/b9f4be3ca8459fc662f9c79481411aac03b51133/src/net/twitter/trends.scm | scheme |
JSON api
| (define-module net.twitter.trends
(extend net.twitter.base)
(use net.twitter.core)
(export
available/json
closest/json
place/json
))
(select-module net.twitter.trends)
(define (available/json cred . _keys)
(call/oauth->json cred 'get #"/1.1/trends/available"
(api-params _keys))... |
ed3b431adb68535d3d6eb71cf49c96a55dd715679b0b3c91b1cae821aeb58d06 | mateusz-lichota/automated-circuit-design | Specs.hs | module Specs where
import Exps
import Data.List (intercalate)
import CommonTypes (Gate(..), Cost, Var(..))
data B4digit = Q0 | Q1 | Q2 | Q3
instance Show B4digit where
show Q0 = "0"
show Q1 = "1"
show Q2 = "2"
show Q3 = "3"
digits :: [B4digit]
digits = [Q0, Q1, Q2, Q3]
type B4num = (B4digit, B4dig... | null | https://raw.githubusercontent.com/mateusz-lichota/automated-circuit-design/8a41d137a8833c888410d09e33595fa55234194e/src/Specs.hs | haskell | module Specs where
import Exps
import Data.List (intercalate)
import CommonTypes (Gate(..), Cost, Var(..))
data B4digit = Q0 | Q1 | Q2 | Q3
instance Show B4digit where
show Q0 = "0"
show Q1 = "1"
show Q2 = "2"
show Q3 = "3"
digits :: [B4digit]
digits = [Q0, Q1, Q2, Q3]
type B4num = (B4digit, B4dig... | |
fcfb106628476d7231f3a6e6ed550defcda8628e46f77bdbf077c5a4d0177a38 | facebook/duckling | Rules.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
# LANGUAGE NoRebindableSyntax #
{-# LANGUAGE OverloadedStrings #-}
module Duckling.T... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/EN/CA/Rules.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
Fixed day/week/month, year over year | Copyright ( c ) 2016 - present , Facebook , Inc.
# LANGUAGE NoRebindableSyntax #
module Duckling.Time.EN.CA.Rules
( rules
) where
import Data.Maybe
import Prelude
import Duckling.Dimensions.Types
import Duckling.Numeral.Helpers (parseInt)
import Duckling.Regex.Types
import Duckling.Time.Helpers
import Duckli... |
d1620277b0f8031ed231a15e4f824efad732ff9dbb1a48a3778ca8aa89dfff6e | cljfx/cljfx | text_area.clj | (ns cljfx.fx.text-area
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.fx.text-input-control :as fx.text-input-control]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce])
(:import [javafx.scene.control TextArea]
[javafx.scene Accessibl... | null | https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/text_area.clj | clojure | overrides
definitions | (ns cljfx.fx.text-area
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.fx.text-input-control :as fx.text-input-control]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce])
(:import [javafx.scene.control TextArea]
[javafx.scene Accessibl... |
629abb30cae479dbcad0f57deee47ab37c884a53e65e4ae4b51276112b17c7bf | Practical-Formal-Methods/adiff | RList.hs | -----------------------------------------------------------------------------
-- |
Module : Language . C.Data . RList
Copyright : ( c ) [ 2007 .. 2008 ] ,
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
Portability : ghc
--
-- Due to the way the grammar is constructed ... | null | https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/src/Language/C/Data/RList.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Due to the way the grammar is constructed we very often have to build lists
in reverse. To make sure we do this consistently and correctly we have a
newtype to wrap th... | Module : Language . C.Data . RList
Copyright : ( c ) [ 2007 .. 2008 ] ,
Portability : ghc
module Language.C.Data.RList (
RList,Reversed(..),
empty,singleton,snoc,rappend,appendr,rappendr,rmap,reverse,
viewr,
)
where
import Prelude hiding (reverse)
import qualified Data.List as List
n... |
8fede7eeb55d5fc23be57d4fce90f1b67fcd2a34926396b6ec016b8e6d098408 | tkych/lisp-dojo | 032.lisp | Last modified : 2013 - 10 - 15 22:52:36 tkych
(define-practice
:id 032
:name prefixp
:level 0
:problem "
PREFIXP prefix list &key (test #'eql) => boolean
Make function PREFIXP.
If `list' contains `prefix' as front-sublist, it returns T,
otherwise NIL.
Examples:
(prefixp '() '(1 ... | null | https://raw.githubusercontent.com/tkych/lisp-dojo/ba83d025bc03101eec43ec6be44585d7b076caf6/practices/032.lisp | lisp | Last modified : 2013 - 10 - 15 22:52:36 tkych
(define-practice
:id 032
:name prefixp
:level 0
:problem "
PREFIXP prefix list &key (test #'eql) => boolean
Make function PREFIXP.
If `list' contains `prefix' as front-sublist, it returns T,
otherwise NIL.
Examples:
(prefixp '() '(1 ... | |
572536014a416920607b4cef87f0c4396aab28b681f9641ad238a9588762b22b | dhleong/wish | virtual_list.cljs | (ns ^{:author "Daniel Leong"
:doc "Virtual list"}
wish.views.widgets.virtual-list
(:require [reagent.core :as r]
["react-virtualized/dist/commonjs/List" :refer [List]]
["react-virtualized/dist/commonjs/AutoSizer" :refer [AutoSizer]]
["react-virtualized/dist/commonjs/CellMea... | null | https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/views/widgets/virtual_list.cljs | clojure | DON'T persist the cache, else changes to the items
(for example, marking some "selected" or not) will NOT allow them
to render with a different height | (ns ^{:author "Daniel Leong"
:doc "Virtual list"}
wish.views.widgets.virtual-list
(:require [reagent.core :as r]
["react-virtualized/dist/commonjs/List" :refer [List]]
["react-virtualized/dist/commonjs/AutoSizer" :refer [AutoSizer]]
["react-virtualized/dist/commonjs/CellMea... |
e8639fb071818e29ae95766b65ec65f6e9003c07e77cf088da8d6f854697803e | replikativ/replikativ | stage.cljc | (ns replikativ.stage
"A stage allows to execute upstream operations of each CRDT and
communicates them downstream to a peer through
synchronous (blocking) operations."
(:require [konserve.core :as k]
[kabel.peer :refer [drain]]
[replikativ.core :refer [wire]]
[replikativ.conn... | null | https://raw.githubusercontent.com/replikativ/replikativ/1533a7e43e46bfb70e8c8eb34dc5708e611a478d/src/replikativ/stage.cljc | clojure | exert backpressure
ensure-hash
can still get pubs in the mean time which undo in-memory removal, but should be safe | (ns replikativ.stage
"A stage allows to execute upstream operations of each CRDT and
communicates them downstream to a peer through
synchronous (blocking) operations."
(:require [konserve.core :as k]
[kabel.peer :refer [drain]]
[replikativ.core :refer [wire]]
[replikativ.conn... |
0bf50890a92a844a6f05a1781645cda3eb681e74f104aaa6e97924a0892cfa33 | ufasoft/lisp | savemem.lisp | ;;;; Saving memory images
(in-package "EXT")
(export '(saveinitmem *command-index*))
(in-package "SYSTEM")
;;---------------------------------------------------------------------------
;; Stores the current memory contents as "lispimag.mem", omitting garbage
;; collectible objects.
;; This function does not take argu... | null | https://raw.githubusercontent.com/ufasoft/lisp/bd5213fbd5e162ca7e8a4a9b5aeb6252f38a30fc/clisp/savemem.lisp | lisp | Saving memory images
---------------------------------------------------------------------------
Stores the current memory contents as "lispimag.mem", omitting garbage
collectible objects.
This function does not take arguments and has no local variables, since
otherwise in the interpreted mode the values of the va... |
(in-package "EXT")
(export '(saveinitmem *command-index*))
(in-package "SYSTEM")
(defun %saveinitmem ()
(do-all-symbols (sym) (remprop sym 'sys::definition))
(when (fboundp 'clos::install-dispatch)
(do-all-symbols (sym)
(when (and (fboundp sym)
(typep (symbol-function sym) clos::<standa... |
60884dfa167aa7f9e67165f10e3f20f6a9b57c93c38b6795a00cc39cd3a6ce3e | CodyReichert/qi | version.lisp | (in-package :cl-user)
(defpackage libyaml.version
(:use :cl :cffi)
(:export :get-version-string)
(:documentation "Stuff for dealing with version information."))
(in-package :libyaml.version)
(defcfun ("yaml_get_version_string" get-version-string)
:string
"Get the library version as a string.")
| null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-libyaml-latest/src/version.lisp | lisp | (in-package :cl-user)
(defpackage libyaml.version
(:use :cl :cffi)
(:export :get-version-string)
(:documentation "Stuff for dealing with version information."))
(in-package :libyaml.version)
(defcfun ("yaml_get_version_string" get-version-string)
:string
"Get the library version as a string.")
| |
d3a7b13911da7e57b7533332c3b6c4b325c77eada44a520944bf5b511fc8037b | wireapp/wire-server | Search.hs | # LANGUAGE PartialTypeSignatures #
# LANGUAGE QuasiQuotes #
# OPTIONS_GHC -Wno - incomplete - uni - patterns #
{-# OPTIONS_GHC -Wno-partial-type-signatures #-}
-- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribut... | null | https://raw.githubusercontent.com/wireapp/wire-server/72a03a776d4a8607b0a9c3e622003467be914894/services/brig/test/integration/API/Search.hs | haskell | # OPTIONS_GHC -Wno-partial-type-signatures #
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 warran... | # LANGUAGE PartialTypeSignatures #
# LANGUAGE QuasiQuotes #
# OPTIONS_GHC -Wno - incomplete - uni - patterns #
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
... |
1fb3b6e19ff536aed35c6f4767dab35912ccd904d083d3d31a997bbccbced8b0 | Factual/skuld | flake_test.clj | (ns skuld.flake-test
(:use skuld.flake
clojure.test
[criterium.core :only [quick-bench]])
(:require [clojure.data.codec.base64 :as base64])
(:import (java.util Arrays)
(com.google.common.primitives UnsignedBytes)))
(in-ns 'skuld.flake)
(def node-id (constantly (byte-array 6)))
(in-ns '... | null | https://raw.githubusercontent.com/Factual/skuld/79599f9b13aee35c680183d6bf9e2fcbfde1d7c7/test/skuld/flake_test.clj | clojure | (ns skuld.flake-test
(:use skuld.flake
clojure.test
[criterium.core :only [quick-bench]])
(:require [clojure.data.codec.base64 :as base64])
(:import (java.util Arrays)
(com.google.common.primitives UnsignedBytes)))
(in-ns 'skuld.flake)
(def node-id (constantly (byte-array 6)))
(in-ns '... | |
ccbe7f6f6548c43550085001813fc31975a1b49a9f40fbddc39f9c1c42460f29 | r-willis/biten | erlsha2_test.erl | %%%
%%% These tests come from
%%% <>. These tests read the
%%% test data from files in the testvector directory and compare against
%%% the expected results. The test vectors and expected results are subject
to the license in testvectors / LICENSE .
%%%
-module(erlsha2_test).
-compile([export_all]).
-include_lib("eu... | null | https://raw.githubusercontent.com/r-willis/biten/75b13ea296992f8fa749646b9d7c15c5ef23d94d/apps/erlsha2/test/erlsha2_test.erl | erlang |
These tests come from
<>. These tests read the
test data from files in the testvector directory and compare against
the expected results. The test vectors and expected results are subject
| to the license in testvectors / LICENSE .
-module(erlsha2_test).
-compile([export_all]).
-include_lib("eunit/include/eunit.hrl").
all_test_() ->
{setup, fun read_test_vectors/0,
{with, [fun sha224_test/1,
fun sha224_update_test/1,
fun sha256_test/1,
fun sha256_update_... |
c08cbdda693cc75308202dbf99b1026bf68d2e5c630feac0533c53ed8ab5e74f | schemeorg-community/index.scheme.org | srfi.69.scm | (((name . "make-hash-table")
(signature
case-lambda
(((procedure? equality-predicate) arg ...) hash-table?)
(((procedure? equality-predicate) (procedure? hash-function) arg ...)
hash-table?))
(subsigs
(equality-predicate (lambda (a b) boolean?))
(hash-function (lambda (obj) integer?)))
(tags pu... | null | https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.69.scm | scheme | (((name . "make-hash-table")
(signature
case-lambda
(((procedure? equality-predicate) arg ...) hash-table?)
(((procedure? equality-predicate) (procedure? hash-function) arg ...)
hash-table?))
(subsigs
(equality-predicate (lambda (a b) boolean?))
(hash-function (lambda (obj) integer?)))
(tags pu... | |
2c3e750948e77107934c39e493f260fd39fbecd3b96ae9894ad78e3357f352dc | MercuryTechnologies/ghc-specter | Config.hs | module GHCSpecter.Config (
Config (..),
emptyConfig,
defaultGhcSpecterConfigFile,
loadConfig,
) where
import Data.Aeson (
FromJSON (..),
ToJSON (..),
camelTo2,
defaultOptions,
fieldLabelModifier,
genericParseJSON,
genericToJSON,
)
import Data.Bifunctor (first)
import Data.ByteString qualified as... | null | https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/131d113add17c66cb539237903370ce788e87a51/plugin/src/GHCSpecter/Config.hs | haskell | | default configuration | module GHCSpecter.Config (
Config (..),
emptyConfig,
defaultGhcSpecterConfigFile,
loadConfig,
) where
import Data.Aeson (
FromJSON (..),
ToJSON (..),
camelTo2,
defaultOptions,
fieldLabelModifier,
genericParseJSON,
genericToJSON,
)
import Data.Bifunctor (first)
import Data.ByteString qualified as... |
a0c423327395373df863305a37b26c559a747b47403efdd14fbb540ae5d40dc1 | NorfairKing/intray | Gen.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Intray.Data.Gen where
import qualified Data.Text as T
import Intray.Data
import Intray.Data.Gen.Import
import System.IO.Unsafe
instance GenValid ItemType where
genValid = genV... | null | https://raw.githubusercontent.com/NorfairKing/intray/3335692a5445e86bf308420d4ab025d6ab11b10d/intray-data-gen/src/Intray/Data/Gen.hs | haskell | Doesn't help anyway | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Intray.Data.Gen where
import qualified Data.Text as T
import Intray.Data
import Intray.Data.Gen.Import
import System.IO.Unsafe
instance GenValid ItemType where
genValid = genV... |
09d008ea886ff675cef1a9af27558052ec9d20bfd96e0cc972e8427d8e999c3c | ahf/peculium_core | peculium_core_script.erl | %%%
Copyright ( c ) 2013 .
%%% All rights reserved.
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the following conditions are met:
%%%
%%% * Redistributions of source code must retain the above copyright notice, this
%%% list of condition... | null | https://raw.githubusercontent.com/ahf/peculium_core/50259b7ee11ad31316e97c7e88b33cae3f89e5a1/src/peculium_core_script.erl | erlang |
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions... | Copyright ( c ) 2013 .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND
DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE
FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF S... |
6bcf93ef5a2b96b7eae84a32240fb797658d9db1f907f38bfc0fe44dd61a7f5f | antifuchs/autobench | setup-cmucl.lisp | setup file for cl - bench running in CMUCL
(load "defpackage")
(in-package :cl-bench)
(setq ext:*bytes-consed-between-gcs* 25000000)
;; to avoid problems when running the bignum code (the default of
40000 is too low for some of the tests )
(setq ext:*intexp-maximum-exponent* 100000)
#+(and mp experimental)
;;... | null | https://raw.githubusercontent.com/antifuchs/autobench/acc14ee2a8899cb630aa8dd02f3ffd7f5858ce28/cl-bench/sysdep/setup-cmucl.lisp | lisp | to avoid problems when running the bignum code (the default of
run BODY inside a new thread
#-mp
disable the byte compiler
enable as much internal checking as possible
adapted from code pulled from src/code/time.lisp
Calculate the overhead...
Now get the initial times.
(stall-mispredict (cpc::calculate-mispred... | setup file for cl - bench running in CMUCL
(load "defpackage")
(in-package :cl-bench)
(setq ext:*bytes-consed-between-gcs* 25000000)
40000 is too low for some of the tests )
(setq ext:*intexp-maximum-exponent* 100000)
#+(and mp experimental)
(defmacro with-spawned-thread (&body body)
`(mp:make-process (lamb... |
daf12652318fa5e1581c9709d99c1fdcd548e0bac9197a0e45ae71c210e892bf | kieranbrowne/clojure-tensorflow | project.clj | (defproject shallow-neural-network "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.8.0"]
[clojure-tensorflow "0.2.1"]])
| null | https://raw.githubusercontent.com/kieranbrowne/clojure-tensorflow/a1771cda9e108c8575da7addbe4fe55283c5149b/examples/shallow-neural-network/project.clj | clojure | (defproject shallow-neural-network "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.8.0"]
[clojure-tensorflow "0.2.1"]])
| |
20b093b2efadc3259706edb39516d08abfbe5dd54ea7f01e83abb799633128cc | dgtized/shimmers | lifecycle_of_shapes.cljs | (ns shimmers.sketches.lifecycle-of-shapes
(:require
[quil.core :as q :include-macros true]
[quil.middleware :as m]
[shimmers.common.framerate :as framerate]
[shimmers.common.quil :as cq]
[shimmers.math.deterministic-random :as dr]
[shimmers.math.geometry :as geometry]
[shimmers.math.geometry.tria... | null | https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/lifecycle_of_shapes.cljs | clojure | (ns shimmers.sketches.lifecycle-of-shapes
(:require
[quil.core :as q :include-macros true]
[quil.middleware :as m]
[shimmers.common.framerate :as framerate]
[shimmers.common.quil :as cq]
[shimmers.math.deterministic-random :as dr]
[shimmers.math.geometry :as geometry]
[shimmers.math.geometry.tria... | |
4f47611736f36c00a511c762c7e9166c65628716ea2061adf009073611ce4a08 | max-au/lambda | lambda_sup.erl | %% @doc
%% Lambda: top-level supervisor.
May start authority , if requested ,
%% and always starts a broker.
%% @end
-module(lambda_sup).
-compile(warn_missing_spec).
-author("").
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-include_lib("kernel/include/logger.hrl").
-spec start_lin... | null | https://raw.githubusercontent.com/max-au/lambda/53d9ab894156f5b15bbf1ad774449bb877588144/src/lambda_sup.erl | erlang | @doc
Lambda: top-level supervisor.
and always starts a broker.
@end
all children can restart independently
Lambda may run under a different supervision tree via included_applications
set to be the epmd_module
authority is not enabled by default, unless node name starts with `authority`
broker is enabled... | May start authority , if requested ,
-module(lambda_sup).
-compile(warn_missing_spec).
-author("").
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-include_lib("kernel/include/logger.hrl").
-spec start_link() -> {ok, pid()} | {error, {already_started, pid()}}.
start_link() ->
supervisor... |
9251440f3212672651b8fd0904c21d615831354bdf9d8e5a6dd8a9c4dbf5731d | haskell-tools/haskell-tools | AmbiguousFields.hs | # LANGUAGE DuplicateRecordFields #
module Decl.AmbiguousFields where
data A = A { x, y :: Int }
data B = B { x, y :: Int }
f :: A -> Int
f = x
| null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Decl/AmbiguousFields.hs | haskell | # LANGUAGE DuplicateRecordFields #
module Decl.AmbiguousFields where
data A = A { x, y :: Int }
data B = B { x, y :: Int }
f :: A -> Int
f = x
| |
85f9d2b518f2d93a106721d0d1c34d59ec6ad5a7f86b2b29afa8ab68b43d6188 | debug-ito/greskell | Client.hs | {-# LANGUAGE OverloadedStrings #-}
module ServerTest.Client
( main
, spec
) where
import Control.Concurrent (threadDelay)
import Control.Concurrent.Async (mapConcurrently, withAsync)
import Control.Exception.Safe (bracket)
import ... | null | https://raw.githubusercontent.com/debug-ito/greskell/ff21b8297a158cb4b5bafcbb85094cef462c5390/greskell-websocket/test/ServerTest/Client.hs | haskell | # LANGUAGE OverloadedStrings # | module ServerTest.Client
( main
, spec
) where
import Control.Concurrent (threadDelay)
import Control.Concurrent.Async (mapConcurrently, withAsync)
import Control.Exception.Safe (bracket)
import Control.Monad ... |
67b4a4a99fe0c573da8ae0f4286035843e23ccca973d52361781b19c99900b7b | Rober-t/apxr_run | exoself.erl | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright ( C ) 2009 by , DXNN Research Group ,
%%%
%%%
%%% The original release of this source code was introduced and explained
in a book ( available for purchase on Amazon ) by :
%%%
Handbook of Neuroevolution Thro... | null | https://raw.githubusercontent.com/Rober-t/apxr_run/9c62ab028af7ff3768ffe3f27b8eef1799540f05/src/agent_mgr/exoself.erl | erlang |
The original release of this source code was introduced and explained
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 KI... | Copyright ( C ) 2009 by , DXNN Research Group ,
in a book ( available for purchase on Amazon ) by :
Handbook of Neuroevolution Through Erlang . Springer 2012 ,
print ISBN : 978 - 1 - 4614 - 4462 - 6 ebook ISBN : 978 - 1 - 4614 - 4463 - 6 .
Licensed under the Apache License , Version 2.0 ( th... |
c06cbe591045b48c55aa38a93cc3fab8fd2ccc93310e3a313e375cd6f1d9eab3 | zenhack/mule | desugar.ml | open Common_ast
module SP = Surface_ast.Pattern
module SC = Surface_ast
module S = Surface_ast.Expr
module ST = Surface_ast.Type
module D = Desugared_ast.Expr
module Ast = Common_ast
module C = Common_ast.Const
module DT = Desugared_ast.Type
module DK = Desugared_ast.Kind
module DC = Desugared_ast_common
let incomplet... | null | https://raw.githubusercontent.com/zenhack/mule/f3e23342906d834abb9659c72a67c1405c936a00/src/mule/lib/desugar.ml | ocaml | TODO: manage cycles vs. singles differently.
[substitute_type_apps f params ty] replaces occurances of [f] applied to
* the list of parameters in [ty] with just [f].
If the argument would bound a variable inside it, return [Some var], otherwise [None].
Return whether one of the variables in [vars] would be shad... | open Common_ast
module SP = Surface_ast.Pattern
module SC = Surface_ast
module S = Surface_ast.Expr
module ST = Surface_ast.Type
module D = Desugared_ast.Expr
module Ast = Common_ast
module C = Common_ast.Const
module DT = Desugared_ast.Type
module DK = Desugared_ast.Kind
module DC = Desugared_ast_common
let incomplet... |
7a8fea8ea5bea47e07cf5c7c845f122e850b7a61fb2ab30f8fbb9f7fe140c67e | jobjo/popper | table.mli | type alignment
type cell
type t
val left : alignment
val center : alignment
val right : alignment
val cell : (Format.formatter -> unit -> unit) -> cell
val of_list : columns:alignment list -> cell list list -> t
val pp : Format.formatter -> t -> unit
| null | https://raw.githubusercontent.com/jobjo/popper/33da372946d1d842f75994e086fa81c8cf62986e/src/lib/table.mli | ocaml | type alignment
type cell
type t
val left : alignment
val center : alignment
val right : alignment
val cell : (Format.formatter -> unit -> unit) -> cell
val of_list : columns:alignment list -> cell list list -> t
val pp : Format.formatter -> t -> unit
| |
ebcc820c614cd38d972e485c6191fbe2d0ed041ff1b0413af93ce9b7a711cba2 | roburio/ocaml-openpgp | openpgp.ml | open Rresult
open Types
type packet_type =
| Signature_type of Signature_packet.t
| Public_key_packet of Public_key_packet.t
| Public_key_subpacket of Public_key_packet.t
| Uid_packet of Uid_packet.t
| Secret_key_packet of Public_key_packet.private_key
| Secret_key_subpacket of Public_key_packet.private_ke... | null | https://raw.githubusercontent.com/roburio/ocaml-openpgp/55459ad98a69f80789c79219c6d3be19ef6ef521/lib/openpgp.ml | ocaml | if input was empty, return empty output
<-- end of headers
END / footer:
see #section-6.2
maximum line length
check that we know how to handle this type of ascii-armored message:
plus optionally revocation signatures:
TODO we ignore revocations here since a revoked key should never
be constructed?
... | open Rresult
open Types
type packet_type =
| Signature_type of Signature_packet.t
| Public_key_packet of Public_key_packet.t
| Public_key_subpacket of Public_key_packet.t
| Uid_packet of Uid_packet.t
| Secret_key_packet of Public_key_packet.private_key
| Secret_key_subpacket of Public_key_packet.private_ke... |
8efe11dd8e7778dbae3bbae464559724f6bd3af4a0f1a3f4dd03bc93d7f0e3a5 | naproche/naproche | Process_Result.hs | {- generated by Isabelle -}
Title : Isabelle / Process_Result.hs
Author : Makarius
LICENSE : BSD 3 - clause ( Isabelle )
Result of system process .
See " $ ISABELLE_HOME / src / Pure / System / process_result . ML "
and " $ ISABELLE_HOME / src / Pure / System / process_result.scal... | null | https://raw.githubusercontent.com/naproche/naproche/65794a8c7e98a348128a4a7f4f41c534b433d3cf/Isabelle/src/Isabelle/Process_Result.hs | haskell | generated by Isabelle
# LANGUAGE OverloadedStrings # |
Title : Isabelle / Process_Result.hs
Author : Makarius
LICENSE : BSD 3 - clause ( Isabelle )
Result of system process .
See " $ ISABELLE_HOME / src / Pure / System / process_result . ML "
and " $ ISABELLE_HOME / src / Pure / System / process_result.scala "
Author: Makari... |
527721a7f6869c41cc0962716ad547b58c1fe1b4e8631254dd6a722e46435ce7 | haskell/ghcup-hs | Run.hs | # LANGUAGE CPP #
{-# LANGUAGE QuasiQuotes #-}
# LANGUAGE TypeApplications #
# LANGUAGE DataKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE FlexibleContexts #
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
module GHCup.OptParse.Run where
import G... | null | https://raw.githubusercontent.com/haskell/ghcup-hs/74edf1fc0790e216a27a5e274d36317bbcccfbb3/app/ghcup/GHCup/OptParse/Run.hs | haskell | # LANGUAGE QuasiQuotes #
# LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
-------------
[ Options ]--
-------------
-------------
-------------
------------
[ Footer ]--
------------
cabal latest --hls latest --stack latest --install -- code Setup.hs
cabal 3.2.0.0 --bi... | # LANGUAGE CPP #
# LANGUAGE TypeApplications #
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module GHCup.OptParse.Run where
import GHCup
import GHCup.Utils
import GHCup.OptParse.Common
import GHCup.Errors
import GHCup.Types
import ... |
8aefae1bd4c05a04c4ca36294ec22d804dd437fa72280548873bb1700c4a3d63 | nilenso/wscljs | project.clj | (defproject nilenso/wscljs "0.2.0"
:description "A thin and lightweight websocket client for ClojureScript."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.... | null | https://raw.githubusercontent.com/nilenso/wscljs/38a6d1bcea7297a46ebafdd3670f296f288f4608/project.clj | clojure | (defproject nilenso/wscljs "0.2.0"
:description "A thin and lightweight websocket client for ClojureScript."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.... | |
e40f0604c6800606b283df7afb4c5ccd3b983c68bb5d476567ac2af11fc79e9e | fpco/ide-backend | PortableFiles.hs | # LANGUAGE CPP #
module IdeSession.Util.PortableFiles (
setFileTimes
, getFileStatus
, modificationTime
, toExecutable
, moduleNameToExeName
) where
import System.PosixCompat.Types
import System.PosixCompat.Files hiding (setFileTimes)
#ifdef VERSION_unix
import qualified System.Posix.Files as Posix
#else... | null | https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend-common/IdeSession/Util/PortableFiles.hs | haskell | Converts a module name to and executable file name
Converts a name of an a executable to the corresponding file name
handle empty paths
required for directories | # LANGUAGE CPP #
module IdeSession.Util.PortableFiles (
setFileTimes
, getFileStatus
, modificationTime
, toExecutable
, moduleNameToExeName
) where
import System.PosixCompat.Types
import System.PosixCompat.Files hiding (setFileTimes)
#ifdef VERSION_unix
import qualified System.Posix.Files as Posix
#else... |
fa86b2e8b7a0769d4c72d593f7aa028840076f46e77f94814b0fc3eb82406cfc | startalkIM/ejabberd | ejabberd_auth.erl | %%%----------------------------------------------------------------------
%%% File : ejabberd_auth.erl
Author : < >
%%% Purpose : Authentification
Created : 23 Nov 2002 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne
%%%
%%% This program is free software; you can redistribute it and... | null | https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/ejabberd_auth.erl | erlang | ----------------------------------------------------------------------
File : ejabberd_auth.erl
Purpose : Authentification
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,
but WITHOU... | Author : < >
Created : 23 Nov 2002 by < >
ejabberd , Copyright ( C ) 2002 - 2016 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 along
... |
aa361dbcff359d3435efd88613a0711b0f6831f4c9cb5b57fc5b82bd84867485 | dhess/sicp-solutions | ex2.11.scm | (define (make-interval a b) (cons a b))
(define (lower-bound i) (car i))
(define (upper-bound i) (cdr i))
(define (mul-interval x y)
(let ((x1 (lower-bound x))
(x2 (upper-bound x))
(y1 (lower-bound y))
(y2 (upper-bound y))
(x1-neg (> 0 (lower-bound x)))
(x1-pos (<= 0 (lower-... | null | https://raw.githubusercontent.com/dhess/sicp-solutions/2cf78db98917e9cb1252efda76fddc8e45fe4140/chap2/ex2.11.scm | scheme | (define (make-interval a b) (cons a b))
(define (lower-bound i) (car i))
(define (upper-bound i) (cdr i))
(define (mul-interval x y)
(let ((x1 (lower-bound x))
(x2 (upper-bound x))
(y1 (lower-bound y))
(y2 (upper-bound y))
(x1-neg (> 0 (lower-bound x)))
(x1-pos (<= 0 (lower-... | |
9daed05f361b9c2c36ad5d00adccfacb68e55a3ad7dff96b076e58a8a18d0d9f | mpickering/apply-refact | Lambda41.hs | baz = bar (\x -> (x +)) | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Lambda41.hs | haskell | baz = bar (\x -> (x +)) | |
7dfdc46e790729cf7f55e9b8dbdcd2e373b5431b356d38a23547ecebadf92012 | freizl/har | Page.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module HAR.Page
(
Page(..)
) where
import Data.Aeson.TH
import Data.Text (Text)
import HAR.PageTimings
data Page = Page { startedDateTime :: Text
, id :: Text
... | null | https://raw.githubusercontent.com/freizl/har/a913690972ac27666d31427e7c607ad088c289f0/src/HAR/Page.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module HAR.Page
(
Page(..)
) where
import Data.Aeson.TH
import Data.Text (Text)
import HAR.PageTimings
data Page = Page { startedDateTime :: Text
, id :: Text
, title ::... |
80b2f35aa87d44bb835224a53ecb598545eb7acbdee2c8fafaf7da61d4c147a8 | shayne-fletcher/zen | avl.ml | * Author : ( R&D )
* Date : August 9 , 2016
* AVL tree implementation of a dictionary / association table
* Date: August 9, 2016
* AVL tree implementation of a dictionary/association table *)
(** Our type definition: key * val * left subtree * right subtree * height **)
type ('a, 'b) t = Empty | Node ... | null | https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/labs/lab_028/avl.ml | ocaml | * Our type definition: key * val * left subtree * right subtree * height *
** HELPER FUNCTIONS **
function composition operator
Misc tree stuff
* ROTATIONS *
DRIVER FOR ROTATION FUNCTIONS
Left rot
Right rot
Left-Right rot
'PRINT' HELPERS
'REMOVE' HELPERS
** END HELPERS **
** DEFINITION OF INTERFACE VALU... | * Author : ( R&D )
* Date : August 9 , 2016
* AVL tree implementation of a dictionary / association table
* Date: August 9, 2016
* AVL tree implementation of a dictionary/association table *)
type ('a, 'b) t = Empty | Node of 'a * 'b * ('a, 'b) t * ('a, 'b) t * int
let (<.>) f g = fun x -> f @@ g x
... |
e2280441d67014ef7afea8eb4da8fd78b6e546a27b9851f1300840d7b59e0896 | arttuka/reagent-material-ui | spatial_tracking_rounded.cljs | (ns reagent-mui.icons.spatial-tracking-rounded
"Imports @mui/icons-material/SpatialTrackingRounded as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def spatial-t... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/spatial_tracking_rounded.cljs | clojure | (ns reagent-mui.icons.spatial-tracking-rounded
"Imports @mui/icons-material/SpatialTrackingRounded as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def spatial-t... | |
3fd62d8a1f8c009d5e377f8041f813ec2b6fd97b30f937f634ff60ee10c2017d | input-output-hk/cardano-wallet | Api.hs | # LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilie... | null | https://raw.githubusercontent.com/input-output-hk/cardano-wallet/41deda8a7e31f8e054dc149473461613492fbc7a/lib/wallet/api/http/Cardano/Wallet/Api.hs | haskell | # LANGUAGE ConstraintKinds #
* API
* Type Families
* Settings
* Miscellaneous
* Shared Wallets
* Api Layer
| The full cardano-wallet API.
------------------------------------------------------------------------------
Wallets
See also: -output-hk.github.io/cardano-wallet/api/#... | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
... |
5d0ff59458d168ac927c0935c45e7c6b06ea68fbbb07cdecfa864c3fd6f69c3b | msakai/toysolver | GroebnerBasis.hs | {-# OPTIONS_HADDOCK show-extensions #-}
# LANGUAGE ScopedTypeVariables #
-----------------------------------------------------------------------------
-- |
-- Module : ToySolver.Data.Polynomial.GroebnerBasis
Copyright : ( c ) 2012 - 2013
-- License : BSD-style
--
-- Maintainer :
-- Stability : ... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Data/Polynomial/GroebnerBasis.hs | haskell | # OPTIONS_HADDOCK show-extensions #
---------------------------------------------------------------------------
|
Module : ToySolver.Data.Polynomial.GroebnerBasis
License : BSD-style
Maintainer :
Stability : provisional
Portability : non-portable
Gröbner basis
References:
* グレブナー基底 <>
... | # LANGUAGE ScopedTypeVariables #
Copyright : ( c ) 2012 - 2013
* Monomial order < >
* basis < >
* Gröbner Bases and Buchberger ’s Algorithm < /~cbruun/vigre/vigreHW6.pdf >
module ToySolver.Data.Polynomial.GroebnerBasis
(
Options (..)
, Strategy (..)
* basis computation
, basis
, basis... |
bcef0667ed9f6bf68cc3771e7252fe8b4252e7926c95af1cadfaacf9c1041e13 | ds-wizard/engine-backend | AppLimit.hs | module Wizard.Database.Mapping.Limit.AppLimit where
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.FromRow
import Database.PostgreSQL.Simple.ToField
import Database.PostgreSQL.Simple.ToRow
import Wizard.Model.Limit.AppLimit
instance FromRow AppLimit where
fromRow = do
uuid <- field
use... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Database/Mapping/Limit/AppLimit.hs | haskell | module Wizard.Database.Mapping.Limit.AppLimit where
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.FromRow
import Database.PostgreSQL.Simple.ToField
import Database.PostgreSQL.Simple.ToRow
import Wizard.Model.Limit.AppLimit
instance FromRow AppLimit where
fromRow = do
uuid <- field
use... | |
c124a95a05d57904043f70b4e375de984ebdd828a2887fab35401df8eb2e5302 | yallop/ocaml-ctypes | driver.ml |
* Copyright ( c ) 2014 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* Stub generation driver for... | null | https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-unions/stub-generator/driver.ml | ocaml | Stub generation driver for the union tests. |
* Copyright ( c ) 2014 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
let () = Tests_common.run Sy... |
a347a5e97778a29760f696c83d5f10a64813ede7bd74b200532efae81c9073df | EFanZh/EOPL-Exercises | exercise-1.22-test.rkt | #lang racket/base
(require rackunit)
(require "../solutions/exercise-1.22.rkt")
(check-equal? (filter-in number? '(a 2 (1 3) b 7)) '(2 7))
(check-equal? (filter-in symbol? '(a (b c) 17 foo)) '(a foo))
| null | https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-1.22-test.rkt | racket | #lang racket/base
(require rackunit)
(require "../solutions/exercise-1.22.rkt")
(check-equal? (filter-in number? '(a 2 (1 3) b 7)) '(2 7))
(check-equal? (filter-in symbol? '(a (b c) 17 foo)) '(a foo))
| |
1589ed7dcea25c0d82c7a0bd369572d1d6360cad6b71e77bf266a7eb914d7383 | geremih/xcljb | xevie_types.clj | This file is automatically generated . DO NOT MODIFY .
(clojure.core/ns
xcljb.gen.xevie-types
(:require [xcljb gen-common] [xcljb.gen xproto-types]))
(def Event (xcljb.gen-common/->Struct [(xcljb.gen-common/->Pad 32)]))
(def
QueryVersionRequest
(xcljb.gen-common/->Request
"XEVIE"
0
[(xcljb.gen-common/->F... | null | https://raw.githubusercontent.com/geremih/xcljb/59e9ff795bf00595a3d46231a7bb4ec976852396/src/xcljb/gen/xevie_types.clj | clojure | Manually written. | This file is automatically generated . DO NOT MODIFY .
(clojure.core/ns
xcljb.gen.xevie-types
(:require [xcljb gen-common] [xcljb.gen xproto-types]))
(def Event (xcljb.gen-common/->Struct [(xcljb.gen-common/->Pad 32)]))
(def
QueryVersionRequest
(xcljb.gen-common/->Request
"XEVIE"
0
[(xcljb.gen-common/->F... |
b24f0a3782d8d140fdbaa6a15b50f2f35c7e3f2356a68294a244ccc2c0d67f5b | clojure-interop/aws-api | AmazonKinesisVideoArchivedMediaAsync.clj | (ns com.amazonaws.services.kinesisvideo.AmazonKinesisVideoArchivedMediaAsync
"Interface for accessing Kinesis Video Archived Media asynchronously. Each asynchronous method will return a Java
overloads which accept an AsyncHandler can be used to
receive notification when an asynchronous operation completes.
Not... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.kinesisvideo/src/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoArchivedMediaAsync.clj | clojure | (ns com.amazonaws.services.kinesisvideo.AmazonKinesisVideoArchivedMediaAsync
"Interface for accessing Kinesis Video Archived Media asynchronously. Each asynchronous method will return a Java
overloads which accept an AsyncHandler can be used to
receive notification when an asynchronous operation completes.
Not... | |
41e7f3b4dbccf183b765746030cdea55e3cd285bd2dcfd45ae42f4bf1d71c6df | seadynamic8/ocaml-modern-docs | decoder.ml | type name = string
type info = string option
type type_type = string
type type_extra = string option
type type_table = string option
type func_annotation = string
type exec_parameter = string option
type element_type
= Typepoly of name * type_type * info
| Type of name * type_extra * ty... | null | https://raw.githubusercontent.com/seadynamic8/ocaml-modern-docs/134fd4ad54c6d0ca37348b629218bff7364a1ba0/src/decoder.ml | ocaml | type name = string
type info = string option
type type_type = string
type type_extra = string option
type type_table = string option
type func_annotation = string
type exec_parameter = string option
type element_type
= Typepoly of name * type_type * info
| Type of name * type_extra * ty... | |
950bcee910aa25f8810a98ff52591f4fa75caf6113f6e6202908a63311868345 | CIFASIS/QuickFuzz | MutTest.hs | # LANGUAGE ViewPatterns #
module Run.MutTest (runMutTest) where
import Prelude hiding (writeFile)
import Data.ByteString.Lazy hiding (putStrLn)
import Data.List hiding (length)
import Data.Maybe
import GHC.Int
import Control.Monad
import Control.DeepSeq
import System.Directory
import Test.QuickFuzz.Gen.FormatInfo
... | null | https://raw.githubusercontent.com/CIFASIS/QuickFuzz/a1c69f028b0960c002cb83e8145f039ecc0e0a23/app/Run/MutTest.hs | haskell | |Return a lazy list of steps to execute
Run test subcommand
Generation-execution-report loop
Generate a value and encode it in a bytestring.
This fully evaluates the generated value, and retry
the generation if the value cant be encoded.
Mutate some value.
Report and move failed test cases.
Shrink if necessary... | # LANGUAGE ViewPatterns #
module Run.MutTest (runMutTest) where
import Prelude hiding (writeFile)
import Data.ByteString.Lazy hiding (putStrLn)
import Data.List hiding (length)
import Data.Maybe
import GHC.Int
import Control.Monad
import Control.DeepSeq
import System.Directory
import Test.QuickFuzz.Gen.FormatInfo
... |
c89df1bed1d7a661ff1cb0726b304f7068e0d811fc73dea2b39bc1a723f0645b | nikita-volkov/graph-db | DIOVector.hs | module GraphDB.Util.DIOVector where
import GraphDB.Util.Prelude
import qualified Data.Vector.Mutable as IOVector
-- | Dynamic mutable vector in 'IO'.
newtype DIOVector a = DIOVector (IORef (IOVector.IOVector a, Int))
new :: IO (DIOVector a)
new = newSized (2^8)
newSized :: Int -> IO (DIOVector a)
newSized size = do... | null | https://raw.githubusercontent.com/nikita-volkov/graph-db/3e886f6b298d2b2b09eb94c2818a7b648f42cb0a/library/GraphDB/Util/DIOVector.hs | haskell | | Dynamic mutable vector in 'IO'.
| Append an item and return its index. | module GraphDB.Util.DIOVector where
import GraphDB.Util.Prelude
import qualified Data.Vector.Mutable as IOVector
newtype DIOVector a = DIOVector (IORef (IOVector.IOVector a, Int))
new :: IO (DIOVector a)
new = newSized (2^8)
newSized :: Int -> IO (DIOVector a)
newSized size = do
vector <- IOVector.new size
ref ... |
838ff6a19648235f5b263ce84cf2a0927123a642842073181c89499572d38361 | apache/couchdb-ioq | ioq_osq.erl | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an " A... | null | https://raw.githubusercontent.com/apache/couchdb-ioq/4843f3709b4be997cf8424c44f856523fd31b7d1/src/ioq_osq.erl | erlang | 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
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations... | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
-module(ioq_osq).
-behaviour(gen_server).
-vsn(1).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
code_change/3]).
-export(... |
b971ebcb3573e904a0337e5dc53195ab46cfcd5cd5ec996c59f77d867807749e | caiorulli/vega | consumer.clj | (ns caiorulli.vega.consumer
(:require [caiorulli.vega.commands :as commands]
[caiorulli.vega.interceptors :as interceptors]
[clojure.core.async :refer [<! go-loop]]
[integrant.core :as ig]
[morse.handlers :refer [handlers command-fn message-fn]]
[taoensso.ti... | null | https://raw.githubusercontent.com/caiorulli/vega/09a8c73e74c69a36b9b1469af330e4133311541b/src/caiorulli/vega/consumer.clj | clojure | (ns caiorulli.vega.consumer
(:require [caiorulli.vega.commands :as commands]
[caiorulli.vega.interceptors :as interceptors]
[clojure.core.async :refer [<! go-loop]]
[integrant.core :as ig]
[morse.handlers :refer [handlers command-fn message-fn]]
[taoensso.ti... | |
b4c6ba654870a6424f2740423025d42f53ce9d2e3deb8db58001edc64b26a975 | footprintanalytics/footprint-web | desugar_test.clj | (ns metabase.query-processor.middleware.desugar-test
(:require [clojure.test :refer :all]
[metabase.query-processor.middleware.desugar :as desugar]))
;; actual desugaring logic and tests are in [[metabase.mbql.util-test]]
(deftest ^:parallel e2e-test
(is (= {:database 1
:type :query
... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor/middleware/desugar_test.clj | clojure | actual desugaring logic and tests are in [[metabase.mbql.util-test]] | (ns metabase.query-processor.middleware.desugar-test
(:require [clojure.test :refer :all]
[metabase.query-processor.middleware.desugar :as desugar]))
(deftest ^:parallel e2e-test
(is (= {:database 1
:type :query
:query {:source-table 1
:filter [:and... |
3dfc0840483cfa9388e033af2abbf9d35b09f64f867a14d4817da21c6107b5d3 | roburio/http-lwt-client | http_lwt_unix.mli | ----------------------------------------------------------------------------
Copyright ( c ) 2018 Inhabited Type LLC .
Copyright ( c ) 2018
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following... | null | https://raw.githubusercontent.com/roburio/http-lwt-client/ae831070cfe8066cacdfae3f8fd1bda992225529/src/http_lwt_unix.mli | ocaml | ----------------------------------------------------------------------------
Copyright ( c ) 2018 Inhabited Type LLC .
Copyright ( c ) 2018
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following... | |
8e4ec19cf27b972f20f07d9531823513083ab0017f9d5ded8e883665fb3723dc | onyx-platform/onyx | heartbeat_decoder.clj | (ns ^{:no-doc true} onyx.messaging.serializers.heartbeat-decoder
(:require [onyx.messaging.serializers.helpers :refer [byte->type]])
(:import [org.agrona.concurrent UnsafeBuffer]))
(defprotocol PDecoder
(get-epoch [this])
(get-src-peer-id [this])
(get-dst-peer-id [this])
(get-session-id [this])
(get-opts... | null | https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/src/onyx/messaging/serializers/heartbeat_decoder.clj | clojure | (ns ^{:no-doc true} onyx.messaging.serializers.heartbeat-decoder
(:require [onyx.messaging.serializers.helpers :refer [byte->type]])
(:import [org.agrona.concurrent UnsafeBuffer]))
(defprotocol PDecoder
(get-epoch [this])
(get-src-peer-id [this])
(get-dst-peer-id [this])
(get-session-id [this])
(get-opts... | |
4104e756e5e3c4351c208c46a05eebf244f91f1ef89229cfe65b8eac2b57f91b | balsoft/lambda-launcher | Emacs.hs | {-# LANGUAGE OverloadedStrings #-}
module LambdaLauncher.Plugins.Emacs where
import Control.Monad (void)
import System.Directory (listDirectory)
import System.Environment (getEnv)
import System.Process (spawnCommand)
import LambdaLauncher.Types
import Data.Text (Text)
import qualified Data.Text as T
projectsDir ::... | null | https://raw.githubusercontent.com/balsoft/lambda-launcher/0f04c9d41a8ae64e7b28c68b7315a6c6e55765a8/src/LambdaLauncher/Plugins/Emacs.hs | haskell | # LANGUAGE OverloadedStrings # |
module LambdaLauncher.Plugins.Emacs where
import Control.Monad (void)
import System.Directory (listDirectory)
import System.Environment (getEnv)
import System.Process (spawnCommand)
import LambdaLauncher.Types
import Data.Text (Text)
import qualified Data.Text as T
projectsDir :: IO FilePath
projectsDir = (++ "/pr... |
5bdc5f2b1e241ede9c991a8c0e0a52ef0f868f339ea7427acb42aba4200017a1 | Airini/FEECa | Print.hs | # LANGUAGE ScopedTypeVariables #
module FEECa.Utility.Print (
Pretty (..), Doc
, printDouble, printComponent, printVector, printVectorRow
, printBernstein, printPolynomial, printPolynomial0, printForm
, lambda, dlambda, (<>), (<+>), (P.$$), (P.$+$), text, rn, int
) where
import Prelude ... | null | https://raw.githubusercontent.com/Airini/FEECa/3ffae7177fca159d965b70e3763a20ab84cd8a8b/src/FEECa/Utility/Print.hs | haskell | Some symbols
| Pretty class prototype.
#else
(==) = (==) `on` render
#endif
| Pretty printing for lists of Pretty instances.
| Instance for 'Double'
| Print Double with precision p and padded to
| width w and precision.
TODO: p is precision for float?
| Print vector using precision p for the components
| ... | # LANGUAGE ScopedTypeVariables #
module FEECa.Utility.Print (
Pretty (..), Doc
, printDouble, printComponent, printVector, printVectorRow
, printBernstein, printPolynomial, printPolynomial0, printForm
, lambda, dlambda, (<>), (<+>), (P.$$), (P.$+$), text, rn, int
) where
import Prelude ... |
9f050ad96657f13aeb86030959a7fcefb326e539fa11908f819acda99536bc14 | ygmpkk/house | Ptr.hs | module Ptr (module Foreign.Ptr) where
import Foreign.Ptr
| null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/haskell98/Ptr.hs | haskell | module Ptr (module Foreign.Ptr) where
import Foreign.Ptr
| |
a2ee30b09c6c820e8089d1093f3907712c3798e9d5ff50547b25955f7fe404f3 | jellelicht/guix | rush.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2013 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU 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 Lice... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/rush.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2013 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages rush)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (g... |
1d36331a82f3378fc4dfe18d94181d1f8ebcaad1090a7ca141f81306fe778745 | alexandroid000/improv | DepFinder.hs | # LANGUAGE CPP #
-- Use a package's manifest.xml file to find paths to the packages on
-- which this package is dependent.
module Ros.Internal.DepFinder (findPackageDeps, findPackageDepNames,
findPackageDepsTrans,
findMessages, findMessage, findMessagesInPkg... | null | https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/src/Ros/Internal/DepFinder.hs | haskell | Use a package's manifest.xml file to find paths to the packages on
which this package is dependent.
Find the path to a package based on the given search paths.
Get the packages listed as dependencies in an XML manifest. NOTE:
In version 1.3.7, the "xml" package gained the ability to work with
performance is caus... | # LANGUAGE CPP #
module Ros.Internal.DepFinder (findPackageDeps, findPackageDepNames,
findPackageDepsTrans,
findMessages, findMessage, findMessagesInPkg,
findDepsWithMessages, hasMsgsOrSrvs,
findS... |
e9539921da19609f9a1b5429fe4524659206e62895bc2aedf19fbcad51571e6d | antifuchs/sbcl | file.lisp | ;;; -*- lisp -*-
;;;
;;; **********************************************************************
This code was written by and has been placed in the public
;;; domain.
;;;
Sbcl port by .
(in-package "SB-SIMPLE-STREAMS")
;;;
;;; **********************************************************************
;;;
;;; Def... | null | https://raw.githubusercontent.com/antifuchs/sbcl/789bf105edca031aff991ad16a5fd207812336a0/contrib/sb-simple-streams/file.lisp | lisp | -*- lisp -*-
**********************************************************************
domain.
**********************************************************************
Definition of File-Simple-Stream and relations
get namestring, etc., from handle, if possible
(i.e., if it's a stream)
set up buffers
"The d... | This code was written by and has been placed in the public
Sbcl port by .
(in-package "SB-SIMPLE-STREAMS")
(def-stream-class file-simple-stream (single-channel-simple-stream file-stream)
((pathname :initform nil :initarg :pathname)
(filename :initform nil :initarg :filename)
(original :initform nil ... |
0b99a7a4046c9ef5641c8dd13fd9876f854408c6d3aa09950092668d705dad7c | ucsd-progsys/nate | mytext.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/examples_camltk/mytext.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
15ffc93acaae351605a0fac9ce3c1d0496c95b571e33c24491067ea587ea7e6e | marick/fp-oo | ts_higher_order_functions.clj | (ns solutions.ts-higher-order-functions
(:use midje.sweet))
(load-file "sources/class-object.clj")
(load-file "solutions/class-object.clj")
(load-file "solutions/pieces/higher-order-functions-1.clj")
1
(fact
variant1 => [3 4 5]
variant2 => [3 4 5])
2
(fact (separate odd? [1 2 3 4 5]) => [ [1 3 5] [2 4]... | null | https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/test/solutions/ts_higher_order_functions.clj | clojure | (ns solutions.ts-higher-order-functions
(:use midje.sweet))
(load-file "sources/class-object.clj")
(load-file "solutions/class-object.clj")
(load-file "solutions/pieces/higher-order-functions-1.clj")
1
(fact
variant1 => [3 4 5]
variant2 => [3 4 5])
2
(fact (separate odd? [1 2 3 4 5]) => [ [1 3 5] [2 4]... | |
b169e2e30ee9b714a0e90fd3d7f56d6eef7503bd935647bd013d4901ee3964b1 | dhammikamare/Learn-OCaml | replace.ml | let replace l x y =
List.map (fun e -> if e=x then y else e) l ;;
(* test *)
let l1 = [1; 2; 3];;
replace l1 3 4 ;;
| null | https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab09%20List%20Operations/replace.ml | ocaml | test | let replace l x y =
List.map (fun e -> if e=x then y else e) l ;;
let l1 = [1; 2; 3];;
replace l1 3 4 ;;
|
caea33efe67105fe0adf520d4d5d4c32d4001b97c913beca073a5deca4cdaa1f | sebsheep/elm2node | Reporting.hs | # LANGUAGE BangPatterns , OverloadedStrings #
module Reporting
( Style
, silent
, json
, terminal
--
, attempt
, attemptWithStyle
--
, Key
, report
, ignorer
, ask
--
, DKey
, DMsg(..)
, trackDetails
--
, BKey
, BMsg(..)
, trackBuild
--
, reportGenerate
)
where
import C... | null | https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/builder/src/Reporting.hs | haskell |
STYLE
ATTEMPT
KEY
DETAILS
BUILD
GENERATE
REPORT EXCEPTIONS NICELY | # LANGUAGE BangPatterns , OverloadedStrings #
module Reporting
( Style
, silent
, json
, terminal
, attempt
, attemptWithStyle
, Key
, report
, ignorer
, ask
, DKey
, DMsg(..)
, trackDetails
, BKey
, BMsg(..)
, trackBuild
, reportGenerate
)
where
import Control.Concurrent
import ... |
eccdb93b9469b2af81f2322f79b604c4973389706c9980133b6b2643527af97a | GaloisInc/macaw | Flexdis.hs |
Copyright : ( c ) Galois , Inc 2017
Maintainer : < >
This provides a facility for disassembling x86 instructions from a
Macaw memory object .
Copyright : (c) Galois, Inc 2017
Maintainer : Joe Hendrix <>
This provides a facility for disassembling x86 instructions from a
Macaw m... | null | https://raw.githubusercontent.com/GaloisInc/macaw/9d2e1d4b9f163c8947a284c2031000c54a3a9330/x86/src/Data/Macaw/X86/Flexdis.hs | haskell | ----------------------------------------------------------------------
| A stream of memory
^ Initial memory contents. Used for error messages.
^ Offset of msState
^ The next bytes to read.
----------------------------------------------------------------------
MemoryByteReader
| Descriptor of which function enco... |
Copyright : ( c ) Galois , Inc 2017
Maintainer : < >
This provides a facility for disassembling x86 instructions from a
Macaw memory object .
Copyright : (c) Galois, Inc 2017
Maintainer : Joe Hendrix <>
This provides a facility for disassembling x86 instructions from a
Macaw m... |
e46febd5c72d179efd5b27b7a59c3cad38c74b9fd532a5b5d4a5bd0dc14493db | hoelzl/Clicc | sym.lisp | ;;;-----------------------------------------------------------------------------
Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany
;;;-----------------------------------------------------------------------------
Projekt : APPLY - A Practicable And Portable Lisp Implementation
;;; ... | null | https://raw.githubusercontent.com/hoelzl/Clicc/cea01db35301144967dc74fd2f96dd58aa52d6ea/src/runtime/lisp/sym.lisp | lisp | -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
------------------------------------------------------
- GET, SET-GET
- REMPROP
- GET-PROPERTIES
- COPY-... | Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany
Projekt : APPLY - A Practicable And Portable Lisp Implementation
Funktion : Laufzeitsystem
- GETF , SETF
$ Revision : 1.8 $
$ Log : sym.lisp , v $
make - symbol aufgrund erneuter Änderung der Symbolrepäsentation
ver... |
e5122e509d1616fd73ae0562d12bd069be8af5de753bcc55980f473a81755ef8 | cryptosense/pkcs11 | pkcs11_CK_USER_TYPE.ml | type t = P11_ulong.t
let view_error n = Pkcs11_log.log @@ Printf.sprintf "Unknown CKU code: 0x%Lx" n
let typ = Ctypes.ulong
let _CKU_SO = Unsigned.ULong.of_string (Int64.to_string 0L)
let _CKU_USER = Unsigned.ULong.of_string (Int64.to_string 1L)
let _CKU_CONTEXT_SPECIFIC = Unsigned.ULong.of_string (Int64.to_string... | null | https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/driver/pkcs11_CK_USER_TYPE.ml | ocaml | type t = P11_ulong.t
let view_error n = Pkcs11_log.log @@ Printf.sprintf "Unknown CKU code: 0x%Lx" n
let typ = Ctypes.ulong
let _CKU_SO = Unsigned.ULong.of_string (Int64.to_string 0L)
let _CKU_USER = Unsigned.ULong.of_string (Int64.to_string 1L)
let _CKU_CONTEXT_SPECIFIC = Unsigned.ULong.of_string (Int64.to_string... | |
1afd4f4f3408037214b520598b954d93a97328286e53a924f49ae8872795ec83 | discus-lang/salt | Initialize.hs |
module Salt.LSP.Protocol.Initialize where
import Salt.LSP.Protocol.Base
import qualified Data.List as List
-- | Request from the client to initialize the server.
data InitializeParams
= InitializeParams
{ ipProcessId :: Maybe Integer
, ipRootUri :: M... | null | https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/LSP/Protocol/Initialize.hs | haskell | | Request from the client to initialize the server. |
module Salt.LSP.Protocol.Initialize where
import Salt.LSP.Protocol.Base
import qualified Data.List as List
data InitializeParams
= InitializeParams
{ ipProcessId :: Maybe Integer
, ipRootUri :: Maybe String
, ipInitializationOptions :: ... |
9a3632a97d069eb64caa515debf67ef7b11c6de715b7cba3ebf0d2e51c43f75b | grin-compiler/ghc-wpc-sample-programs | PatternSynonyms.hs |
-- | Pattern synonym utilities: folding pattern synonym definitions for
-- printing and merging pattern synonym definitions to handle overloaded
-- pattern synonyms.
module Agda.Syntax.Abstract.PatternSynonyms
( matchPatternSyn
, matchPatternSynP
, mergePatternSynDefs
) where
import Control.Applicative ( ... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Syntax/Abstract/PatternSynonyms.hs | haskell | | Pattern synonym utilities: folding pattern synonym definitions for
printing and merging pattern synonym definitions to handle overloaded
pattern synonyms.
| Merge a list of pattern synonym definitions. Fails unless all definitions
have the same shape (i.e. equal up to renaming of variables and constructor
... |
module Agda.Syntax.Abstract.PatternSynonyms
( matchPatternSyn
, matchPatternSynP
, mergePatternSynDefs
) where
import Control.Applicative ( Alternative(empty) )
import Control.Monad.Writer hiding (forM)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Traversable (forM)
import Data.List
imp... |
fb4356a7753febaffa5bd583e0086e4fda3b02c130479973786d77f3bb37b357 | chetmurthy/typpx | test.ml | module Num = struct
module Int = struct
let (+) = Stdlib.(+)
end
module Float = struct
let (+) = Stdlib.(+.)
end
end
module String = struct
let (+) = Stdlib.(^)
end
module Loaded = struct
module Num = Num
module String = String
external (+) : 'a -> 'a -> 'a = "__OVERLOADED"
end
module Test... | null | https://raw.githubusercontent.com/chetmurthy/typpx/a740750b75739e686da49b46ded7db7d6874e108/examples/ppx_overload/tests/test.ml | ocaml | module Num = struct
module Int = struct
let (+) = Stdlib.(+)
end
module Float = struct
let (+) = Stdlib.(+.)
end
end
module String = struct
let (+) = Stdlib.(^)
end
module Loaded = struct
module Num = Num
module String = String
external (+) : 'a -> 'a -> 'a = "__OVERLOADED"
end
module Test... | |
f2b5f1ae25f62df320a2d73bfcca363b342e4471275c3fb0a0bb9608c577eef3 | Soostone/hadron | Protocol.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module Hadron.Protocol
(
Protocol (..)
, Protocol'
, protoEnc, protoDec
, prismToProtocol
, filterP
, base64SerProtocol
, base64SafeCop... | null | https://raw.githubusercontent.com/Soostone/hadron/d155ecbcdf0bb0dd442d6fc3e142bea75a312241/src/Hadron/Protocol.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE TemplateHaskell #
* Serialization Prisms
* Serialization Utils
* Utils
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
--------------------------------------... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
module Hadron.Protocol
(
Protocol (..)
, Protocol'
, protoEnc, protoDec
, prismToProtocol
, filterP
, base64SerProtocol
, base64SafeCopyProtocol
, idProtocol
, linesProtocol
, gzipProtocol
, showPr... |
c4d9737c74982196a7af34efb891b480f7f1ff7af45a2dee4f79b378e65ea9fd | Profpatsch/libnix-haskell | Types.hs | |
Description : Common Types
Copyright : Profpatsch , 2018–2021
License : GPL-3
Stability : experimental
Description : Common Types
Copyright : Profpatsch, 2018–2021
License : GPL-3
Stability : experimental
-}
# LANGUAGE GeneralizedNewtypeDeriving , DeriveFunctor #
module Foreign.Nix.Shello... | null | https://raw.githubusercontent.com/Profpatsch/libnix-haskell/536dbbe6e760329a1efe7d0aa4a738b596012217/Foreign/Nix/Shellout/Types.hs | haskell | * Store paths
* NixAction
Might get more fields in the future, use 'defaultRunOptions'
to be backwards-compatbile.
^ The command line logging function.
^ A record of all executables this library could need.
| Logging function to call before running a command.
This can be used to provide debugging output.
| A... | |
Description : Common Types
Copyright : Profpatsch , 2018–2021
License : GPL-3
Stability : experimental
Description : Common Types
Copyright : Profpatsch, 2018–2021
License : GPL-3
Stability : experimental
-}
# LANGUAGE GeneralizedNewtypeDeriving , DeriveFunctor #
module Foreign.Nix.Shello... |
42ed49dfef1dcb20843bdef06efca107eb23b8ec20e0dbb9e2447d195ae39dcb | reasonml-old/bs-containers | hashable.mli |
module type S = sig
type t
val hash: t -> int
end | null | https://raw.githubusercontent.com/reasonml-old/bs-containers/dfd1360dc74ede57c09e9f9d837ce59285af6fd2/src/core/hashable.mli | ocaml |
module type S = sig
type t
val hash: t -> int
end | |
8ce22bc032890e766c103b0753d03d9ba7ff62d071d51c7b1dddaa772a3277cd | egobrain/oauth_cowboy | oauth_to_functions.erl | -module(oauth_to_functions).
-export([parse_transform/2, pretty_print/1]).
-record(state,{rds=[],gen=[],fns=[]}).
-record(field,{name,allowed = []}).
-record(rd,{name,fields = [] ::list(#field{})}).
% TODO: сообщения об ошибках в декораторе
parse_transform(Ast,_Options)->
io : format("~p ~ n=======~n",[Ast ] ) ,
... | null | https://raw.githubusercontent.com/egobrain/oauth_cowboy/ac411aa2aa5d459116c72621650c9c4f8962e537/src/oauth_to_functions.erl | erlang | TODO: сообщения об ошибках в декораторе
io:format("~s~n=======~n",[pretty_print(Ast)]),
io:format("~p~n<<<<~n",[Ast3]),
io:format("~s~n>>>>~n",[pretty_print(Ast3)]),
io:format("~n~n~n~n~p~n>>>>~n",[Rds]),
io:format("~n~n~n~n~p~n",[State#state.rds]),
emit_errors_for_rogue_decorators(DecoratorList)->
[{error,{L... | -module(oauth_to_functions).
-export([parse_transform/2, pretty_print/1]).
-record(state,{rds=[],gen=[],fns=[]}).
-record(field,{name,allowed = []}).
-record(rd,{name,fields = [] ::list(#field{})}).
parse_transform(Ast,_Options)->
io : format("~p ~ n=======~n",[Ast ] ) ,
{ExtendedAst2, #state{fns=Fns,rds=Rds}}... |
e60cb534a742823ec1e78c6c9529138861a2d434cdd30c6c0cf001c9be0bd2f5 | goldfirere/cs380 | Class.hs | # LANGUAGE OverloadedStrings , NoMonomorphismRestriction , GADTSyntax ,
FlexibleContexts #
FlexibleContexts #-}
module Class where
import qualified Data.Text as T
import qualified Data.ByteString.Lazy.Char8 as B
x :: T.Text
x = "hi"
never_ever :: IO a -> a
never_ever = error "terrible"
... | null | https://raw.githubusercontent.com/goldfirere/cs380/a9e2d2e610eb4e9e082cef0559b6e29a6d82a253/11_review/Class.hs | haskell | SomeOtherConstructor :: Int -> OrdList a <-- usually a bad idea
f :: (a -> b) -> [b] <-- RETRACTED
f :: (Int -> b) -> [b] <-- RETRACTED
this one has better style: | # LANGUAGE OverloadedStrings , NoMonomorphismRestriction , GADTSyntax ,
FlexibleContexts #
FlexibleContexts #-}
module Class where
import qualified Data.Text as T
import qualified Data.ByteString.Lazy.Char8 as B
x :: T.Text
x = "hi"
never_ever :: IO a -> a
never_ever = error "terrible"
... |
8f4c9062fd289f27e9ae4421541a04a38c769f250d71f6e3652a247ab816e367 | ElectreAAS/Paradict | paradict.ml | open Extensions
include Paradict_intf
module Make (H : Hashtbl.HashedType) = struct
module Types = struct
type key = H.t
type z = Zero [@@warning "-37"]
type nz = NonZero [@@warning "-37"]
type _ kind = Z : z kind | NZ : nz kind
type 'a t = { root : ('a, z) iNode }
and gen = unit ref
(*... | null | https://raw.githubusercontent.com/ElectreAAS/Paradict/bec79f8e1185d422176f05173d8554e9219faf0d/lib/paradict.ml | ocaml | * The type of generations, an empty ref cell.
This is a classic OCaml trick to ensure safe (in)equality:
With this setup
[let x = ref ();; let y = ref ();; let z = x;;]
[x == y] is false but [x == z] is true.
This avoids integer overflow and discarded gen objects will be garbage... | open Extensions
include Paradict_intf
module Make (H : Hashtbl.HashedType) = struct
module Types = struct
type key = H.t
type z = Zero [@@warning "-37"]
type nz = NonZero [@@warning "-37"]
type _ kind = Z : z kind | NZ : nz kind
type 'a t = { root : ('a, z) iNode }
and gen = unit ref
a... |
743c763d4680afe54bd51ca7bcfaf09a8b3e403b9dab61e6b7fad675152e25d5 | mbutterick/typesetting | info.rkt | #lang info
(define scribblings '(("scribblings/csp.scrbl" ())))
(define test-omit-paths 'all) | null | https://raw.githubusercontent.com/mbutterick/typesetting/93a682a1581f3c1564b6f39fc05a5fe1a09a5ccb/csp/csp/info.rkt | racket | #lang info
(define scribblings '(("scribblings/csp.scrbl" ())))
(define test-omit-paths 'all) | |
eb66d2ef838c6507f850645407594c93af2c6b51def9fa07061f441e554991e5 | deadtrickster/http-routes | route.lisp | (in-package :http-routes.routes)
(defvar *routes*)
(defun create-params-wrapper (variables tag)
(compile nil `(lambda (url matches)
(declare (ignorable url matches))
(block :validation
(let ((parameters (make-hash-table)))
,(if variables
... | null | https://raw.githubusercontent.com/deadtrickster/http-routes/afc9e9ca6f35158954a03a7339776c04e7d39446/src/route.lisp | lisp | (in-package :http-routes.routes)
(defvar *routes*)
(defun create-params-wrapper (variables tag)
(compile nil `(lambda (url matches)
(declare (ignorable url matches))
(block :validation
(let ((parameters (make-hash-table)))
,(if variables
... | |
8bf9afc0f64fffc3c38c61e42dace65507ae3046d5aaf415f7a09adaf37788a1 | jimcrayne/jhc | read019.hs | -- !!! Checking what's legal in the body of a class declaration.
module ShouldCompile where
class Foo a where {
(--<>--) :: a -> a -> Int ;
infixl 5 --<>-- ;
< > -- ) _ _ = 2 ; -- empty decl at the end .
};
| null | https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/0_parse/2_pass/ghc/read019.hs | haskell | !!! Checking what's legal in the body of a class declaration.
<>--) :: a -> a -> Int ;
<>-- ;
) _ _ = 2 ; -- empty decl at the end . | module ShouldCompile where
class Foo a where {
};
|
22f0284d9b5f7b7c1c9f09d7b065f14c6844d7c8237f9de49052a3fd7fe60ac2 | imeckler/stationary | file.ml | open Core.Std
open Async
open Stationary_std_internal
type t =
| Html of string * Html.t
| Collect_output of { prog : string; args : string list; name : string }
| Of_path of { path : string; name : string }
let of_html ~name html =
validate_filename name;
Html (name, html)
let of_path ?name path =
let n... | null | https://raw.githubusercontent.com/imeckler/stationary/d2d6c1c1ec7d6bea63736226a7e511c0e426c5e5/src/file.ml | ocaml | open Core.Std
open Async
open Stationary_std_internal
type t =
| Html of string * Html.t
| Collect_output of { prog : string; args : string list; name : string }
| Of_path of { path : string; name : string }
let of_html ~name html =
validate_filename name;
Html (name, html)
let of_path ?name path =
let n... | |
85b2d5128a2230b04a262d53caf9377ad955dbb3b731b2b260a4528af49cfd35 | reflectionalist/S9fES | split.scm | Scheme 9 from Empty Space , Function Library
By , 2010
; Placed in the Public Domain
;
; (split list) ==> list
;
Split a list into two , where the first one contains the leftmost
members of the list and the second one its rightmost members . When
the list has an odd number of members , the first list wil... | null | https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/split.scm | scheme | Placed in the Public Domain
(split list) ==> list
(leftmost-members rightmost-members)
(split '()) ==> (() ()) | Scheme 9 from Empty Space , Function Library
By , 2010
Split a list into two , where the first one contains the leftmost
members of the list and the second one its rightmost members . When
the list has an odd number of members , the first list will hold
the extra member . Return a list of two lists :
E... |
e54d5d0690fa3132237cb95dbd1c560d89639f843b35dd3ac2bfa90d35809939 | keigoi/ocaml-mpst | unification.mli | type 'a t
val make : 'a -> 'a t
val get : 'a t -> 'a
val unify : 'a t -> 'a t -> unit
val path_compression : 'a t -> 'a t
| null | https://raw.githubusercontent.com/keigoi/ocaml-mpst/b9d23396db7e1a6525d14c2e6760f0cad7ec2ebd/lib/unification.mli | ocaml | type 'a t
val make : 'a -> 'a t
val get : 'a t -> 'a
val unify : 'a t -> 'a t -> unit
val path_compression : 'a t -> 'a t
| |
5d5d6881ae0ece36b9bf8246197c6855f238e790c7477397fa998b4bc282dbdb | netguy204/clojure-gl | resources.clj | (ns clojure-gl.resources
(:import (java.io BufferedReader InputStreamReader)))
(defn resource-as-stream [ref]
(let [thr (Thread/currentThread)
loader (.getContextClassLoader thr)]
(if-let [stream (.getResourceAsStream loader ref)]
stream
(throw (RuntimeException. (format "couldn't find %s" ... | null | https://raw.githubusercontent.com/netguy204/clojure-gl/055f73baf1af0149191f3574ad82f35017c532fc/src/clojure_gl/resources.clj | clojure | (ns clojure-gl.resources
(:import (java.io BufferedReader InputStreamReader)))
(defn resource-as-stream [ref]
(let [thr (Thread/currentThread)
loader (.getContextClassLoader thr)]
(if-let [stream (.getResourceAsStream loader ref)]
stream
(throw (RuntimeException. (format "couldn't find %s" ... | |
3a3051fac60d7bc6be1129172a6fbd3f7a192b310db068f3bb4aa21c4fe85719 | aprell/compiler-potpourri | IR.mli | type stmt =
| Move of var * expr (* x := e *)
| Load of var * mem (* x := M[i] *)
| Store of mem * expr (* M[i] := e *)
| Label of label (* L: *)
| Jump of label ... | null | https://raw.githubusercontent.com/aprell/compiler-potpourri/845e7cb8ecff0489b3d9bfd8e7a210082c28ee7d/basic_blocks/three_address_code/IR.mli | ocaml | x := e
x := M[i]
M[i] := e
L:
goto L
return e
Phi-functions (SSA)
x := PHI(...) | type stmt =
if e goto L1 else L2
and expr =
| Const of int
| Val of var
| Binop of binop * expr * expr
| Relop of relop * expr * expr
and var = Var of name
and mem = Mem of base * offset
and base = var
and offset = expr
and binop = Plus | Minus | Mul | Div | Mod
and relop = EQ | NE | LT | GT | LE | ... |
e71922002e680f289c9cb8316c3c1b13dde895b198e79ccb337f2db8c427dcd2 | karamellpelle/grid | Iteration.hs | grid is a game written in Haskell
Copyright ( C ) 2018
--
-- This file is part of grid.
--
-- grid 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 optio... | null | https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/Iteration.hs | haskell |
This file is part of grid.
grid is free software: you can redistribute it and/or modify
(at your option) any later version.
grid 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 the
GN... | grid is a game written in Haskell
Copyright ( C ) 2018
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
module Game.LevelPuzzle.Iteration
(
iteration... |
4608b0ec8b3edf16a872bcc23fa49dd49317c4ed18393485dcb30c4af219d8fe | Incubaid/arakoon | ring_buffer.ml |
* Copyright ( c ) 2014 , Incubaid BVBA
*
* 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 wr... | null | https://raw.githubusercontent.com/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/tools/ring_buffer.ml | ocaml | * A simple ring-buffer implementation
* Create a new ring-buffer for a given element type
* Ringbuffer element type
* Insert an element in the ring-buffer
* Left-fold over the content of the ring-buffer, starting at the oldest value
Note: {!E.zero} elements are not skipped. |
* Copyright ( c ) 2014 , Incubaid BVBA
*
* 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 wr... |
5257d2d3d55b6fa214eda86534dd09c38d820bb0c2b96530f859a5c9cfb8782e | laser/cis-194-spring-2017 | StackVM.hs | module Homework.Week05.StackVM (
StackVal(..),
StackExp(..),
Stack,
Program,
stackVM
) where
-- Values that may appear in the stack. Such a value will also be
-- returned by the stackVM program execution function.
data StackVal = IVal Integer | BVal Bool | Void deriving Show
-- The various expressions o... | null | https://raw.githubusercontent.com/laser/cis-194-spring-2017/c6023cd611532c9bbd77eb97c14db360bfd5111c/src/Homework/Week05/StackVM.hs | haskell | Values that may appear in the stack. Such a value will also be
returned by the stackVM program execution function.
The various expressions our VM understands.
Execute the given program. Returns either an error message or the
value on top of the stack after execution.
Execute a program against a given stack. | module Homework.Week05.StackVM (
StackVal(..),
StackExp(..),
Stack,
Program,
stackVM
) where
data StackVal = IVal Integer | BVal Bool | Void deriving Show
data StackExp = PushI Integer
| PushB Bool
| Add
| Mul
| And
| Or
... |
1c4fe759a86eb1d6d1a53b9d89bf40b824fb0d1652bf62ac80aa8fd4aaeda05f | ijvcms/chuanqi_dev | player_task_db.erl | %%%-------------------------------------------------------------------
@author apple
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 30 . 十一月 2015 14:11
%%%-------------------------------------------------------------------
-module(player_task_db).
-include("common.hrl").
-include("cache.hrl").
%% API... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/task/player_task_db.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
====================================================================
API functions
====================================================================
API | @author apple
( C ) 2015 , < COMPANY >
Created : 30 . 十一月 2015 14:11
-module(player_task_db).
-include("common.hrl").
-include("cache.hrl").
-export([
select_row/1,
select_all/1,
insert/1,
update/2,
delete/1
]).
select_row({TaskId, PlayerId}) ->
case db:select_row(player_task, record_info(fields, db_pl... |
81548278147c7e033255a3f2da98d3799091f2b09b697aa0225afcc86d919a12 | bjorng/wings | wings_pick_nif.erl | %%
wings_pick_nif.erl --
%%
%% This module handles picking.
%%
Copyright ( c ) 2009 - 2019 Bjorn Gustavsson &
%%
%% See the file "license.terms" for information on usage and redistribution
%% of this file, and for a DISCLAIMER OF ALL WARRANTIES.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... | null | https://raw.githubusercontent.com/bjorng/wings/1e2c2d62e93a98c263b167c7a41f8611e0ff08cd/src/wings_pick_nif.erl | erlang |
This module handles picking.
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
This module and driver implements picking of faces, edges, and vertices
OpenGL is not use by many applications, so it may not work reliably in
C... | wings_pick_nif.erl --
Copyright ( c ) 2009 - 2019 Bjorn Gustavsson &
without using the selection support in OpenGL . The selection support in
all implementations of OpenGL .
0 < = X < = 1 , 0 < = Y < = 1 , 0 < = Z < = 1 instead of -1 < = X < = 1 ,
-1 < = Y < = 1 , -1 < = Z < = 1 as suggested by in
... |
fe4ec9e189bae8901d5090846a43d3a2c8f220afe03231510e535bea839a0344 | mrkkrp/flac | CueSheet.hs | -- |
Module : Codec . Audio . FLAC.Metadata . CueSheet
Copyright : © 2016 – present
License : BSD 3 clause
--
Maintainer : < >
-- Stability : experimental
-- Portability : portable
--
This module exports the ' CueSheetData ' and ' CueTrack ' data types , which
-- are rarely ne... | null | https://raw.githubusercontent.com/mrkkrp/flac/4df31b6fc9b55e8ae65e7263e4b5836d91e95425/Codec/Audio/FLAC/Metadata/CueSheet.hs | haskell | |
Stability : experimental
Portability : portable
are rarely needed, and thus should not congest the "Codec.Audio.Metadata"
module with potentially conflicting names. | Module : Codec . Audio . FLAC.Metadata . CueSheet
Copyright : © 2016 – present
License : BSD 3 clause
Maintainer : < >
This module exports the ' CueSheetData ' and ' CueTrack ' data types , which
module Codec.Audio.FLAC.Metadata.CueSheet
( CueSheetData (..),
CueTrack (..),
... |
4d8989bdec8f906976a2c356fabce5cedd0e6ce94b7456eadda35d0888ab688a | haskell-beam/beam | Types.hs | # LANGUAGE UndecidableInstances #
module Database.Beam.Migrate.Generics.Types where
import Database.Beam.Migrate.Types
import Data.Proxy
import qualified Data.Text as T
import GHC.Generics
class GAutoMigratableDb be x where
defaultMigratableDbSettings' :: Proxy be -> x ()
instance G... | null | https://raw.githubusercontent.com/haskell-beam/beam/596981a1ea6765b9f311d48a2ec4d8460ebc4b7e/beam-migrate/Database/Beam/Migrate/Generics/Types.hs | haskell | # LANGUAGE UndecidableInstances #
module Database.Beam.Migrate.Generics.Types where
import Database.Beam.Migrate.Types
import Data.Proxy
import qualified Data.Text as T
import GHC.Generics
class GAutoMigratableDb be x where
defaultMigratableDbSettings' :: Proxy be -> x ()
instance G... | |
fa4cf690c5bdba9a1d9e209c4096b01718cc986948af4a38c2d7e35f1c4e2e14 | keigoi/ocaml-mpst | multicast.mli | open BasicCombinators
type 's scatter
type 's gather
type ('v, 's) scatter_val
type ('v, 's) gather_val
type 's many
val ( -->@@ ) :
('a, 'b, 'c, 'd, 'e, 'f Unicast.branch) BasicCombinators.role ->
('g many, 'e many, 'h, 'c, 'b, 'i) BasicCombinators.role ->
('i, 'a scatter, 'f, 'g) BasicCombinators.label ->
'... | null | https://raw.githubusercontent.com/keigoi/ocaml-mpst/4f0007f1203753d953f871d7a8f490fb5afc302d/lib/multicast/multicast.mli | ocaml | open BasicCombinators
type 's scatter
type 's gather
type ('v, 's) scatter_val
type ('v, 's) gather_val
type 's many
val ( -->@@ ) :
('a, 'b, 'c, 'd, 'e, 'f Unicast.branch) BasicCombinators.role ->
('g many, 'e many, 'h, 'c, 'b, 'i) BasicCombinators.role ->
('i, 'a scatter, 'f, 'g) BasicCombinators.label ->
'... | |
60e4c6e7a1fdc6ada1329737a534c0a41424ce4a486fd0fb197e765fbc795b4a | mariari/Misc-ML-Scripts | Lexer.hs | module Mari.Library.Parser.Lexer
( spacer,
spaceLiner,
skipLiner,
parens,
brackets,
between,
curly,
many1H,
sepBy1H,
sepBy1HFinal,
maybeParend,
emptyCheck,
eatSpaces,
integer,
double,
)
where
import qualified Data.ByteString.Char8 as Char8
import qualified Da... | null | https://raw.githubusercontent.com/mariari/Misc-ML-Scripts/376a7d55b565bf9205e697c5c3b78e1d6b6aedcd/Haskell/StandardLibrary/src/Mari/Library/Parser/Lexer.hs | haskell | | 'sepBy1HFinal' is like 'sepBy1H' but also tries to parse a last separator | module Mari.Library.Parser.Lexer
( spacer,
spaceLiner,
skipLiner,
parens,
brackets,
between,
curly,
many1H,
sepBy1H,
sepBy1HFinal,
maybeParend,
emptyCheck,
eatSpaces,
integer,
double,
)
where
import qualified Data.ByteString.Char8 as Char8
import qualified Da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.