_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
34926c41868842cc5ec2763c80d4a0a92af83906511db0de5af4ac11655f1c57
thlorenz/WebToInk
AboutUs.hs
module Handler.AboutUs where import Import getAboutUsR :: Handler RepHtml getAboutUsR = defaultLayout $ do liftIO $ logd "GET AboutUs" h2id <- lift newIdent setTitle "WebToInk AboutUs" $(widgetFile "aboutUs")
null
https://raw.githubusercontent.com/thlorenz/WebToInk/82e2e340f6f16b83681459fb2acc5e19ea1a76f9/webtoink/Handler/AboutUs.hs
haskell
module Handler.AboutUs where import Import getAboutUsR :: Handler RepHtml getAboutUsR = defaultLayout $ do liftIO $ logd "GET AboutUs" h2id <- lift newIdent setTitle "WebToInk AboutUs" $(widgetFile "aboutUs")
0114cb9fe493a5e557b540b94c2079e5d7f87398130ab483fd68395b9bd525f9
tsloughter/kuberl
kuberl_v1_list_meta.erl
-module(kuberl_v1_list_meta). -export([encode/1]). -export_type([kuberl_v1_list_meta/0]). -type kuberl_v1_list_meta() :: #{ 'continue' => binary(), 'remainingItemCount' => integer(), 'resourceVersion' => binary(), 'selfLink' => binary() }. encode(#{ 'continue' := Continue, 'r...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_list_meta.erl
erlang
-module(kuberl_v1_list_meta). -export([encode/1]). -export_type([kuberl_v1_list_meta/0]). -type kuberl_v1_list_meta() :: #{ 'continue' => binary(), 'remainingItemCount' => integer(), 'resourceVersion' => binary(), 'selfLink' => binary() }. encode(#{ 'continue' := Continue, 'r...
614aced142090baaabf51fa7e0e7f0228ff156ca62f11498b15c59e3bb392512
ijvcms/chuanqi_dev
map_20001.erl
-module(map_20001). -export([ range/0, data/0 ]). range() -> {64, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20001.erl
erlang
-module(map_20001). -export([ range/0, data/0 ]). range() -> {64, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
8ba6eadc68b377438142075fb460c9326ad47ed1dda07bad0cb7eda6515d818e
kenkeiras/EPC
mochiweb_charref.erl
@author < > 2007 Mochi Media , Inc. @doc Converts HTML 5 charrefs and entities to codepoints ( or lists of code points ) . -module(mochiweb_charref). -export([charref/1]). %% External API. %% @doc Convert a decimal charref, hex charref, or html entity to a unicode %% codepoint, or return undefined on ...
null
https://raw.githubusercontent.com/kenkeiras/EPC/1e903475e1e597fd602158df45c5805a764333bf/src/mochiweb_charref.erl
erlang
External API. @doc Convert a decimal charref, hex charref, or html entity to a unicode codepoint, or return undefined on failure. The input should not include an ampersand or semicolon. Internal API. -character-references.html Tests
@author < > 2007 Mochi Media , Inc. @doc Converts HTML 5 charrefs and entities to codepoints ( or lists of code points ) . -module(mochiweb_charref). -export([charref/1]). charref("#38 " ) = 38 , charref("#x26 " ) = 38 , charref("amp " ) = 38 . -spec charref(binary() | string()) -> integer() | [inte...
a0ed57b1c73ea044ce7bf512da68ce0b3f7759afb34b6c4d34a3f5811a87e894
hemmi/coq2scala
cbytecodes.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/kernel/cbytecodes.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * number of arguments * number of ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : cbytecodes.mli 1571...
61aae757a46e5500d66b5594cc365a961cc12e1e1d653039259ff598bcdd6d5d
ghcjs/ghcjs-dom
SVGFEDistantLightElement.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.SVGFEDistantLightElement (js_getAzimuth, getAzimuth, js_getElevation, getElevation, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGFEDistantLightElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/SVGFEDistantLightElement.elevation Mozilla SVGFEDistantLightElement.elevation documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.SVGFEDistantLightElement (js_getAzimuth, getAzimuth, js_getElevation, getElevation, SVGFEDistantLightElement(..), gTypeSVGFEDistantLightElement) where import Prelude ((.),...
984af1ac3007148c9ccdd9dc65cccffb4b8901b3945afbf68a44146fe54e26b7
nmattia/highcharts-hs
Highcharts.hs
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE ExtendedDefaultRules # {-# LANGUAGE GADTs #-} ...
null
https://raw.githubusercontent.com/nmattia/highcharts-hs/1193872d2f4ccf0cfa311ece48b1bb40511837ac/highcharts/src/Highcharts.hs
haskell
# LANGUAGE TypeSynonymInstances # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # newtype Chart = Chart Aeson.Value deriving newtype ToJS
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE ExtendedDefaultRules # # LANGUAGE KindSignatures # # LANGUAGE TypeApplications # # L...
af2e9f94f46e6674ad8f2aeb3bd04f5b599bd08f14c93367fb22c5ba15d02854
haskell/haskell-language-server
Completions.hs
# LANGUAGE CPP # # LANGUAGE OverloadedLabels # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # module Development.IDE.Plugin.Completions ( descriptor , Log(..) , ghcideCompletionsPluginPriority ) where import Control.Concurrent.Async (concurrent...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f94385ed324ad8a44ac9f48f5a2e47fc98777311/ghcide/src/Development/IDE/Plugin/Completions.hs
haskell
# LANGUAGE RankNTypes # For non local completions we avoid depending on the parsed module, synthesizing a fake module with an empty body from the buffer We do this to be able to provide completions of items that are not restricted to the explicit list if hiding or Nothing just return d File doesn't compile, ...
# LANGUAGE CPP # # LANGUAGE OverloadedLabels # # LANGUAGE TypeFamilies # module Development.IDE.Plugin.Completions ( descriptor , Log(..) , ghcideCompletionsPluginPriority ) where import Control.Concurrent.Async (concurrently) import Control.Concu...
6e68fb8d068bb8050bc75aff5fdc725d71f24d40454fea432caaef9c816e2768
ocaml-multicore/ocaml-tsan
env.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/typing/env.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 Cmi_format open Misc open Asttypes open Longident open Path open Types open Local_store module St...
2a310d3f8adccb32aa5005c899689b2a35254d1f96a8fbea7ae128d964d520d5
takikawa/racket-ppa
file.rkt
#lang racket/base (require "path.rkt" setup/dirs setup/cross-system (for-syntax racket/base setup/path-to-relative)) (provide delete-directory/files copy-directory/files make-directory* make-parent-directory* make-temporary-file ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/collects/racket/file.rkt
racket
Deleting a file doesn't remove the file name from the parent directory until all references are closed, and other processes (like the search indexer) might open files. So, try to move a file to the temp directory, then delete from there. That way, the enclosing directory can still be deleted. The move might fail ...
#lang racket/base (require "path.rkt" setup/dirs setup/cross-system (for-syntax racket/base setup/path-to-relative)) (provide delete-directory/files copy-directory/files make-directory* make-parent-directory* make-temporary-file ...
038c1781edddc69dd88bc7d91d71e3e268e5ca3359d850eba1d31d68eb8a1219
chchen/comet
memoize.rkt
#lang rosette/safe (require "types.rkt" "../util.rkt" (prefix-in unity: "../unity/syntax.rkt") rosette/lib/match) ;; A valid substitution is a function from variables to variables An invalid substitution maps a variable to two different variables (define (valid-substitution? subst) (let...
null
https://raw.githubusercontent.com/chchen/comet/005477b761f4d35c9fce175738f4dcbb805909e7/unity-synthesis/bool-bitvec/memoize.rkt
racket
A valid substitution is a function from variables to variables Try and unify key against the key of the memos pair If there's a match, apply the computed unifier to the key [unity-val->subtrace] phase #t 0 sec. ((phase . (bv #x000000ff 32))) (define-symbolic d2 d3 d4 d5 boolean?) (try-memo (unity:channel* #t d2) ...
#lang rosette/safe (require "types.rkt" "../util.rkt" (prefix-in unity: "../unity/syntax.rkt") rosette/lib/match) An invalid substitution maps a variable to two different variables (define (valid-substitution? subst) (let* ([unique-subst (remove-duplicates subst concrete-eq?)] ...
87c896441f3283c77ba39ee2007b1d8f0f679062ced8292865c876a035ceb2b4
uw-unsat/serval-sosp19
synthtest.rkt
#lang rosette/safe (require serval/lib/unittest serval/riscv/interp serval/riscv/base serval/riscv/synth) (define (testcase) (define cpu (init-cpu)) (define s (symbolics cpu)) (define insn (??-binary-op-imm)) (interpret-instr cpu insn) (define sol (synthesize #:forall s #:guarante...
null
https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/racket/test/synthtest.rkt
racket
#lang rosette/safe (require serval/lib/unittest serval/riscv/interp serval/riscv/base serval/riscv/synth) (define (testcase) (define cpu (init-cpu)) (define s (symbolics cpu)) (define insn (??-binary-op-imm)) (interpret-instr cpu insn) (define sol (synthesize #:forall s #:guarante...
3f8e337f308e95eb5961594c447a8cf194a2917501d813356f646ff22b63d035
ghc/ghc
T22759.hs
module T22759 where b :: (Bool :: *) b = True
null
https://raw.githubusercontent.com/ghc/ghc/4efee43db5090aac4dde1293357bdb548ae71c24/testsuite/tests/warnings/should_compile/T22759.hs
haskell
module T22759 where b :: (Bool :: *) b = True
ddcabc82b369182b54c898f52e5403d47fcb597b2ed471461f14f110df944e3e
shmish111/hriemann
Monoid.hs
module Network.Monitoring.Riemann.Event.Monoid where import Data.Monoid (Endo(Endo), appEndo) import Data.Time.Clock.POSIX (getPOSIXTime) import Network.HostName (getHostName) import Network.Monitoring.Riemann.Event (Service) import qualified Network.Monitoring.Riemann.Event as E import Network.Monitoring.Riemann.Prot...
null
https://raw.githubusercontent.com/shmish111/hriemann/b483853976f8621f5d80e736cb4937f1f2b2e6cd/src/Network/Monitoring/Riemann/Event/Monoid.hs
haskell
module Network.Monitoring.Riemann.Event.Monoid where import Data.Monoid (Endo(Endo), appEndo) import Data.Time.Clock.POSIX (getPOSIXTime) import Network.HostName (getHostName) import Network.Monitoring.Riemann.Event (Service) import qualified Network.Monitoring.Riemann.Event as E import Network.Monitoring.Riemann.Prot...
ca109e2b9bb1d8d129ae605c928551b3d0006e24c67cd033a1a7ddfadb510861
DSiSc/why3
debug_optim.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/util/debug_optim.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Parsetree open Ast_mapper open Asttypes open Longident let ast_mapper = { Ast_mapper.default_mappe...
b66db9178efd799ade8554d99d79407ce1e0ae79446123c0907adf9d1dd9991e
nosana-ci/nosana-node
user.clj
(ns user (:require [clojure.edn :as edn] [taoensso.timbre :refer [log]] [clojure.java.io :as io] [cheshire.core :as json] [nosana-node.secrets :as secrets] nosana-node.handler [clojure.pprint :refer [pprint]] [taoensso.timbre :as timbre] [contajners.core :as c] [nos.core :as flow] nos...
null
https://raw.githubusercontent.com/nosana-ci/nosana-node/1643b0e8419b5a2da53176352286d78cdee1f77a/dev/src/user.clj
clojure
(start-run! "AEBJMrNLvPE41GSvJvoMh2Zequt3CjWUpmLMgDphwwxU" ) (get-job-result-secret "7R67vVfRm5WsRUMzJo2NtyAkuFkB5aJ3ocFm6vAe8wQw") [job-addr network] (let [job (nos/get-job job-addr network)] ;; if we are not the node that claimed, try to reclaim (when (or true (not (= (get-signer-address) (:node job...
(ns user (:require [clojure.edn :as edn] [taoensso.timbre :refer [log]] [clojure.java.io :as io] [cheshire.core :as json] [nosana-node.secrets :as secrets] nosana-node.handler [clojure.pprint :refer [pprint]] [taoensso.timbre :as timbre] [contajners.core :as c] [nos.core :as flow] nos...
e478d9240dc08a07b368b1e29ef576509c8cbc6055848d23f4929c9d6fa599e8
coq/coq
number.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/41555f5a227b2d0d658b0c5a7fe4593faca61cf6/plugins/syntax/number.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
b24f68de819f33fead6e8240f6c04aba6a7481fddd8843ab1121d21b72326c48
ocaml-flambda/flambda-backend
to_cmm_set_of_closures.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/21942b6fbc9c577be4e8c288149dbe63a5d55e72/middle_end/flambda2/to_cmm/to_cmm_set_of_closures.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro Copyright 2022 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the open! Flambda.Import module Env = To_cmm_env module Ece = Effects_and_coeffects module R = To_cmm_result mo...
04a3668a49477ec3d1128919d81973ed4e972037231bf7315b8982537ef9eeb0
janestreet/universe
msgpack_rpc.ml
open Core_kernel open Async let bitsize = let open Int.O in 2 ** 32 ;; type event = { method_name : string ; params : Msgpack.t list } [@@deriving sexp] module type Connection = sig type t val reader : t -> Async.Reader.t val writer : t -> Async.Writer.t end module type S = sig type conn type t...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/vcaml/msgpack_rpc/src/msgpack_rpc.ml
ocaml
This should be impossible.
open Core_kernel open Async let bitsize = let open Int.O in 2 ** 32 ;; type event = { method_name : string ; params : Msgpack.t list } [@@deriving sexp] module type Connection = sig type t val reader : t -> Async.Reader.t val writer : t -> Async.Writer.t end module type S = sig type conn type t...
5e92dde6fdd2431ef72806568752a04516c705b242ad06afb647aa93008b2de7
justinethier/cyclone
parameters.scm
;; A simple program demonstrating how parameter objects interact with threads ;; ;; Note this is poor code as it uses timing via sleeps instead of proper ;; thread synchronization!!! ;; (import (scheme base) (scheme read) (scheme write) (srfi 18) ) (thread-start! (make-thread (la...
null
https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/examples/threading/parameters.scm
scheme
A simple program demonstrating how parameter objects interact with threads Note this is poor code as it uses timing via sleeps instead of proper thread synchronization!!! Prevent race condition replacing stdout before thread is spawned
(import (scheme base) (scheme read) (scheme write) (srfi 18) ) (thread-start! (make-thread (lambda () (thread-sleep! 1.2) (display "started thread, this should be written to console") (newline) (display "thread done") (newline) (flush-output-por...
91019de31583a385627230f3b3d168287f68b01109608b4a48c097bca72ebfff
lolepezy/rpki-prover
AppMonad.hs
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE DerivingStrategies # # LANGUAGE OverloadedLabels # # LANGUAGE RecordWildCards # module RPKI.AppMonad where import Control.Lens import Control.Exception.Lifted import Control.Monad.Except import Con...
null
https://raw.githubusercontent.com/lolepezy/rpki-prover/5c681574cbca112fe7860541623aa774544831a2/src/RPKI/AppMonad.hs
haskell
Application monad stack | Shorthand version for cases when we need to actually
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE DerivingStrategies # # LANGUAGE OverloadedLabels # # LANGUAGE RecordWildCards # module RPKI.AppMonad where import Control.Lens import Control.Exception.Lifted import Control.Monad.Except import Con...
48e6f50bd260b9a4e68079760856b34c6be6d36d1d52a43c7c159c83ad1eb6d1
auser/alice
mochifmt.erl
@author < > @copyright 2008 Mochi Media , Inc. @doc String Formatting for Erlang , inspired by Python 2.6 ( < a href=" / dev / peps / pep-3101/">PEP 3101</a > ) . %% -module(mochifmt). -author(''). -export([format/2, format_field/2, convert_field/2, get_value/2, get_field/2]). -export([tokenize/1, form...
null
https://raw.githubusercontent.com/auser/alice/e0f867071ede99f451d09053608bd6719c72d1c9/deps/mochiweb/src/mochifmt.erl
erlang
Key to an atom or binary if necessary. @doc Consecutively call get_value/2 on parts of Key delimited by ".", @doc Consecutively call Module:get_value/2 on parts of Key delimited by ".", @doc Format Args with Format. @doc Format Args with Format using Module. @doc Format Arg with Format. @doc Format Arg wit...
@author < > @copyright 2008 Mochi Media , Inc. @doc String Formatting for Erlang , inspired by Python 2.6 ( < a href=" / dev / peps / pep-3101/">PEP 3101</a > ) . -module(mochifmt). -author(''). -export([format/2, format_field/2, convert_field/2, get_value/2, get_field/2]). -export([tokenize/1, format/...
89d0707a78ca8f9738fcff032386b8644d8f50cedb1272533a9f95ea8b261c95
erlangonrails/devdb
riak_kv_wm_link_walker.erl
%% ------------------------------------------------------------------- %% riak_kv_wm_link_walker : HTTP access to Riak link traversal %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak-0.11.0/apps/riak_kv/src/riak_kv_wm_link_walker.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
riak_kv_wm_link_walker : HTTP access to Riak link traversal Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an...
535042dad87e1637a9c34f7ad9979be8ebdea422bf78d322bb2832bc79a02dd0
graninas/Functional-Design-and-Architecture
Assets.hs
module Andromeda.Assets ( module X ) where import Andromeda.Assets.Vendors.AAA.Common as X import Andromeda.Assets.Vendors.AAA.Components as X import Andromeda.Assets.DeviceDefinitions as X
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/b6a78f80a2a2e0b913bcab1d2279fc137a90db4c/Second-Edition-Manning-Publications/BookSamples/CH08/Section8p1/src/Andromeda/Assets.hs
haskell
module Andromeda.Assets ( module X ) where import Andromeda.Assets.Vendors.AAA.Common as X import Andromeda.Assets.Vendors.AAA.Components as X import Andromeda.Assets.DeviceDefinitions as X
c9d610516ac9f6a4f5cdf16c72e3d4063af4979d4b629791fb6bb26b8ef13700
ctford/whelmed
at_all.clj
(ns whelmed.songs.at-all (:require [leipzig.scale :refer :all] [leipzig.melody :refer :all] [leipzig.live :refer :all] [leipzig.chord :refer :all] [leipzig.temperament :refer :all] [whelmed.melody :refer :all] [whelmed.contrib.harpsichord :refer :all] [whelmed.instrument :refer :all] ...
null
https://raw.githubusercontent.com/ctford/whelmed/d396314654c95ddea599a1f55ecadea48989c2be/src/whelmed/songs/at_all.clj
clojure
(ns whelmed.songs.at-all (:require [leipzig.scale :refer :all] [leipzig.melody :refer :all] [leipzig.live :refer :all] [leipzig.chord :refer :all] [leipzig.temperament :refer :all] [whelmed.melody :refer :all] [whelmed.contrib.harpsichord :refer :all] [whelmed.instrument :refer :all] ...
d0130b5be6b3b8a426f29b8b5a5c539c7bfbe7ecb3eb73aeae945269043f2bc3
TatriX/cl-selenium-webdriver
cl-selenium-webdriver.lisp
cl-selenium-webdriver.lisp (in-package #:cl-selenium-webdriver) ;;; "cl-selenium-webdriver" goes here. Hacks and glory await!
null
https://raw.githubusercontent.com/TatriX/cl-selenium-webdriver/51a4b6833731281353ae6585e404dc934ad8df33/src/cl-selenium-webdriver.lisp
lisp
"cl-selenium-webdriver" goes here. Hacks and glory await!
cl-selenium-webdriver.lisp (in-package #:cl-selenium-webdriver)
6f93ab9899c056c371bfbfeaf6cb58e276aa1c5ae711cba1eb02a26027d8adc6
graninas/Hydra
Interpreter.hs
{-# LANGUAGE BangPatterns #-} module Hydra.Core.Lang.Interpreter where import Hydra.Prelude import qualified Data.Map as Map import Control.Exception (throwIO) import Hydra.Core.ControlFlow.Interpreter (runControlFlowL) import qualified Hydra.Core.Language ...
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-free/src/Hydra/Core/Lang/Interpreter.hs
haskell
# LANGUAGE BangPatterns # TODO: Debug logging beam function is known to be slow.
module Hydra.Core.Lang.Interpreter where import Hydra.Prelude import qualified Data.Map as Map import Control.Exception (throwIO) import Hydra.Core.ControlFlow.Interpreter (runControlFlowL) import qualified Hydra.Core.Language as L import Hydra....
0e844b449213db490285d08c30d8b8f5f786514cce27c84992b664998918d393
grin-compiler/grin
SimpleDeadParameterEliminationSpec.hs
# LANGUAGE OverloadedStrings , QuasiQuotes , ViewPatterns # module Transformations.Optimising.SimpleDeadParameterEliminationSpec where import Transformations.Optimising.SimpleDeadParameterElimination import Test.Hspec import Grin.TH import Test.Test hiding (newVar) import Test.Assertions runTests :: IO () runTests ...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/test/Transformations/Optimising/SimpleDeadParameterEliminationSpec.hs
haskell
# LANGUAGE OverloadedStrings , QuasiQuotes , ViewPatterns # module Transformations.Optimising.SimpleDeadParameterEliminationSpec where import Transformations.Optimising.SimpleDeadParameterElimination import Test.Hspec import Grin.TH import Test.Test hiding (newVar) import Test.Assertions runTests :: IO () runTests ...
314160320c45163d3ea601e42ef926c8391b96011da70b20faf9e5117cd4e386
ammarhakim/gkylcas
basisHybrid1x3v.lisp
;;; -*- Mode: LISP; package:maxima; syntax:common-lisp; -*- (in-package :maxima) (DSKSETQ |$varsC| '((MLIST SIMP) $X)) (ADD2LNC '|$varsC| $VALUES) (DSKSETQ |$varsP| '((MLIST SIMP) $X $VX $VY $VZ)) (ADD2LNC '|$varsP| $VALUES) (DSKSETQ |$basisC| '((MLIST SIMP (23. #A((94.) BASE-CHAR...
null
https://raw.githubusercontent.com/ammarhakim/gkylcas/1f8adad4f344ce8e3663451e16fdf1c32107ceed/maxima/g0/basis-precalc/basisHybrid1x3v.lisp
lisp
-*- Mode: LISP; package:maxima; syntax:common-lisp; -*-
(in-package :maxima) (DSKSETQ |$varsC| '((MLIST SIMP) $X)) (ADD2LNC '|$varsC| $VALUES) (DSKSETQ |$varsP| '((MLIST SIMP) $X $VX $VY $VZ)) (ADD2LNC '|$varsP| $VALUES) (DSKSETQ |$basisC| '((MLIST SIMP (23. #A((94.) BASE-CHAR . "/Users/manaure/Documents/gkeyll/code/gkyl...
0153d6eaadee16a7f28180a9179125c11a5620fb06443e788651fea1819424bb
ngorogiannis/cyclist
blist.mli
(** List operations. The [List] standard library module is included here. *) include module type of List * { 6 Essential methods } val empty : 'a t (** The empty list constant. *) val is_empty : 'a t -> bool (** Is the argument the empty list? *) val singleton : 'a -> 'a t * Constructs a list with exactly one eleme...
null
https://raw.githubusercontent.com/ngorogiannis/cyclist/4c5c8dd1a9918823fc760bf311216ade2f915e6a/src/lib/blist.mli
ocaml
* List operations. The [List] standard library module is included here. * The empty list constant. * Is the argument the empty list? * [to_string sep e l] converts the list [l] to a string. [e] is the function that turns an element into a string and [sep] is the separator appearring between elements. * [pp sep e fm...
include module type of List * { 6 Essential methods } val empty : 'a t val is_empty : 'a t -> bool val singleton : 'a -> 'a t * Constructs a list with exactly one element , the argument provided . val to_string : string -> ('a -> string) -> 'a t -> string val pp : (Format.formatter -> unit -> unit) -> (For...
fdccbe1a4c4a50d68f2b7a9f425c3a1428bd464aa41bc68606802acdd7a7b716
jcclinton/wow-emulator
inventory.erl
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x %% Copyright ( C ) 2014 < jamieclinton.com > %% %% This program 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 Found...
null
https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/src/handlers/inventory.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x Copyright ( C ) 2014 < jamieclinton.com > it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy...
f6c074ebbb62886e9256ffbed25e9f0869b648ff322539a202dba9c6e3c01147
exoscale/clojure-kubernetes-client
v1_storage_os_persistent_volume_source.clj
(ns clojure-kubernetes-client.specs.v1-storage-os-persistent-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-reference :refer :all] ) (:import (java.io File))) (declare v1-storage-os-persistent-volume-s...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_storage_os_persistent_volume_source.clj
clojure
(ns clojure-kubernetes-client.specs.v1-storage-os-persistent-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-reference :refer :all] ) (:import (java.io File))) (declare v1-storage-os-persistent-volume-s...
60a5f2345f24d95de81b90b61c935834465e2684c07d236322b24666f5d32b24
manetu/temporal-clojure-sdk
signal_timeout.clj
Copyright © 2022 , Inc. All rights reserved (ns temporal.test.signal-timeout (:require [clojure.test :refer :all] [taoensso.timbre :as log] [temporal.client.core :refer [>!] :as c] [temporal.signals :refer [<!]] [temporal.workflow :refer [defworkflow]] ...
null
https://raw.githubusercontent.com/manetu/temporal-clojure-sdk/aa148b656c523d95b6b377081aa8c2ae68b32828/test/temporal/test/signal_timeout.clj
clojure
Copyright © 2022 , Inc. All rights reserved (ns temporal.test.signal-timeout (:require [clojure.test :refer :all] [taoensso.timbre :as log] [temporal.client.core :refer [>!] :as c] [temporal.signals :refer [<!]] [temporal.workflow :refer [defworkflow]] ...
20dbd97b37a0da670c5e921fc65a4845a168b44b1b99c7ac3fbe24658eb6a64f
RiugaBachi/necrophagy
Indifferent.hs
# LANGUAGE NoMonoLocalBinds , RebindableSyntax , DataKinds , OverloadedStrings , TypeOperators , TypeApplications , PartialTypeSignatures , NoStarIsType # NoMonoLocalBinds, RebindableSyntax, DataKinds, OverloadedStrings, TypeOperators, TypeApplications, PartialTypeSignatures, NoStarIsType #-} {-# O...
null
https://raw.githubusercontent.com/RiugaBachi/necrophagy/b68bf9bc5445db9196665ad92f6f0b2869aaf90c/examples/Indifferent.hs
haskell
# OPTIONS_GHC -Wno-partial-type-signatures # Intro Chorus Bridge Outro
# LANGUAGE NoMonoLocalBinds , RebindableSyntax , DataKinds , OverloadedStrings , TypeOperators , TypeApplications , PartialTypeSignatures , NoStarIsType # NoMonoLocalBinds, RebindableSyntax, DataKinds, OverloadedStrings, TypeOperators, TypeApplications, PartialTypeSignatures, NoStarIsType #-} modu...
2f9cc2b6084580a01d105bdc2131c242187a4d2c67b2c18b5a3c2249a237de2e
ocaml-sf/learn-ocaml-corpus
build_tree_wrong_frequency_accumulation1.ml
(* -------------------------------------------------------------------------- *) (* Building an alphabet out of a piece of text. *) let build_alphabet (text : text) : alphabet = let table = Hashtbl.create 256 in String.iter (fun symbol -> let freq = try Hashtbl.find table symbol with Not_f...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/huffman/wrong/build_tree_wrong_frequency_accumulation1.ml
ocaml
-------------------------------------------------------------------------- Building an alphabet out of a piece of text. -------------------------------------------------------------------------- Building encoding and decoding dictionaries out of an alphabet. The priority queue contains pairs of a tree and a fr...
let build_alphabet (text : text) : alphabet = let table = Hashtbl.create 256 in String.iter (fun symbol -> let freq = try Hashtbl.find table symbol with Not_found -> 0 in Hashtbl.replace table symbol (freq + 1) ) text; table module Q = BinomialQueue(struct type...
7a33fad25720f3607676e5a333f2e47b6ddd41879eafdc74a1cd37093ed7a35c
semilin/layoup
evtest6.1.lisp
(MAKE-LAYOUT :NAME "evtest6.1" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/evtest6.1.lisp
lisp
(MAKE-LAYOUT :NAME "evtest6.1" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
9d50b94e10306938894a9b9f468e5a7460c5f68aa8d79b1959da74115c999215
ranjitjhala/haddock-annot
A.hs
-- #hide module A where { data T = MkT; f :: T; f = MkT }
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/haddock-2.9.3/examples/hide-bug/A.hs
haskell
#hide
module A where { data T = MkT; f :: T; f = MkT }
eb87cdf247d0a47506f6e22df8c63304d0b00e01c25ea6729e70a9aa975cd914
robstewart57/hdph-rs
Threadpool.hs
-- Thread pool and work stealing -- Author : ----------------------------------------------------------------------------- module Control.Parallel.HdpH.Internal.Threadpool ( -- * thread pool monad ThreadM, -- synonym: ThreadM m = ReaderT <State m> (SparkM m) run, -- :: [DequeIO (Thread m)] ...
null
https://raw.githubusercontent.com/robstewart57/hdph-rs/5074e7de02ec13707361b1c117fa25c8a796b59e/src/Control/Parallel/HdpH/Internal/Threadpool.hs
haskell
Thread pool and work stealing --------------------------------------------------------------------------- * thread pool monad synonym: ThreadM m = ReaderT <State m> (SparkM m) :: [DequeIO (Thread m)] -> ThreadM m a -> SparkM m a :: Int -> ThreadM m () -> ThreadM m Control.Concurrent.ThreadId :: SparkM m a ...
Author : module Control.Parallel.HdpH.Internal.Threadpool : : ThreadM m a ) where import Prelude hiding (error) import Control.Concurrent (ThreadId) import Control.Monad.Reader (ReaderT, runReaderT, ask) import Control.Monad.Trans (lift) import Control.Parallel.HdpH.Internal.Comm (CommM) import Contr...
8391a881f5a2c2097bdabbec29b03eaa6444b6121dea8f17c4b1f6618ec6f452
Stand-In-Language/stand-in-language
Parser.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Telomare.Parser where import Codec.Binary.UTF8.String (encode) import Control.Lens....
null
https://raw.githubusercontent.com/Stand-In-Language/stand-in-language/ec00719d84aa6c2e5f89caa63e9a6e57d5dae930/src/Telomare/Parser.hs
haskell
# LANGUAGE DeriveTraversable # ^ On ad hoc user defined types, this term will be substitued to a unique Int. |Int to ParserTerm |String to ParserTerm |Int to Church encoding |Parse a variable. |Line comments start with "--". |A block comment starts with "{-" and ends at "-}". Nested block comments are also su...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Telomare.Parser where import Codec.Binary.UTF8.String (encode) import Control.Lens.Combinators import Control....
32c16d1b41374dbd0d10278369295a098648e436ec5d7181c5cc304aacc4790e
Apress/practical-ocaml
ch_03.ml
let a = 1;; let b = ref 1;; b := 10;; b;; b.contents <- 20;; b;; let someval = "hello";; let otherval = "world" in let someval = "Bummer, " in Printf.printf "%s %s\n" someval otherval;; type tree = Leaf of tree | Node of string;; Leaf (Leaf (Node "terminal"));; type distance = Meter of int | Foot of int | Mile of...
null
https://raw.githubusercontent.com/Apress/practical-ocaml/c0f1e36283eb0e495ff8db7f2a88cadbf1a3d49e/Chapter03/ch_03.ml
ocaml
let a = 1;; let b = ref 1;; b := 10;; b;; b.contents <- 20;; b;; let someval = "hello";; let otherval = "world" in let someval = "Bummer, " in Printf.printf "%s %s\n" someval otherval;; type tree = Leaf of tree | Node of string;; Leaf (Leaf (Node "terminal"));; type distance = Meter of int | Foot of int | Mile of...
b06d053dd588643fd67342637f49a6d204a71d41b0b165d117c3664d992cfa70
caisah/sicp-exercises-and-examples
ex_01.23.scm
;; The smallest-divisor procedure shown at the start of this section does lots of needless testing : After it checks to see if the number is divisible by 2 there ;; no point in checking to see if it is divisible by any larger even numbers. This suggests that the values used for test - divisor should not be 2 , 3 ,...
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/1.2.6-testing_for_primality/ex_01.23.scm
scheme
The smallest-divisor procedure shown at the start of this section does lots of no point in checking to see if it is divisible by any larger even numbers. This incorporating this modified version of smallest-divisor, run the test for each
needless testing : After it checks to see if the number is divisible by 2 there suggests that the values used for test - divisor should not be 2 , 3 , 4 , 5 , 6 , ... , but rather 2 , 3 , 5 , 7 , ... To implement this change , define a procedure next that returns its input plus 2 . Modify the smallest divisor p...
f67184f33e7862f28dd06370cacf4c0a4ac243e2c9535708fc65e2675f00910e
jindrichmynarz/sparql-to-jsonld
jsonld.clj
(ns sparql-to-jsonld.jsonld (:import (java.util LinkedHashMap) (java.io ByteArrayOutputStream) (com.github.jsonldjava.core JsonLdOptions JsonLdProcessor) (com.github.jsonldjava.utils JsonUtils) (org.apache.jena.rdf.model Model))) (defonce ^:private jsonld-options (doto...
null
https://raw.githubusercontent.com/jindrichmynarz/sparql-to-jsonld/56b0c9624f6d8db90a95a7832659655f2b8fc7fc/src/sparql_to_jsonld/jsonld.clj
clojure
(ns sparql-to-jsonld.jsonld (:import (java.util LinkedHashMap) (java.io ByteArrayOutputStream) (com.github.jsonldjava.core JsonLdOptions JsonLdProcessor) (com.github.jsonldjava.utils JsonUtils) (org.apache.jena.rdf.model Model))) (defonce ^:private jsonld-options (doto...
1c2c4321840e8b78ee68e9ef7bd5a81deaaebcad2cb930bc2fddd7d33e7bc94b
otakar-smrz/elixir-fm
L.hs
module Elixir.Data.Moony.Regular.L (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> ".g r ^s" <| [ FiCL `noun` {- <.gir^s> -} [ ['p','i','a','s','t','e','r'] ] `plural` FuCUL ] cluster_2 = cluster ...
null
https://raw.githubusercontent.com/otakar-smrz/elixir-fm/fae5bab6dd53c15d25c1e147e7787b2c254aabf0/Haskell/ElixirFM/Elixir/Data/Moony/Regular/L.hs
haskell
<.gir^s> <'a.gra.d> <ta.garra.d> <.gara.d> <'a.grA.d> <.gara.dIy> <.garI.d> <ta.garru.d> <mu.gri.d> <muta.garri.d> <.gur.dUf> <.gar.gar> <ta.gar.gar> <.gar.garaT> <.gir.gir> <.garaf> <i.gtaraf> <.gurfaT> <.garrAf> <.garrAfaT> <mi.grafaT> <i.gtirAf> <.gariq> <.garraq> <'a...
module Elixir.Data.Moony.Regular.L (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> ".g r ^s" <| [ `plural` FuCUL ] cluster_2 = cluster |> ".g r .d" <| [ `plural` HaFCAL, ...
1f4df477f57fdd8e025a770b93cc88075a464092c04b497d76bb890f011b9383
dannypsnl/plt-research
reduction-order.rkt
#lang racket (require redex "lambda-calculus.rkt") (define-extended-language LC+number LC (E ::= .... number O) (O O1 O-multi) (O1 add1 sub1) (O-multi + *)) (define r (extend-reduction-relation r-app LC+number #:domain E (--> (+ number ...) ,(apply * (term (number ...))) ...
null
https://raw.githubusercontent.com/dannypsnl/plt-research/f9d06b301e43237ef3bd9b34a2754535c60d76cd/racket/redex/reduction-order.rkt
racket
(traces -->r (term ((λ (x) (x x)) (λ (x) (x x)))))
#lang racket (require redex "lambda-calculus.rkt") (define-extended-language LC+number LC (E ::= .... number O) (O O1 O-multi) (O1 add1 sub1) (O-multi + *)) (define r (extend-reduction-relation r-app LC+number #:domain E (--> (+ number ...) ,(apply * (term (number ...))) ...
e3df05763e9960f7652fd1cb07ed32713a63a3de0a9d3cb98802c3c4eb73774f
duo-lang/duo-lang
Various.hs
module LSP.Handler.Various ( initializedHandler , exitHandler , shutdownHandler , cancelRequestHandler , didOpenHandler , didChangeHandler , didCloseHandler ) where import Control.Monad.IO.Class ( liftIO ) import Language.LSP.Types qualified as LSP import Language.LSP.Server qualified as LSP import Sys...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/2bc632ccaf1260d659ca410ee60a7e20060c598b/app/LSP/Handler/Various.hs
haskell
------------------------------------------------------------------------------- -server-protocol/specifications/lsp/3.17/specification/#initialized The initialized notification is sent from the client to the server after the client received the result of the initialize request but before the client is sending any...
module LSP.Handler.Various ( initializedHandler , exitHandler , shutdownHandler , cancelRequestHandler , didOpenHandler , didChangeHandler , didCloseHandler ) where import Control.Monad.IO.Class ( liftIO ) import Language.LSP.Types qualified as LSP import Language.LSP.Server qualified as LSP import Sys...
2fadc5b766afd4eaa785e76c0c59a9adc9314db3a2e2e438b0fce9bc0bd78016
glondu/belenios
tool_tkeygen.ml
(**************************************************************************) (* BELENIOS *) (* *) Copyright © 2012 - 2022 (* ...
null
https://raw.githubusercontent.com/glondu/belenios/a1f9e4cc8c9aa823f3d0f9ba1e21b8c700cd5522/src/common/tool/tool_tkeygen.ml
ocaml
************************************************************************ BELENIOS This program is free softw...
Copyright © 2012 - 2022 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the exemption that compiling , linking , and/or using OpenSSL is allowed . You should have rece...
d06a27339a14b9628182057cfb7d2d8aadf4306b2cff8d3ee6769270d0b883f4
dcavar/schemeNLP
grammar.scm
":"; exec mzscheme -r $0 "$@" ;;; ---------------------------------------------------- ;;; Filename: grammar.ss Author : < > ;;; ( C ) 2006 by ;;; ;;; This code is published under the restrictive GPL! ;;; Please find the text of the GPL here: ;;; ;;; ;;; It is free for use, change, etc. as long as the co...
null
https://raw.githubusercontent.com/dcavar/schemeNLP/daa0ddcc4fa67fe00dcf6054c4d30d11a00b2f7f/src/grammar.scm
scheme
exec mzscheme -r $0 "$@" ---------------------------------------------------- Filename: grammar.ss This code is published under the restrictive GPL! Please find the text of the GPL here: It is free for use, change, etc. as long as the copyright note above is included in any modified version of the code. ...
Author : < > ( C ) 2006 by 1 . Reads a grammar file from files . 2 . Tokenizes each line and reads in left- and right - hand - side If the command line parameters contain more than one text / grammar file , the above results are accumulated over all the input files into one hash - table . The gra...
0775c0d6712f3255932cda3199de16be5dc178130f61d6909dc381816c55a329
ghc/packages-Cabal
cabal.test.hs
import Test.Cabal.Prelude See # 4332 , dep solving output is not deterministic main = cabalTest . recordMode DoNotRecord $ withSourceCopyDir "9" $ -- Note: we bundle the configure script so no need to autoreconf while building cabal "v2-build" ["all"]
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Regression/T5386/cabal.test.hs
haskell
Note: we bundle the configure script so no need to autoreconf while building
import Test.Cabal.Prelude See # 4332 , dep solving output is not deterministic main = cabalTest . recordMode DoNotRecord $ withSourceCopyDir "9" $ cabal "v2-build" ["all"]
0781330fdbe1e6f8ff97524e6c6b9a080a551bfe4f623adc216e295b5ba1f903
gedge-platform/gedge-platform
rabbit_web_mqtt_connection_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_web_mqtt_connection_sup). -behavi...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_web_mqtt/src/rabbit_web_mqtt_connection_sup.erl
erlang
---------------------------------------------------------------------------- then have the middleware rabbit_web_mqtt_middleware place it in the initial handler state. ----------------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_web_mqtt_connection_sup). -behaviour(su...
9f3a6bf479486196c877f6892a8a5b0e075375993e6dff09256e2d7866db85ee
input-output-hk/plutus
THUtils.hs
-- editorconfig-checker-disable-file {-# LANGUAGE LambdaCase #-} # LANGUAGE TemplateHaskell # module PlutusTx.Lift.THUtils where import PlutusIR import PlutusIR.Compiler.Names import PlutusCore.Quote import Control.Monad import Data.Text qualified as T import Language.Haskell.TH qualified as TH import Languag...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c8d4364d0e639fef4d5b93f7d6c0912d992b54f9/plutus-tx/src/PlutusTx/Lift/THUtils.hs
haskell
editorconfig-checker-disable-file # LANGUAGE LambdaCase # We do not use qualified import because the whole module contains off-chain code | Very nearly the same as 'TH.showName', but doesn't print uniques, since we don't need to incorporate them into our names. | Normalize a type, in particular getting rid of...
# LANGUAGE TemplateHaskell # module PlutusTx.Lift.THUtils where import PlutusIR import PlutusIR.Compiler.Names import PlutusCore.Quote import Control.Monad import Data.Text qualified as T import Language.Haskell.TH qualified as TH import Language.Haskell.TH.Datatype qualified as TH import Language.Haskell.TH.Synta...
7e806b9dc2306ff0e21d94621cfe4fdeee1a188fd71d62eb4a730595fd0470a1
ckruse/irckerl
irckerl_sup_test.erl
Copyright ( C ) 2011 by < > %% 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, merge, publish, dist...
null
https://raw.githubusercontent.com/ckruse/irckerl/2fd47c79a74b580d2d1448d15c5e9e2271e58daa/test/irckerl_sup_test.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 an...
Copyright ( C ) 2011 by < > 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 KIND , EXPRES...
08b43b29f8da086475856d64aea42a3b97d646735bd1bd172e3e6d586e175691
Jugendhackt/haskell-ricochet
Util.hs
{-| Module: Network.Ricochet.Util Description: A collection of utility functions "Network.Ricochet.Util" contains a collection of utility functions used throughout the package. -} {-# LANGUAGE RankNTypes #-} module Network.Ricochet.Util ( parserResult , anyWord16 , joinWord8s , look , lookWith ) wher...
null
https://raw.githubusercontent.com/Jugendhackt/haskell-ricochet/aa84fb96b2e73c6ea18ecb0c95d6b5c9b9e9bacb/src/Network/Ricochet/Util.hs
haskell
| Module: Network.Ricochet.Util Description: A collection of utility functions "Network.Ricochet.Util" contains a collection of utility functions used throughout the package. # LANGUAGE RankNTypes # into a our representation. | Lookup an item in a list | Lookup an item in a list, extracting an identifier usi...
module Network.Ricochet.Util ( parserResult , anyWord16 , joinWord8s , look , lookWith ) where import Network.Ricochet.Types (ParserResult(..)) import Control.Lens(Traversal', (^?), filtered, traversed) import Control.Monad (liftM2) import Data.Attoparsec.ByteString (Parser, Result(..), IResult(.....
9d544afe4bb2bdc630b6e577f39e34276703b44582bf56ce80cc3de477bfb094
lueck/standoff-tools
TextRange.hs
# OPTIONS_GHC -F -pgmF htfpp # module Test.StandOff.TextRange (htf_thisModulesTests) where import Test.Framework import StandOff.TextRange import StandOff.Splitting import StandOff.DomTypeDefs import Test.StandOff.TestSetup internal = [ (elm "root" 1 1000 [ (elm "head" 8 99 []) , (elm "...
null
https://raw.githubusercontent.com/lueck/standoff-tools/40305de78294a8e88579e50347a8a0b3d032b438/testsuite/Test/StandOff/TextRange.hs
haskell
| create a test case from start and end position, then merge it with 'internal' and return the spans. test left-overlapping test split on right-overlapping and no-split on contain test lost opening tag test lost closing tag test in opening tag test in closing tag test in both tags test merge into region witho...
# OPTIONS_GHC -F -pgmF htfpp # module Test.StandOff.TextRange (htf_thisModulesTests) where import Test.Framework import StandOff.TextRange import StandOff.Splitting import StandOff.DomTypeDefs import Test.StandOff.TestSetup internal = [ (elm "root" 1 1000 [ (elm "head" 8 99 []) , (elm "...
84588cc0bc447f9d28a761f0a67e5e12832ceb3e1b0736825bd6e8fccd73da5d
gstew5/cs4100-public
interp.mli
open Errors open Exp open Instr val tycheck_and_print_result : exp -> unit val print_result : exp -> unit val instrs_print_result : instr list -> unit
null
https://raw.githubusercontent.com/gstew5/cs4100-public/53c99e3e87331aa5dfa9161ca350a8e23acee739/compile-example/interp.mli
ocaml
open Errors open Exp open Instr val tycheck_and_print_result : exp -> unit val print_result : exp -> unit val instrs_print_result : instr list -> unit
4f1ca31f3a0682222b344765ad60db6eabe4e7ad21d8a082ba9fa25642deb99d
ralt/aergia
package.lisp
(defpackage #:aergia (:use #:cl) (:export :main) (:import-from :cl-ansi-text :with-color)) Define macros here because this file is the first compiled one (in-package #:aergia) (defvar *default-shell* "/bin/bash") (defvar *prefix* "") (defvar *command* "make test") (defvar *ssh-identity* (concatenate 'string (...
null
https://raw.githubusercontent.com/ralt/aergia/084fddc60b586483887e39f6b4ca5ec677502548/src/package.lisp
lisp
see man environ
(defpackage #:aergia (:use #:cl) (:export :main) (:import-from :cl-ansi-text :with-color)) Define macros here because this file is the first compiled one (in-package #:aergia) (defvar *default-shell* "/bin/bash") (defvar *prefix* "") (defvar *command* "make test") (defvar *ssh-identity* (concatenate 'string (...
6363b0993f6309ae753aadb68425fe2adf3931e039bcd174fc0487036b4031f8
eeng/shevek
druid.clj
(ns shevek.driver.druid) (defprotocol DruidDriver (datasources [this]) (send-query [this q]))
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/clj/shevek/driver/druid.clj
clojure
(ns shevek.driver.druid) (defprotocol DruidDriver (datasources [this]) (send-query [this q]))
197a4223e5350ca76333d42c6c7fcd966c2da5ccb1fe5a5f8c57cd6b844a2cd7
scrintal/heroicons-reagent
view_columns.cljs
(ns com.scrintal.heroicons.solid.view-columns) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M15 3.75H9v16.5h6V3.75zM16.5 20.25h3.375c1.035 0 1.875-.84 1.875-1.875V5.625c0-1.036-.84-1.875-1.875-1.875H16.5v16....
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/view_columns.cljs
clojure
(ns com.scrintal.heroicons.solid.view-columns) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M15 3.75H9v16.5h6V3.75zM16.5 20.25h3.375c1.035 0 1.875-.84 1.875-1.875V5.625c0-1.036-.84-1.875-1.875-1.875H16.5v16....
4ec6b4db6ce8447e5b3eb127eaa58778ed1dca476236667afb26bbae64c763f4
ocaml/ocaml
expect_test.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tools/expect_test.ml
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the Execute a list of phrases from a .ml file and compare the result to the expected output , written ins...
6335b391d8abc13ed146d5957ba685f897d42d4a8798a681f89bc9f17f5228db
juspay/euler-hs
Types.hs
{-# LANGUAGE DeriveAnyClass #-} module EulerHS.TestData.Types where import qualified Data.Aeson as A import EulerHS.Prelude import EulerHS.Types data UrlKey = UrlKey deriving (Generic, Typeable, Show, Eq, ToJSON) data TestStringKey = TestStringKey deriving (Generic, Typeable, Show, Eq, ToJ...
null
https://raw.githubusercontent.com/juspay/euler-hs/0fdda6ef43c1a6c9c7221d7c194c278e375b9936/test/EulerHS/TestData/Types.hs
haskell
# LANGUAGE DeriveAnyClass # --------------------------------
module EulerHS.TestData.Types where import qualified Data.Aeson as A import EulerHS.Prelude import EulerHS.Types data UrlKey = UrlKey deriving (Generic, Typeable, Show, Eq, ToJSON) data TestStringKey = TestStringKey deriving (Generic, Typeable, Show, Eq, ToJSON) data TestStringKey2 = Test...
dc2ba5b7419435ed3543f91150316e3d3ad624cc84e6705e0407e5f52dd40013
erlangonrails/devdb
exmpp_client_sasl.erl
Copyright ProcessOne 2006 - 2010 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this s...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/exmpp-0.9.5/src/client/exmpp_client_sasl.erl
erlang
compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the Licens...
Copyright ProcessOne 2006 - 2010 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " @author < > -module(exmpp_client_s...
086dcf5cba387c174aa604dfac72a3f5daa1a726e72c9de51d943806ebb8f0a1
OCamlPro/liquidity
liquidMain.ml
(****************************************************************************) (* Liquidity *) (* *) Copyright ( C ) 2017 - 2020 OCamlPro SAS (* ...
null
https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/tools/liquidity/liquidMain.ml
ocaml
************************************************************************** Liquidity ...
Copyright ( C ) 2017 - 2020 OCamlPro SAS it under the terms of the GNU General Public License as published by ...
cacee88f92872919734b529d347759181480d2c1901b638135c4c8ffda7372b0
8c6794b6/guile-tjit
t-nest-25.scm
;;; Nested loop, with inner loop having small number of iterations. (define (loop1 n acc) (let lp ((n n) (acc acc)) (cond ((< n 0) acc) ((< 50 n) (lp (- n 1) (+ acc n))) (else (lp (- n 1) (+ acc 1)))))) (define (loop2 n acc) (let lp ((n n) (acc acc)) (if (< 0 n) (lp (- n 1) (loop1 n...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-nest-25.scm
scheme
Nested loop, with inner loop having small number of iterations.
(define (loop1 n acc) (let lp ((n n) (acc acc)) (cond ((< n 0) acc) ((< 50 n) (lp (- n 1) (+ acc n))) (else (lp (- n 1) (+ acc 1)))))) (define (loop2 n acc) (let lp ((n n) (acc acc)) (if (< 0 n) (lp (- n 1) (loop1 n acc)) acc))) (do ((n 0 (+ n 1)) (acc '() (cons (loop2...
ffecb155bda1f986450107eba4869efa4b13809564e5b11277704620b28b56fb
ahrefs/devkit
fastBase64.ml
exception Invalid_char exception Invalid_table let chars = [| 'A';'B';'C';'D';'E';'F';'G';'H';'I';'J';'K';'L';'M';'N';'O';'P'; 'Q';'R';'S';'T';'U';'V';'W';'X';'Y';'Z';'a';'b';'c';'d';'e';'f'; 'g';'h';'i';'j';'k';'l';'m';'n';'o';'p';'q';'r';'s';'t';'u';'v'; 'w';'x';'y';'z';'0';'1';'2';'3';'4';'5';'6';'7';'8';'...
null
https://raw.githubusercontent.com/ahrefs/devkit/559c2df8f6eacb091e0eac38f508c45b6567bdd8/fastBase64.ml
ocaml
exception Invalid_char exception Invalid_table let chars = [| 'A';'B';'C';'D';'E';'F';'G';'H';'I';'J';'K';'L';'M';'N';'O';'P'; 'Q';'R';'S';'T';'U';'V';'W';'X';'Y';'Z';'a';'b';'c';'d';'e';'f'; 'g';'h';'i';'j';'k';'l';'m';'n';'o';'p';'q';'r';'s';'t';'u';'v'; 'w';'x';'y';'z';'0';'1';'2';'3';'4';'5';'6';'7';'8';'...
9d47c1da89089eb629281c0f8e20ea721839a38f036be66029da70aba8b86ec2
jaked/ocamljs
printf.ml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/stdlib/patches/3.11.1/printf.ml
ocaml
********************************************************************* Objective Caml ...
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
91614ce9276d71a22462db3fb26e21f9c7852f6ed428d43b7ad91b4459840b0f
metosin/reitit
muuntaja_test.clj
(ns reitit.ring.middleware.muuntaja-test (:require [clojure.test :refer [deftest is testing]] [muuntaja.core :as m] [reitit.ring :as ring] [reitit.ring.middleware.muuntaja :as muuntaja] [reitit.swagger :as swagger])) (deftest muuntaja-test (let [data {:kikka "kukka"}...
null
https://raw.githubusercontent.com/metosin/reitit/198cfda00d20093f3d7b3069e5e902835c396698/test/clj/reitit/ring/middleware/muuntaja_test.clj
clojure
(ns reitit.ring.middleware.muuntaja-test (:require [clojure.test :refer [deftest is testing]] [muuntaja.core :as m] [reitit.ring :as ring] [reitit.ring.middleware.muuntaja :as muuntaja] [reitit.swagger :as swagger])) (deftest muuntaja-test (let [data {:kikka "kukka"}...
80bc07333c9d3ef95e7becf88c4ba5b8e6329866b9947b4b110a40634f366b09
RichiH/git-annex
Group.hs
git - annex group log - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Logs.Group ( groupLog, groupChange, groupSet, lookupGroups, groupMap, groupMapLoad, getStandard...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Logs/Group.hs
haskell
Applies a set modifier to change the groups for a uuid in the groupLog. The changed group invalidates the preferred content cache. The map is cached for speed. Loads the map, updating the cache.
git - annex group log - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Logs.Group ( groupLog, groupChange, groupSet, lookupGroups, groupMap, groupMapLoad, getStandard...
aa5675e1e13c472cbe01768067ffbba09571d32f803d0e7edbb5a3bea0f4e868
runeksvendsen/bitcoin-payment-channel
Script.hs
module PaymentChannel.Internal.Settlement.Script where import qualified Network.Haskoin.Crypto as HC import qualified Network.Haskoin.Script as HS import PaymentChannel.Internal.Types import PaymentChannel.Internal.Util
null
https://raw.githubusercontent.com/runeksvendsen/bitcoin-payment-channel/3d2ee56c027571d1a86092c317640e5eae7adde3/src/PaymentChannel/Internal/Settlement/Script.hs
haskell
module PaymentChannel.Internal.Settlement.Script where import qualified Network.Haskoin.Crypto as HC import qualified Network.Haskoin.Script as HS import PaymentChannel.Internal.Types import PaymentChannel.Internal.Util
bfada12be75393e8f1e22017fa22fb15a30a31e67d0b8a436cdd36a04379e9f6
8c6794b6/guile-tjit
t-call-cc-01.scm
;;; Loop containing `call/cc'. Ignores the continuation. (define (loop1 lst acc) (call/cc (lambda (return) (let lp ((lst lst) (acc acc)) (if (null? lst) acc (lp (cdr lst) (+ acc (car lst)))))))) (define (loop2 n) (let lp ((n n) (acc 0)) (if (zero? n) acc (l...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-call-cc-01.scm
scheme
Loop containing `call/cc'. Ignores the continuation.
(define (loop1 lst acc) (call/cc (lambda (return) (let lp ((lst lst) (acc acc)) (if (null? lst) acc (lp (cdr lst) (+ acc (car lst)))))))) (define (loop2 n) (let lp ((n n) (acc 0)) (if (zero? n) acc (let ((lst (if (even? n) '(1 2 3 4 5...
8d61ba177af89c089d5203fd4ce24eee098fb8a65bff837c34fe67fb01f70b44
c4-project/c4f
atomic_cmpxchg.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/src/atomic_cmpxchg.mli
ocaml
* Compare-exchange actions. * {1 Insertions} These {!Storelike} actions produce compare-exchanges. * Inner payload for insertions.
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
beb0e633b181db590ab3aef5afb62b9433df6be6b6f53cdb844a2d0bf788ef53
Mayvenn/storefront
looks.cljc
(ns catalog.looks "Shopping by Looks: index page of 'looks' for an 'album'" (:require #?@(:cljs [[storefront.hooks.stringer :as stringer] [storefront.history :as history] [storefront.trackings :as trackings]]) [api.catalog :refer [select ?discountable ?physi...
null
https://raw.githubusercontent.com/Mayvenn/storefront/162ff93acc313dd3ee4d95d86e7f636d1b25e915/src-cljc/catalog/looks.cljc
clojure
Visual: Looks (new version under experiment) Visual: Spinning Biz domains -> Viz domains Biz Domain: Looks TODO(corey) apply merge-with into TODO: only handles the free service discount, other promotions can be back ported here after Look Looks page filtering should replace albums *being rendered / fetched f...
(ns catalog.looks "Shopping by Looks: index page of 'looks' for an 'album'" (:require #?@(:cljs [[storefront.hooks.stringer :as stringer] [storefront.history :as history] [storefront.trackings :as trackings]]) [api.catalog :refer [select ?discountable ?physi...
5e7ad86c371291a9a44eb50876a3f6ced7150c31524bbc42ece63b4ca91b741b
spectrum-finance/cardano-dex-contracts
PPool.hs
# LANGUAGE UndecidableInstances # module ErgoDex.PContracts.PPool ( PoolConfig (..), PoolAction (..), PoolRedeemer (..), poolValidatorT, ) where import qualified GHC.Generics as GHC import Generics.SOP (Generic, I (I)) import Plutarch import Plutarch.Api.V2 (PMaybeData (PDJust)...
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-contracts/491e48b4ff1f261d3bc53e76371e4f07ba696a89/cardano-dex-contracts-onchain/ErgoDex/PContracts/PPool.hs
haskell
> PoolState ) > PInteger :--> PInteger :--> PInteger :--> PBool) > PInteger : -- > PInteger : -- > PBool ) > PBuiltinList PTxOut :--> PTxOut) > PScriptContext : -- > PBool ) all tokens except for permanetly locked ones are removed pool keeps only the negative part of LQ tokens self is the output currently validat...
# LANGUAGE UndecidableInstances # module ErgoDex.PContracts.PPool ( PoolConfig (..), PoolAction (..), PoolRedeemer (..), poolValidatorT, ) where import qualified GHC.Generics as GHC import Generics.SOP (Generic, I (I)) import Plutarch import Plutarch.Api.V2 (PMaybeData (PDJust)...
288fdd8c956b335daae12efcc9ed4db7b791acd05da2e97ac8d1f42023911bea
ocaml-ppx/ocamlformat
printast.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-standard/printast.ml
ocaml
************************************************************************ OCaml ...
, projet Para , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Format open Lexing open Location open Parsetree let fmt_position with_name f l = let ...
beaad34a45a4b65edc75f90bdf1ead5eb64e0769b778d655977ad0cbcea84c82
tlehman/sicp-exercises
ex-1.38.scm
Exercise 1.38 : In 1737 , the Swiss Mathematician published a memoir , which included a continued fraction ; expansion for e - 2, where e is the base of the natural logarithm. ; ; In this fraction, the Nᵢ are 1 and the Dᵢ are successively: ; 1 , 2 , 1 , 1 , 4 , 1 , 1 , 6 , 1 , 1 , 8 , ... ( OEIS A003...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.38.scm
scheme
expansion for e - 2, where e is the base of the natural logarithm. In this fraction, the Nᵢ are 1 and the Dᵢ are successively: (1 2 1 1 4 1 1 6 1 1 8 1 1)
Exercise 1.38 : In 1737 , the Swiss Mathematician published a memoir , which included a continued fraction 1 , 2 , 1 , 1 , 4 , 1 , 1 , 6 , 1 , 1 , 8 , ... ( OEIS A003417 ) Write a program that uses your cont - frac procedure from Exercise 1.37 to approximate e , based on Euler 's expansion . (load ...
55139680d9e7e5c7c95aca5a51a530960233e1a86c0cff5fab1bef504486d84f
jrm-code-project/LISP-Machine
as8748.lisp
-*- Mode : LISP ; Package : USER ; Base : 8 ; Lowercase : T -*- Assemble for Intel 8x48 and 8x41 series of microprocessors (declare (special as-pc as-labels as-assignments as-pass as-must-be-assigned as-form as-code as-known-new-pc)) (defun as-init () (setq as-pc 0 as-must-be-as...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/io1/as8748.lisp
lisp
Package : USER ; Base : 8 ; Lowercase : T -*- Calculate highest address used Standard forms Known operations
Assemble for Intel 8x48 and 8x41 series of microprocessors (declare (special as-pc as-labels as-assignments as-pass as-must-be-assigned as-form as-code as-known-new-pc)) (defun as-init () (setq as-pc 0 as-must-be-assigned (eq as-pass 'PASS-2) as-code (ncons (list '= '0)) ...
14623b72f41d791f992e5975a201e631c7e422944ef4c391d98ff655441076ad
realworldocaml/mdx
test-case.mli
* This is a doc comment with some code blocks in it : { [ # List.map ( fun x - > x * x ) [ ( 1 + 9 ) ; 2 ; 3 ] ; ; - : int list = [ 100 ; 4 ; 9 ] ] } { [ List.map ( fun x - > x * x ) [ 1 ; 2 ; 3 ] ] } { [ let my_list = [ 1 ; 2 ; 3 ] in let the_list = 0 : : my_...
null
https://raw.githubusercontent.com/realworldocaml/mdx/ba41f92ec7b5ccc20f0cd34e4a13f600862e2816/test/bin/mdx-test/expect/simple-mli/test-case.mli
ocaml
* This is a doc comment with some code blocks in it : { [ # List.map ( fun x - > x * x ) [ ( 1 + 9 ) ; 2 ; 3 ] ; ; - : int list = [ 100 ; 4 ; 9 ] ] } { [ List.map ( fun x - > x * x ) [ 1 ; 2 ; 3 ] ] } { [ let my_list = [ 1 ; 2 ; 3 ] in let the_list = 0 : : my_...
d45a96e3b5baf61d5e731810ed06b56b61c7a74a87b5f8a1a8fafcae16d90a28
acl2/acl2
maps.lisp
; Additions to the records library ; Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2020 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ...
null
https://raw.githubusercontent.com/acl2/acl2/69204c321c7948154d5912e65544f3826c5fd14b/books/kestrel/maps/maps.lisp
lisp
Additions to the records library TODO: Clean this up maps are basically records with "domain" and "new address" operators TODO: See also ../axe/maps2.lisp fixme some of these are set theorems? stuff that should be in the records book: dup logically the same as g, but has a guard and should execute much faster f...
Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2020 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") FIXME move stuff into maps0 ? FIXME put in more support for fast execution - see books / defexec / ...
1c11f1a7dd33d656aa05d7480ca9e56d366d8e3a05ee27452e6e0110dd9ef06f
heraldry/heraldicon
range.cljs
(ns heraldicon.frontend.element.range (:require [heraldicon.frontend.element.core :as element] [heraldicon.frontend.element.value-mode-select :as value-mode-select] [heraldicon.frontend.language :refer [tr]] [heraldicon.frontend.tooltip :as tooltip] [heraldicon.interface :as interface] [heraldicon.u...
null
https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/frontend/element/range.cljs
clojure
(ns heraldicon.frontend.element.range (:require [heraldicon.frontend.element.core :as element] [heraldicon.frontend.element.value-mode-select :as value-mode-select] [heraldicon.frontend.language :refer [tr]] [heraldicon.frontend.tooltip :as tooltip] [heraldicon.interface :as interface] [heraldicon.u...
4003a03d703c2795b5dd06b46dcde7717fe932a9ff52f0b342e01664ef8a6b00
mistupv/cauder
sleeping_barber_bad_order.erl
-module(sleeping_barber). -export([run/1, barber/1, client/1, create_clients/1, room/2]). -define(CUT_DURATION, 20). run(RoomSize) -> % create barber slave:start(mac, barber), BPid = spawn('barber@mac', ?MODULE, barber, [?CUT_DURATION]), % run simulartor with barber PID slave:start(mac, room), ...
null
https://raw.githubusercontent.com/mistupv/cauder/ff4955cca4b0aa6ae9d682e9f0532be188a5cc16/examples/distributed/sleeping_barber_bad_order.erl
erlang
create barber run simulartor with barber PID spawn clients generator XXX: you can play with constants
-module(sleeping_barber). -export([run/1, barber/1, client/1, create_clients/1, room/2]). -define(CUT_DURATION, 20). run(RoomSize) -> slave:start(mac, barber), BPid = spawn('barber@mac', ?MODULE, barber, [?CUT_DURATION]), slave:start(mac, room), RoomPid = spawn('room@mac', ?MODULE, room, [{BPid, free}...
e6f7badd9037a5140a7067caae7a5872c01444ce63fa7411e4284dab84cdb22c
clj-commons/rewrite-clj
node_test.cljc
(ns rewrite-clj.node-test "This test namespace originated from rewrite-cljs." (:require [clojure.test :refer [deftest is are testing]] [rewrite-clj.node :as n] [rewrite-clj.node.protocols :as proto] [rewrite-clj.parser :as p])) (deftest nodes-convert-to-strings-and-sexpr-ability...
null
https://raw.githubusercontent.com/clj-commons/rewrite-clj/7621126caae5f21dc5150d52a6c9b747dc0aeeff/test/rewrite_clj/node_test.cljc
clojure
(ns rewrite-clj.node-test "This test namespace originated from rewrite-cljs." (:require [clojure.test :refer [deftest is are testing]] [rewrite-clj.node :as n] [rewrite-clj.node.protocols :as proto] [rewrite-clj.parser :as p])) (deftest nodes-convert-to-strings-and-sexpr-ability...
c13424f95c0198f06f5d3e6c62ff620386e60d4a7e7fbaf62f23e19772dc8c43
dparis/gen-phzr
fixed_to_camera.cljs
(ns phzr.component.fixed-to-camera (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->FixedToCamera "The FixedToCamera component enables a Game Object to be rendered relative to the game camera coordinates, regardless of ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/component/fixed_to_camera.cljs
clojure
(ns phzr.component.fixed-to-camera (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->FixedToCamera "The FixedToCamera component enables a Game Object to be rendered relative to the game camera coordinates, regardless of ...
dcd476cc2dfb788964ff525bee1d5b7d26121b13cb23e45367236de37b1a5c7e
janestreet/memtrace_viewer
orientation.ml
type t = | Callers | Callees [@@deriving sexp, equal] let flip = function | Callers -> Callees | Callees -> Callers ;;
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer/46439f8bd16e77c5aa38632c9c4aa53175121d4d/common/orientation.ml
ocaml
type t = | Callers | Callees [@@deriving sexp, equal] let flip = function | Callers -> Callees | Callees -> Callers ;;
a07919ccd13cae2ad74a2528761e7c8a29ed1826d4e8fe1d3420546c35d81143
randomseed-io/phone-number
infra.clj
(ns infra) ( defonce nrepl ( start - nrepl ) )
null
https://raw.githubusercontent.com/randomseed-io/phone-number/f6af149328408bab9369e42f0c11a31ad41ff18b/dev/src/infra.clj
clojure
(ns infra) ( defonce nrepl ( start - nrepl ) )
58b035c6ff042b4432228cce5b5f028dfe75d8dc7896f25422207583f2381bde
xsc/lexington
visualize.clj
(ns ^{ :doc "FSM Visualization using Dorothy/GraphViz" :author "Yannick Scherer" } lexington.fsm.visualize (:use [dorothy.core :as dorothy] [clojure.string :as string :only [join]] [lexington.fsm.consts :as c] lexington.fsm.utils)) ;; ## Helpers (defn- collect-transitions "Convert...
null
https://raw.githubusercontent.com/xsc/lexington/b7b30617b15cbdc83c0d4e65bfcf63b27cfc945a/src/lexington/fsm/visualize.clj
clojure
## Helpers ## Presentation Functions
(ns ^{ :doc "FSM Visualization using Dorothy/GraphViz" :author "Yannick Scherer" } lexington.fsm.visualize (:use [dorothy.core :as dorothy] [clojure.string :as string :only [join]] [lexington.fsm.consts :as c] lexington.fsm.utils)) (defn- collect-transitions "Convert a map of `{ <...
61325727d297f5daedbc169e8b687c8e4a4f283d30b5bf64fa3ef84eb7d8723a
kazzmir/master-of-magic
refList.mli
* RefList - List reference * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/kazzmir/master-of-magic/830bfd1c549a5ac7370fa6a72bb06be5d3435fa0/lib/extlib-1.5/refList.mli
ocaml
* Returns a new empty ref list * Return [true] if a ref list is empty * Removes all elements * Returns the number of elements - O(n) * Makes a copy of a ref list - O(1) * Makes a copy of a list - O(1) * Makes a copy of a enum * Creates a ref list from a list - O(1) * Returns the current elements as a list - O(1...
* RefList - List reference * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your opti...
527d473a6617bb2853f93afa69f36659b5b43855c4b290261f8974f53e4f40d2
hyperfiddle/electric
form_impure_ct_comments.cljc
(ns wip.form-impure-ct-comments (:require [contrib.clojurex :refer [bindx]] [contrib.str :refer [pprint-str]] #?(:clj [contrib.datomic-contrib :as dx]) #?(:clj [datomic.client.api :as d]) [hyperfiddle.api :as hf] [hyperfiddle.photon :as p] [hyper...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2022/forms/form_impure_ct_comments.cljc
clojure
compatible with current dom controls loop (ns-unalias *ns* 'ui) server TODO Validation? todo no need to loop a disabled control, it's just a terminal text effect are the inputs discrete or continuous? where is the conversion? (when-some [e ...] (swap! ...)) is impulse do i know if it's dirty? the value in the ...
(ns wip.form-impure-ct-comments (:require [contrib.clojurex :refer [bindx]] [contrib.str :refer [pprint-str]] #?(:clj [contrib.datomic-contrib :as dx]) #?(:clj [datomic.client.api :as d]) [hyperfiddle.api :as hf] [hyperfiddle.photon :as p] [hyper...
8757fc46921d830f67039f0b1d4c1070a8c14f78d37de173516256971136355e
richhickey/clojure-contrib
base64.clj
base64.clj : Experimental Base-64 encoding and ( later ) decoding by , / August 19 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the ro...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/base64.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. returns a String. If not specified, t...
base64.clj : Experimental Base-64 encoding and ( later ) decoding by , / August 19 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns #^{:doc "Base-64 encoding and (maybe later) decoding. This is mainly here as a...
7aabc93243f1eb530bf57f7ac493130f69b6581cfe780d256a4078ccb73ef693
seereason/hsx2hs
hsx2hs.hs
# LANGUAGE CPP # module Main where import Control.Exception (handle,ErrorCall(..)) import Data.List (isPrefixOf) import Prelude hiding (readFile, writeFile) import Language.Haskell.Exts hiding (parse) import Language.Haskell.HSX.Transform (transform) im...
null
https://raw.githubusercontent.com/seereason/hsx2hs/52bacda56ab4c54ad533d9ddee48ed6a75a486dc/src/hsx2hs.hs
haskell
# LANGUAGE CPP # module Main where import Control.Exception (handle,ErrorCall(..)) import Data.List (isPrefixOf) import Prelude hiding (readFile, writeFile) import Language.Haskell.Exts hiding (parse) import Language.Haskell.HSX.Transform (transform) im...
cb9b316793f6e7b76e52cefa3f0b37bcbacde9ae5d79c5aabb3d84d21b5f0944
wilbowma/cur
Tactics-unfolding.rkt
#lang cur (require cur/stdlib/sugar cur/stdlib/equality cur/ntac/base cur/ntac/standard cur/ntac/rewrite rackunit/turnstile+ "../rackunit-ntac.rkt") Software Foundations Tactics.v , part 4 of 5 ;; copied from Poly-pairs.rkt (data bool : 0 Type (true : bool...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/software-foundations/Tactics-unfolding.rkt
racket
copied from Poly-pairs.rkt letter capital "O" * = "full" version; as opposed to hidden-arg version mult/plus thms needed for square mult ---------- prove H return (unfold square) ; unneeded prove H (unfold bar) ; automatic TODO: why does this == require an annotation?
#lang cur (require cur/stdlib/sugar cur/stdlib/equality cur/ntac/base cur/ntac/standard cur/ntac/rewrite rackunit/turnstile+ "../rackunit-ntac.rkt") Software Foundations Tactics.v , part 4 of 5 (data bool : 0 Type (true : bool) (false : bool)) (data...
4e38a67468e37f4324d5c06ed5935f9fa7f30d58e1ea5e0c81ec71c392bd2052
creswick/cabal-dev
MergeCabalConfig.hs
| Merge configuration files for Cabal ( and cabal - install ) . Merge configuration files for Cabal (and cabal-install). -} module Distribution.Dev.MergeCabalConfig ( mergeFields , isFlaggedForRemoval , filterFields , removeFlaggedFields ) where import Data.Maybe ( fromMaybe, m...
null
https://raw.githubusercontent.com/creswick/cabal-dev/bb1fb44a00cf053ea142617a31b5e2f2c189866b/src/Distribution/Dev/MergeCabalConfig.hs
haskell
fields. ^Starting fields ^New fields ^Merged fields (preferring fields from the |Filter a configuration based on a predicate. Filters at the top level as well as inside of Sections. >>> let p f = case f of { F _ _ "bar" -> False; _ -> True; } |Look for the magic value "USE-DEFAULT" as the value of a leaf (F...
| Merge configuration files for Cabal ( and cabal - install ) . Merge configuration files for Cabal (and cabal-install). -} module Distribution.Dev.MergeCabalConfig ( mergeFields , isFlaggedForRemoval , filterFields , removeFlaggedFields ) where import Data.Maybe ( fromMaybe, m...
a8fcae57c13bd4af36b7c40a72dca55a3fd158d8667257e5fc20dc246d18d04c
mejgun/haskell-tdlib
SearchPublicChats.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SearchPublicChats where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/SearchPublicChats.hs
haskell
# LANGUAGE OverloadedStrings # | | Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and chats from the chat list from the results | Qu...
module TD.Query.SearchPublicChats where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data SearchPublicChats = SearchPublicChats query :: Maybe String } deriving (Eq) instance Show SearchPublicChats where show SearchPublicChats { query = quer...
d652d9ae3dff2c629312d29fd1e9515ad01135514f7611f3b35bf2b9dfbe2132
ragkousism/Guix-on-Hurd
tls.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 < > Copyright © 2014 , 2015 , 2016 < > Copyright © 2014 < > Copyright © 2013 , 2015 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > Copyright © 2015 , 2016 , 2017 < > Cop...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/tls.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 © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 < > Copyright © 2014 , 2015 , 2016 < > Copyright © 2014 < > Copyright © 2013 , 2015 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > Copyright © 2015 , 2016 , 2017 < > Copyright © 2016 < > Copyright © 2016 ng0 < > Copy...
71f2929a6876e655cb328d70de9f272e65b606fcd44843582ecde2a43d6ec0ac
duo-lang/duo-lang
Program.hs
module Syntax.CST.Program where import Data.Text (Text) import Syntax.CST.Terms ( Term, TermCase ) import Syntax.CST.Types ( TypeScheme, XtorSig, Typ, DataCodata, PrdCns ) import Syntax.CST.Names ( Associativity, ClassName, DocComment, FreeVarName, ModuleName (..), Precedence, ...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/62305c16e219477d6e33287a7752c258b5342c3e/duo-lang-parser/src/Syntax/CST/Program.hs
haskell
------------------------------------------------------------------------------- ------------------------------------------------------------------------------- | A toplevel producer or consumer declaration. ^ The source code location of the declaration. ^ The documentation string of the declaration. ^ Whether a pro...
module Syntax.CST.Program where import Data.Text (Text) import Syntax.CST.Terms ( Term, TermCase ) import Syntax.CST.Types ( TypeScheme, XtorSig, Typ, DataCodata, PrdCns ) import Syntax.CST.Names ( Associativity, ClassName, DocComment, FreeVarName, ModuleName (..), Precedence, ...
85e02b0cff5479a992d3fa4e228d4628f657e88f6a06e4944f2a65acdda7a39f
evolutics/haskell-formatter
Input.hs
import Module (b, d) import Module (c, a)
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/testsuite/resources/source/orders_parts/import_entities_before_declarations/Input.hs
haskell
import Module (b, d) import Module (c, a)
a85e87d43897f6d84f0643ac4c6ad09e05549c10cddc929e5779a39f44d9a908
clojure-interop/aws-api
core.clj
(ns com.amazonaws.services.macie.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.macie.AbstractAmazonMacie]) (require '[com.amazonaws.services.macie.AbstractAmazonMacieAsync]) (require '[com.amazonaws.services.macie.AmazonMacie]) (require '[com.amazonaws.services...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.macie/src/com/amazonaws/services/macie/core.clj
clojure
(ns com.amazonaws.services.macie.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.macie.AbstractAmazonMacie]) (require '[com.amazonaws.services.macie.AbstractAmazonMacieAsync]) (require '[com.amazonaws.services.macie.AmazonMacie]) (require '[com.amazonaws.services...
26f0d7961deb80fb5cafa89e2a6f81f6343d5b3ea0a5c0c398fc4501c5664cdb
zshipko/libirmin
libirmin_bindings.ml
module Stubs (I : Cstubs_inverted.INTERNAL) = struct include Type.Make (I) include Value.Make (I) include Info.Make (I) include Config.Make (I) include Store.Make (I) include Tree.Make (I) include Repo.Make (I) include Commit.Make (I) include Path.Make (I) end
null
https://raw.githubusercontent.com/zshipko/libirmin/43e068fd3304dfe72d562822bf4f0bec116e1648/src/libirmin_bindings.ml
ocaml
module Stubs (I : Cstubs_inverted.INTERNAL) = struct include Type.Make (I) include Value.Make (I) include Info.Make (I) include Config.Make (I) include Store.Make (I) include Tree.Make (I) include Repo.Make (I) include Commit.Make (I) include Path.Make (I) end
add4f395ce7f974a721d368258170b4acaa77a045f36282f18b34e245c96c46a
ocaml-ppx/ocamlformat
disabled.ml
(* this file does not parse and ocamlformat is disabled *) let = in
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/passing/tests/disabled.ml
ocaml
this file does not parse and ocamlformat is disabled
let = in
56265cede1793237e194d2e5db97292710950f0a0135ed8e8f363cb2f1bc5600
vmchale/apple
R.hs
module R.R ( RM , nextU , runM , module R ) where import Control.Monad.State.Strict (State, gets, runState) import Data.Bifunctor (second) import Data.Functor (($>)) import qualified Data.Text as T impo...
null
https://raw.githubusercontent.com/vmchale/apple/ed41443012d6dd2a73edcff10915c0defda0e34b/src/R/R.hs
haskell
module R.R ( RM , nextU , runM , module R ) where import Control.Monad.State.Strict (State, gets, runState) import Data.Bifunctor (second) import Data.Functor (($>)) import qualified Data.Text as T impo...
0f6104dc6b7f3b1ec69b882f1d849af4becbb76ed3de9157b9a687509ed6de3d
let-def/ttx
context.mli
type ('a, 'b) eq = Refl : ('a, 'a) eq type ('a, 'b) type_ordering = Lt | Eq : ('a, 'a) type_ordering | Gt exception Error of string module type TYPE = sig type 'a t end module type NAMESPACE = sig include TYPE val to_string : _ t -> string val order : 'a t -> 'b t -> ('a, 'b) type_ordering end module type C...
null
https://raw.githubusercontent.com/let-def/ttx/0a50ba7253056d1202f108b67faf4d9cc78e020d/lib/ttx/context.mli
ocaml
Creating new bindings
type ('a, 'b) eq = Refl : ('a, 'a) eq type ('a, 'b) type_ordering = Lt | Eq : ('a, 'a) type_ordering | Gt exception Error of string module type TYPE = sig type 'a t end module type NAMESPACE = sig include TYPE val to_string : _ t -> string val order : 'a t -> 'b t -> ('a, 'b) type_ordering end module type C...
ae2c1a34ca75ab289fcef83c59bf71cf7c16efd825fdccc84d29d647cb435f48
techascent/tech.datatype
fast_copy.clj
(ns tech.v2.datatype.fast-copy (:require [tech.v2.datatype.typecast :as typecast] [tech.v2.datatype.protocols :as dtype-proto] [tech.jna :as jna] [tech.v2.datatype.casting :as casting] [tech.parallel.for :as parallel-for] [tech.v2.datatype.nio-access :refer ...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/src/tech/v2/datatype/fast_copy.clj
clojure
Ensure functions are bound Go the *much* slower iterator pathway Very fast path Turns out that system/arraycopy is *really* damn fast.
(ns tech.v2.datatype.fast-copy (:require [tech.v2.datatype.typecast :as typecast] [tech.v2.datatype.protocols :as dtype-proto] [tech.jna :as jna] [tech.v2.datatype.casting :as casting] [tech.parallel.for :as parallel-for] [tech.v2.datatype.nio-access :refer ...
bebebce35039e50b043516738ff94822aaaede540295202a7b5c9783f5c6e27f
bytekid/mkbtt
pathString.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/termindexing/pathString.mli
ocaml
** TYPES ************************************************************** for constants ** VALUES *************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...