_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
2e9a986f5c44d891cc73cebd48b5a419d117c52cfd5d02c0b6bab1e3c9fbc471
pflanze/chj-schemelib
usersyntax.scm
;; --- |require| runtime macro ---- (##top-cte-add-macro! ##interaction-cte 'require (##make-macro-descr #t -1 (lambda (stx) ;; do not eval at expansion time, because Gambit crashes when ;; doing nested compilation; instead usually require forms are ;; translated separately (location-warn ...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/mod/usersyntax.scm
scheme
--- |require| runtime macro ---- do not eval at expansion time, because Gambit crashes when doing nested compilation; instead usually require forms are translated separately |RQ|
(##top-cte-add-macro! ##interaction-cte 'require (##make-macro-descr #t -1 (lambda (stx) (location-warn (source-location stx) "fall back to macro definition of require form, no compile-time definitions are supported") (mod:require-expand stx)) #f)) a require for user interaction that ...
1e2df78974bb816b216ea3fcf91ab195404139835c2c9ae45b109c78caea803f
NorfairKing/validity
Sequence.hs
# OPTIONS_GHC -fno - warn - orphans # module Data.Validity.Sequence where import Data.Foldable (toList) import Data.Sequence (Seq) import Data.Validity -- | A 'Seq'uence of things is valid if all the elements are valid. instance Validity v => Validity (Seq v) where validate s = annotate (toList s) "Seq elements"
null
https://raw.githubusercontent.com/NorfairKing/validity/1c3671a662673e21a1c5e8056eef5a7b0e8720ea/validity-containers/src/Data/Validity/Sequence.hs
haskell
| A 'Seq'uence of things is valid if all the elements are valid.
# OPTIONS_GHC -fno - warn - orphans # module Data.Validity.Sequence where import Data.Foldable (toList) import Data.Sequence (Seq) import Data.Validity instance Validity v => Validity (Seq v) where validate s = annotate (toList s) "Seq elements"
9fadd0fc0a3f1890305e427cac947389638f839f2e0ce57a6d74d768b4e392af
dgtized/shimmers
polygraph.cljc
(ns shimmers.model.polygraph "a graph of points where each node is uniquely identified but also maps to an updatable position." (:require [loom.attr :as lga] [loom.graph :as lg] [thi.ng.geom.core :as g] [thi.ng.geom.vector :as gv])) (defn nodes->points [graph] (->> graph lg/nodes (map (...
null
https://raw.githubusercontent.com/dgtized/shimmers/822eeff9442365cb1731946f1bfa428c10269aea/src/shimmers/model/polygraph.cljc
clojure
(ns shimmers.model.polygraph "a graph of points where each node is uniquely identified but also maps to an updatable position." (:require [loom.attr :as lga] [loom.graph :as lg] [thi.ng.geom.core :as g] [thi.ng.geom.vector :as gv])) (defn nodes->points [graph] (->> graph lg/nodes (map (...
e3ae6c99b0295724ce108d1fecc5297695d04024cd7f3514a10e1719eaff5ba1
pirapira/bamboo
codegen_test.ml
open Syntax open Codegen The following two functions comes from * -test * which is under UNLICENSE * -test * which is under UNLICENSE *) let _ = let dummy_cid_lookup (_ : string) = 3 in let dummy_env = CodegenEnv.empty_env dummy_cid_lookup [] in let dummy_l = LocationEnv.empty_env in let _ = code...
null
https://raw.githubusercontent.com/pirapira/bamboo/1cca98e0b6d2579fe32885e66aafd0f5e25d9eb5/src/codegen/codegen_test.ml
ocaml
open Syntax open Codegen The following two functions comes from * -test * which is under UNLICENSE * -test * which is under UNLICENSE *) let _ = let dummy_cid_lookup (_ : string) = 3 in let dummy_env = CodegenEnv.empty_env dummy_cid_lookup [] in let dummy_l = LocationEnv.empty_env in let _ = code...
47cde3c63d148b92f4ea3ea811dfbc75a058c0dc799ce0b5b452dc054c2d9fc6
r-willis/biten
peer_sup.erl
-module(peer_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). -define(CHILD_T(I, Type), {I, {I, start_link, []}, temporary, 5000...
null
https://raw.githubusercontent.com/r-willis/biten/75b13ea296992f8fa749646b9d7c15c5ef23d94d/apps/biten/src/peer_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(peer_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). -define(CHILD_T(I, Type), {I, {I, start_link, []}, temporary, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE...
c21d1196aecb417e819cae960cc9a254cc843a08fecaf9989625138cf0a905da
monstasat/chartjs-ocaml
chartjs.mli
open Js_of_ocaml module Indexable : sig type 'a t * options also accept an array in which each item corresponds to the element at the same index . Note that this method requires to provide as many items as data , so , in most cases , using a function is more appropriated if supported . ...
null
https://raw.githubusercontent.com/monstasat/chartjs-ocaml/e6f25819bc18168811c63db72b615095ff082181/lib/chartjs.mli
ocaml
* Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument [context] representing contextual information. * @see <-US/docs/Web/API/CanvasRenderingContext2D/lineJoin> * When configuring interaction with the graph via hover or toolti...
open Js_of_ocaml module Indexable : sig type 'a t * options also accept an array in which each item corresponds to the element at the same index . Note that this method requires to provide as many items as data , so , in most cases , using a function is more appropriated if supported . ...
93539d7598e887d0e6b565e9fc301fa5139facc17e4b1b7a485b574e3d0ffac7
haskell/haskell-ide-engine
FunctionalLiquidSpec.hs
{-# LANGUAGE OverloadedStrings #-} module FunctionalLiquidSpec where import Control.Lens hiding (List) import Control.Monad.IO.Class import Data.Aeson import Data.Default import qualified Data.Text as T import Language.Haskell.LSP.Test hiding (message) import ...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/test/functional/FunctionalLiquidSpec.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------- --------------------------------- runSessionWithConfig logConfig hieCommand codeActionSupportCaps "test/testdata" $ do Enable liquid haskell plugin and disable hlint docItem <- getDocItem file languageId TODO: wha...
module FunctionalLiquidSpec where import Control.Lens hiding (List) import Control.Monad.IO.Class import Data.Aeson import Data.Default import qualified Data.Text as T import Language.Haskell.LSP.Test hiding (message) import Language.Haskell.LSP.Types as LSP...
5622395c02b214a20bc388449bbdf8f4da56353be2a77f033bf8abdd5273f1bf
wilkerlucio/pathom
index_oir_example.cljc
(ns com.wsscode.pathom.book.connect.index-oir-example (:require [com.wsscode.pathom.connect :as pc])) (def indexes (-> {} (pc/add 'thing-by-id {::pc/input #{:id} ::pc/output [:id :name :color]}) (pc/add 'thing-by-name {::pc/input #{:name} ::pc...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/docs-src/modules/ROOT/examples/com/wsscode/pathom/book/connect/index_oir_example.cljc
clojure
index-oir:
(ns com.wsscode.pathom.book.connect.index-oir-example (:require [com.wsscode.pathom.connect :as pc])) (def indexes (-> {} (pc/add 'thing-by-id {::pc/input #{:id} ::pc/output [:id :name :color]}) (pc/add 'thing-by-name {::pc/input #{:name} ::pc...
684472d91ac167273332e68c37ecf6ac60639b65bc15344015ac4780a3cb8f4c
fukamachi/lev
bindings.lisp
(in-package :lev) #+lev-ev-full (eval-when (:compile-toplevel :load-toplevel :execute) (pushnew :lev-ev-periodic *features*) (pushnew :lev-ev-stat *features*) (pushnew :lev-ev-prepare *features*) (pushnew :lev-ev-check *features*) (pushnew :lev-ev-idle *features*) (pushnew :lev-ev-fork *features*) (pushn...
null
https://raw.githubusercontent.com/fukamachi/lev/7d03c68dad44f1cc4ac2aeeab2d24eb525ad941a/src/bindings.lisp
lisp
guaranteed to be invalid no events ev_io detected read will not block ev_io detected write will not block internal use only timer timed out periodic timer timed out signal was received child/pid has status change stat data changed event loop is idling event loop about to poll event loop finished poll embe...
(in-package :lev) #+lev-ev-full (eval-when (:compile-toplevel :load-toplevel :execute) (pushnew :lev-ev-periodic *features*) (pushnew :lev-ev-stat *features*) (pushnew :lev-ev-prepare *features*) (pushnew :lev-ev-check *features*) (pushnew :lev-ev-idle *features*) (pushnew :lev-ev-fork *features*) (pushn...
62e659c85e47e26187cea13ea9daf033175dca2fdf2bfc4692e83bff2455c2b0
cgrand/packed-printer
packed_printer.cljc
(ns net.cgrand.packed-printer "Compact pretty printing." (:require [net.cgrand.packed-printer.core :as core] ; below requires have defmethods [net.cgrand.packed-printer.text :as text] [net.cgrand.packed-printer.text.edn])) (defn pprint "Packed prints x, core options are: * :width the desired ou...
null
https://raw.githubusercontent.com/cgrand/packed-printer/598d55d5b93790c3838e48ac8707d96d984ffea0/src/net/cgrand/packed_printer.cljc
clojure
below requires have defmethods
(ns net.cgrand.packed-printer "Compact pretty printing." (:require [net.cgrand.packed-printer.core :as core] [net.cgrand.packed-printer.text :as text] [net.cgrand.packed-printer.text.edn])) (defn pprint "Packed prints x, core options are: * :width the desired output width (in chars, defaults to 72)...
2b7af0ec3eb064adbc6730d8fb59b2dccddf3f96648ab303865f0fc09fe2f9e3
fyquah/hardcaml_zprize
top_config_intf.ml
module type S = sig include Hardcaml_ntt.Core_config.S val memory_layout : Memory_layout.t end module type Top_config = sig module type S = S end
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/zprize/ntt/hardcaml/src/top_config_intf.ml
ocaml
module type S = sig include Hardcaml_ntt.Core_config.S val memory_layout : Memory_layout.t end module type Top_config = sig module type S = S end
8f069bfec7653d7cc039c9424e6b999d03a9b0573310ccc83ca74f33ee5c5857
ghc/packages-Cabal
LogProgress.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE Rank2Types #-} # LANGUAGE FlexibleContexts # module Distribution.Utils.LogProgress ( LogProgress, runLogProgress, warnProgress, infoProgress, dieProgress, addProgressCtx, ) where import Prelude () import Distribution.Compat.Prelude import Di...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/Utils/LogProgress.hs
haskell
# LANGUAGE Rank2Types # | The 'Progress' monad with specialized logging and error messages. 'die' if there is an error. | Fail the computation with an error message. | Format a message with context. (Something simple for now.) | Add a message to the error/warning context.
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # module Distribution.Utils.LogProgress ( LogProgress, runLogProgress, warnProgress, infoProgress, dieProgress, addProgressCtx, ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Utils.Progress im...
3f302f97f71d1eb6b5338e808353d4a5fea0298edc4479478dafe3d3dede0626
erlyaws/yaws
mime_types_SUITE.erl
-module(mime_types_SUITE). -include("testsuite.hrl"). -compile(export_all). all() -> [ generated_module, default_type, yaws_type, erlang_type, gzip_with_charset, multiple_accept_headers, charset_for_404 ]. groups() -> [ ]. %%=======================================...
null
https://raw.githubusercontent.com/erlyaws/yaws/50e86836fc629cd56a5673ac31b88058ebce2793/testsuite/mime_types_SUITE.erl
erlang
==================================================================== ====================================================================
-module(mime_types_SUITE). -include("testsuite.hrl"). -compile(export_all). all() -> [ generated_module, default_type, yaws_type, erlang_type, gzip_with_charset, multiple_accept_headers, charset_for_404 ]. groups() -> [ ]. init_per_suite(Config) -> Id = "te...
42f48ada12c3e39126e64f9feaa480d07fd0247422e902fed83d1c8c52f3608e
ahushh/monaba
Main.hs
{-# LANGUAGE OverloadedStrings #-} import Control.Applicative ((<$>)) import Control.Arrow (second) import Control.Monad (forM) import Control.Monad.IO.Class (liftIO) import Data.Text (pack, ...
null
https://raw.githubusercontent.com/ahushh/monaba/9fbfffcc970da0ebaf2d5df716c3bb075b1c761a/monaba/captcha/Yoba/Main.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------------------------- | Takes a random element from list ---------------------------------------------------------------------------------------------- ^ Path to captcha ^ captcha value and hint space between cha...
import Control.Applicative ((<$>)) import Control.Arrow (second) import Control.Monad (forM) import Control.Monad.IO.Class (liftIO) import Data.Text (pack, Text, concat) import Data...
c5909bed8d2cf80da573d7440a5df65d15ef8362c85b11f96a2ba040269bed3b
circleci/rollcage
ring_middleware.clj
(ns circleci.rollcage.ring-middleware (:require [circleci.rollcage.core :as rollcage])) (defn wrap-rollbar [handler rollcage-client] (if-not rollcage-client handler (fn [req] (try (handler req) (catch Exception e (rollcage/error rollcage-client e {:url (:uri req)}) ...
null
https://raw.githubusercontent.com/circleci/rollcage/6cdf17c454978235efdde1643ee28f7d26f7488d/src/circleci/rollcage/ring_middleware.clj
clojure
(ns circleci.rollcage.ring-middleware (:require [circleci.rollcage.core :as rollcage])) (defn wrap-rollbar [handler rollcage-client] (if-not rollcage-client handler (fn [req] (try (handler req) (catch Exception e (rollcage/error rollcage-client e {:url (:uri req)}) ...
d781326459bed3023772ecd1846669f8a3f51e65713d95a8abf78b62a4f1c991
vyorkin/tiger
frame.mli
(** Holds information about formal parameters and local variables allocated in this frame *) type t [@@deriving show] (** Abstract location of a formal parameter (function argument) or a local variable that may be placed in a frame or in a register *) type access [@@deriving show] (** Makes a new frame for a ...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter6/lib/frame.mli
ocaml
* Holds information about formal parameters and local variables allocated in this frame * Abstract location of a formal parameter (function argument) or a local variable that may be placed in a frame or in a register * Makes a new frame for a function with the given label and formal parameters * Get a un...
type t [@@deriving show] type access [@@deriving show] val mk : label:Temp.label -> formals:bool list -> t val id : t -> int val formals : t -> access list val alloc_local : t -> escapes:bool -> access module Printer : sig val print_frame : t -> string val print_access : access -> string end
b15aea87f593b280821fd1f741063d60462efd31c4dbf51f15c0f4838ee1f2f8
sirherrbatka/statistical-learning
forest scratch.lisp
(cl:in-package #:statistical-learning.forest) (defparameter *data* (make-array (list 20 1) :element-type 'double-float :initial-element 0.0d0)) (defparameter *target* (make-array (list 20 1) :element-type 'double-float :initial-element 0.0d0)) (iterate (for i...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/491a9c749f0bb09194793bc26487a10fae69dae0/scratch/forest%20scratch.lisp
lisp
(cl:in-package #:statistical-learning.forest) (defparameter *data* (make-array (list 20 1) :element-type 'double-float :initial-element 0.0d0)) (defparameter *target* (make-array (list 20 1) :element-type 'double-float :initial-element 0.0d0)) (iterate (for i...
36959c748c07c572392c29ecba32f22408c5f0d5e219fa4b18b15f2d37bbc007
drathier/elm-offline
Explorer.hs
# OPTIONS_GHC -Wall # module Deps.Explorer ( Explorer , Metadata , Info(..) , run , exists , getVersions , getConstraints ) where | It is expensive to load ALL package metadata . You would need to : 1 . Know all the packages and all their versions . 2 . Download or read the elm.json file for...
null
https://raw.githubusercontent.com/drathier/elm-offline/f562198cac29f4cda15b69fde7e66edde89b34fa/builder/src/Deps/Explorer.hs
haskell
EXPLORER EXISTS VERSIONS CONSTRAINTS
# OPTIONS_GHC -Wall # module Deps.Explorer ( Explorer , Metadata , Info(..) , run , exists , getVersions , getConstraints ) where | It is expensive to load ALL package metadata . You would need to : 1 . Know all the packages and all their versions . 2 . Download or read the elm.json file for...
68749c5b8869c97f3f9634a55159f890fa10434866059e9d44b6bd35ce05044a
AdaCore/why3
infer_cfg.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/infer/infer_cfg.mli
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 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Domain open Infer_why3 open Term open Expr open Ity val infer_print_cfg : Debug.flag val infer_print_...
4c1b6e63978368ca711c532aea9b031655c7530bfd1c3f0424a3cc7d28c412c6
hamler-lang/hamler
IO.erl
%%--------------------------------------------------------------------------- %% | %% Module : IO Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. %% License : BSD-style (see the LICENSE file) %% Maintainer : , , %% Stability : experimental %% Portability : po...
null
https://raw.githubusercontent.com/hamler-lang/hamler/3ba89dde3067076e112c60351b019eeed6c97dd7/lib/System/IO.erl
erlang
--------------------------------------------------------------------------- | Module : IO License : BSD-style (see the LICENSE file) Stability : experimental Portability : portable ---------------------------------------------------------------------------
Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. Maintainer : , , The IO FFI module . -module('IO'). -include("../Foreign.hrl"). -export([ readFile/1 , writeFile/2 , appendFile/2 , withFile/3 , consultFile/1 ]). -import('System.Fi...
393830227ec77b7b2b52b4a923e59d51f1eb6ac8ddfbb631fd2633a5bd91d81b
tolysz/prepare-ghcjs
Zip.hs
{-# LANGUAGE Safe #-} # LANGUAGE TypeOperators # ----------------------------------------------------------------------------- -- | Module : Control . . Zip Copyright : ( c ) 2011 , ( c ) 2011 ( c ) University Tuebingen 2011 -- License : BSD-style (see the f...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/base-pure/Control/Monad/Zip.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------------- Instance...
# LANGUAGE TypeOperators # Module : Control . . Zip Copyright : ( c ) 2011 , ( c ) 2011 ( c ) University Tuebingen 2011 Monadic zipping ( used for monad comprehensions ) module Control.Monad.Zip where import Control.Monad (liftM, liftM2) import Data.Monoid im...
5bec52a154817fa9ca6a3cee6985114de7af4c6461f985d30055d3d133424dc2
dhammikamare/Learn-OCaml
replace.ml
Task : Write a function replace l x y which replaces every occurrence of * item x with y in list l . * * Author : | -marasinghe * item x with y in list l . * * Author : Dhammika Marasinghe | -marasinghe *) let rec replace l x y = match l with | [] -> [] | hd::tl -> if hd = x then y::replace t...
null
https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab07%20Lists/replace.ml
ocaml
test
Task : Write a function replace l x y which replaces every occurrence of * item x with y in list l . * * Author : | -marasinghe * item x with y in list l . * * Author : Dhammika Marasinghe | -marasinghe *) let rec replace l x y = match l with | [] -> [] | hd::tl -> if hd = x then y::replace t...
3615f8b87f243fc654401aef0fc52cb2fbf2cb380dd645576430b14411ddd9b9
jfeser/castor
cozy.mli
(* open Ast *) type binop = [ `Le | `Lt | `Ge | `Gt | `Add | `Sub | `Mul | `Div | `Eq | `And ] [@@deriving sexp] type expr = [ `Binop of binop * expr * expr | `Call of string * expr list | `Cond of expr * expr * expr | `Int of int | `Len of query | `Sum of query | `The of query | `Tuple of expr list ...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/cozy.mli
ocaml
open Ast val to_string : string -> Name.t List.t -> t -> string (\** Convert a layout to a cozy query. Takes the name for the benchmark, a list of parameters, and a layout. *\)
type binop = [ `Le | `Lt | `Ge | `Gt | `Add | `Sub | `Mul | `Div | `Eq | `And ] [@@deriving sexp] type expr = [ `Binop of binop * expr * expr | `Call of string * expr list | `Cond of expr * expr * expr | `Int of int | `Len of query | `Sum of query | `The of query | `Tuple of expr list | `TupleGet of...
7c43d56215195dfd3b45efc8e101a71e4038efd9cb54ce0132942cb0e9f83a33
swamp-agr/lambdabot-telegram-plugins
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad import Control.Monad.Identity import Data.Char import Data.Version import Lambdabot.Main import System.Console.GetOpt import System.Environment import System.Exit import System.IO import Lambdabot.Config.Telegram import Modules (modulesInf...
null
https://raw.githubusercontent.com/swamp-agr/lambdabot-telegram-plugins/24420d751d1b667fe4c3dfc8916204b8eba002d6/app/Main.hs
haskell
# LANGUAGE OverloadedStrings # do argument handling
module Main where import Control.Monad import Control.Monad.Identity import Data.Char import Data.Version import Lambdabot.Main import System.Console.GetOpt import System.Environment import System.Exit import System.IO import Lambdabot.Config.Telegram import Modules (modulesInfo) import qualified Paths_lambdabot...
47583cd5813fd9b28e52306f05a18f69387863ecfce8107d8b01cdbd14fa01fc
jasongilman/crdt-edit
logoot.clj
(ns crdt-edit.test.logoot (:require [clojure.test :refer :all] [clojure.test.check.properties :refer [for-all]] [clojure.test.check.clojure-test :refer [defspec]] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [crdt-edit.logoot :as l] ...
null
https://raw.githubusercontent.com/jasongilman/crdt-edit/2b8126632bc7f204cb3979e9c51f7ab363704f29/test/crdt_edit/test/logoot.clj
clojure
Use site to find position in between matching or separated by one. Best case but harder to implement
(ns crdt-edit.test.logoot (:require [clojure.test :refer :all] [clojure.test.check.properties :refer [for-all]] [clojure.test.check.clojure-test :refer [defspec]] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [crdt-edit.logoot :as l] ...
90ee0253bce9d9d3e17e0dc577c091779c9fa35cf7e37a149521f1a3c4d66e3d
racket/typed-racket
with-type-typed-context-flag.rkt
#lang racket/load (require (only-in typed/racket/shallow with-type) syntax/macro-testing) ;; Test that the typed-context? flag is properly reset (with-handlers ([exn:fail:syntax? void]) (convert-compile-time-error (with-type [] (+ 1 "foo")))) ;; this should succeed instead of an error due to the typed...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/with-type-typed-context-flag.rkt
racket
Test that the typed-context? flag is properly reset this should succeed instead of an error due to the typed-context? flag being set to #t
#lang racket/load (require (only-in typed/racket/shallow with-type) syntax/macro-testing) (with-handlers ([exn:fail:syntax? void]) (convert-compile-time-error (with-type [] (+ 1 "foo")))) (with-type [] (+ 1 3))
5591f6290ebe77898e21bc833270f9a878c0e54d49123797b48864289e1dbcc4
yellowbean/clojucture
cn_test.clj
(ns clojucture.reader.cn_test (:require [clojucture.reader.cn :refer :all] [clojucture.assumption :as assump] [clojucture.pool :as p] [clojucture.spv :as spv] [clojure.test :refer :all] [java-time :as jt] [clojure.java.io :as io] [clojucture.util :as u])) (comment (deftest testPy ...
null
https://raw.githubusercontent.com/yellowbean/clojucture/3ad99e06ecd9e5c478f653df4afbd69991cd4964/test/clojucture/reader/cn_test.clj
clojure
pool (get-in model [:status :pool]) deal-accounts (get-in model [:info :accounts]) p-collect-int (get-in model [:info :p-collection-intervals]) pool-cf-agg (.collect-cashflow pool pool-assump p-collect-int) rules {:principal :账户P :interest :账户I} waterfalls (get-in model [:info :waterfall]) (.project-cashflow pool pool...
(ns clojucture.reader.cn_test (:require [clojucture.reader.cn :refer :all] [clojucture.assumption :as assump] [clojucture.pool :as p] [clojucture.spv :as spv] [clojure.test :refer :all] [java-time :as jt] [clojure.java.io :as io] [clojucture.util :as u])) (comment (deftest testPy ...
d757cb9383142b5ba16a74572a0abfe34ba104c00e0b9164035913868b940341
fbellomi/crossclj
emit_form.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/cloned/clojure/tools/analyzer/passes/js/emit_form.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns cloned.clojure.tools.analyzer.passes.js.emit-form (:require [cloned.clojure.tools.analyzer.passes [emit-form :as default] [uniquify :refer [uniquify-locals]]] [clojure.string :as s] [cljs.tagged-literals :refer...
7888373fd020258fb69ce952237e50b4c0a06738350e624720869f976c550386
OCamlPro/OCamlPro-OCaml-Branch
ocamlprof.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) and , INRIA R...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/tools/ocamlprof.ml
ocaml
********************************************************************* Objective Caml ...
and , INRIA Rocquencourt Ported to Caml Special Light by Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . ...
6a1f55c3131a846e3eaa149bfaf536c36acb354d1be4fa53cb46726c0ff00686
kupl/FixML
sub3.ml
type nat = ZERO | SUCC of nat let rec natadd : nat -> nat -> nat =fun n1 n2 -> match n1 with ZERO -> n2 |SUCC n1' -> SUCC(natadd n1' n2);; let rec natmul : nat -> nat -> nat =fun n1 n2 -> match n1 with ZERO -> ZERO |SUCC ZERO -> n2 |SUCC n1' -> SUCC(match n2 with |ZERO -> ZERO |SUCC ZERO -> SUCC ZERO |SUCC n2' -> SUC...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/nat/nat1/submissions/sub3.ml
ocaml
type nat = ZERO | SUCC of nat let rec natadd : nat -> nat -> nat =fun n1 n2 -> match n1 with ZERO -> n2 |SUCC n1' -> SUCC(natadd n1' n2);; let rec natmul : nat -> nat -> nat =fun n1 n2 -> match n1 with ZERO -> ZERO |SUCC ZERO -> n2 |SUCC n1' -> SUCC(match n2 with |ZERO -> ZERO |SUCC ZERO -> SUCC ZERO |SUCC n2' -> SUC...
f154f08711bc9c1e3e8b04f870f267ddd9942d31bb5dd68e46aee083b0e53fdd
expipiplus1/vulkan
TopTraverse.hs
module Data.Vector.TopTraverse ( traverseInTopOrder ) where import Algebra.Graph.AdjacencyIntMap hiding ( empty ) import Algebra.Graph.AdjacencyIntMap.Algorithm import qualified Data.Foldable as F import qualified Data.HashMap.Strict ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/generate-new/src/Data/Vector/TopTraverse.hs
haskell
TODO: error on Nothing here
module Data.Vector.TopTraverse ( traverseInTopOrder ) where import Algebra.Graph.AdjacencyIntMap hiding ( empty ) import Algebra.Graph.AdjacencyIntMap.Algorithm import qualified Data.Foldable as F import qualified Data.HashMap.Strict ...
91a76e93e977cfdb03711ece77b16ff2a5350a99d56b8f3f419961af4cf939f1
processone/ejabberd-contrib
mod_default_contacts.erl
%%%---------------------------------------------------------------------- %%% File : mod_default_contacts.erl Author : < > %%% Purpose : Auto-add contacts on registration Created : 14 May 2019 by < > %%% %%% ejabberd , Copyright ( C ) 2019 - 2020 ProcessOne %%% %%% This program is free software; you...
null
https://raw.githubusercontent.com/processone/ejabberd-contrib/037c3749f331c8783666d45157e857ef5e7df42c/mod_default_contacts/src/mod_default_contacts.erl
erlang
---------------------------------------------------------------------- File : mod_default_contacts.erl Purpose : Auto-add contacts on registration This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it wil...
Author : < > Created : 14 May 2019 by < > ejabberd , Copyright ( C ) 2019 - 2020 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
df4dd20717982b752fc5bf45303d5c11c23a2c091a117c255fafca37369065b5
hugoduncan/oldmj
modules.clj
(ns makejack.invoke.modules "Makejack tool to invoke targets on sub projects" (:require [makejack.api.core :as makejack] [makejack.impl.run :as run] [makejack.impl.invokers :as invokers])) (defn modules "Execute target on sub-projects. Sub-project directories are specified on the targe...
null
https://raw.githubusercontent.com/hugoduncan/oldmj/0a97488be7457baed01d2d9dd0ea6df4383832ab/cli/src/makejack/invoke/modules.clj
clojure
(ns makejack.invoke.modules "Makejack tool to invoke targets on sub projects" (:require [makejack.api.core :as makejack] [makejack.impl.run :as run] [makejack.impl.invokers :as invokers])) (defn modules "Execute target on sub-projects. Sub-project directories are specified on the targe...
b8d09e994dfced5ac3b97f199c20cf0e0b35d426ba85c0d8523e67deb7204cc1
ragkousism/Guix-on-Hurd
pumpio.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/pumpio.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 © 2015 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages pumpio) #:use-module (guix licenses) #:use-module (guix...
80c64ce54453568575dd314bd61a81930da89f731215639bfbdb2a2c38b47404
xapi-project/xen-api
xapi_pool_patch.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/xapi_pool_patch.ml
ocaml
* * @group Pool Management There was already an SR specified Propagate the error from the subtask to the main task If we've got a None here, we'll already have replied with the error. Fail the task now too. The [get_patch_applied_to] gives the patching status of a pool patch on the given host. It returns [N...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
f299ba8cbb68e29ddde2316a07f1d5fc1f579c796e9f117a31d0d707d8a17cc5
racket/scribble
manual-scheme.rkt
#lang racket/base (require "../decode.rkt" "../struct.rkt" "../scheme.rkt" "../search.rkt" "../basic.rkt" (only-in "../core.rkt" style style-properties) "manual-style.rkt" "manual-utils.rkt" ;; used via datum->syntax "on-demand.rkt" (for-s...
null
https://raw.githubusercontent.com/racket/scribble/d36a983e9d216e04ac1738fa3689c80731937f38/scribble-lib/scribble/private/manual-scheme.rkt
racket
used via datum->syntax We know that the context is irrelvant Context may be relevant: We want to remove lexical context from identifiers that correspond to module names, but keep context for `lib' or `planet' (which are rarely used) Remove the context from any ellipsis in `a`:
#lang racket/base (require "../decode.rkt" "../struct.rkt" "../scheme.rkt" "../search.rkt" "../basic.rkt" (only-in "../core.rkt" style style-properties) "manual-style.rkt" "on-demand.rkt" (for-syntax racket/base) (for-label racket/base)) ...
a2751fd121a1f8807c11a4c5ed4d9c60004a7e116aa84498848ceef963a50d31
haskell-beam/beam
employee3common.hs
{-# LANGUAGE ImpredicativeTypes #-} # LANGUAGE NoMonomorphismRestriction # import Prelude hiding (lookup) import Database.Beam hiding (withDatabaseDebug) import qualified Database.Beam as Beam import Database.Beam.Backend.SQL import Database.Beam.Backend.Types import Database.Beam.Sqlite hiding (runBeamSqliteDebug) i...
null
https://raw.githubusercontent.com/haskell-beam/beam/596981a1ea6765b9f311d48a2ec4d8460ebc4b7e/docs/beam-templates/employee3common.hs
haskell
# LANGUAGE ImpredicativeTypes # For convenience Price in cents james betty sam
# LANGUAGE NoMonomorphismRestriction # import Prelude hiding (lookup) import Database.Beam hiding (withDatabaseDebug) import qualified Database.Beam as Beam import Database.Beam.Backend.SQL import Database.Beam.Backend.Types import Database.Beam.Sqlite hiding (runBeamSqliteDebug) import qualified Database.Beam.Sqlite...
6d9c7a126d573455e5e9cb444a417dda314fae390eed83717f1fa40ef5bb43fd
defndaines/meiro
triangle_test.clj
(ns meiro.triangle-test (:require [clojure.test :refer [deftest testing is]] [meiro.core :as m] [meiro.triangle :as triangle] [meiro.backtracker :as backtracker])) (deftest neighbors-test (testing "Top row behavior." (is (= [[0 1] [1 0]] (triangle/neighbors (m/in...
null
https://raw.githubusercontent.com/defndaines/meiro/f91d4dee2842c056a162c861baf8b71bb4fb140c/test/meiro/triangle_test.clj
clojure
(ns meiro.triangle-test (:require [clojure.test :refer [deftest testing is]] [meiro.core :as m] [meiro.triangle :as triangle] [meiro.backtracker :as backtracker])) (deftest neighbors-test (testing "Top row behavior." (is (= [[0 1] [1 0]] (triangle/neighbors (m/in...
67357ccc9e15712f913d39668efa0001e384f3a4e0c7eeb778a4fce3bd8dd843
privet-kitty/cl-competitive
lca.lisp
(defpackage :cp/lca (:use :cl) (:export #:lca-table #:lca-table-p #:make-lca-table #:lca-max-level #:lca-depths #:lca-parents #:two-vertices-disconnected-error #:lca-get-lca #:lca-distance #:lca-ascend #:lca-jump) (:documentation "Provides lowest common ancestor of tree (or for...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/a29695366631170ef2aa293ddfef8e941f515ad0/module/lca.lisp
lisp
(defpackage :cp/lca (:use :cl) (:export #:lca-table #:lca-table-p #:make-lca-table #:lca-max-level #:lca-depths #:lca-parents #:two-vertices-disconnected-error #:lca-get-lca #:lca-distance #:lca-ascend #:lca-jump) (:documentation "Provides lowest common ancestor of tree (or for...
f9a05e9125e67d6b74e96b82fd2a382c164736f19c372390fd8c90288daa2423
deadtrickster/prometheus.cl
errors.lisp
(in-package #:prometheus.test) (plan 1) (subtest "Errors" (subtest "Base Error" (error-class-exists prom:base-error error)) (subtest "Invalid Value Error" (error-class-exists prom:invalid-value-error) (error-report-test prom:invalid-value-error ((:value -1 :reason "counters can only be incremented ...
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/t/prometheus/errors.lisp
lisp
(in-package #:prometheus.test) (plan 1) (subtest "Errors" (subtest "Base Error" (error-class-exists prom:base-error error)) (subtest "Invalid Value Error" (error-class-exists prom:invalid-value-error) (error-report-test prom:invalid-value-error ((:value -1 :reason "counters can only be incremented ...
3e09755389a8d3281039e064ebe1793e568f2a95ce4b9ab96f05f9f2777005c3
tsloughter/kuberl
kuberl_v1beta1_daemon_set.erl
-module(kuberl_v1beta1_daemon_set). -export([encode/1]). -export_type([kuberl_v1beta1_daemon_set/0]). -type kuberl_v1beta1_daemon_set() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1beta1_daemon_set_spec:ku...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_daemon_set.erl
erlang
-module(kuberl_v1beta1_daemon_set). -export([encode/1]). -export_type([kuberl_v1beta1_daemon_set/0]). -type kuberl_v1beta1_daemon_set() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1beta1_daemon_set_spec:ku...
99b77258a8062a2230a7284bedcb249254f02606d0e1d2c03c5bc4771b51b4d2
anuragsoni/poll
poll.mli
module Event = Event module Backend = Backend module Timeout = Timeout module Poll_intf = Poll_intf include Poll_intf.S (** [create'] accepts a user-supplied polling implementation and uses it to create a new poller instance. *) val create' : ?num_events:int -> (module Poll_intf.S) -> t * [ backend ] returns the ...
null
https://raw.githubusercontent.com/anuragsoni/poll/fc5a98eed478f59c507cabefe072b73fdb633fe8/src/poll.mli
ocaml
* [create'] accepts a user-supplied polling implementation and uses it to create a new poller instance.
module Event = Event module Backend = Backend module Timeout = Timeout module Poll_intf = Poll_intf include Poll_intf.S val create' : ?num_events:int -> (module Poll_intf.S) -> t * [ backend ] returns the io event notification backend ( ex : kqueue , epoll , etc ) used by the poller instance . the poller in...
f731f7f7c9c5758c5f79ac4c0bb00e994805336a3e6bc09e4b0bca9a315d188f
simon-brooke/dog-and-duck
constants.clj
(ns dog-and-duck.quack.picky.constants "Constants supporting the picky validator.") Copyright ( C ) , 2022 ;;; 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 Foundation ; either versi...
null
https://raw.githubusercontent.com/simon-brooke/dog-and-duck/21a4c23c8f9eda4764ed6a0e3282fd736f6fc3a8/src/dog_and_duck/quack/picky/constants.clj
clojure
This program is free software; you can redistribute it and/or either version 2 of the License, or (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 ...
(ns dog-and-duck.quack.picky.constants "Constants supporting the picky validator.") Copyright ( C ) , 2022 modify it under the terms of the GNU General Public License You should have received a copy of the GNU General Public License Foundation , Inc. , 51 Franklin Street , Fifth Floor , ...
26dc53ff21712efe4757b6d0010e2f775a18533b5edaaef71c1213202f7f83ae
haskus/haskus-system
Size.hs
# LANGUAGE LambdaCase # -- | Sizes module Haskus.Arch.X86_64.ISA.Size ( Size(..) , sizeInBits , AddressSize(..) , SizedValue(..) , toSizedValue , fromSizedValue , OperandSize(..) , opSizeInBits , getSize , getSize64 , getOpSize64 ) where import Haskus.Binary.Get import Haskus.Numbe...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/Arch/X86_64/ISA/Size.hs
haskell
| Sizes | Size | Get a size in bits | Address size | Sized value | Operand size | Operand size in bits | Read a value in a Word64 | Read a value in a Word64
# LANGUAGE LambdaCase # module Haskus.Arch.X86_64.ISA.Size ( Size(..) , sizeInBits , AddressSize(..) , SizedValue(..) , toSizedValue , fromSizedValue , OperandSize(..) , opSizeInBits , getSize , getSize64 , getOpSize64 ) where import Haskus.Binary.Get import Haskus.Number.Word dat...
2f3e21793e9f0ffc382365b8141f80acfcb1962172059710f2f6738578faaa71
robert-strandh/Cluster
add.lisp
(in-package #:cluster) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Mnemonic ADD ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; To the contents of GPR A ( destination ) , add an 8 - bit immediate ;;; value (source) and store the result in the destination. ;;; Op...
null
https://raw.githubusercontent.com/robert-strandh/Cluster/9010412a2d2109d3eb6e607bd62cc0c482adac81/x86-instruction-database/add.lisp
lisp
Mnemonic ADD value (source) and store the result in the destination. To the contents of GPR A (16/32/64) (destination), add an destination. value (source), and store the result in the destination. value (source), and store the result in the destination. To the contents of GPR RAX (destination), add an i...
(in-package #:cluster) To the contents of GPR A ( destination ) , add an 8 - bit immediate Opcodes : 04 (define-instruction "ADD" :modes (32 64) :operands ((gpr-a 8) (imm 8)) :opcodes (#x04) :encoding (- imm)) immediate value ( 16/32 ) ( source ) , and store the result in the Opcodes : 05 To the ...
7d4e690a0343c07539247679be6d3ea242dc8fdd85bfc888d5fec67104f9b6a2
discus-lang/ddc
Module.hs
{-# OPTIONS_HADDOCK hide #-} module DDC.Core.Codec.Text.Parser.Module (pModule) where import DDC.Core.Codec.Text.Parser.Type import DDC.Core.Codec.Text.Parser.Exp import DDC.Core.Codec.Text.Parser.Context import DDC.Core.Codec.Text.Parser.Base import DDC.Core.Codec.Text.Parser.ExportSpec import DDC.Core.Codec....
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Codec/Text/Parser/Module.hs
haskell
# OPTIONS_HADDOCK hide # | Parse a core module. Attach arity information to import specs. which are parsed as separate top level things. If there is a 'with' keyword then this is a standard module with bindings. If not, then it is a module header, which doesn't need bindings. The body of the module consists o...
module DDC.Core.Codec.Text.Parser.Module (pModule) where import DDC.Core.Codec.Text.Parser.Type import DDC.Core.Codec.Text.Parser.Exp import DDC.Core.Codec.Text.Parser.Context import DDC.Core.Codec.Text.Parser.Base import DDC.Core.Codec.Text.Parser.ExportSpec import DDC.Core.Codec.Text.Parser.ImportSpec import...
d8b9b712b340a15079541bc16005d21383d7a6875a85b7cba31c19a3263e82f5
PEZ/rich4clojure
problem_147.clj
(ns rich4clojure.easy.problem-147 (:require [hyperfiddle.rcf :refer [tests]])) = 's Trapezoid = By 4Clojure user : narvius ;; Difficulty: Easy ;; Tags: [seqs] ;; ;; Write a function that, for any given input vector of ;; numbers, returns an infinite lazy sequence of vectors, ;; where each next one is construct...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/2ccfac041840e9b1550f0a69b9becbdb03f9525b/src/rich4clojure/easy/problem_147.clj
clojure
Difficulty: Easy Tags: [seqs] Write a function that, for any given input vector of numbers, returns an infinite lazy sequence of vectors, where each next one is constructed from the previous Beware of arithmetic overflow! In clojure (since integer, an exception is thrown. You can use +' to slower, arbitrary...
(ns rich4clojure.easy.problem-147 (:require [hyperfiddle.rcf :refer [tests]])) = 's Trapezoid = By 4Clojure user : narvius following the rules used in 's Triangle . For example , for [ 3 1 2 ] , the next row is [ 3 4 3 2 ] . version 1.3 in 2011 ) , if you use an arithmetic operator like + and the resul...
ff5e48f0a0c9095569f55f307541cce692a2687d5fa3f853add174c0b4ba69a9
tisnik/clojure-examples
core_test.clj
(ns matrix2.core-test (:require [clojure.test :refer :all] [matrix2.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/matrix2/test/matrix2/core_test.clj
clojure
(ns matrix2.core-test (:require [clojure.test :refer :all] [matrix2.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
a21b97ff46af879009e4aac2a9ad97acffcafc457b5ee37afb447ca17c556351
stylewarning/formulador
canvas.lisp
;;;; canvas.lisp ;;;; Copyright ( c ) 2013 - 2018 ;;;; ;;;; A simple notion of a "canvas" on which we can draw formulas. (in-package #:formulador) (defstruct (canvas (:constructor %make-canvas) (:predicate canvasp) (:print-function (lambda (canvas stream depth) ...
null
https://raw.githubusercontent.com/stylewarning/formulador/7f3528da88adf8e3debdc5db564077ccd06ef2c5/canvas.lisp
lisp
canvas.lisp A simple notion of a "canvas" on which we can draw formulas.
Copyright ( c ) 2013 - 2018 (in-package #:formulador) (defstruct (canvas (:constructor %make-canvas) (:predicate canvasp) (:print-function (lambda (canvas stream depth) (declare (ignore depth)) (print...
4793db606cbf50e133d5fcab7eb329f5db881fd2e8c99c8c7f74e596f03a06aa
dparis/gen-phzr
revolute_constraint.cljs
(ns phzr.physics.p2.revolute-constraint (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->RevoluteConstraint "Connects two bodies at given offset points, letting them rotate relative to each other around this point. The p...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/physics/p2/revolute_constraint.cljs
clojure
(ns phzr.physics.p2.revolute-constraint (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->RevoluteConstraint "Connects two bodies at given offset points, letting them rotate relative to each other around this point. The p...
29a3bee9b0a14f6821cba6150d12ee9cdb7f4e1de047c1488d3714bbc7175495
composewell/streamly
Common.hs
# OPTIONS_GHC -Wno - deprecations # -- | Module : Streamly . Test . Prelude . Common Copyright : ( c ) 2020 Composewell Technologies -- -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC module Streamly.Test.Prelude.Common ( -- * Construction operati...
null
https://raw.githubusercontent.com/composewell/streamly/5327f181db2cf956461b74ed50720eebf119f25a/test/lib/Streamly/Test/Prelude/Common.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental * Construction operations * Applicative operations * Elimination operations * Functor operations * Monoid operations * Semigroup operations * Transformation operations * Zip operations * Exception operations * Cleanup tests * Adhoc t...
# OPTIONS_GHC -Wno - deprecations # Module : Streamly . Test . Prelude . Common Copyright : ( c ) 2020 Composewell Technologies Portability : GHC module Streamly.Test.Prelude.Common ( constructWithRepeat , constructWithRepeatM , constructWithReplicate , constructWithReplicateM ...
ea3e845775e16c94bfce6313606b1e6be4bc6dfad2b2c8a1d69bd1efbcda459f
technoblogy/ulisp-builder
build.lisp
;;;-*- Mode: Lisp; Package: cl-user -*- (in-package :cl-user) ;; Generate ********************************************************************************************* (defun write-no-comments (stream string comments) (cond (comments (write-string string stream) (terpri stream)) (t (let ((start 0...
null
https://raw.githubusercontent.com/technoblogy/ulisp-builder/fbab6e2331f2d43bfb75b1a6d01fc893144b35b1/build.lisp
lisp
-*- Mode: Lisp; Package: cl-user -*- Generate ********************************************************************************************* Write preamble (include :header str) Write enum declarations Do keywords Write utilities Write function definitions Write PROGMEM strings Do keywords Write d...
(in-package :cl-user) (defun write-no-comments (stream string comments) (cond (comments (write-string string stream) (terpri stream)) (t (let ((start 0)) (loop (let* ((com (search "/*" string :start2 start)) (ment (when com (search "*/" string :start2 com)))) (...
f0c1138597a65797d5a3e3cb327c18dd2bc4f8792d191efb7ced33af316f54bc
LPCIC/matita
stats.ml
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_paramodulation/stats.ml
ocaml
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
e2e2dd5506d0a37c1639ea8dd5e786e007b7f488a50a77007ab4b5313d218ef1
gebi/jungerl
lines.erl
The contents of this file are subject to the Erlang Public License , Version 1.0 , ( 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, W...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/lines/src/lines.erl
erlang
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. Contributor(s): ______________________________________. ----------------...
The contents of this file are subject to the Erlang Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is lines-1.0 . The Initial Developer of the Original Code is Ericsson Tel...
4983fd420a91af57e4098b35fc2ccaaf6ba18a92296b3de2cc3a68cbf1cf1870
libre-man/cl-transmission
cl-transmission.lisp
(in-package :cl-user) (defpackage cl-transmission-test (:use :cl :cl-transmission :prove)) (in-package :cl-transmission-test) ;; NOTE: To run this test file, execute `(asdf:test-system :cl-transmission)' in your Lisp. (plan nil) ;; blah blah blah. (finalize)
null
https://raw.githubusercontent.com/libre-man/cl-transmission/4bbf1d2761bfa5dfa79b7bc12c3238089b994d95/t/cl-transmission.lisp
lisp
NOTE: To run this test file, execute `(asdf:test-system :cl-transmission)' in your Lisp. blah blah blah.
(in-package :cl-user) (defpackage cl-transmission-test (:use :cl :cl-transmission :prove)) (in-package :cl-transmission-test) (plan nil) (finalize)
abe7bfffe2c4c63f8a68d211a29e02079b3c059e7b4e1b89d1fda601f4b2e48d
dgtized/shimmers
wave.cljc
(ns shimmers.math.wave) ;; ;; Consider implementing cycloid and pulse-wave as well (defn square "Square wave function from -1 to 1 with frequency `f`" [f t] (+ (* 2 (- (* 2 (Math/floor (* f t))) (Math/floor (* 2 f t)))) 1)) (defn sawtooth "Sawtooth wave function from -1 to 1 over period `p`." ...
null
https://raw.githubusercontent.com/dgtized/shimmers/15d64c103f66496663b7698a50b974aedeee286f/src/shimmers/math/wave.cljc
clojure
Consider implementing cycloid and pulse-wave as well
(ns shimmers.math.wave) (defn square "Square wave function from -1 to 1 with frequency `f`" [f t] (+ (* 2 (- (* 2 (Math/floor (* f t))) (Math/floor (* 2 f t)))) 1)) (defn sawtooth "Sawtooth wave function from -1 to 1 over period `p`." [p t] (let [f (/ t p)] (* 2 (- f (Math/floor (+ 0.5 f...
f5d18d9011e3b40ea7ef5273e9e1d079f89f6df71e7eb2ed0b0d5254d8c2849c
norm2782/NanoProlog
ParserUUTC.hs
module Language.Prolog.NanoProlog.ParserUUTC ( pFun , pRule , pTerm , pCons , pTerms , startParse ) where import Control.Applicative ((<**>)) import Language.Prolog.NanoProlog.NanoProlog import ParseLib.Abstract hiding ( token, symbol ) import qualified ParseLib....
null
https://raw.githubusercontent.com/norm2782/NanoProlog/30b3165fe462252ba6d8aafce9a4ce783aa3e066/src/Language/Prolog/NanoProlog/ParserUUTC.hs
haskell
module Language.Prolog.NanoProlog.ParserUUTC ( pFun , pRule , pTerm , pCons , pTerms , startParse ) where import Control.Applicative ((<**>)) import Language.Prolog.NanoProlog.NanoProlog import ParseLib.Abstract hiding ( token, symbol ) import qualified ParseLib....
7a0248cf1f6490c2da8351fb3936179cdee956cc0db032bcdb1fd788621d1d10
xh4/web-toolkit
run.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :it.bese.fiveam) ;;;; * Running Tests ;;;; Once the programmer has defined what the tests are these need to ;;;; be run and the expected effects should be compared with the ;;;; actual effects. FiveAM provides the function RUN for this ;;;; purpose, RUN exec...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/fiveam-v1.4.1/src/run.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- * Running Tests Once the programmer has defined what the tests are these need to be run and the expected effects should be compared with the actual effects. FiveAM provides the function RUN for this purpose, RUN executes a number of tests and collects the results of each...
(in-package :it.bese.fiveam) returned . There are three types of test results : passed , failed Generally running a test will return normally , but there are two debugger two restarts are made available , one simply reruns the (deftype on-problem-action () '(member :debug :backtrace nil)) (declaim (t...
30b0dbf4dcb25fe8011ab4825afb47db684c71361f5d49bbe828fe98842d9a52
pirapira/coq2rust
globnames.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/library/globnames.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This constr is not safe to be type...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Ter...
c59625ac1a5490185335783f1fa6c0bf2eefcb37bc0f01a8777922493b191237
ConsenSysMesh/Fae
VersionsTX2.hs
body :: Transaction (Versioned String, String) String body = return . snd
null
https://raw.githubusercontent.com/ConsenSysMesh/Fae/3ff023f70fa403e9cef80045907e415ccd88d7e8/txs/VersionsTX2.hs
haskell
body :: Transaction (Versioned String, String) String body = return . snd
c202f247019580d8dd9b6fbd580e62fd647639a190e06fabd83ac02e516c1c9f
tonymorris/geo-gpx
Email.hs
-- | Complex Type: @emailType@ </#type_emailType> module Data.Geo.GPX.Type.Email( Email , email ) where import Data.Geo.GPX.Lens.IdL import Data.Geo.GPX.Lens.DomainL import Data.Lens.Common import Control.Comonad.Trans.Store import Text.XML.HXT.Arrow.Pickle data Email = Email String String deriving (Eq, Ord) ema...
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Type/Email.hs
haskell
| Complex Type: @emailType@ </#type_emailType> ^ The id. ^ The domain.
module Data.Geo.GPX.Type.Email( Email , email ) where import Data.Geo.GPX.Lens.IdL import Data.Geo.GPX.Lens.DomainL import Data.Lens.Common import Control.Comonad.Trans.Store import Text.XML.HXT.Arrow.Pickle data Email = Email String String deriving (Eq, Ord) email :: -> Email email = Email instance IdL Ema...
a1d86c764fd75b3bbfe5712c5208ecc98f17bddeebf1c3fc9c2a93be532bb19a
BranchTaken/Hemlock
test_hash_fold_empty.ml
open! Basis.Rudiments open! Basis open String let test () = let hash_empty state = begin state |> hash_fold "" end in let e1 = Hash.State.empty |> hash_empty in let e2 = Hash.State.empty |> hash_empty |> hash_empty in assert U128.((Hash.t_of_state e1) <> (Hash.t_of_state e2)) ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a518d85876a620f65da2497ac9e34323e205fbc0/bootstrap/test/basis/string/test_hash_fold_empty.ml
ocaml
open! Basis.Rudiments open! Basis open String let test () = let hash_empty state = begin state |> hash_fold "" end in let e1 = Hash.State.empty |> hash_empty in let e2 = Hash.State.empty |> hash_empty |> hash_empty in assert U128.((Hash.t_of_state e1) <> (Hash.t_of_state e2)) ...
bcb9663698bddb0cda91184a8a85f4487d13ff922eb28ccd1d8e59c182773d91
xapi-project/xen-api
extauth_plugin_ADpbis.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/1b7ef7ca5b33fea6e933bb39a661a7fb1f56ed02/ocaml/xapi/extauth_plugin_ADpbis.ml
ocaml
* * @group Access Control Only restart once within restart_interval it will start lwsmd service if the host is authed with AD More errors to be caught here stuff to clean up on the way out of the function: take care to close an fd only once take care to unlink a file only once guarantee to release all re...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
61b3534f55d1fa9c0115102322c4b66b2de914d227f7ab985eae43dcc17a6ea6
arachne-framework/factui
test_runner.cljc
(ns factui.test-runner (:require [factui.impl.session-test] [factui.api-test] [factui.api-reactive-test] #?(:clj [clojure.test :refer [deftest is are run-tests]] :cljs [cljs.test :refer-macros [deftest is are run-tests]]))) #?(:cljs (enable-console-print!)) #?(:cljs (defmethod cl...
null
https://raw.githubusercontent.com/arachne-framework/factui/818ea79d7f84dfe80ad23ade0b6b2ed5bb1c6287/test/factui/test_runner.cljc
clojure
Run tests at the root level, in CLJS
(ns factui.test-runner (:require [factui.impl.session-test] [factui.api-test] [factui.api-reactive-test] #?(:clj [clojure.test :refer [deftest is are run-tests]] :cljs [cljs.test :refer-macros [deftest is are run-tests]]))) #?(:cljs (enable-console-print!)) #?(:cljs (defmethod cl...
52642e94a218567c128387d2fb208ae8c7f7b50547be6cbde814c435f34e8042
rbonichon/smtpp
do_parse.ml
(*********************************************************************************) Copyright ( c ) 2015 , INRIA , Universite de Nancy 2 and Universidade Federal do Rio Grande do Norte . (* ...
null
https://raw.githubusercontent.com/rbonichon/smtpp/57eb74bccbb0f30293ee058ded4b01baa1067756/src/do_parse.ml
ocaml
******************************************************************************* Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above ...
Copyright ( c ) 2015 , INRIA , Universite de Nancy 2 and Universidade Federal do Rio Grande do Norte . THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER I...
044a14ecadd2d998c83bdd6ecbd4c60d786daf1cedf21b47e6aabf056988ed0e
UberPyro/prowl
ast.ml
open Format open Lexing type 'a loc = 'a * (position * position) let span_flag = ref false let span_of_pos p = p.pos_lnum, p.pos_cnum - p.pos_bol let multispan_of_pos (p1, p2) = let x1, y1 = span_of_pos p1 in let x2, y2 = span_of_pos p2 in x1, y1, x2, y2 let pp_loc c f (a, loc) = c f a; let x1, y1, x2, ...
null
https://raw.githubusercontent.com/UberPyro/prowl/8b59cf8870bfe0fab9b8b61f3f6662895b8c0f51/src/parse/ast.ml
ocaml
Todo: Data & Tuple access
open Format open Lexing type 'a loc = 'a * (position * position) let span_flag = ref false let span_of_pos p = p.pos_lnum, p.pos_cnum - p.pos_bol let multispan_of_pos (p1, p2) = let x1, y1 = span_of_pos p1 in let x2, y2 = span_of_pos p2 in x1, y1, x2, y2 let pp_loc c f (a, loc) = c f a; let x1, y1, x2, ...
1be85cfcb7f7565b3340d7c682bc07fa408ffd4b4e35f52a86855b85b6da9422
juxt/vext
header_names.clj
Copyright © 2020 , JUXT LTD . (ns juxt.vext.header-names (:require [clojure.string :as str] [clojure.set :as set])) (def header-canonical-case {"a-im" "A-IM", "accept" "Accept", "accept-additions" "Accept-Additions", "accept-charset" "Accept-Charset", "accept-datetime" "Accept-Datetime", "a...
null
https://raw.githubusercontent.com/juxt/vext/9e109bb43b0cb2c31ec439e7438c7bfb298ff16d/src/juxt/vext/header_names.clj
clojure
Copyright © 2020 , JUXT LTD . (ns juxt.vext.header-names (:require [clojure.string :as str] [clojure.set :as set])) (def header-canonical-case {"a-im" "A-IM", "accept" "Accept", "accept-additions" "Accept-Additions", "accept-charset" "Accept-Charset", "accept-datetime" "Accept-Datetime", "a...
a65e5a7f5614f4a3d02bfc314d52ff3d9c5985ab773e988ea2d9e0208b730ec1
satos---jp/mincaml_self_hosting
string.ml
let rec concat s vs = match vs with | [] -> "" | [x] -> x | x :: xs -> x ^ s ^ (concat s xs) let make n c = let cs = Char.escaped c in let rec f x = if x <= 0 then "" else cs ^ (f (x-1)) in f n let rec sub s a b = if b <= 0 then "" else (make 1 (String.get s a)) ^ (sub s (a+1) (b-1))
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/lib/ml/string.ml
ocaml
let rec concat s vs = match vs with | [] -> "" | [x] -> x | x :: xs -> x ^ s ^ (concat s xs) let make n c = let cs = Char.escaped c in let rec f x = if x <= 0 then "" else cs ^ (f (x-1)) in f n let rec sub s a b = if b <= 0 then "" else (make 1 (String.get s a)) ^ (sub s (a+1) (b-1))
bbdacb017b9fe6ea3cbb3afd5e7ce787216f2d430593256d54b09a721b054428
mariari/Misc-Lisp-Scripts
tester.lisp
(in-package "YOUR-PACKAGE") (defparameter *hash-table* '#.*my-db-album*)
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/Books/PracticalCommonLisp/Chapter1/tester.lisp
lisp
(in-package "YOUR-PACKAGE") (defparameter *hash-table* '#.*my-db-album*)
a68a9e60b0a30f1199bffeaeba1435e18d0a549c5161edf14509d47252770e57
nuprl/gradual-typing-performance
quick-sample.rkt
#lang racket/base (provide quick-sample) ;; ----------------------------------------------------------------------------- (require benchmark-util racket/file (only-in racket/include include) (only-in "quads.rkt" page-break column-break word box block block-break)) ;; ===============================...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/jfp-2016/src/worst-configurations-6.4/quadMB/0010101000000101/quick-sample.rkt
racket
----------------------------------------------------------------------------- =============================================================================
#lang racket/base (provide quick-sample) (require benchmark-util racket/file (only-in racket/include include) (only-in "quads.rkt" page-break column-break word box block block-break)) (define (quick-sample) (block '(measure 240.0 font "Times New Roman" leading 16.0 vmeasure 300.0 size 13.5 x-ali...
211224a9170bb489eb70a2d49259b2ee961ee15d5e8b08991ac00fc3ab418b05
stchang/parsack
csv-parser-sepBy.rkt
#lang racket (require parsack) (provide (all-defined-out)) csv parser using sepBy combinator ;; - does not support quoted cells ;; cellContent in csv-parser.rkt (define $cell (many (noneOf ",\n\r"))) ;; a line must end in \n (define $line (sepBy $cell (char #\,))) ;; result is list of list of chars (define $csv (...
null
https://raw.githubusercontent.com/stchang/parsack/57b21873e8e3eb7ffbdfa253251c3c27a66723b1/parsack-test/parsack/examples/csv-parser-sepBy.rkt
racket
- does not support quoted cells cellContent in csv-parser.rkt a line must end in \n result is list of list of chars csvFile : Path -> String
#lang racket (require parsack) (provide (all-defined-out)) csv parser using sepBy combinator (define $cell (many (noneOf ",\n\r"))) (define $line (sepBy $cell (char #\,))) (define $csv (endBy $line $eol)) (define (csvFile filename) (parse $csv filename))
09bcdc81b884c1db68310558b7f8aa2d847f3827f46274ed53374ac7713188d2
lehitoskin/blight
group.rkt
#lang racket/gui ; group.rkt ; contains group-window definitions (require libtoxcore-racket/functions "../config.rkt" "chat.rkt" "msg-editor.rkt" "msg-history.rkt" (only-in pict bitmap scale-to-fit pict->bitmap)) (provide...
null
https://raw.githubusercontent.com/lehitoskin/blight/807b0437c92ee41c68ca5a767d973817ae416b65/gui/group.rkt
racket
group.rkt contains group-window definitions create a new top-level window make a frame by instantiating the frame% class set the frame icon menu bar for group-frame menu File for menu bar loop until we get all our friends add to the invite list close the current window an editor canvas where text% messages w...
#lang racket/gui (require libtoxcore-racket/functions "../config.rkt" "chat.rkt" "msg-editor.rkt" "msg-history.rkt" (only-in pict bitmap scale-to-fit pict->bitmap)) (provide (all-defined-out)) (define group-window% (cl...
8f7b4a162029fa9974d5869b90b5175655c1006a8b611b9afd87f226bb564872
pkel/cpr
nakamoto_ssz.ml
open Cpr_lib module type Parameters = sig * [ false ] : Maintain natural scale of observation . [ true ] : Map observation to [ 0,1]{^n } . [true]: Map observation floatarray to [0,1]{^n}. *) val unit_observation : bool end module Make (Parameters : Parameters) = struct open Parameters module ...
null
https://raw.githubusercontent.com/pkel/cpr/77130b3f4ce1e2294c4c49cb3dbb001980d0bfad/simulator/protocols/nakamoto_ssz.ml
ocaml
* number of public blocks after common ancestor * number of private blocks after common ancestor * private_blocks - public_blocks What is currently going on? defender's preferred block attacker's preferred block messages sent with last action simulate defender work on private chain height of to be relea...
open Cpr_lib module type Parameters = sig * [ false ] : Maintain natural scale of observation . [ true ] : Map observation to [ 0,1]{^n } . [true]: Map observation floatarray to [0,1]{^n}. *) val unit_observation : bool end module Make (Parameters : Parameters) = struct open Parameters module ...
279816970ba0acdd069616b1f89d23bb67fb93b6bbf0c71662a09fe651755ebc
dmitryvk/sbcl-win32-threads
mop-10.impure-cload.lisp
miscellaneous side - effectful tests of the MOP This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This softwar...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/tests/mop-10.impure-cload.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. this file contains tests of REINITIALIZE-INSTANCE on generic functions.
miscellaneous side - effectful tests of the MOP This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (defpackage "MOP-10" (:use "CL" "SB-MOP" "TEST-UTIL")) (in-package "MOP-10") (defclass my-generic-function (stan...
62b0d7d69ed7d9887538cb5d0f20e8c835ce4ab2591bcacb421343a49d3416de
fulcrologic/fulcro
hooks.cljc
(ns com.fulcrologic.fulcro.react.hooks "React hooks wrappers and helpers. The wrappers are simple API simplifications that help when using hooks from Clojurescript, but this namespace also includes utilities for using Fulcro's data/network management from raw React via hooks. See `use-root`, `use-component`...
null
https://raw.githubusercontent.com/fulcrologic/fulcro/608422c7eb600ed30b1a9d83a5a43a8f2af96ac9/src/main/com/fulcrologic/fulcro/react/hooks.cljc
clojure
WARNING TO MAINTAINERS: DO NOT REFERENCE DOM IN HERE. This has to work with native. will garbage-collect the floating root child on unmount important, you must use hooks (`defhc` or `:use-hooks? true`)
(ns com.fulcrologic.fulcro.react.hooks "React hooks wrappers and helpers. The wrappers are simple API simplifications that help when using hooks from Clojurescript, but this namespace also includes utilities for using Fulcro's data/network management from raw React via hooks. See `use-root`, `use-component`...
90e1a905d09301aae05b2564e2bf88857ce0195901fe77174ee10143e2221372
UU-ComputerScience/uu-cco
Parser.hs
------------------------------------------------------------------------------- -- | Module : CCO.ArithBool . Copyright : ( c ) 2008 Utrecht University -- License : All rights reserved -- -- Maintainer : -- Stability : provisional -- Portability : portable -- A ' Parser ' for arithmetic ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uu-cco/cca433c8a6f4d27407800404dea80c08fd567093/uu-cco-examples/src/CCO/ArithBool/Parser.hs
haskell
----------------------------------------------------------------------------- | License : All rights reserved Maintainer : Stability : provisional Portability : portable ----------------------------------------------------------------------------- :: Component String Tm ----------------------------...
Module : CCO.ArithBool . Copyright : ( c ) 2008 Utrecht University A ' Parser ' for arithmetic and boolean expressions . module CCO.ArithBool.Parser ( * ) where import CCO.ArithBool.Base (Tm (Tm), Tm_ (..)) import CCO.ArithBool.Lexer import CCO.Component (Component) i...
5cbef6bb837822dadefca1505eda05778f735131fd8fbf6999bfecc0e4d68e05
OCamlPro/OCamlPro-OCaml-Branch
printtyp.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) and , projet Crist...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/typing/printtyp.ml
ocaml
********************************************************************* Objective Caml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Misc open Ctype open Format open Longi...
ecd734bd15ff81bd76f1ef0ec5241b1aa0c79b08fee3298ec05b64cc77771bd9
igorhvr/bedlam
bindings.scm
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 WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/test/bindings.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 - 2007 ...
60792e6e83a64a5dbe842f53fc3be64dd7d95112269338634b1847c87246ab2a
IagoAbal/haskell-z3
Regression.hs
module Z3.Regression ( spec ) where import Test.Hspec import Control.Monad(forM_) import Control.Monad.IO.Class import qualified Z3.Base as Z3 import qualified Z3.Monad spec :: Spec spec = do describe "issue#23: Crash on parseSMTLib2String" $ do it "should not crash" $ Z3.Monad.evalZ3 issue23script ...
null
https://raw.githubusercontent.com/IagoAbal/haskell-z3/247dac33c82b52f6ca568c1cdb3ec5153351394d/test/Z3/Regression.hs
haskell
Perform some operations on the values
module Z3.Regression ( spec ) where import Test.Hspec import Control.Monad(forM_) import Control.Monad.IO.Class import qualified Z3.Base as Z3 import qualified Z3.Monad spec :: Spec spec = do describe "issue#23: Crash on parseSMTLib2String" $ do it "should not crash" $ Z3.Monad.evalZ3 issue23script ...
00e987aa47ade4ee9644e81dca2dcb683f58983e768c864ba95c0e9cd8746c1b
zkat/squirl
util.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :squirl) (defun apply-impulses (body1 body2 r1 r2 j) (body-apply-impulse body1 (vec- j) r1) (body-apply-impulse body2 j r2) (values)) (defun k-tensor (body1 body2 r1 r2) ;; calculate mass matrix ;; C sources say: "If I wasn't lazy and wrote a proper...
null
https://raw.githubusercontent.com/zkat/squirl/d5ab125b389008696a66f5a0d1bbb7449584db90/src/constraints/util.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- calculate mass matrix C sources say: "If I wasn't lazy and wrote a proper matrix class, this wouldn't be so gross... Start with I*mass-sum influence from r1 influence from r2 apply influence from r1 apply influence from r2 invert and we're done.
(in-package :squirl) (defun apply-impulses (body1 body2 r1 r2 j) (body-apply-impulse body1 (vec- j) r1) (body-apply-impulse body2 j r2) (values)) (defun k-tensor (body1 body2 r1 r2) (let* ((mass-sum (+ (body-inverse-mass body1) (body-inverse-mass body2))) (k11 mass-sum) (k12 0d...
07848b07c30b7c54a18ffff4a8fd4dbdbeec96960f50c16864c14f87823ece75
EgorDm/fp-pacman
Game.hs
module Game ( start ) where import Graphics.Gloss(Picture) import Graphics.Gloss.Game import Graphics.Gloss.Interface.IO.Game import qualified SDL import qualified SDL.Mixer as Mix import Constants import Resources import Engine.Base import Game.Base import qualified Game.Menu.Base as Menu import qualified Game.Ga...
null
https://raw.githubusercontent.com/EgorDm/fp-pacman/19781c92c97641b0a01b8f1554f50f19ff6d3bf4/src/Game.hs
haskell
module Game ( start ) where import Graphics.Gloss(Picture) import Graphics.Gloss.Game import Graphics.Gloss.Interface.IO.Game import qualified SDL import qualified SDL.Mixer as Mix import Constants import Resources import Engine.Base import Game.Base import qualified Game.Menu.Base as Menu import qualified Game.Ga...
ef001bc788902e065000abed2d4aacbe7c93549bef2c213a8ba1ad495e8525dc
ruhler/smten
Ix.hs
# LANGUAGE NoImplicitPrelude # module Smten.Data.Ix where import Smten.Prelude class (Ord a) => Ix a where range :: (a, a) -> [a] index :: (a, a) -> a -> Int rangeSize :: (a, a) -> Int rangeSize b@(l, h) = index b h + 1 instance Ix Int where range (l, h) = [l..h] index (l, h) x = x - l ins...
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-lib/Smten/Data/Ix.hs
haskell
# LANGUAGE NoImplicitPrelude # module Smten.Data.Ix where import Smten.Prelude class (Ord a) => Ix a where range :: (a, a) -> [a] index :: (a, a) -> a -> Int rangeSize :: (a, a) -> Int rangeSize b@(l, h) = index b h + 1 instance Ix Int where range (l, h) = [l..h] index (l, h) x = x - l ins...
e84850eac9ef48398ae54e75eb403afa7882b787e8d47848f770dd80af9871a0
jarcane/heresy
things.rkt
#lang s-exp "../private/base.rkt" (require racket/stxparam "list.rkt" "require-stuff.rkt" "theory.rkt" "string.rkt" (only-in racket/base define-syntax gensym begin let* for/and ...
null
https://raw.githubusercontent.com/jarcane/heresy/a736b69178dffa2ef97f5eb5204f3e06840088c2/lib/things.rkt
racket
(describe *thing* (*field* *value*) ...) Declare a new kind of Thing, with the given fields and default values. Wrapper struct for things. Provides custom printing while still behaving as procedure. (thing? v) Any -> Bool Returns True if value is a Thing (is-a? Type Thing) Thing Thing -> Bool Returns True if T...
#lang s-exp "../private/base.rkt" (require racket/stxparam "list.rkt" "require-stuff.rkt" "theory.rkt" "string.rkt" (only-in racket/base define-syntax gensym begin let* for/and ...
9e243eebde459c988fc1c8aa204a4bcb81a04c6a8058094973bbe8dff24dafa5
G-Corp/rfile
rfile_app.erl
% @hidden -module(rfile_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> rfile_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/G-Corp/rfile/64464534904c026211f23ab735ea6b15ea17401c/src/rfile_app.erl
erlang
@hidden
-module(rfile_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> rfile_sup:start_link(). stop(_State) -> ok.
fe01062856a9d18263465a5df65bb7706d6521e75f64b29dab5c4e9fe21bfc5e
Gbury/archsat
ext_constraints.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . (** Extension for constraints *) val register : unit -> unit (** Register the extension. *)
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/core/ext_constraints.mli
ocaml
* Extension for constraints * Register the extension.
This file is free software , part of Archsat . See file " LICENSE " for more details . val register : unit -> unit
41e0aaa6f75dc33990630070f2a3929ba6717e7bc0a4339faca31c3f5ff3676a
f-o-a-m/kepler
App.hs
module Network.ABCI.Server.App ( App(..) , runApp , transformApp , withProto , Middleware , MessageType(..) , demoteRequestType , msgTypeKey , Request(..) , hashRequest , Response(..) , LPByteStrings(..) , decodeLengthPrefix , encodeLengthPrefix ) where import Control.Lens ...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-server/src/Network/ABCI/Server/App.hs
haskell
| Used to parametrize Request and Response types ------------------------------------------------------------------------------ Request ------------------------------------------------------------------------------ #L11-L41 Info/Query Connection Mempool Connection Consensus Connection ----------------------------...
module Network.ABCI.Server.App ( App(..) , runApp , transformApp , withProto , Middleware , MessageType(..) , demoteRequestType , msgTypeKey , Request(..) , hashRequest , Response(..) , LPByteStrings(..) , decodeLengthPrefix , encodeLengthPrefix ) where import Control.Lens ...
f410c241c186d568dc173d800d203ff8be1612ab31be0bfc3419500ffce56a28
hercules-ci/hercules-ci-agent
AttributeIFDEvent.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveAnyClass #-} module Hercules.API.Agent.Evaluate.EvaluateEvent.AttributeIFDEvent where import Hercules.API.Prelude data AttributeIFDEvent = AttributeIFDEvent { expressionPath :: [Text], derivationPath :: Text, derivationOutput :: Text, done :: Bool, ...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/2437ff55720063dcbb9f85a63c40e2589867a29b/hercules-ci-api-agent/src/Hercules/API/Agent/Evaluate/EvaluateEvent/AttributeIFDEvent.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveAnyClass #
module Hercules.API.Agent.Evaluate.EvaluateEvent.AttributeIFDEvent where import Hercules.API.Prelude data AttributeIFDEvent = AttributeIFDEvent { expressionPath :: [Text], derivationPath :: Text, derivationOutput :: Text, done :: Bool, index :: Int } deriving (Generic, Show, Eq, NFData, FromJSO...
8cfaa08808508d183a484275362d1e97e61f4079b6301c6a612078bfe88f04e9
Bogdanp/deta
info.rkt
#lang info (define license 'BSD-3-Clause) (define version "0.12") (define collection "deta") (define deps '("base" "db-lib" "gregor-lib")) (define build-deps '("at-exp-lib"))
null
https://raw.githubusercontent.com/Bogdanp/deta/fc2df774c8fa41a83e46dc017f7a7fbf90e137f9/deta-lib/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define version "0.12") (define collection "deta") (define deps '("base" "db-lib" "gregor-lib")) (define build-deps '("at-exp-lib"))
6dbd755da77f33e8d83142cb41f6e89178c054d08acc261acdb8ec2f7cf039c6
peterholko/pax_server
test.erl
Author : Created : Apr 2 , 2009 %% Description: TODO: Add description to test -module(test). %% %% Include files %% -include("packet.hrl"). %% %% Exported Functions %% -export([run/1, market/0]). %% %% API Functions %% run(Account) -> spawn(fun() -> connect(Account) end). connect(Account) -> {ok,Sock...
null
https://raw.githubusercontent.com/peterholko/pax_server/62b2ec1fae195ff915d19af06e56a7c4567fd4b8/src/test.erl
erlang
Description: TODO: Add description to test Include files Exported Functions API Functions Local Functions
Author : Created : Apr 2 , 2009 -module(test). -include("packet.hrl"). -export([run/1, market/0]). run(Account) -> spawn(fun() -> connect(Account) end). connect(Account) -> {ok,Socket} = gen_tcp:connect("localhost",2345,[binary,{active, true},{nodelay, true}, {keepalive, true}, {packet,0}]), t:st...
b594d4a6f3ca14afb1ba88afb7c6539fde42acf07bf02bb3063d51e30e923f44
racket/syntax-color
info.rkt
#lang info (define collection 'multi) (define build-deps '("gui-doc" "scribble-doc" "gui-lib" "scribble-lib" "racket-doc" "syntax-color-lib")) (define deps '("base")) (define update-implies '("syntax-color-lib")) ...
null
https://raw.githubusercontent.com/racket/syntax-color/02c5faaf6cb3f08ef07069763755e373ef11cd50/syntax-color-doc/info.rkt
racket
#lang info (define collection 'multi) (define build-deps '("gui-doc" "scribble-doc" "gui-lib" "scribble-lib" "racket-doc" "syntax-color-lib")) (define deps '("base")) (define update-implies '("syntax-color-lib")) ...
80b442406abd2ff0670c391abe06f8b24fdcf515f006fcc3ba2ee1a114d72b93
binaryage/chromex
test_utils.cljs
(ns chromex.test-utils (:require-macros [chromex.test-utils :refer [test-mode]])) (def advanced-mode? (= (test-mode) "advanced"))
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/test/src/chromex/test_utils.cljs
clojure
(ns chromex.test-utils (:require-macros [chromex.test-utils :refer [test-mode]])) (def advanced-mode? (= (test-mode) "advanced"))
5f2d03de86734e85323e6759beb20c6eff6b2c4e989442d851e331c403f1cd6b
coq/coq
configwin_ihm.ml
(*********************************************************************************) Cameleon (* *) Copyright ( C ) 2005 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/coq/coq/f7e05393addb9a45fa1eaef2a72da9b2c4c14396/ide/coqide/configwin_ihm.ml
ocaml
******************************************************************************* en Automatique. All rights reserved. ...
Cameleon Copyright ( C ) 2005 Institut National de Recherche en Informatique et it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the ...
887882078bd90ed981c38e866b2ff6ac24891060028602f9a46b14e103e8768b
haskell-CI/haskell-ci
Project.hs
{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} -- | License: GPL-3.0-or-later AND BSD-3-Clause -- module Cabal.Project ( -- * Project Project (..), ...
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/336d76e1b992c4889e707c7d367497a50ebe9218/cabal-install-parsers/src/Cabal/Project.hs
haskell
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | License: GPL-3.0-or-later AND BSD-3-Clause * Project * Resolve project * Read packages $setup >>> :set -XOverloadedStrings | @cabal.project@ file ^ packag...
# LANGUAGE DeriveGeneric # module Cabal.Project ( Project (..), triverseProject, emptyProject, * project readProject, parseProject, resolveProject, ResolveError (..), renderResolveError, readPackagesOfProject ) where import Control.DeepSeq (NFData (..)) import...
2ce82e73426afdb8ebbd7d0dd61dce4b93854ddebd612437b934ad9e8e729f16
elastic/eui-cljs
tabs.cljs
(ns eui.tabs (:require ["@elastic/eui/lib/components/tabs/tabs.js" :as eui])) (def SIZES eui/SIZES) (def EuiTabs eui/EuiTabs)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/tabs.cljs
clojure
(ns eui.tabs (:require ["@elastic/eui/lib/components/tabs/tabs.js" :as eui])) (def SIZES eui/SIZES) (def EuiTabs eui/EuiTabs)
e3b1131d0f68d04192bb0bf158fc1a58455c77a8d38825530579f46242d7110a
launchdarkly/erlang-server-sdk
ldclient_instance_sup.erl
%%------------------------------------------------------------------- %% @doc Instance supervisor @private %% @end %%------------------------------------------------------------------- -module(ldclient_instance_sup). -behaviour(supervisor). %% Supervision -export([start_link/5, init/1, child_spec/1, child_spec/2])...
null
https://raw.githubusercontent.com/launchdarkly/erlang-server-sdk/fabbcae4953020a0c93bce99e80c1729ebd447d5/src/ldclient_instance_sup.erl
erlang
------------------------------------------------------------------- @doc Instance supervisor @end ------------------------------------------------------------------- Supervision Helper macro for declaring children of supervisor shutdown time =================================================================== Supe...
@private -module(ldclient_instance_sup). -behaviour(supervisor). -export([start_link/5, init/1, child_spec/1, child_spec/2]). -define(CHILD(Id, Module, Args, Type), {Id, {Module, start_link, Args}, permanent, 5000, Type, [Module]}). child_spec(Args) -> child_spec(?MODULE, Args). child_spec(Id, Args) -> #{ ...
5f87ed4653ec14c77ce348901efd0e99f461eb23711a1712d5e0bac1e5da294e
facebook/Haxl
Bench.hs
Copyright ( c ) 2014 - present , Facebook , Inc. -- All rights reserved. -- This source code is distributed under the terms of a BSD license , -- found in the LICENSE file. # LANGUAGE RankNTypes , GADTs , BangPatterns , DeriveDataTypeable , StandaloneDeriving # StandaloneDeriving #-} # OPTIONS_GHC -fno -...
null
https://raw.githubusercontent.com/facebook/Haxl/8f018dc9cffe641bc0d88d29934d378c82a1246d/tests/Bench.hs
haskell
All rights reserved. found in the LICENSE file. # UNPACK # # UNPACK # # UNPACK #
Copyright ( c ) 2014 - present , Facebook , Inc. This source code is distributed under the terms of a BSD license , # LANGUAGE RankNTypes , GADTs , BangPatterns , DeriveDataTypeable , StandaloneDeriving # StandaloneDeriving #-} # OPTIONS_GHC -fno - warn - unused - do - bind -fno - warn - type - defaults ...
c7126ec2ca2d9613a252976aa8b72642d2e3a9f50384de4a061afeec308d6586
polyfy/polylith
table.clj
(ns polylith.clj.core.text-table.table (:require [clojure.string :as str] [polylith.clj.core.util.interface.color :as c] [polylith.clj.core.util.interface.str :as str-util])) (defn none [_ & strings] (str/join strings)) (def color->function {:none none :cyan c/cyan :grey c/grey ...
null
https://raw.githubusercontent.com/polyfy/polylith/76936c752fb5b729c216b23d92c8a8d71cfdc92f/components/text-table/src/polylith/clj/core/text_table/table.clj
clojure
(ns polylith.clj.core.text-table.table (:require [clojure.string :as str] [polylith.clj.core.util.interface.color :as c] [polylith.clj.core.util.interface.str :as str-util])) (defn none [_ & strings] (str/join strings)) (def color->function {:none none :cyan c/cyan :grey c/grey ...
12533c7ecf9f01ab9254a050b6abd13d2c91454b2543f3971c518863f6ed2c13
wadehennessey/wcl
keysyms.lisp
-*- Mode : Lisp ; Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : YES -*- ;;; Define lisp character to keysym mappings ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to ...
null
https://raw.githubusercontent.com/wadehennessey/wcl/841316ffe06743d4c14b4ed70819bdb39158df6a/src/clx/keysyms.lisp
lisp
Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : YES -*- Define lisp character to keysym mappings P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, inta...
TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package "XLIB") (define-keysym-set :latin-1 (keysym 0 0) (keysym 0 255)) (define-keysym-set :latin-2 (keysym 1 0) ...
50c0f1d4ad50f8f7a08ebfbddddcb6148e67259571fbaec06856e9e06217d192
ocaml-ppx/ppx
ast_pattern_generated.ml
open! Import open Current_ast open Ast_pattern0 (*$ Ppxlib_cinaps_helpers.generate_ast_pattern_impl () *) let lident (T f0') = T (fun c' l' x' k' -> match Longident.to_concrete_opt x' with | Some (Lident (x0')) -> begin c'.matched <- c'.matched + 1; f0' c' l' x0' (k') end | _ ...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/src/ast_pattern_generated.ml
ocaml
$ Ppxlib_cinaps_helpers.generate_ast_pattern_impl () $
open! Import open Current_ast open Ast_pattern0 let lident (T f0') = T (fun c' l' x' k' -> match Longident.to_concrete_opt x' with | Some (Lident (x0')) -> begin c'.matched <- c'.matched + 1; f0' c' l' x0' (k') end | _ -> fail l' "Lident" ) let ldot (T f0') (T f1') = T (f...
9bc2f3fae6937376ef017563c327b767b86ee1a5fb6de2fadb7b4eea199cc818
dym/movitz
los-closette-compiler.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; Filename : los-closette-compiler.lisp ;;;; Descrip...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/muerte/los-closette-compiler.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Description: ------------------------------------------------------------------ standard-class -> std-slotted-class -> class -> .. class's defc...
Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . Filename : los-closette-compiler.lisp Author : < > Created at : Thu Aug 29 13:15:11 2002 $ I d : los - closette - compiler.lisp , v 1.23 2008 - 04 - 27 19:42:26 Exp $ (provide :muerte...