_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
4727cd673d6d5aa10016239f5bcae8bcb2f21792d8592f631c760a2cca1a781d
robert-strandh/SICL
cst-to-ast.lisp
(cl:in-package #:sicl-cst-to-ast) (defun cst-to-ast (client cst compilation-environment file-compilation-semantics-p) (cleavir-cst-to-ast:cst-to-ast client cst compilation-environment :file-compilation-semantics file-compilation-semantics-p))
null
https://raw.githubusercontent.com/robert-strandh/SICL/87207c16ebe8071fd7327133d403409736146f6e/Code/Compiler/CST-to-AST/cst-to-ast.lisp
lisp
(cl:in-package #:sicl-cst-to-ast) (defun cst-to-ast (client cst compilation-environment file-compilation-semantics-p) (cleavir-cst-to-ast:cst-to-ast client cst compilation-environment :file-compilation-semantics file-compilation-semantics-p))
4ba2e85d9adfb78375d9090d57dab34f533bbe1dad8e14ce7f5d08720c30f30c
rtrusso/scp
scheme-compiler.scm
(need scheme/syntax/expander) (need scheme/transforms/internal-defines) (need util/rfilact) (need util/io) (need util/string) (need util/list) (need util/output-file) (need sasm/sasm-insn) (need build/rules) (need scheme/compiler/env) (need scheme/compiler/context) (need scheme/compiler/cps) (need scheme/co...
null
https://raw.githubusercontent.com/rtrusso/scp/d647639ecb8e5a87c0a31a7c9d4b6a26208fbc53/src/scheme-compiler.scm
scheme
(extern $scheme-entry:rtl/r5rs-wrap) (extern $scheme-entry:rtl/r5rs-library) main ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; the actual output port the output file name syntax file up-to-date regenerate syntax file (if (and (or *conspiracy-mode* *output-directory* ...
(need scheme/syntax/expander) (need scheme/transforms/internal-defines) (need util/rfilact) (need util/io) (need util/string) (need util/list) (need util/output-file) (need sasm/sasm-insn) (need build/rules) (need scheme/compiler/env) (need scheme/compiler/context) (need scheme/compiler/cps) (need scheme/co...
4c96e80ecb9ebf114913af3c019314341bf6e655e9e6b98b721ce45f23724fd0
racket/math
counting.rkt
#lang typed/racket/base (require racket/list racket/sequence "../../base.rkt" "../unsafe.rkt" "statistics-utils.rkt") (provide samples->hash count-samples (struct-out sample-bin) sample-bin-compact sample-bin-total bin-samples b...
null
https://raw.githubusercontent.com/racket/math/f0b2e7c997a3da9ce05dcb76f021d6b5cdc76d03/math-lib/math/private/statistics/counting.rkt
racket
=================================================================================================== Hashing =================================================================================================== Counting ==================================================================================================...
#lang typed/racket/base (require racket/list racket/sequence "../../base.rkt" "../unsafe.rkt" "statistics-utils.rkt") (provide samples->hash count-samples (struct-out sample-bin) sample-bin-compact sample-bin-total bin-samples b...
b0afe8b590ea0530e39d95e5db7385dcca84481a4e0f10b11305e74e7df04e43
ekmett/reactive
Reactive.hs
# LANGUAGE TypeSynonymInstances , ScopedTypeVariables , TypeOperators , FlexibleInstances , TypeFamilies # , FlexibleInstances, TypeFamilies #-} # OPTIONS_GHC -Wall # ---------------------------------------------------------------------- -- | Module : FRP.Reactive . Reactive Co...
null
https://raw.githubusercontent.com/ekmett/reactive/61b20b7a2e92af372b5bd9a2af294db0fbdfa9d8/src/FRP/Reactive/Reactive.hs
haskell
-------------------------------------------------------------------- | License : GNU AGPLv3 (see COPYING) Maintainer : Stability : experimental Simple reactive values. Adds some extra functionality on top of -------------------------------------------------------------------- * Event mbsEvent, * ...
# LANGUAGE TypeSynonymInstances , ScopedTypeVariables , TypeOperators , FlexibleInstances , TypeFamilies # , FlexibleInstances, TypeFamilies #-} # OPTIONS_GHC -Wall # Module : FRP.Reactive . Reactive Copyright : ( c ) Conal Elliott 2008 " FRP.Reactive . PrimReactive " m...
07f6233dcc9779369fe29a6449f8e7893c2664b7241f4e56d1b9de6ea964b2af
nuvla/api-server
std_crud.clj
(ns sixsq.nuvla.server.resources.common.std-crud "Standard CRUD functions for resources." (:require [clojure.data.json :as json] [clojure.stacktrace :as st] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as w] [sixsq.nuvla.auth.acl-resource :as a] [sixsq.nuvla.au...
null
https://raw.githubusercontent.com/nuvla/api-server/1970552d60a155d2e81c68b92ebbb53bcc718684/code/src/sixsq/nuvla/server/resources/common/std_crud.clj
clojure
(ns sixsq.nuvla.server.resources.common.std-crud "Standard CRUD functions for resources." (:require [clojure.data.json :as json] [clojure.stacktrace :as st] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as w] [sixsq.nuvla.auth.acl-resource :as a] [sixsq.nuvla.au...
6728d3a519c41f5b4f932bea00ddeb1450ba7c27e4d57201371c85f998248560
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PaymentIntentNextActionKonbiniStores.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema PaymentIntentNextActionKonbiniStores module StripeAPI.Types.PaymentIntentNe...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentIntentNextActionKonbiniStores.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema PaymentIntentNextActionKonbiniStores # SOURCE # # SOURCE # # SOURCE # # SOURCE # | familymart: FamilyMart instruction details. | seicomart: Seicomart instruction details. | Create a new 'PaymentIntentNextActionKonb...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.PaymentIntentNextActionKonbiniStores where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Intern...
442c5b9ada619d84538026bd20492d750e2c2f9a656a44033715e71edaebf13f
ocamllabs/opamfu
opamfUniverse.mli
(**************************************************************************) (* *) Copyright 2012 INRIA Copyright 2012 - 2013 OCamlPro Copyright 2...
null
https://raw.githubusercontent.com/ocamllabs/opamfu/bfb9f24cd624f0889a26afb979a856e547344391/lib/opamfUniverse.mli
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
Copyright 2012 INRIA Copyright 2012 - 2013 OCamlPro Copyright 2013 GNU Lesser General Public License version 3.0 with linking OPAM is distributed in the hope that it will be useful , but WITHOUT ...
c79a6720bb9e363e469433f797f9cc18c8d298bd020d7195006094f4c675ece3
iamFIREcracker/adventofcode
package.lisp
(defpackage :aoc (:use :cl :pmdb :aoc.quickutils :aoc.quickutils.local :amacro :hset :dset) (:export :array-elements :find-min :find-max :dividesp :hexadecimal-string :hexadecimal->binary :frequencies :hamming-distance :manhattan-distance :all-permutations :as-keyword ...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/683989ee21bea9e23a9aa6a68b5971f5c3fcfd55/package.lisp
lisp
(defpackage :aoc (:use :cl :pmdb :aoc.quickutils :aoc.quickutils.local :amacro :hset :dset) (:export :array-elements :find-min :find-max :dividesp :hexadecimal-string :hexadecimal->binary :frequencies :hamming-distance :manhattan-distance :all-permutations :as-keyword ...
34559d6deaa93dc4419613eb3427bdc1ccc43bbf2717dd065cb26e56004906e0
AshleyYakeley/Truth
Representation.hs
module Pinafore.Language.Grammar.Interpret.TypeDecl.Representation ( MaybeUnitWitness(..) , EqWitness , leftCodec , extendRightCodec , TypeRepresentation(..) , getListEnumTypeRepresentation , getOpenWitnessTypeRepresentation , getOpenWitnessTypeRepresentationEq , getEitherTypeReprese...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/3ee367ebf3f9ff956eb768e42ee9473e6aa3d761/Pinafore/pinafore-language/lib/Pinafore/Language/Grammar/Interpret/TypeDecl/Representation.hs
haskell
> ListElementType lt
module Pinafore.Language.Grammar.Interpret.TypeDecl.Representation ( MaybeUnitWitness(..) , EqWitness , leftCodec , extendRightCodec , TypeRepresentation(..) , getListEnumTypeRepresentation , getOpenWitnessTypeRepresentation , getOpenWitnessTypeRepresentationEq , getEitherTypeReprese...
4fc7aeb7c230c5300d4a9f8f215ec02006a5fbeae027cf8375813640d0867c0a
stchang/parsack
parsack.rkt
#lang racket/base (require racket/port racket/match racket/string racket/format (rename-in (only-in racket string) [string mk-string])) (require (for-syntax racket/base syntax/parse racket/syntax)) (provide (struct-out Consumed) (struct-out Empty) (struct-out Ok) (struct-out Error) ...
null
https://raw.githubusercontent.com/stchang/parsack/57b21873e8e3eb7ffbdfa253251c3c27a66723b1/parsack-lib/parsack/parsack.rkt
racket
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; A [Parser X] is a function: InputPort -> [Result X] Naming conventions: - whether a parser consumed input, ie returns Consumed and not empty - whether a parser succeeds, ie returns an Ok and not an Error parsers; others use both. - (Consumed [Reply X]) - (Empty [R...
#lang racket/base (require racket/port racket/match racket/string racket/format (rename-in (only-in racket string) [string mk-string])) (require (for-syntax racket/base syntax/parse racket/syntax)) (provide (struct-out Consumed) (struct-out Empty) (struct-out Ok) (struct-out Error) ...
33353ce76ef2cd25262767ce7aa0203e105593bf278003a1281ef5426f0576a2
tezos/tezos-mirror
carray.ml
module type Elt_sig = sig type t val size : int val allocate : unit -> t val zero : t val eq : t -> t -> bool end module type Carray_sig = sig type t type elt val t : t Repr.t val empty : t * [ allocate len ] creates a C array of size [ len ] initialized with zeros . val allocate : int -> t...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/a42b3090645b62bdc1e4e82c69bebefbc0de9763/src/lib_bls12_381_polynomial/carray.ml
ocaml
* [init n f] returns a fresh C array of length [n], with element number [i] initialized to the result of [f i]. * [length c] returns the length of a C array [c] * [get c i] returns the [i]-th element of a C array [c] * [get_inplace c i res] copies the [i]-th element of a C array [c] in res * [copy c] copies [...
module type Elt_sig = sig type t val size : int val allocate : unit -> t val zero : t val eq : t -> t -> bool end module type Carray_sig = sig type t type elt val t : t Repr.t val empty : t * [ allocate len ] creates a C array of size [ len ] initialized with zeros . val allocate : int -> t...
07014c60504e0dcd69f5ddb992206a959e7aaad544dfcc073e7dc212483381c7
well-typed-lightbulbs/ocaml-esp32
polyvars.ml
(* TEST * expect *) type ab = [ `A | `B ];; let f (x : [`A]) = match x with #ab -> 1;; [%%expect{| type ab = [ `A | `B ] Line 2, characters 32-35: 2 | let f (x : [`A]) = match x with #ab -> 1;; ^^^ Error: This pattern matches values of type [? `A | `B ] but a pattern was e...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-misc/polyvars.ml
ocaml
TEST * expect warn warn fail fail imported from in poly.ml PR#6787 f : 'a -> [< `Foo ] -> 'a PR#6124 PR#5927
type ab = [ `A | `B ];; let f (x : [`A]) = match x with #ab -> 1;; [%%expect{| type ab = [ `A | `B ] Line 2, characters 32-35: 2 | let f (x : [`A]) = match x with #ab -> 1;; ^^^ Error: This pattern matches values of type [? `A | `B ] but a pattern was expected which matches v...
9e79d513584fe035d80f56d8c553ada693bee8853d9dcd71600e64c865daa10b
mekispeter/haskell2019spring
Luis_homework1.2.hs
Péter 's comments : It wo n't compile this way : - Function names have to start with a smallcase letter , eg . ' andfunction ' or ' andFunction ' instead of ' Andfunction ' , - Haskell 's built - in Boolean values are ' True ' and ' False ' , not ' TRUE ' and ' FALSE ' . Other than thes...
null
https://raw.githubusercontent.com/mekispeter/haskell2019spring/18fa81092cdc7a15c8ef92a2eff8274dfe79d00d/homeworks/luis/Luis_homework1.2.hs
haskell
Péter 's comments : It wo n't compile this way : - Function names have to start with a smallcase letter , eg . ' andfunction ' or ' andFunction ' instead of ' Andfunction ' , - Haskell 's built - in Boolean values are ' True ' and ' False ' , not ' TRUE ' and ' FALSE ' . Other than thes...
e77e743926023a8b34a850af60cc76587d7cdfdda1a9d1be1dbf581f3a7b488d
calyau/maxima
suprv1.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancements. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/src/suprv1.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancements. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; note in converting t...
(in-package :maxima) * * ( c ) Copyright 1982 Massachusetts Institute of Technology * * stuff is in system.lisp for the lispm and nil friends.--wfs (eval-when #+gcl (compile eval) #-gcl (:compile-toplevel :execute) (setq old-ibase *read-base* old-base *print-base*) (setq *read-base* 10. *print-base* 1...
5ffc0c53afcbcc6cc0941016183044f2ea72771cf8893417d44858bf1ad17735
benzap/fif
tools.cljc
(ns fif.stdlib.tools "Includes stack functionality that can manipulate the entire stack machine." (:require [clojure.string :as str] [fif.stack-machine.stash :as stack-machine.stash] [fif.stack-machine.scope :as stack-machine.scope] [fif.stack-machine.words :refer [set-global-word-defn ...
null
https://raw.githubusercontent.com/benzap/fif/972adab8b86c016b04babea49d52198585172fe3/src/fif/stdlib/tools.cljc
clojure
(ns fif.stdlib.tools "Includes stack functionality that can manipulate the entire stack machine." (:require [clojure.string :as str] [fif.stack-machine.stash :as stack-machine.stash] [fif.stack-machine.scope :as stack-machine.scope] [fif.stack-machine.words :refer [set-global-word-defn ...
d239143263ff061067af7f33053b1eb3afa1a4121247b602e6d287a5630372e0
jdreaver/amy
ConvertType.hs
module Amy.ANF.ConvertType ( convertANFType ) where import Data.List.NonEmpty (NonEmpty(..)) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Amy.ANF.AST as ANF import Amy.Syntax.AST as S | Converts a ' S.Type ' into an ANF ' ANF.Type ' -- -- The only tr...
null
https://raw.githubusercontent.com/jdreaver/amy/a0c73f6c02e7d923f1d85c0de89f78dc204dae2f/library/Amy/ANF/ConvertType.hs
haskell
The only trickiness here is we have to know how type constructors are represented in order to properly convert a type.
module Amy.ANF.ConvertType ( convertANFType ) where import Data.List.NonEmpty (NonEmpty(..)) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Amy.ANF.AST as ANF import Amy.Syntax.AST as S | Converts a ' S.Type ' into an ANF ' ANF.Type ' convertANFType ::...
71f9936036bfce5f015c276f6a8ab47e65760e72f8e1f7503577f3969cb0d903
shoreleave/shoreleave-remote
common.cljs
(ns shoreleave.remotes.common "Common remote operations for packaging up calls" (:require [clojure.string :as cstr] [goog.Uri.QueryData :as query-data] [goog.structs :as structs] [goog.string :as gstr] [goog.net.EventType :as gevent] [shoreleave.browser.co...
null
https://raw.githubusercontent.com/shoreleave/shoreleave-remote/02869cea3bd12734d8b2de911f934f8fa0ee64d5/src/shoreleave/remotes/common.cljs
clojure
These are intended for internal use only. You should not use these directly.
(ns shoreleave.remotes.common "Common remote operations for packaging up calls" (:require [clojure.string :as cstr] [goog.Uri.QueryData :as query-data] [goog.structs :as structs] [goog.string :as gstr] [goog.net.EventType :as gevent] [shoreleave.browser.co...
2adf948e0b33b231b64fa8d27db6772baec6fc8e89a49cc9b91bae4ce8354767
tomjridge/tjr_kv
fun_store.ml
(* (** Functional store, with a reference for initialization purposes *) (* test store -------------------------------------------------------- *) FIXME this is a common pattern when initializing a store ; perhaps add to Tjr_store add to Tjr_store *) let set,get = Tjr_store.(set,get) let test_store = ref ...
null
https://raw.githubusercontent.com/tomjridge/tjr_kv/68b3d2fa0c7a144765a3720d78cffb96d5478b32/src/_todo/fun_store.ml
ocaml
(** Functional store, with a reference for initialization purposes test store --------------------------------------------------------
FIXME this is a common pattern when initializing a store ; perhaps add to Tjr_store add to Tjr_store *) let set,get = Tjr_store.(set,get) let test_store = ref (Tjr_store.empty_fstore ()) let mk_ref' v = !test_store |> fun t -> Tjr_store.mk_ref v t |> fun (r,t) -> test_store:=t; r *)
aa697fccc7e97cd4530d2b5c0bea02698d23e8c3565a899dd23e4df1a519a863
links-lang/links
desugarFuns.ml
open CommonTypes open Operators open Utility open SourceCode open Sugartypes open SugarConstructors.DummyPositions This module desugars multi - argument functions , anonymous functions , and operator sections . 1 . Multi - argument functions are turned into a series of nested one - argument function...
null
https://raw.githubusercontent.com/links-lang/links/c9677da48e68fd7007d56769a8bc6bdbbb568320/core/desugarFuns.ml
ocaml
unwrap a curried function definition as a collection of nested functions unwrap a curried function definition with a position attached (for recursive functions) We replace the generalised quantifiers (instead of mutating the union-find sets) and supply the *original* type variables as argume...
open CommonTypes open Operators open Utility open SourceCode open Sugartypes open SugarConstructors.DummyPositions This module desugars multi - argument functions , anonymous functions , and operator sections . 1 . Multi - argument functions are turned into a series of nested one - argument function...
3e14fa2ceb9e34411af0100a57c8deed07d4c3c7041b027db90f929c50d3588f
GaloisInc/tower
Tower.hs
module Ivory.Tower ( module Ivory.Tower.Tower , module Ivory.Tower.Monitor , module Ivory.Tower.Handler , module Ivory.Tower.Coroutine ) where import Ivory.Tower.Tower import Ivory.Tower.Monitor import Ivory.Tower.Handler import Ivory.Tower.Coroutine
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower/src/Ivory/Tower.hs
haskell
module Ivory.Tower ( module Ivory.Tower.Tower , module Ivory.Tower.Monitor , module Ivory.Tower.Handler , module Ivory.Tower.Coroutine ) where import Ivory.Tower.Tower import Ivory.Tower.Monitor import Ivory.Tower.Handler import Ivory.Tower.Coroutine
dd620c7d6a96a61e418db86039f3c612ac5a8326484ae2cabf7095963c01a056
startalkIM/ejabberd
snappyer.erl
Copyright 2011 , < > %% Web: -erlang-nif %% 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, softw...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/snappyer/src/snappyer.erl
erlang
Web: -erlang-nif 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 permissi...
Copyright 2011 , < > 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(snappyer). -export([compress/1, decompress/1]). -export([uncompressed_length/1, is_valid/1]). -on_load(init/0). -i...
de1be51bdf4d64be0fbe35bcbaa2da92a3707767b1dbea755307135ca6978fdb
green-coder/reitit-oauth2
core.clj
(ns oauth-test.core (:require [integrant.core :as ig] [oauth-test.http-server] [oauth-test.ring-handler])) (def config {:http-kit/server {:handler (ig/ref :ring/handler) :port 3000} :ring/handler {}}) (def system (ig/init config)) (comment (ig/halt! system))
null
https://raw.githubusercontent.com/green-coder/reitit-oauth2/36d601e76bd210d91416ac7d499dbe590baa0147/example/src/oauth_test/core.clj
clojure
(ns oauth-test.core (:require [integrant.core :as ig] [oauth-test.http-server] [oauth-test.ring-handler])) (def config {:http-kit/server {:handler (ig/ref :ring/handler) :port 3000} :ring/handler {}}) (def system (ig/init config)) (comment (ig/halt! system))
51223e335f9be9468cec9c3624f1a2f1edd6f40166bdcd74c6006c19b9f83245
brendanhay/amazonka
GetNetworkSettings.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces-web/gen/Amazonka/WorkSpacesWeb/GetNetworkSettings.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpacesWeb.GetNetworkSettings Stability : auto-generated Gets the network settings. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newGetNetworkSettings' smart constructor. | ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
478fb1b9cc831e82c408552e702f078840043df29a56a94bd0a86a8dcfff44c0
vereis/jarlang
binary.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2010 - 2017 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/lib/stdlib/binary.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2010 - 2017 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(binary). -export([replace/3,replace/4]). -export_type([cp/0]). -opaque cp() :: {'am' | 'bm', reference()}. ...
174731aad56a1aa2259c07050cca1016b038d0005393cf3d7fb60286a2781c22
ml4tp/tcoq
aux_file.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/aux_file.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The file format is a header * ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Filename let version =...
dcfa9868a07f68823e0b370c66494cb924bb468e44bc56650a068ca8db1b938c
mbutterick/pollen
render.rkt
#lang racket/base (require racket/file racket/path racket/match racket/string racket/format racket/place racket/list racket/dict sugar/test sugar/define sugar/file sugar/coerce sugar/list version/utils ...
null
https://raw.githubusercontent.com/mbutterick/pollen/7a7b7d49ee60268974711155b4b5c21b218f7ee5/pollen/render.rkt
racket
used to track renders according to modification dates of component files when you want to generate everything fresh. render functions will always go when no mod-date is found. each key for mod-date-hash is a list of file / mod-date pairs (using pollen/cache keymaking function) when a file is rendered, a new key i...
#lang racket/base (require racket/file racket/path racket/match racket/string racket/format racket/place racket/list racket/dict sugar/test sugar/define sugar/file sugar/coerce sugar/list version/utils ...
d99c474f3f5c3d2c837a996828b16d9a92bfbbc01cb26340bbf5344939c0eacc
racketscript/racketscript
lib.rkt
#lang racketscript/boot (require (for-syntax racket/base racket/format racket/list syntax/parse) racket/stxparam racketscript/interop) (provide throw new array object := binop typeof ...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/racketscript-compiler/racketscript/compiler/runtime/lib.rkt
racket
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- JS imports old stuff Use some Native JS libs ---------------------------------------------------------------------------- v-λ is a lambda with JS semantics. Mo...
#lang racketscript/boot (require (for-syntax racket/base racket/format racket/list syntax/parse) racket/stxparam racketscript/interop) (provide throw new array object := binop typeof ...
2ba9225702b83e7fee58cf5f046148b9ae902114b747ae6ede5ff693a6acb397
programaker-project/Programaker-Core
automate_channel_engine_utils.erl
-module(automate_channel_engine_utils). -export([ canonicalize_selector/1 ]). canonicalize_selector(Atom) when is_atom(Atom) or is_tuple(Atom) -> Atom; canonicalize_selector(Selector) when is_binary(Selector) or is_list(Selector) -> string:lowercase(Selector).
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/baa49ce6843e233990db9b11693a6ae9a044df64/backend/apps/automate_channel_engine/src/automate_channel_engine_utils.erl
erlang
-module(automate_channel_engine_utils). -export([ canonicalize_selector/1 ]). canonicalize_selector(Atom) when is_atom(Atom) or is_tuple(Atom) -> Atom; canonicalize_selector(Selector) when is_binary(Selector) or is_list(Selector) -> string:lowercase(Selector).
605f72500e4e69469f26e90520e61ac146907da57adf48c7082d01197b6e1809
gren-lang/compiler
Docs.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE UnboxedTuples # # OPTIONS_GHC -Wall # -- Temporary while implementing gren format # OPTIONS_GHC -Wno - error = unused - do - bind # module Gren.Docs ( Documentation, Module (..), fromModule, Union (..)...
null
https://raw.githubusercontent.com/gren-lang/compiler/97f67c92e82b63a85725efc37e8fd05461c0ecc6/compiler/src/Gren/Docs.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # Temporary while implementing gren format DOCUMENTATION JSON UNION JSON ALIAS JSON VALUE JSON PRECEDENCE JSON FROM MODULE , ( ) \n @ d o c s CHECK NAMES CHECK DEFS GATHER TYPES
# LANGUAGE UnboxedTuples # # OPTIONS_GHC -Wall # # OPTIONS_GHC -Wno - error = unused - do - bind # module Gren.Docs ( Documentation, Module (..), fromModule, Union (..), Alias (..), Value (..), Binop (..), Binop.Associativity (..), Binop.Precedence (..), Error (..), decoder, ...
56b7d59bf2a74a23efb180782d383f1cb0ab4e685b635e228c18b6fdbf37619e
ohua-dev/ohua-core
Monad.hs
# LANGUAGE CPP # #include "compat.h" module Ohua.Monad ( OhuaM, runFromExpr, runFromBindings , MonadGenId(generateId, resetIdCounter) , MonadGenBnd(generateBinding, generateBindingWith) , HasEnvExpr(EnvExpr) , MonadReadEnvExpr(lookupEnvExpr), getEnvExpr , MonadRecordEnvExpr(addEnvExpression) ...
null
https://raw.githubusercontent.com/ohua-dev/ohua-core/8fe0ee90f4a1aea0c5bfabe922b290fed668a7da/core/src/Ohua/Monad.hs
haskell
** Helper functions for building instances of 'MonadGenBnd'
# LANGUAGE CPP # #include "compat.h" module Ohua.Monad ( OhuaM, runFromExpr, runFromBindings , MonadGenId(generateId, resetIdCounter) , MonadGenBnd(generateBinding, generateBindingWith) , HasEnvExpr(EnvExpr) , MonadReadEnvExpr(lookupEnvExpr), getEnvExpr , MonadRecordEnvExpr(addEnvExpression) ...
14cca162a43f07aea5bb9a98b79dec76c71202d91b23137c78029de0d0a920d3
danieljharvey/mimsa
ModuleError.hs
# LANGUAGE DerivingStrategies # {-# LANGUAGE OverloadedStrings #-} module Language.Mimsa.Types.Error.ModuleError (ModuleError (..), moduleErrorDiagnostic) where import Data.Set (Set) import Data.Text (Text) import qualified Error.Diagnose as Diag import Language.Mimsa.Core import Language.Mimsa.Types.Error.TypeError ...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/src/Language/Mimsa/Types/Error/ModuleError.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DerivingStrategies # module Language.Mimsa.Types.Error.ModuleError (ModuleError (..), moduleErrorDiagnostic) where import Data.Set (Set) import Data.Text (Text) import qualified Error.Diagnose as Diag import Language.Mimsa.Core import Language.Mimsa.Types.Error.TypeError data ModuleError = DuplicateDefi...
bc786236b6131002db8baf727ff1e7ad25b70ac1d765b250d438216b238cd362
mpickering/apply-refact
ListRec6.hs
f [] y = y; f (x:xs) y = f xs $ g x y
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/ListRec6.hs
haskell
f [] y = y; f (x:xs) y = f xs $ g x y
8c75e8d8f22318a5f8dafcf148446fff6b111c149e79a4d629f58755228315f5
phadej/vec
Lens.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.Vec.Laz...
null
https://raw.githubusercontent.com/phadej/vec/a895ab79e054987938295d5a149758eb79d85683/vec-lens/src/Data/Vec/Lazy/Lens.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # * Indexing * Conversions $setup >>> :set -XScopedTypeVariables >>> import Data.Fin (Fin (..)) ----------------------------------------------------------------------------- In...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.Vec.Lazy.Lens ( ix, _Cons, _head, _tail, _Pull, _Vec, ) where import Control.Applicative ((<$>)) import Data.Fin (Fin (..)...
0ec39c81d1204bc1e3f95ffb07e795cbae5aa9d1d0306a90d5926d2eae21e74c
jimburton/scrabble
Chapter2.hs
module Test.Chapter2 where import Test.QuickCheck (Property) import Test.QuickCheck.Monadic (assert, monadicIO) import System.Random (getStdGen) import Control.Monad.IO.Class (liftIO) import Scrabble.Types ( Letter(A) , Evaluator(..) ) import Scrabble.Board.Bag ( newBag , fillRack ) import Scrabble.Board.Pre...
null
https://raw.githubusercontent.com/jimburton/scrabble/89742251e3f67230081c69e037b52149ba45e703/tests/Test/Chapter2.hs
haskell
for the Show instance of Game | Test that using @fillRack@ takes the tiles from the bag and puts them in the rack. | Test that using @fillRack@ to fill a full rack does nothing.
module Test.Chapter2 where import Test.QuickCheck (Property) import Test.QuickCheck.Monadic (assert, monadicIO) import System.Random (getStdGen) import Control.Monad.IO.Class (liftIO) import Scrabble.Types ( Letter(A) , Evaluator(..) ) import Scrabble.Board.Bag ( newBag , fillRack ) prop_fillRack1 :: Prope...
4d6d885c2f8684eb87d00f7bf34815387b7cb61fa8b34c657aacd2848d461a9b
flounders/lambdaPass
Logic.hs
{-# LANGUAGE OverloadedStrings #-} module Text.LambdaPass.Logic where import Text.LambdaPass.Argument.Parser import Text.LambdaPass.Storage import Text.LambdaPass.Types import Control.Monad (join) import Crypto.Gpgme import Data.Either (either) import Data.List (sort) import Data.Maybe (fromMaybe) import qualified Da...
null
https://raw.githubusercontent.com/flounders/lambdaPass/9b0c40ea94c826066f33dd32bf9019ec0123a1ff/src/Text/LambdaPass/Logic.hs
haskell
# LANGUAGE OverloadedStrings # Command router Command back ends Common helper functions
module Text.LambdaPass.Logic where import Text.LambdaPass.Argument.Parser import Text.LambdaPass.Storage import Text.LambdaPass.Types import Control.Monad (join) import Crypto.Gpgme import Data.Either (either) import Data.List (sort) import Data.Maybe (fromMaybe) import qualified Data.Set as S import Data.Text (Text)...
fdb9c1d3076f6c2ee38e51e04467b1ec6a1f6e9a989469fe4594cfdf264e0dcc
mbj/stratosphere
MetadataPropertiesProperty.hs
module Stratosphere.SageMaker.ModelPackage.MetadataPropertiesProperty ( MetadataPropertiesProperty(..), mkMetadataPropertiesProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratos...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelPackage/MetadataPropertiesProperty.hs
haskell
module Stratosphere.SageMaker.ModelPackage.MetadataPropertiesProperty ( MetadataPropertiesProperty(..), mkMetadataPropertiesProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratos...
4f98a44f4d1d2dea8ca737fb85fd18ec0fb83f3b9ade5327659da488a8950c8b
tommaisey/aeon
buf-allpass-n.help.scm
;; See Bufallpass-c
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/delays/buf-allpass-n.help.scm
scheme
See Bufallpass-c
0fad06e0077c35041cbc24f8f62e773c1b2011d3a846d59f158de6897187170e
40ants/40ants.github.com
mgl-pax.lisp
(eval-when (:compile-toplevel :load-toplevel) (ql:quickload '(mgl-pax log4cl) :silent t)) (defpackage #:coleslaw-mgl-pax (:use #:cl) (:import-from #:coleslaw #:render-text) (:import-from #:log4cl)) (in-package coleslaw-mgl-pax) (defvar *page*) ;; Hack to access page object i...
null
https://raw.githubusercontent.com/40ants/40ants.github.com/da77f46c3831f2b63b6d83cbe00f70f0dc4a14fa/plugins/mgl-pax.lisp
lisp
Hack to access page object inside the render-text To not show ↺ link at the top of the post To not render [in package ...] headers (declare (ignore loaded))
(eval-when (:compile-toplevel :load-toplevel) (ql:quickload '(mgl-pax log4cl) :silent t)) (defpackage #:coleslaw-mgl-pax (:use #:cl) (:import-from #:coleslaw #:render-text) (:import-from #:log4cl)) (in-package coleslaw-mgl-pax) (defvar *page*) (defmethod initialize-instance ...
81bb2cc0a22fc5aeea882eda9e6e456e1c95d27fa9cf37983f72f5d84b53c939
mcorbin/meuse
route.clj
(ns meuse.interceptor.route (:require [clojure.string :as string] meuse.api.crate.download [meuse.api.crate.http :as crate-http] [meuse.api.default :as default] [meuse.api.meuse.http :as meuse-http] [meuse.api.mirror.http :as mirror-http] [meuse....
null
https://raw.githubusercontent.com/mcorbin/meuse/f137afeaa25262c01dc796ee087b002e27c2071b/src/meuse/interceptor/route.clj
clojure
(ns meuse.interceptor.route (:require [clojure.string :as string] meuse.api.crate.download [meuse.api.crate.http :as crate-http] [meuse.api.default :as default] [meuse.api.meuse.http :as meuse-http] [meuse.api.mirror.http :as mirror-http] [meuse....
c69a5e7209c90b4838cd85414b729dbb6b13f758a8f54f9b1fd5d6e51f5c6f07
FlowForwarding/enetconf
enetconf_fm_eom.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% 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 %%...
null
https://raw.githubusercontent.com/FlowForwarding/enetconf/b236de5403b8f3a9d6b58ffbcd7e58191a893671/src/enetconf_fm_eom.erl
erlang
------------------------------------------------------------------------------ you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > @author < > 2012 FlowForwarding.org -module(enetconf_fm_eom). -export([encode/1, deco...
ce53a54ee06ef5540f85f06d45ebab64b79294191784247125d83bf5f7393836
Frama-C/Frama-C-snapshot
numerors_arithmetics.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/values/numerors/numerors_arithmetics.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
c5788c769402a50b50d7bef53e5e4d29088e9c7690e73158e4c0c86b39a2d74b
cac-t-u-s/om-sharp
numbers.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/34ab7d95f5925e863aed6d98575e3df46078e669/src/packages/basic/functions/numbers.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
Authors : , , ( code from OM6 ) (in-package :om) Comparison functions (defmethod* om< ((num1 number) (num2 number)) :initvals '(0 1) :indoc '("a number" "a number") :doc "Tests if <num1> is smaller than <num2>. Returns T if the test is verified and NIL if not. " (< num1 num2)) (defmethod* om> ((num1...
f7613d919586fd1c334ccf931b105d0c222adcc9e2269e9b0bf7cc215a63277a
ds-wizard/engine-backend
PersistentCommandService.hs
module Wizard.Service.PersistentCommand.PersistentCommandService where import qualified Control.Exception.Base as E import Control.Monad (forever, unless, when) import Control.Monad.Reader (ask, asks, liftIO) import Data.Aeson (Value (..), toJSON) import Data.Foldable (traverse_) import qualified Data.HashMap.Strict a...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/edaa66bafb2bb81106907c2b7041901f87ebf449/engine-wizard/src/Wizard/Service/PersistentCommand/PersistentCommandService.hs
haskell
-------------------------------- PRIVATE --------------------------------
module Wizard.Service.PersistentCommand.PersistentCommandService where import qualified Control.Exception.Base as E import Control.Monad (forever, unless, when) import Control.Monad.Reader (ask, asks, liftIO) import Data.Aeson (Value (..), toJSON) import Data.Foldable (traverse_) import qualified Data.HashMap.Strict a...
73e6dfab8f215389ba402ae042f03b5cb80822e132b9f030463fd047ee11f023
rd--/hsc3
sensoryDissonance.help.hs
-- sensoryDissonance ; noteId 'norm' input calculation let sig = soundIn 0 chn = fft' (localBufId 'α' 1 2048) sig maxpeaks = 100 dissonance = X.sensoryDissonance kr chn 100 0.1 (0.01 / maxpeaks) 1 in pan2 (blip ar 100 (sqrt dissonance * 200)) 0 0.1
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/sensoryDissonance.help.hs
haskell
sensoryDissonance ; noteId 'norm' input calculation
let sig = soundIn 0 chn = fft' (localBufId 'α' 1 2048) sig maxpeaks = 100 dissonance = X.sensoryDissonance kr chn 100 0.1 (0.01 / maxpeaks) 1 in pan2 (blip ar 100 (sqrt dissonance * 200)) 0 0.1
c86694d761cb75bcc070106c6afcfff295f5625ef0c4ecf719448689f7b090d1
tek/chiasma
TmuxError.hs
module Chiasma.Data.TmuxError where import Polysemy.Process.Data.ProcessError (ProcessError) import Chiasma.Data.CodecError (CodecError (CodecError)) import Chiasma.Data.DecodeError (DecodeError) import Chiasma.Data.TmuxRequest (TmuxRequest) data TmuxError = ProcessFailed ProcessError | RequestFailed TmuxReque...
null
https://raw.githubusercontent.com/tek/chiasma/53452c9d5b0aec63db105f003543efda3a3307b4/packages/chiasma/lib/Chiasma/Data/TmuxError.hs
haskell
module Chiasma.Data.TmuxError where import Polysemy.Process.Data.ProcessError (ProcessError) import Chiasma.Data.CodecError (CodecError (CodecError)) import Chiasma.Data.DecodeError (DecodeError) import Chiasma.Data.TmuxRequest (TmuxRequest) data TmuxError = ProcessFailed ProcessError | RequestFailed TmuxReque...
f1d2f808cabd5e4ebcc08100907d2f350668731d40c53a6b2a758f1741cbf036
picty/parsifal
dSAKey.ml
open Asn1PTypes asn1_struct dsa_params = { dsa_p : der_integer; dsa_q : der_integer; dsa_g : der_integer } (* TODO: Add checks? *) alias dsa_public_key = der_integer asn1_struct dsa_signature = { dsa_r : der_integer; dsa_s : der_integer }
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/crypto/dSAKey.ml
ocaml
TODO: Add checks?
open Asn1PTypes asn1_struct dsa_params = { dsa_p : der_integer; dsa_q : der_integer; dsa_g : der_integer } alias dsa_public_key = der_integer asn1_struct dsa_signature = { dsa_r : der_integer; dsa_s : der_integer }
4f63123705f79c40a14edd753ebd7556651c2885a836da5d32953f4dd7d6fb9b
nikodemus/SBCL
assem.lisp
;;;; scheduling assembler This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; pro...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/assem.lisp
lisp
scheduling assembler more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. assembly control parameters the SEGMENT structure This structure holds the state of the assembler. the type of this se...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!ASSEM") (defvar *assem-scheduler-p* nil) (declaim (type boolean *assem-scheduler-p*)) (defvar *assem-inst...
ac64bc32182a64397329bd4d0fe9b1a8fce7d08f5629cc3da86a17042dfdaacb
ml-in-barcelona/server-reason-react
reactDOMStyle.mli
val make : ?azimuth:string -> ?background:string -> ?backgroundAttachment:string -> ?backgroundColor:string -> ?backgroundImage:string -> ?backgroundPosition:string -> ?backgroundRepeat:string -> ?border:string -> ?borderCollapse:string -> ?borderColor:string -> ?borderSpacing:string -> ?bord...
null
https://raw.githubusercontent.com/ml-in-barcelona/server-reason-react/a5d22907eb2633bcb8e77808f6c677802062953a/lib/reactDom/reactDOMStyle.mli
ocaml
val make : ?azimuth:string -> ?background:string -> ?backgroundAttachment:string -> ?backgroundColor:string -> ?backgroundImage:string -> ?backgroundPosition:string -> ?backgroundRepeat:string -> ?border:string -> ?borderCollapse:string -> ?borderColor:string -> ?borderSpacing:string -> ?bord...
5f5c2b9eb1d4db69e037af194bb2387d0a57d36611d2e321d6583318116781ed
htmfilho/minimily
account.clj
(ns minimily.accounting.web.api.account (:require [clojure.data.json :as json] [minimily.accounting.model.account :as account-model])) (defn get-accounts [session params] (let [profile-id (:profile-id session) third-party-id (:third_party params)] (json/write-str (if (em...
null
https://raw.githubusercontent.com/htmfilho/minimily/4f9d6d0e485c23e97bd41fd0d831332cd0aa2695/src/minimily/accounting/web/api/account.clj
clojure
(ns minimily.accounting.web.api.account (:require [clojure.data.json :as json] [minimily.accounting.model.account :as account-model])) (defn get-accounts [session params] (let [profile-id (:profile-id session) third-party-id (:third_party params)] (json/write-str (if (em...
ce9d1a393d496a8958488b29b6446fb5a475b778caddf62c6ba9bb274c92d448
atlas-engineer/nyxt
reduce-bandwidth.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/reduce-bandwidth-mode (:documentation "Reduce bandwidth.")) (in-package :nyxt/reduce-bandwidth-mode) (define-mode reduce-bandwidth-mode (nyxt/no-image-mode:no-image-mode ...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/feb4b3b4f61d80937fbcd016d72a951b35c4a1fd/source/mode/reduce-bandwidth.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/reduce-bandwidth-mode (:documentation "Reduce bandwidth.")) (in-package :nyxt/reduce-bandwidth-mode) (define-mode reduce-bandwidth-mode (nyxt/no-image-mode:no-image-mode ...
c8c1ae14140ca19e7444ce9ce89347397e89df67c258da756173a6b3d5789ed1
geophf/1HaskellADay
Exercise.hs
{-# LANGUAGE OverloadedStrings #-} module Y2018.M04.D02.Exercise where import Data.Aeson import Data.Aeson.Encode.Pretty - Today we 're going to be doing a bit of structural discovery in JSON . We have JSON at : - Today we're going to be doing a bit of structural discovery in JSON. We have JSON at: --} arts :...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M04/D02/Exercise.hs
haskell
# LANGUAGE OverloadedStrings # } a data structure of what looks important to you in the data set and parsing the JSON into that data structure What is the structure you came up with?
module Y2018.M04.D02.Exercise where import Data.Aeson import Data.Aeson.Encode.Pretty - Today we 're going to be doing a bit of structural discovery in JSON . We have JSON at : - Today we're going to be doing a bit of structural discovery in JSON. We have JSON at: arts :: FilePath arts = "Y2018/M04/D02/posts....
111af86dd7325c2a711036598fca63c54cd22fa3ba4eb428f1913edda927dabd
lexi-lambda/racket-r7rs
lazy.rkt
#lang racket/base ;; This implementation of promises is necessarily incompatible with racket / promise because allows ` force ` to be called on promises that are ;; currently running. It is partially based on the sample implementation given in section 7.3 of the R7RS specification . (provide delay delay-force fo...
null
https://raw.githubusercontent.com/lexi-lambda/racket-r7rs/e3958ae5c2ecf5cf18eedba9e3b68c209da5acd7/r7rs-lib/lazy.rkt
racket
This implementation of promises is necessarily incompatible with currently running. It is partially based on the sample implementation given boolean? (if done? any/c (-> promise?))
#lang racket/base racket / promise because allows ` force ` to be called on promises that are in section 7.3 of the R7RS specification . (provide delay delay-force force make-promise promise?) (struct promise #:mutable) (define-syntax-rule (delay expr) (delay-force (promise #t expr))) (define-syntax-rule ...
c11034208cee0422d8abc11d7df640d149fd037f73c3874249d08bdd78af3c28
guibou/streamray
Box.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # module Streamray.Geometry.Box where import Control.DeepSeq import Data.Foldable import Data.Vector (Vector) import GHC.Generics import Streamray.Linear -- | Represents a box aligned with axis data Box = Box {-# UNPACK #-} !(V3 'Positio...
null
https://raw.githubusercontent.com/guibou/streamray/a401f3b18b5afa571afcea32b928115155b68ef1/src/Streamray/Geometry/Box.hs
haskell
# LANGUAGE DeriveAnyClass # | Represents a box aligned with axis # UNPACK # # UNPACK # | This is the union of box | Returns the bounding box of any object | Bounding box of all objects | Return the largest axis of a box Add a point to a box
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module Streamray.Geometry.Box where import Control.DeepSeq import Data.Foldable import Data.Vector (Vector) import GHC.Generics import Streamray.Linear deriving (Show, Eq, NFData, Generic) instance Semigroup Box where Box pMin pMax <> Box pMin' pMax' = Box (...
ca429840b3892f898fb60158311b4c1bf48be5407f76792284fc30b9f60d2e94
mclumd/Meta-AQUA
rep_undefined-roles.lisp
(DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION CONSEQ (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMA...
null
https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/Results/rep_undefined-roles.lisp
lisp
(DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION CONSEQ (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMA...
edb4ab34234f9e7c06c6b6ee391deb6a396d9d44676ce7b4e737fc3bf31e8442
haskell-suite/haskell-src-exts
IndentedTopLevelWhere.hs
module IndentedTopLevelWhere where foo :: Int foo = 5 where bar :: Int bar = 3
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/IndentedTopLevelWhere.hs
haskell
module IndentedTopLevelWhere where foo :: Int foo = 5 where bar :: Int bar = 3
4c5986d9e3d57258be2dca27a29052b3795f74cd2d9accfd8a02d21652016803
DaisukeBekki/lightblue
lightblueMain.hs
{-# OPTIONS -Wall #-} {-# LANGUAGE OverloadedStrings #-} import Options.Applicative hiding (style) --optparse-applicative import Data.Semigroup ((<>)) --semigroup import Control.Monad (forM_) --base import qualified Data.Text.Lazy as T --text import qualified Data.Text.Lazy.IO as T --t...
null
https://raw.githubusercontent.com/DaisukeBekki/lightblue/420532a54bae200890116a336911eb0c114c8930/app/lightblueMain.hs
haskell
# OPTIONS -Wall # # LANGUAGE OverloadedStrings # optparse-applicative semigroup base text text import qualified Data.Text as StrictT --text text base base base base base base container time commandReader :: String -> a -> String -> [(a,String)] commandReader r command option = [(command,s) | (x,s) <- lex r, map C....
import qualified Parser.ChartParser as CP import qualified Parser.Japanese.MyLexicon as LEX import qualified Interface as I import qualified Interface.Text as T import qualified JSeM as J import qualified JSeM.XML as J import qualified DTS.UDTT as DTS import qualified DTS.Prover . TypeChecker as TC import qualified DT...
b7fbc89566080b3b755c2e4ae9e5eef81df027642aa1dff4b58ea888c20be953
ocaml/dune
comparator.ml
module type S = sig type t val compare : t -> t -> Ordering.t end module type OPS = sig type t val equal : t -> t -> bool val ( = ) : t -> t -> bool val ( >= ) : t -> t -> bool val ( > ) : t -> t -> bool val ( <= ) : t -> t -> bool val ( < ) : t -> t -> bool val ( <> ) : t -> t -> bool end ...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/comparator.ml
ocaml
module type S = sig type t val compare : t -> t -> Ordering.t end module type OPS = sig type t val equal : t -> t -> bool val ( = ) : t -> t -> bool val ( >= ) : t -> t -> bool val ( > ) : t -> t -> bool val ( <= ) : t -> t -> bool val ( < ) : t -> t -> bool val ( <> ) : t -> t -> bool end ...
eefb77fe3ba6700e1df000354476dfabd5d6bca39a47d5b24a5a7ac862b9407f
vmchale/atspkg
Compiler.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # -- | This module contains functions for installing the @patscc@ compiler. It also includes functions for building @libatslib@. module Language.ATS.Package.Compiler ( packageCompiler ( fetchCompiler , setupCompiler , cleanAll -- * Ty...
null
https://raw.githubusercontent.com/vmchale/atspkg/45be7ece6b9e9b09a7151efe53ff7e278112e84d/ats-pkg/src/Language/ATS/Package/Compiler.hs
haskell
# LANGUAGE OverloadedStrings # | This module contains functions for installing the @patscc@ compiler. It * Types in "-lang/ats2-lang/ats2-postiats-" ++ vs ++ "/ATS2-Postiats-" ++ gmp ++ vs ++ ".tgz" | Make a tarball from a directory containing the compiler. packageCompiler :: FilePath -> IO () packageCompiler dir...
# LANGUAGE TemplateHaskell # also includes functions for building @libatslib@. module Language.ATS.Package.Compiler ( packageCompiler ( fetchCompiler , setupCompiler , cleanAll , SetupScript ) where import qualified Archive.Compression as Archive import Codec.Compression.GZip ...
373cba94c241ee63bdced409921c28c33badf08094a02d5b9ddfb2f9dbe1dd1e
sklassen/erlang-linalg-native
linalg_lu.erl
-module(linalg_lu). -vsn('1.0.1'). -author('simon.klassen'). -export([lu/1]). -type scalar() :: number(). -type vector() :: list(scalar()). -type matrix() :: list(vector()). % linalg_lu:lu([[1.0,3.0,5.0],[2.0,4.0,7.0],[1.0,1.0,0.0]]). % linalg_lu:lu([[11,9,24,2],[1,5,2,6],[3,17,18,1],[2,5,7,1]]). -spec lu(matrix()) ...
null
https://raw.githubusercontent.com/sklassen/erlang-linalg-native/b31eef532b9fe2be7ecbff52a060ccdc833b4dca/src/linalg_lu.erl
erlang
linalg_lu:lu([[1.0,3.0,5.0],[2.0,4.0,7.0],[1.0,1.0,0.0]]). linalg_lu:lu([[11,9,24,2],[1,5,2,6],[3,17,18,1],[2,5,7,1]]).
-module(linalg_lu). -vsn('1.0.1'). -author('simon.klassen'). -export([lu/1]). -type scalar() :: number(). -type vector() :: list(scalar()). -type matrix() :: list(vector()). -spec lu(matrix()) -> {matrix(), matrix(), matrix()}. lu(RowWise) -> N = length(RowWise), Pivot = pivot(RowWise), {L, U} = lu(linal...
5523e6f85e7cbb49fe5a5409b2abdd29f015a2e49b1b306c2523c7ea8e5c4780
zadean/xqerl
fn_substring_before_SUITE.erl
-module('fn_substring_before_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-substring-before-1'/1]). -export(['fn-substring-before-2'/1]). -export(...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_substring_before_SUITE.erl
erlang
-module('fn_substring_before_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-substring-before-1'/1]). -export(['fn-substring-before-2'/1]). -export(...
7f4a44aa2cc9ffc04929a82677fc981acdefcfadaa1f6d4cd21583f059cce995
Khady/ocaml-junit
junit_ounit.ml
* Interface from OUnit result to JUnit reports module O = OUnit module J = Junit let of_result o = let time = 0. in let classname = "" in let typ = "" in match o with | O.RError (path, msg) -> J.Testcase.error ~typ ~classname ~time ~name:(O.string_of_path path) ~message:msg "" ...
null
https://raw.githubusercontent.com/Khady/ocaml-junit/b7b9a9e44c9223ccb2d852851af967abcfe98018/ounit/junit_ounit.ml
ocaml
* Interface from OUnit result to JUnit reports module O = OUnit module J = Junit let of_result o = let time = 0. in let classname = "" in let typ = "" in match o with | O.RError (path, msg) -> J.Testcase.error ~typ ~classname ~time ~name:(O.string_of_path path) ~message:msg "" ...
66f87217aded275baf20e0fbe37db5400f33352de54c8b2439e3b1e68abd9689
tek/ribosome
Run.hs
module Ribosome.Unit.Run where import Data.MessagePack (Object) import Log (Severity (Trace)) import Polysemy.Test (TestError (TestError), UnitTest) import Ribosome.Data.PluginName (PluginName) import Ribosome.Effect.VariableWatcher (WatchedVariable) import Ribosome.Effect.Scratch (Scratch) import Ribosome.Effect.Set...
null
https://raw.githubusercontent.com/tek/ribosome/a676b4f0085916777bfdacdcc761f82d933edb80/packages/ribosome/test/Ribosome/Unit/Run.hs
haskell
module Ribosome.Unit.Run where import Data.MessagePack (Object) import Log (Severity (Trace)) import Polysemy.Test (TestError (TestError), UnitTest) import Ribosome.Data.PluginName (PluginName) import Ribosome.Effect.VariableWatcher (WatchedVariable) import Ribosome.Effect.Scratch (Scratch) import Ribosome.Effect.Set...
78a321c5db40d666357b59762beff065d86ff93fc3a0a3bb50ae39d47a6d0860
elaforge/karya
ValType_test.hs
Copyright 2015 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Derive.ValType_test where import Util.Test import qualified Derive.Typecheck as Typecheck import qualified Derive.ValType as ValType import Derive.ValType (Type(..), NumType(..), N...
null
https://raw.githubusercontent.com/elaforge/karya/8ea15e6a5fb57e2f15f8c19836751e315f9c09f2/Derive/ValType_test.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt TTime has subtypes. TTranspose has subtypes.
Copyright 2015 module Derive.ValType_test where import Util.Test import qualified Derive.Typecheck as Typecheck import qualified Derive.ValType as ValType import Derive.ValType (Type(..), NumType(..), NumValue(..)) import qualified Perform.Pitch as Pitch import Types test_types_match :: Test test_types_match = ...
d430fb211e17ef946750f5302926a76904e39599e9b5c835c539d1956480f062
may-liu/qtalk
http_getonlineuser2.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_getonlineuser2). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Me...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/http_getonlineuser2.erl
erlang
Feel free to use, reuse and abuse the code in this file. http_utils:gen_result(false, <<"-1">>, <<"Not found Mac_Key">>)
-module(http_getonlineuser2). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _} = cowboy_req:method(Req), catch ejb_monitor:mon...
7e8c356228b1268c4b5fe445f8f413124d31cd46c4e9aeabc70a2672735e9aa0
ryszard/clsql
mysql-client-info.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; Name : ;;;; Purpose: Check mysql client version Programmer : Date Started : April 2004 ;;;; $ Id$ ;;;; This f...
null
https://raw.githubusercontent.com/ryszard/clsql/9aafcb72bd7ca1d7e908938b6a5319753b3371d9/db-mysql/mysql-client-info.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Purpose: Check mysql client version (), also known as the LLGPL. *************************************************************************
Name : Programmer : Date Started : April 2004 $ Id$ This file , part of CLSQL , is Copyright ( c ) 2004 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:mysql) (declaim (inline my...
706cff226818dd3320becb7dfa2bb213f4be85d95f3e077c178b8c192fb887e0
clojure-emacs/refactor-nrepl
rename_file_or_dir.clj
(ns refactor-nrepl.rename-file-or-dir (:require [clojure.string :as str] [refactor-nrepl.core :as core] [refactor-nrepl.ns.ns-parser :as ns-parser] [refactor-nrepl.ns.pprint :refer [pprint-ns]] [refactor-nrepl.ns.rebuild :refer [rebuild-ns-form]] [refactor-nrepl.ns.tracker :as tracker] [refactor-...
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/56ac8e225cf674a424409239c550b7e52835a3c2/src/refactor_nrepl/rename_file_or_dir.clj
clojure
Require our `fs` customizations before `fs` is loaded: When the directory is changed we don't yet know what the path of the new dependents will be
(ns refactor-nrepl.rename-file-or-dir (:require [clojure.string :as str] [refactor-nrepl.core :as core] [refactor-nrepl.ns.ns-parser :as ns-parser] [refactor-nrepl.ns.pprint :refer [pprint-ns]] [refactor-nrepl.ns.rebuild :refer [rebuild-ns-form]] [refactor-nrepl.ns.tracker :as tracker] [refactor-...
270aff1c546e91fb602ef4a09e9ba54e3329eac4bfa7830c1f2a1dcb0f2704b5
haskell/haskell-language-server
Service.hs
Copyright ( c ) 2019 The DAML Authors . All rights reserved . SPDX - License - Identifier : Apache-2.0 # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} -- | A Shake implementation of the compiler service, built using the " " abstraction layer for in - memor...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/fdbc555a9245cb3761c2bf7335f3d18b8cf7673c/ghcide/src/Development/IDE/Core/Service.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE TypeFamilies # | A Shake implementation of the compiler service, built ---------------------------------------------------------- Exposed API This will return as soon as the result of the action is available. There might still be other rules running at this point, e...
Copyright ( c ) 2019 The DAML Authors . All rights reserved . SPDX - License - Identifier : Apache-2.0 # LANGUAGE FlexibleInstances # using the " " abstraction layer for in - memory use . module Development.IDE.Core.Service( getIdeOptions, getIdeOptionsIO, IdeState, initialise, shutdown, runActio...
aac83d21619bcef1d46ca62533a609a9050b0a0ef6cacefafdeeff7d17e5e9e7
anuragsoni/snabbdom-ml
import.ml
let snabbdom = let global = Jv.get Jv.global "SnabbDom" in if Jv.is_some global then global else failwith @@ Printf.sprintf "Could not find SnabbDom" let get_global name = let v = Jv.get snabbdom name in if Jv.is_some v then v else failwith @@ Printf.sprintf "Could not find %S" name
null
https://raw.githubusercontent.com/anuragsoni/snabbdom-ml/1ce151b0989d4795ee02666376c09ab27b52ee71/lib/import.ml
ocaml
let snabbdom = let global = Jv.get Jv.global "SnabbDom" in if Jv.is_some global then global else failwith @@ Printf.sprintf "Could not find SnabbDom" let get_global name = let v = Jv.get snabbdom name in if Jv.is_some v then v else failwith @@ Printf.sprintf "Could not find %S" name
86a54b8df757d0fab2d737831d85832404a81a1a2103238866cf5dd93cb3b46c
techascent/tech.ml
ml_test.clj
(ns tech.v3.ml-test (:require [tech.v3.dataset :as ds] [tech.v3.dataset.modelling :as ds-mod] [tech.v3.libs.smile.discrete-nb :as nb] [tech.v3.libs.smile.nlp :as nlp] [tech.v3.libs.smile.classification] [tech.v3.ml :as ml] [tech.v3.ml.gridsearch ...
null
https://raw.githubusercontent.com/techascent/tech.ml/7f2cc506980a05f0f8c85f8b1ff0cde6b9451f54/test/tech/v3/ml_test.clj
clojure
(ns tech.v3.ml-test (:require [tech.v3.dataset :as ds] [tech.v3.dataset.modelling :as ds-mod] [tech.v3.libs.smile.discrete-nb :as nb] [tech.v3.libs.smile.nlp :as nlp] [tech.v3.libs.smile.classification] [tech.v3.ml :as ml] [tech.v3.ml.gridsearch ...
51934a375d74db65c8add8d6b647f4feb612b55e217f39bfdc2020bf44af3b2a
ArulselvanMadhavan/haskell-first-principles
functors1.hs
module Functors1 where data FixMePls = FixMe | Pls deriving (Eq, Show) instance Functor FixMePls where fmap = error "this won't compile because FixMePls is not a higher kinded type"
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter16/src/functors1.hs
haskell
module Functors1 where data FixMePls = FixMe | Pls deriving (Eq, Show) instance Functor FixMePls where fmap = error "this won't compile because FixMePls is not a higher kinded type"
57db3eec992d5b0fd876f18850b57dbe998055aab038cf23889ac4e625064361
ckirkendall/enfocus
events_test.cljs
(ns enfocus.evets-test (:require [enfocus.core :as ef :refer [at from content get-text html set-form-input read-form-input do-> set-prop read-form set-form set-attr]] [enfocus.events :as ev :refer [listen listen-live remove-listeners]] [domina.e...
null
https://raw.githubusercontent.com/ckirkendall/enfocus/54ee5d1ec4c1fd603d4766caac07bfc482f65abb/test/cljs/enfocus/events_test.cljs
clojure
initialize the environment execute the unit test clear the environment
(ns enfocus.evets-test (:require [enfocus.core :as ef :refer [at from content get-text html set-form-input read-form-input do-> set-prop read-form set-form set-attr]] [enfocus.events :as ev :refer [listen listen-live remove-listeners]] [domina.e...
e3f5fd3448700e068f8c4ada4df31a697dc2ae796e3b1842f2c93a7161d99174
roburio/builder-web
m20210910.ml
open Grej.Infix let mixups = Caqti_type.unit ->* Caqti_type.tup3 (Builder_db.Rep.id (`build : [`build])) Builder_db.Rep.fpath Builder_db.Rep.fpath @@ "SELECT id, console, script FROM build \ WHERE console LIKE '%/script.txt' AND script LIKE '%/console.txt'" let fixup = Caqti_type.tup3 (Builder_db.Rep.i...
null
https://raw.githubusercontent.com/roburio/builder-web/a85be8730cece0bd78df580fb7d48aff94e060d2/bin/migrations/m20210910.ml
ocaml
open Grej.Infix let mixups = Caqti_type.unit ->* Caqti_type.tup3 (Builder_db.Rep.id (`build : [`build])) Builder_db.Rep.fpath Builder_db.Rep.fpath @@ "SELECT id, console, script FROM build \ WHERE console LIKE '%/script.txt' AND script LIKE '%/console.txt'" let fixup = Caqti_type.tup3 (Builder_db.Rep.i...
5e17371d0f2e6c44ba3d3901b7b3026fbee1f2632952a3d296be578210bdd025
lambdahands/lingo
core.clj
(ns examples.core (:use [lingo.core :only [make-gen]])) 's pieces comprise Clojure data structures . Maps are the ;; primary structure used to express each part of speech we're ;; interested in. ;; For example, an empty clause looks like this: {:> :clause} ;; The key :> is the identifier key. It tells us what ...
null
https://raw.githubusercontent.com/lambdahands/lingo/ee585cfcc9b02194e414920bc12cf5a4831eddf3/src/examples/core.clj
clojure
primary structure used to express each part of speech we're interested in. For example, an empty clause looks like this: The key :> is the identifier key. It tells us what kind of part we plan on generating. Here are other parts we're able to generate: Generating any of these parts will create empty phrases. To d...
(ns examples.core (:use [lingo.core :only [make-gen]])) 's pieces comprise Clojure data structures . Maps are the {:> :clause} {:> :noun} {:> :verb} {:> :subject} {:> :object} A noun can simply pass a string or a vector of two strings , the and the second being the actual phrase . {:> :noun :+ "dog"} ...
003623f48888cbc8afb15fdb9d70734ba0527f7d41e59162543daaabd2a11ece
modular-macros/ocaml-macros
ident.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/typing/ident.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format type t = { stamp: int; name: string; mutable flags: int } let global_flag = 1 let predef_ex...
01a45f8d3551fddfd52198efa4dcfaa22bdf9c174e3b4549d048edfa2e984c2e
ghcjs/ghcjs-boot
Quote.hs
# LANGUAGE RankNTypes , ScopedTypeVariables # module Language.Haskell.TH.Quote( QuasiQuoter(..), dataToQa, dataToExpQ, dataToPatQ, quoteFile ) where import Data.Data import Language.Haskell.TH.Lib import Language.Haskell.TH.Syntax data QuasiQuoter = QuasiQuoter { quoteExp :: String -> Q E...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/template-haskell/Language/Haskell/TH/Quote.hs
haskell
| 'dataToExpQ' converts a value to a 'Q Exp' representation of the same value. It takes a function to handle type-specific cases. | 'dataToPatQ' converts a value to a 'Q Pat' representation of the same value. It takes a function to handle type-specific cases. | 'quoteFile' takes a 'QuasiQuoter' and lifts it into o...
# LANGUAGE RankNTypes , ScopedTypeVariables # module Language.Haskell.TH.Quote( QuasiQuoter(..), dataToQa, dataToExpQ, dataToPatQ, quoteFile ) where import Data.Data import Language.Haskell.TH.Lib import Language.Haskell.TH.Syntax data QuasiQuoter = QuasiQuoter { quoteExp :: String -> Q E...
e8367dfa477099ea95f5fe2a3215d8dfea95fb49056756042deaeffc05318e26
input-output-hk/project-icarus-importer
Poll.hs
# LANGUAGE TemplateHaskell # | Arbitrary instances for Update System Poll types . module Pos.Arbitrary.Update.Poll () where import Universum import qualified Data.HashMap.Strict as HM import Test.QuickCheck (Arbitrary (..)) import Test.QuickCheck.Arbitrary.Generic (genericArbitrary, ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/update/Pos/Arbitrary/Update/Poll.hs
haskell
# LANGUAGE TemplateHaskell # | Arbitrary instances for Update System Poll types . module Pos.Arbitrary.Update.Poll () where import Universum import qualified Data.HashMap.Strict as HM import Test.QuickCheck (Arbitrary (..)) import Test.QuickCheck.Arbitrary.Generic (genericArbitrary, ...
9da8101eaa8f53193cd914f8deebc1c87df7346cbb0f24f9b20787a6ed180a3e
sinasamavati/leptus
leptus_router.erl
Copyright ( c ) 2013 - 2015 Sina Samavati < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %% to use, copy, modify, me...
null
https://raw.githubusercontent.com/sinasamavati/leptus/e0d9bd2270dfa85bd5922e0a5c2d0289d2dc0ef9/src/leptus_router.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2013 - 2015 Sina Samavati < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY ...
e998e9d5524d4e3ec85a8464dd31815edb78b6408ecb773b6c3b9289f981fe86
gfngfn/SATySFi
loadPdf.mli
type bbox = float * float * float * float val make_xobject : Pdf.t -> Pdf.t -> Pdfpage.t -> Pdf.pdfobject val get_page : Pdf.t -> int -> (bbox * Pdfpage.t) option
null
https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/backend/loadPdf.mli
ocaml
type bbox = float * float * float * float val make_xobject : Pdf.t -> Pdf.t -> Pdfpage.t -> Pdf.pdfobject val get_page : Pdf.t -> int -> (bbox * Pdfpage.t) option
ac7b8550e2985be2247d87efac590c3620bc38df5340acddcb0cb28f6c05bd20
well-typed/optics
Tests.hs
GHC 8.2.2 hangs on this module otherwise # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilyDependencies # {-# LANGUAGE TypeInType #-} # LANGUAGE UndecidableInstances # { - # OPTIONS_GHC -ddump - splices # - } module Main where import Data.Functor.Const import Data.Kind...
null
https://raw.githubusercontent.com/well-typed/optics/563972b0c04c76d878aa3ccc181fcc548c6c104e/optics-th/tests/Optics/TH/Tests.hs
haskell
# LANGUAGE TypeInType # -------------------------------------- it was incomplete (and didn't seem to do anything). mono :: Simple Lens t Mono mono = id nucleosis :: Simple Lens t Nucleosis nullary type family + unambiguous type family application ambiguous type family application, type-preserving optic no ...
GHC 8.2.2 hangs on this module otherwise # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # { - # OPTIONS_GHC -ddump - splices # - } module Main where import Data.Functor.Const import Data.Kind (Type) import Data.Tagged i...
c75ad669e6fc1a3268373bb7e4cc44503650e03ebe05f34234f55b5163aca958
dracula/nyxt
stylesheet.lisp
For version 3 (in-package #:nyxt-user) This only works on the versions of Nyxt after 2.2.4 . (define-configuration browser ((theme (make-instance 'theme:theme :dark-p t :background-color "#282a36" :text-color "#f8f8f2" :accent-color "#ff5555" :pr...
null
https://raw.githubusercontent.com/dracula/nyxt/0ae76f4e92487fd3c0605acaf6b343f24efc099d/stylesheet.lisp
lisp
Custom Dark-mode for webpages Configure Webpage Colors (define-configuration window ((message-buffer-style (str:concat %slot-default% (cl-css:css '((body :color "#f8f8f2"))))))) Configure Prompt Section (define-configuration prompt-buffer ((style (str:concat %slot-defaul...
For version 3 (in-package #:nyxt-user) This only works on the versions of Nyxt after 2.2.4 . (define-configuration browser ((theme (make-instance 'theme:theme :dark-p t :background-color "#282a36" :text-color "#f8f8f2" :accent-color "#ff5555" :pr...
f2812d50d8f79fb8a409dc02ecdbd046e5d9426a80a4cb619bfc1c68378181ee
irfn/clojure-ocr
repl.clj
(use '[clojure.contrib java-utils pprint seq-utils repl-utils duck-streams] 'ocr 'test.ocr )
null
https://raw.githubusercontent.com/irfn/clojure-ocr/c89da89031379a9c0367c68884caf4fcb40bb2da/src/repl.clj
clojure
(use '[clojure.contrib java-utils pprint seq-utils repl-utils duck-streams] 'ocr 'test.ocr )
2c6d98fc79bd091026ff3e34fae1807a9296fdc8ff53a2e0373bc4538d53e265
sebfisch/explicit-sharing
Setup.hs
import System.Process import System.Exit import Distribution.Simple main = defaultMainWithHooks $ simpleUserHooks { runTests = runTestSuite } runTestSuite _ _ _ _ = do pid <- runCommand $ "ghc -hide-package transformers -e main Test.hs" waitForProcess pid >>= exitWith
null
https://raw.githubusercontent.com/sebfisch/explicit-sharing/3c7205d69503db24fd5d3fb0556a35a25c742640/Setup.hs
haskell
import System.Process import System.Exit import Distribution.Simple main = defaultMainWithHooks $ simpleUserHooks { runTests = runTestSuite } runTestSuite _ _ _ _ = do pid <- runCommand $ "ghc -hide-package transformers -e main Test.hs" waitForProcess pid >>= exitWith
0c0aae80702b6ceec5f7dd0c6bdaff288300a3ed373c64fd7a6464f961e57991
unison-code/uni-instr-sel
MakeFunctionFromLLVM.hs
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
null
https://raw.githubusercontent.com/unison-code/uni-instr-sel/2edb2f3399ea43e75f33706261bd6b93bedc6762/uni-is-llvm/UniISLLVM/Drivers/MakeFunctionFromLLVM.hs
haskell
----------- Functions ----------- | Function for executing this driver. ^ The content of the LLVM IR file.
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
7dd47ba5dffd54bc82a39616777908c29f4820e3a9f80f49641292c5505b1288
jedimahdi/soltan
Scrypt.hs
module Hokm.Api.Effect.Scrypt ( Encrypted , ScryptL , encryptPassword , pattern Encrypted , run , un , verifyPassword ) where import Control.Lens.TH ( makeWrapped ) import qualified Crypto.Scrypt as Scrypt import Hokm.Api.Data.By...
null
https://raw.githubusercontent.com/jedimahdi/soltan/bc2f9c040854420b8964ad011205d6a251872fe0/backend/hokm-api/src/Hokm/Api/Effect/Scrypt.hs
haskell
# COMPLETE Encrypted #
module Hokm.Api.Effect.Scrypt ( Encrypted , ScryptL , encryptPassword , pattern Encrypted , run , un , verifyPassword ) where import Control.Lens.TH ( makeWrapped ) import qualified Crypto.Scrypt as Scrypt import Hokm.Api.Data.By...
2b7570b6d89c748f83df378cf494854291dd2088e0410f606ea010332b36b571
Helium4Haskell/helium
ExprNegateResult.hs
module ExprNegateResult where f :: Bool f = - 13
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Examples/ExprNegateResult.hs
haskell
module ExprNegateResult where f :: Bool f = - 13
3c4d46fcd34125a4d8219737e77ff23a25916cd9e838ea7b2da4916898e9fa1e
PacktWorkshops/The-Clojure-Workshop
exercise_7_05_test.clj
(ns packt-clj.chapter-7-tests.exercise-7-05-test (:require [clojure.test :as t :refer [deftest is testing]] [clojure.java.io :as io] [packt-clj.chapter-7-tests.exercise-7-05 :as exo] [packt-clj.chapter-7-tests.exercise-7-03 :as exo-three])) (def matches (exo-three/elo-db (io/file (io/resource "match_sco...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter07/tests/packt-clj.chapter-7-tests/test/packt_clj/chapter_7_tests/exercise_7_05_test.clj
clojure
(ns packt-clj.chapter-7-tests.exercise-7-05-test (:require [clojure.test :as t :refer [deftest is testing]] [clojure.java.io :as io] [packt-clj.chapter-7-tests.exercise-7-05 :as exo] [packt-clj.chapter-7-tests.exercise-7-03 :as exo-three])) (def matches (exo-three/elo-db (io/file (io/resource "match_sco...
5fc4327d581d5cd7154c0993f1946e4831305a50343051741ba4e14a97a39b22
Abhiroop/okasaki
TypeLevelBST.hs
# LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE GADTs , DataKinds # module BST where data Nat = Zero | Succ Nat data Tree n a where Branch :: T n a -> Tree (Succ n) a Leaf :: Tree Zero a data T n a = NodeR (Tree n a) a (Tree (Succ n) a) -- right subtree has height + 1 | NodeL (Tree ...
null
https://raw.githubusercontent.com/Abhiroop/okasaki/b4e8b6261cf9c44b7b273116be3da6efde76232d/src/TypeLevelBST.hs
haskell
right subtree has height + 1 left subtree has height + 1 both subtrees are of equidistant height Example
# LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE GADTs , DataKinds # module BST where data Nat = Zero | Succ Nat data Tree n a where Branch :: T n a -> Tree (Succ n) a Leaf :: Tree Zero a type family BoolEq (a :: Nat) (b :: Nat) :: Bool type instance BoolEq Zero Zero = True type instance BoolE...
c0d2c05d468d40b7c68a06db610aa81faee1a41323d8fe0b4becb3e7e647d56a
smallhadroncollider/taskell
Markdown.hs
module Taskell.IO.Config.Markdown ( Config(Config) , defaultConfig , parser , titleOutput , taskOutput , descriptionOutput , dueOutput , subtaskOutput , localTimes ) where import ClassyPrelude import Data.Ini.Config import Taskell.IO.Config.Parser (noEmpty, parseText) data Co...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/3c731476e9a58ede300cfa83aba412509b132a3e/src/Taskell/IO/Config/Markdown.hs
haskell
module Taskell.IO.Config.Markdown ( Config(Config) , defaultConfig , parser , titleOutput , taskOutput , descriptionOutput , dueOutput , subtaskOutput , localTimes ) where import ClassyPrelude import Data.Ini.Config import Taskell.IO.Config.Parser (noEmpty, parseText) data Co...
963d8e8704f3dbfeee5c4b93bbe831d1e7d6d5a86769ade2de5354c0edb2f072
wdebeaum/step
yam.lisp
;;;; W::YAM ;;;; (define-words :pos W::n :words ( (W::YAM (senses ((LF-PARENT ONT::VEGETABLE) (TEMPL COUNT-PRED-TEMPL) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/yam.lisp
lisp
W::YAM (define-words :pos W::n :words ( (W::YAM (senses ((LF-PARENT ONT::VEGETABLE) (TEMPL COUNT-PRED-TEMPL) ) ) ) ))
c03cbbe0cf9807c6c8283207dd0b73f637514fabcde6e7bd96137e3a8286b8b2
input-output-hk/cardano-sl
PrimaryKey.hs
-- | Access to the node's primary key. module Pos.Core.Context.PrimaryKey ( HasPrimaryKey(..) , getOurSecretKey , getOurPublicKey , getOurKeys , getOurStakeholderId ) where import Universum import Pos.Core.Common (StakeholderId, addressHash) import ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/core/src/Pos/Core/Context/PrimaryKey.hs
haskell
| Access to the node's primary key. | Access to primary key of the node.
module Pos.Core.Context.PrimaryKey ( HasPrimaryKey(..) , getOurSecretKey , getOurPublicKey , getOurKeys , getOurStakeholderId ) where import Universum import Pos.Core.Common (StakeholderId, addressHash) import Pos.Crypto (PublicKey, SecretKey, t...
386bd780d71979655755bcae315c082f6b2493fd2c8f6a181cb977c667b89bf8
rtoy/ansi-cl-tests
package-name.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Feb 21 17:48:05 2004 ;;;; Contains: Tests of PACKAGE-NAME (in-package :cl-test) (declaim (optimize (safety 3))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; package-name (deftest package-name.1 (progn (set-up-packages) (package-name "A")) "A") (d...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/package-name.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PACKAGE-NAME package-name package-name applied to a package's name should return an equal string
Author : Created : Sat Feb 21 17:48:05 2004 (in-package :cl-test) (declaim (optimize (safety 3))) (deftest package-name.1 (progn (set-up-packages) (package-name "A")) "A") (deftest package-name.2 (progn (set-up-packages) (package-name #\A)) "A") (deftest package-name.3 (progn ...
fb9e310c9a6ca30b3d8e78ab756a5d8485e213c764bc0de6e9790c9f7f0323b4
MagnusS/okra
common.mli
* Copyright ( c ) 2021 < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE...
null
https://raw.githubusercontent.com/MagnusS/okra/13f473baae1e8490887bde156f7bb238ef7c645e/bin/common.mli
ocaml
* Copyright ( c ) 2021 < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE...
6930c819fb8b44c04a1e5d36139a69c79dbd58533a8007135e4b009ea2025492
clojure-interop/aws-api
AmazonTextractAsyncClientBuilder.clj
(ns com.amazonaws.services.textract.AmazonTextractAsyncClientBuilder "Fluent builder for AmazonTextractAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.textract AmazonTextractAsyncClientBuilder]...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.textract/src/com/amazonaws/services/textract/AmazonTextractAsyncClientBuilder.clj
clojure
(ns com.amazonaws.services.textract.AmazonTextractAsyncClientBuilder "Fluent builder for AmazonTextractAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.textract AmazonTextractAsyncClientBuilder]...
bc71039f5af304b6f56925337431faeaaad78216004b0c68d9e9bd687523a652
dyoo/whalesong
color.rkt
#lang s-exp "../../lang/base.rkt" (provide (except-out [struct-out color] color make-color) [rename-out [-color make-color] [-color color]]) (define-struct color (red green blue alpha) #:extra-constructor-name make-color) (define -color (case-lambda [(r g b) (color r g b 25...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/image/private/color.rkt
racket
#lang s-exp "../../lang/base.rkt" (provide (except-out [struct-out color] color make-color) [rename-out [-color make-color] [-color color]]) (define-struct color (red green blue alpha) #:extra-constructor-name make-color) (define -color (case-lambda [(r g b) (color r g b 25...
f1792811166c896e668afb49a1f97ae14a58b9084ab22b3388ccaae69ee63c96
bradb/fen
core_test.clj
(ns fen.core-test (:require [clojure.test :refer :all] [fen.core :as fen])) (deftest start-position-fen-to-map-test (let [start-pos-fen "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" {:fen/keys [board allow-white-kingside-castle? allow-white-q...
null
https://raw.githubusercontent.com/bradb/fen/6194bbca6d982064762e0fad89e5a413b40ca2ce/test/core_test.clj
clojure
(ns fen.core-test (:require [clojure.test :refer :all] [fen.core :as fen])) (deftest start-position-fen-to-map-test (let [start-pos-fen "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" {:fen/keys [board allow-white-kingside-castle? allow-white-q...
06cf592f1fbc160449739117e62eff82683f9c144d7737e0afb5f0707da05172
zcaudate/hara
match.clj
(ns hara.core.base.match (:require [hara.protocol.match :as protocol.match] [hara.core.base.check :as check])) (defrecord ActualPattern [expression] protocol.match/ITemplate (-match [template obj] (= expression obj))) (defn actual-pattern "constructs a pattern used for direct comparison (...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/core/base/match.clj
clojure
(ns hara.core.base.match (:require [hara.protocol.match :as protocol.match] [hara.core.base.check :as check])) (defrecord ActualPattern [expression] protocol.match/ITemplate (-match [template obj] (= expression obj))) (defn actual-pattern "constructs a pattern used for direct comparison (...
4f3fe392ed700c06a877cad6432e272dd0dd38e5a2b3985ab7b8901ad171e63e
quux00/land-of-lisp-in-clojure
graphing.clj
(ns thornydev.graph.graphing (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.java.shell :refer [sh]])) (defn substitute-if [val predfn coll] (map #(if (predfn %) val %) coll)) (defn dot-name [kw] (str/upper-case (str/replace (name kw) "-" "_"))) (defn dot-label [vpa...
null
https://raw.githubusercontent.com/quux00/land-of-lisp-in-clojure/2a15a89afa0cd04cf1757ccf7da289031e135165/wizards-adventure/src/thornydev/graph/graphing.clj
clojure
(ns thornydev.graph.graphing (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.java.shell :refer [sh]])) (defn substitute-if [val predfn coll] (map #(if (predfn %) val %) coll)) (defn dot-name [kw] (str/upper-case (str/replace (name kw) "-" "_"))) (defn dot-label [vpa...
806c1927b5883aaa26d733c2ca935bf8a6362428aabb5073073437b82ba723bc
mentat-collective/sicm-scheme-exercises
min-action-paths.scm
;; Paths of Minimum Action ;; :PROPERTIES: ;; :header-args+: :tangle ch1/min-action-paths.scm :comments org ;; :END: ;; This section takes us through an example action calculation on a path with an ;; adjustable "variation", or wiggle. We should see that, if we consider a ;; "realizable path", then any wiggle we add w...
null
https://raw.githubusercontent.com/mentat-collective/sicm-scheme-exercises/323300c252641add067f266e23427afd0bb34d8a/ch1/min-action-paths.scm
scheme
Paths of Minimum Action :PROPERTIES: :header-args+: :tangle ch1/min-action-paths.scm :comments org :END: This section takes us through an example action calculation on a path with an adjustable "variation", or wiggle. We should see that, if we consider a "realizable path", then any wiggle we add will increase th...
(load "ch1/utils.scm") similar way to $ \nu$ , but equals 0 at $ t_1 $ and $ t_2 $ : (define ((make-eta nu t1 t2) t) (* (- t t1) (- t t2) (nu t))) Next , define a function that calculates the Lagrangian for a free particle , like before , but adds in the path variation $ \eta$ multiplied by some sma...
c0ade70cda466aba0fcb56177b8f38609dd1e8ddcac676cfc5dd6d782b74e274
DavidAlphaFox/RabbitMQ
rabbit_auth_mechanism.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_auth_mechanism.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. A description. ...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
59ffec945cae1f27b5b9f29aeef4d79f3b4d859539d4c85212eadfef040ef112
karamellpelle/grid
ShadeGeneral.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/Grid/Output/Fancy/ShadeGeneral.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.Grid.Output.Fancy.ShadeGeneral ( ...