_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
f8920159fe191d95b2b68f3e87a267fdf5d3c5ecf6ea91f452cab6c260a0f853
SATBH/haskelling
monads.lisp
(load "reader_macros.lisp") (defclass monad () ((_return :initarg :return :accessor _return :initform (error "not implemented")) (_bind :initarg :bind :accessor _bind :initform (error "not implemented")))) (defvar *list-monad* (make-instance 'monad :return #'list :bind (l...
null
https://raw.githubusercontent.com/SATBH/haskelling/4dd7269e31bf3dce71bc6b8e94b7a9c3bb9d1fc8/monads.lisp
lisp
(load "reader_macros.lisp") (defclass monad () ((_return :initarg :return :accessor _return :initform (error "not implemented")) (_bind :initarg :bind :accessor _bind :initform (error "not implemented")))) (defvar *list-monad* (make-instance 'monad :return #'list :bind (l...
4c378d136c4987f82312c81570640852c3e6dd916cb5610e5cee5d5107ab549d
yuriy-chumak/ol
numeric-chars.scm
(define numeric-chars-alist '( Nd + Nl + No (#x0030 . 0) (#x0031 . 1) (#x0032 . 2) (#x0033 . 3) (#x0034 . 4) (#x0035 . 5) (#x0036 . 6) (#x0037 . 7) (#x0038 . 8) (#x0039 . 9) (#x00B2 . #T) (#x00B3 . #T) (#x00B9 . #T) (#x00BC . #T) (#x00BD . #T) (#x00BE . #T) (#x0660 . 0) (#x0661 . 1) (#x0662 . 2) (#x0663 . 3) (#x0664 ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/7df9675459efab70266ae15786eaf99853d6c48c/libraries/scheme/unicode/numeric-chars.scm
scheme
(define numeric-chars-alist '( Nd + Nl + No (#x0030 . 0) (#x0031 . 1) (#x0032 . 2) (#x0033 . 3) (#x0034 . 4) (#x0035 . 5) (#x0036 . 6) (#x0037 . 7) (#x0038 . 8) (#x0039 . 9) (#x00B2 . #T) (#x00B3 . #T) (#x00B9 . #T) (#x00BC . #T) (#x00BD . #T) (#x00BE . #T) (#x0660 . 0) (#x0661 . 1) (#x0662 . 2) (#x0663 . 3) (#x0664 ...
27ef6f5d6f5e08c2883675ebb26db6c2b45ff6344da8dd689fd030e0b0f1a714
ocsigen/ocaml-eliom
ocamlcp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/tools/ocamlcp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Printf let compargs = ref ([] : string list) let profargs = ref ([] : string list) let toremove = r...
b5721506567dd70b19f70557b9dd1c85a570c4cefb1f3e6977c84eaf2aa567c6
jordwalke/rehp
rehp_traverse.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2013 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of th...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/lib/rehp_traverse.ml
ocaml
generic js ast walk/map TODO: The free vars should also be mapped over. But if you wait to add them until the end, that isn't required. var substitution Some js bundler get confused when the argument of 'require' is not a litteral do not replace constant in switch case this optimisation should be...
Js_of_ocaml compiler * / * Copyright ( C ) 2013 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of th...
9eecf71777160f26ecc72a130163990af95c0fc155eb12707491c5b4a70d7eed
fukamachi/rove
package.lisp
(in-package #:cl-user) (defpackage #:rove/core/suite/package (:use #:cl) (:import-from #:rove/core/suite/file #:resolve-file #:file-package #:system-packages) (:import-from #:rove/core/stats #:*stats* #:stats-context #...
null
https://raw.githubusercontent.com/fukamachi/rove/6e1a0e20b970b14187c7cb0a7eb9c29608bc8008/core/suite/package.lisp
lisp
(in-package #:cl-user) (defpackage #:rove/core/suite/package (:use #:cl) (:import-from #:rove/core/suite/file #:resolve-file #:file-package #:system-packages) (:import-from #:rove/core/stats #:*stats* #:stats-context #...
cc52d1e4da87e02bc8930d169775f7891f82dd6eddf77669ebcb2fa65a775024
c-cube/ocaml-containers
t_fun.ml
open CCFun module T = (val Containers_testlib.make ~__FILE__ ()) include T;; eq ~printer:Q.Print.int 10 (iterate 0 succ 10);; eq ~printer:Q.Print.int 11 (iterate 1 succ 10);; eq ~printer:Q.Print.int 12 (iterate 2 succ 10);; eq ~printer:Q.Print.int 15 (iterate 5 succ 10);; t @@ fun () -> assert_raises (function ...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/tests/core/t_fun.ml
ocaml
open CCFun module T = (val Containers_testlib.make ~__FILE__ ()) include T;; eq ~printer:Q.Print.int 10 (iterate 0 succ 10);; eq ~printer:Q.Print.int 11 (iterate 1 succ 10);; eq ~printer:Q.Print.int 12 (iterate 2 succ 10);; eq ~printer:Q.Print.int 15 (iterate 5 succ 10);; t @@ fun () -> assert_raises (function ...
aa8cc6923a52d91911a3244f661fb6fe4eda37fee5993ccc371f9332110e7313
nuvla/api-server
acl_resource.clj
(ns sixsq.nuvla.auth.acl-resource (:require [clojure.set :as set] [sixsq.nuvla.auth.utils :as auth] [sixsq.nuvla.server.util.response :as ru])) (def rights-hierarchy (-> (make-hierarchy) (derive ::edit-acl ::edit-data) (derive ::edit-acl ::delete) ...
null
https://raw.githubusercontent.com/nuvla/api-server/e4f0535e2e39e5042094fc20bfb811d2a9c75ad5/code/src/sixsq/nuvla/auth/acl_resource.clj
clojure
provides mappings between the namespaced keywords and themselves, it returns the resource otherwise." it returns the resource otherwise." it returns the resource
(ns sixsq.nuvla.auth.acl-resource (:require [clojure.set :as set] [sixsq.nuvla.auth.utils :as auth] [sixsq.nuvla.server.util.response :as ru])) (def rights-hierarchy (-> (make-hierarchy) (derive ::edit-acl ::edit-data) (derive ::edit-acl ::delete) ...
9fde3abee2e158a39f1bcaab66046756352a666f654815a58e01b07dc266f061
latacora/eidolon
core.clj
(ns eidolon.core (:require [com.rpl.specter :as sr])) (def INDEXED "A path that visits v and collects k in [[k v], ...]. This is useful if you want to collect a path to something, see [[path-walker]] and [[path-finder]]. " [sr/ALL (sr/collect-one sr/FIRST) sr/LAST]) (def INDEXED-SEQ "A selector that visi...
null
https://raw.githubusercontent.com/latacora/eidolon/51ab2fde1696b2c180c6713ce21e04fa147925b2/src/eidolon/core.clj
clojure
if you're
(ns eidolon.core (:require [com.rpl.specter :as sr])) (def INDEXED "A path that visits v and collects k in [[k v], ...]. This is useful if you want to collect a path to something, see [[path-walker]] and [[path-finder]]. " [sr/ALL (sr/collect-one sr/FIRST) sr/LAST]) (def INDEXED-SEQ "A selector that visi...
7f2ef5a87c7bc3c99052f4f64ba83d4c4bbe7f190e0cf33a009c87f1dd0b4ca8
mfoemmel/erlang-otp
test_server.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/test_server/src/test_server.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(test_server). -define(DEFAULT_TIME...
224cb23a672e6d557dacdf35a327b84344dec4974f8fc54e88e540382f1bb0f7
openeuler-mirror/secGear
Ast.ml
* Copyright ( C ) 2011 - 2021 Intel Corporation . All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions * are met : * * * Redistributions of source code must retain the above copyright ...
null
https://raw.githubusercontent.com/openeuler-mirror/secGear/23fc7f043ba8c6a5114c6dc79261b3d7bad1bd98/tools/codegener/intel/Ast.ml
ocaml
[unsigned] [short|long] [unsigned] [short|long] int All available types. 'char' 'long' 'long long' typedef in other places Pointer to a type Pointer parameter direction attribute 'in', 'out', 'inout' It holds possible values for a given attribute. a varable a number Pointer parameter can have...
* Copyright ( C ) 2011 - 2021 Intel Corporation . All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions * are met : * * * Redistributions of source code must retain the above copyright ...
aa9b015f3e34d20387e5c77ca47d0bba2b27bd24059ec6372b804c8fba802711
racket/racket7
main.rkt
#lang racket/base (require "../common/check.rkt" "../format/main.rkt" "../path/parameter.rkt") (provide srcloc->string) (define/who (srcloc->string s) (check who srcloc? s) (and (srcloc-source s) (cond [(and (srcloc-line s) (srcloc-column s)) (format "~a:...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/srcloc/main.rkt
racket
#lang racket/base (require "../common/check.rkt" "../format/main.rkt" "../path/parameter.rkt") (provide srcloc->string) (define/who (srcloc->string s) (check who srcloc? s) (and (srcloc-source s) (cond [(and (srcloc-line s) (srcloc-column s)) (format "~a:...
046b56a6c2f8e15d9b6c53f92b0418f15a8a3aff9dedc64bbb11e0e1da522d51
tmcgilchrist/ocaml-gitlab
user.mli
open Cmdliner val cmd : (unit -> Config.t) -> unit Cmd.t
null
https://raw.githubusercontent.com/tmcgilchrist/ocaml-gitlab/de4d1cc31d172e599943fe712269f165f1c88909/cli/user.mli
ocaml
open Cmdliner val cmd : (unit -> Config.t) -> unit Cmd.t
23a57d788722dc24972ec17794ba12629f9be38d5751a4395b1e3c9c76b66448
garrigue/labltk
printer.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/garrigue/labltk/c7f50b4faed57f1ac03cb3c9aedc35b10d36bdb6/compiler/printer.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
90006a51d2902413b9bb0db91232ad5d8620453032b556c459061ec645ec1c87
typelead/intellij-eta
Kind00001.hs
# LANGUAGE KindSignatures # {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE TypeOperators #-} # LANGUAGE UnboxedTuples # module Kind00001 where type Pr = (# Int, Int #) type T (f :: * -> *) = f Int data S data a :*: b = Foo a b x :: Int :*: Bool x = Foo
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/test/resources/fixtures/eta/sources/Kind00001.hs
haskell
# LANGUAGE EmptyDataDecls # # LANGUAGE TypeOperators #
# LANGUAGE KindSignatures # # LANGUAGE UnboxedTuples # module Kind00001 where type Pr = (# Int, Int #) type T (f :: * -> *) = f Int data S data a :*: b = Foo a b x :: Int :*: Bool x = Foo
b3faa665f885646db05b63e43f280490c87725d3669540ff6efb7ef0801318ff
roehst/tapl-implementations
main.ml
(* Module Main: The main program. Deals with processing the command line, reading files, building and connecting lexers and parsers, etc. For most experiments with the implementation, it should not be necessary to change this file. *) open Format open Support.Pervasive open Support.Error open Syntax ope...
null
https://raw.githubusercontent.com/roehst/tapl-implementations/23c0dc505a8c0b0a797201a7e4e3e5b939dd8fdb/fullfomsub/main.ml
ocaml
Module Main: The main program. Deals with processing the command line, reading files, building and connecting lexers and parsers, etc. For most experiments with the implementation, it should not be necessary to change this file.
open Format open Support.Pervasive open Support.Error open Syntax open Core let searchpath = ref [""] let argDefs = [ "-I", Arg.String (fun f -> searchpath := f::!searchpath), "Append a directory to the search path"] let parseArgs () = let inFile = ref (None : string option) in Arg.parse argDefs ...
e67966bc9e423346cf2820a0460de690d507c4e2addc280031b9b5dd04b63b6a
ijp/guildhall
pkg-list.scm
(package (multi-core (0)) (libraries (scm -> "multi"))) (package (multi-tools (0)) (programs (("programs" "multi.sps") -> "multi"))) ;; Local Variables: scheme - indent - styles : ( ( package 1 ) ) ;; End:
null
https://raw.githubusercontent.com/ijp/guildhall/2fe2cc539f4b811bbcd69e58738db03eb5a2b778/tests/bundle/multi/pkg-list.scm
scheme
Local Variables: End:
(package (multi-core (0)) (libraries (scm -> "multi"))) (package (multi-tools (0)) (programs (("programs" "multi.sps") -> "multi"))) scheme - indent - styles : ( ( package 1 ) )
2a9d8712a5acd773c669ed2bb07ab10f9a2e339e2fea1ed04075aa40f624e08a
fiddlerwoaroof/objc-lisp-bridge
build.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *default-pathname-defaults* (truename "~/git_repos/objc-lisp-bridge/")) (load (compile-file "objc-runtime.asd"))) (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload '(:objc-runtime :yason :plump :cl-ppcre :data-lens))) #+reading-list...
null
https://raw.githubusercontent.com/fiddlerwoaroof/objc-lisp-bridge/412089a6642ef886d41634cacfb50fc4ddd7d372/build.lisp
lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *default-pathname-defaults* (truename "~/git_repos/objc-lisp-bridge/")) (load (compile-file "objc-runtime.asd"))) (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload '(:objc-runtime :yason :plump :cl-ppcre :data-lens))) #+reading-list...
b79f06110d740e1a857e30246c619b97b28ae6ac66064fa681f01f0c9bde8a5d
pirapira/coq2rust
vernac.ml
(************************************************************************) 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/toplevel/vernac.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Parsing of vernacular. Time Back*...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Uti...
d1c5df7ec20978af0aa3da132085e9701c0dcc58b0b1cd3bd635cc74de36e7da
let-def/menhir
traverse.ml
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/traverse.ml
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
b727a29ba83ef4131b412496ef6f440b098abe15140d5951d1e89bfdfa71ac0e
Lysxia/test-monad-laws
Checkers.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.Except.Checkers where import Control.Monad.Except import Control.Monad.State import Test.QuickCheck (Gen, Property) import Test.QuickCheck.HigherOrder (CoArbitrary, Construct...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/Except/Checkers.hs
haskell
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.Except.Checkers where import Control.Monad.Except import Control.Monad.State import Test.QuickCheck (Gen, Property) import Test.QuickCheck.HigherOrder (CoArbitrary, Construct...
67d3e093dbd35fbab2cec912f09919756e228660d4e456ed0bc5243cb1343b74
Lambda-Logan/faker
AddressSpec.hs
module Faker.AddressSpec where import Faker.Address import Faker.Utils import Helper import Test.Hspec spec :: Spec spec = do describe "city" $ deterministicOutput city describe "streetName" $ deterministicOutput streetName describe "streetAddress" $ determi...
null
https://raw.githubusercontent.com/Lambda-Logan/faker/8935346192e67631b97c1a52f6644ba5ed48a1a2/test/Faker/AddressSpec.hs
haskell
module Faker.AddressSpec where import Faker.Address import Faker.Utils import Helper import Test.Hspec spec :: Spec spec = do describe "city" $ deterministicOutput city describe "streetName" $ deterministicOutput streetName describe "streetAddress" $ determi...
bba7815fcaade9b85bedb56c21ec1a224384b4328a7897f9581e19c97083e0f1
ghcjs/ghcjs-dom
HTMLModElement.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.HTMLModElement (js_setCite, setCite, js_getCite, getCite, js_setDateTime, setDa...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLModElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/HTMLModElement.dateTime Mozilla HTMLModElement.dateTime documentation> | <-US/docs/Web/API/HTMLModElement.dateTime Mozilla HTMLModElement.dateTime documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.HTMLModElement (js_setCite, setCite, js_getCite, getCite, js_setDateTime, setDateTime, js_getDateTime, getDateTime, HTMLModElement(..), gTypeHTMLModElement) where ...
506141a44ca90ad61aebe45bacb6ce8f2a26e384c30e3e9a61c6c68959737cd1
input-output-hk/ouroboros-network
Query.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- | Queries module Ouroboros.Consensus.Storage.ChainDB.Impl.Query ( ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus/src/Ouroboros/Consensus/Storage/ChainDB/Impl/Query.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE MultiWayIf # # LANGUAGE RecordWildCards # | Queries * Queries * Low-level queries | Return the last @k@ headers. While the in-memory fragment ('cdbChain') might temporarily be longer than @k@ (until the background thread has copied those blocks to the Imm...
# LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Ouroboros.Consensus.Storage.ChainDB.Impl.Query ( getBlockComponent , getCurrentChain , getIsFetched , getIsInvalidBlock , getIsValid , getLedgerDB , getMaxSlotNo...
004a6f34e5b5ad97a8366457a8892e27f1b04141e0efb85a673369f4ea7aed9a
mtesseract/nakadi-client
Stats.hs
| Module : Network . . Subscriptions . Stats Description : Implementation of Nakadi Subscription Stats API Copyright : ( c ) 2017 , 2018 License : : Stability : experimental Portability : POSIX This module implements the API . Module : Network.Nakadi.Subscriptions.Stat...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/src/Network/Nakadi/Subscriptions/Stats.hs
haskell
# LANGUAGE FlexibleContexts # | @GET@ to @\/subscriptions\/SUBSCRIPTION\/stats@. Low level ^ Subscription ID ^ Whether to show time lag. | @GET@ to @\/subscriptions\/SUBSCRIPTION\/stats@. High level ^ Subscription ID ^ Subscription Statistics as a 'Map'.
| Module : Network . . Subscriptions . Stats Description : Implementation of Nakadi Subscription Stats API Copyright : ( c ) 2017 , 2018 License : : Stability : experimental Portability : POSIX This module implements the API . Module : Network.Nakadi.Subscriptions.Stat...
c0d9b91e1721e79d61635c77d218eafe193ab7f5a571ec9c794beeb80405a34d
borodust/bodge-ui
list-select.lisp
(cl:in-package :bodge-ui) ;; (defgeneric item-status (item)) (defgeneric item-name-of (item)) (defgeneric item-selected-p (item)) (defgeneric select-item (item status)) (defclass list-select-text-item (disposable) ((text :initarg :text :reader item-name-of) (status-buf :initform (cffi:foreign-alloc :int) :reade...
null
https://raw.githubusercontent.com/borodust/bodge-ui/db896ca3be9026444398e0192a48b048aa7db574/src/elements/list-select.lisp
lisp
todo: invoke listeners
(cl:in-package :bodge-ui) (defgeneric item-status (item)) (defgeneric item-name-of (item)) (defgeneric item-selected-p (item)) (defgeneric select-item (item status)) (defclass list-select-text-item (disposable) ((text :initarg :text :reader item-name-of) (status-buf :initform (cffi:foreign-alloc :int) :reader i...
2dcb8c4ed505dfa48e23c5495c09bc2d36443ff301d27323ebc3efe005356712
robert-strandh/SICL
enable-defmethod.lisp
(cl:in-package #:sicl-boot-phase-4) (defun define-generic-function-class-names (e4) (setf (env:fdefinition (env:client e4) e4 'sicl-clos::generic-function-class-names) (lambda (name environment) (declare (ignore name environment)) (values 'standard-generic-function 'standard-meth...
null
https://raw.githubusercontent.com/robert-strandh/SICL/b306ee9cb8f59809672ba72764a68568f3cf0b69/Code/Boot/Phase-4/enable-defmethod.lisp
lisp
(cl:in-package #:sicl-boot-phase-4) (defun define-generic-function-class-names (e4) (setf (env:fdefinition (env:client e4) e4 'sicl-clos::generic-function-class-names) (lambda (name environment) (declare (ignore name environment)) (values 'standard-generic-function 'standard-meth...
cf1862332a8e3a9efc626702cafe0f4b8c55946e0d8e8d5fe045b81879f74774
donaldsonjw/bigloo
shape.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Tools / shape.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Tools/shape.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * In order to print human readable messages, we designed this */ * tool. ...
* serrano / prgm / project / bigloo / comptime / Tools / shape.scm * / * Author : * / * Creation : Tue Dec 27 17:02:04 1994 * / * Last change : Sat Apr 9 06:53:42 2011 ( serrano ) * / * Cop...
1b05d2486a5a08b5e98dcba62741a6129abf053db61e03f4efcb4ea41ab0017c
bracevac/corrl
NameSet.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Common/NameSet.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Set of names. ------------------------------------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Common.NameSet ( NameSet, module Data.Set ) where import Data.Set import Common.Name type NameSet = Set ...
ba3e212ea1db407325fd63bdca9232a8a852a4d0bd60e5c6e320291db30ec074
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-logging/gen/Gogol/Logging/Projects/Sinks/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer/identity; see the unique/writer_identity field. ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
47a1399996d8c9dfa14f7a41a48e917396038b44b6773ac02fe486a536af019c
vodori/reactors
project.clj
(defproject com.vodori/reactors "0.1.1-SNAPSHOT" :description "A clojure library for maintaining state, incorporating events from multiple sources and broadcasting an interpretation of the change in state to any observers." :url "" :license {:name "MIT License" :url "" :year 2018 :key "mit"} :scm...
null
https://raw.githubusercontent.com/vodori/reactors/b58586eaea2f6f18b90e3c88fa5f1e879f6aaab0/project.clj
clojure
(defproject com.vodori/reactors "0.1.1-SNAPSHOT" :description "A clojure library for maintaining state, incorporating events from multiple sources and broadcasting an interpretation of the change in state to any observers." :url "" :license {:name "MIT License" :url "" :year 2018 :key "mit"} :scm...
c78c7de8a2bc46893bf627af8c85ea90f72b5a214e74a7e3ac6f406a50d6e1a3
shop-planner/shop3
ordering-example.lisp
(in-package :shop-user) ; This file illustrates some uses of ordered and unordered task lists. ; A couple of notes about this file: ; - The problems p1 and p2 are different ways of accomplishing the ; same effect. The former combines the operators and ordering constraints in one big method . The latter divide...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/toy/ordering-example.lisp
lisp
This file illustrates some uses of ordered and unordered task lists. A couple of notes about this file: - The problems p1 and p2 are different ways of accomplishing the same effect. The former combines the operators and ordering information across multiple methods. Problem p3 also performs the same operat...
(in-package :shop-user) constraints in one big method . The latter divides this want to use : which : first ( the default ) to just find a single plan (defdomain ab ( (:operator (!a1 ?x) () () ((foo ?x))) (:operator (!a2 ?x) () ((foo ?x)) ()) (:operator (!b1 ?x) (foo ?x) () ()) (:operator (!b2 ?x...
d14aa3875f772c47a5a7e61ccde47d8c1a66394981a955b9a50f70f2caebf131
ocaml/dune
test.ml
include Lexer1
null
https://raw.githubusercontent.com/ocaml/dune/f6ab21268f5dfd030655a8b823ab02192cdfc548/test/blackbox-tests/test-cases/copy_files/test1.t/test.ml
ocaml
include Lexer1
3d86fc8129e6e9b75a77acacdb87b3865dbc2fb3bf8c896c15bca928ce41b49c
mbj/stratosphere
RuleActionOverrideProperty.hs
module Stratosphere.WAFv2.WebACL.RuleActionOverrideProperty ( module Exports, RuleActionOverrideProperty(..), mkRuleActionOverrideProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/RuleActionOverrideProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.WebACL.RuleActionOverrideProperty ( module Exports, RuleActionOverrideProperty(..), mkRuleActionOverrideProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties ...
52a0689cc157e0df40afaa589f302ceb519fcf89d366918dddab3f4ceff34e2c
koka-lang/koka
Config.hs
------------------------------------------------------------------------------ Copyright 2012 - 2021 , Microsoft Research , . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be -- found in the LICENSE file at the...
null
https://raw.githubusercontent.com/koka-lang/koka/2909df715aebf57966fbdd4afdc7a477f55f239e/src/Platform/haddock/Platform/Config.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the found in the LICENSE file at the root of this distribution. --------------------------------------------------------------------------- Configuration data -----...
Copyright 2012 - 2021 , Microsoft Research , . terms of the Apache License , Version 2.0 . A copy of the License can be module Platform.Config where programName :: String programName = "koka" version :: String version = "?" exeExtension :: String exeExtension = "" pathSep :: Char pathSep = '/' pathDelimiter ...
639ab1ccfe75fcd7714ab7b6a3d7416ae4f9ba3b8f854d071b70143593b51ced
tobbebex/GPipe
OutputMerger.hs
# LANGUAGE RankNTypes , ScopedTypeVariables # ----------------------------------------------------------------------------- -- -- Module : OutputMerger Copyright : -- License : BSD3 -- Maintainer : -- Stability : Experimental Portability : Portable -- -- | ---------------------------...
null
https://raw.githubusercontent.com/tobbebex/GPipe/9ff3afde0416c118971c5a2f93effdc75ef59e88/src/OutputMerger.hs
haskell
--------------------------------------------------------------------------- Module : OutputMerger License : BSD3 Stability : Experimental | --------------------------------------------------------------------------- | 'True' for each color component that should be written to the 'FrameBuffer'. | ...
# LANGUAGE RankNTypes , ScopedTypeVariables # Copyright : Maintainer : Portability : Portable module OutputMerger ( FragmentDepth, ColorMask, Blending(..), BlendEquation(..), BlendingFactor(..), LogicOp(..), ComparisonFunction(..), DepthFunction, DepthMask, StencilOps(..), Stencil...
00475a0312bb9dfbb9ecfc556f644a156a05d269ff769cf77e96c8ddeb41c430
int28h/HaskellTasks
0012.hs
Реализуйте функцию , находящую сумму и количество . sum'n'count : : Integer - > ( Integer , Integer ) sum'n'count x = undefined GHCi ( ) ( 12,2 ) Реализуйте функцию, находящую сумму и количество цифр десятичной записи заданного целого числа. sum'n'count :: Integer -> (Integer, Integer) sum'n'cou...
null
https://raw.githubusercontent.com/int28h/HaskellTasks/38aa6c1d461ca5774350c68fa7dd631932f10f84/src/0012.hs
haskell
Реализуйте функцию , находящую сумму и количество . sum'n'count : : Integer - > ( Integer , Integer ) sum'n'count x = undefined GHCi ( ) ( 12,2 ) Реализуйте функцию, находящую сумму и количество цифр десятичной записи заданного целого числа. sum'n'count :: Integer -> (Integer, Integer) sum'n'cou...
5da035748873ff9301d60c8e6ae1853c3ee4213249fea1abe479ad8d9d22e898
resttime/cl-liballegro
graphics.lisp
(in-package #:cl-liballegro) ;;; Graphics ;; Colors (defcfun ("al_map_rgb" map-rgb) (:struct color) (r :uchar) (g :uchar) (b :uchar)) (defcfun ("al_map_rgb_f" map-rgb-f) (:struct color) (r c-float) (g c-float) (b c-float)) (defcfun ("al_map_rgba" map-rgba) (:struct color) (r :uchar) (g :uchar) (b :uchar) (a :uch...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/4f0797db464aaef32e4bf6d87c2baf3ca71534c4/src/ffi-functions/graphics.lisp
lisp
Graphics Colors Locking and pixel formats Bitmap Creation Drawing Operations Blending modes Clipping Graphics utility functions Deferred drawing Images I/O Render State
(in-package #:cl-liballegro) (defcfun ("al_map_rgb" map-rgb) (:struct color) (r :uchar) (g :uchar) (b :uchar)) (defcfun ("al_map_rgb_f" map-rgb-f) (:struct color) (r c-float) (g c-float) (b c-float)) (defcfun ("al_map_rgba" map-rgba) (:struct color) (r :uchar) (g :uchar) (b :uchar) (a :uchar)) (defcfun ("al_prem...
60bedcf5fdf7797da6ddff00bcbcaa1c4f4f0fb9565377c448ff170364963e4a
jlouis/etorrent_core
etorrent_udp_tracker_mgr.erl
@author < > @doc Handle the UDP tracker protocol . < p > This module is a central module to UDP tracker requests ( BEP-15 %% support). It provides an interface that torrents can use to query the UDP tracker with . The call is currently blocking , so the other %% process is not going to do anything while wai...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent_udp_tracker_mgr.erl
erlang
support). It provides an interface that torrents can use to query process is not going to do anything while waiting for a <p>Apart from serving as the main entry point, this module also implements a Manager gen_server which is used to manage the current outstanding requests, their types and which processes are re...
@author < > @doc Handle the UDP tracker protocol . < p > This module is a central module to UDP tracker requests ( BEP-15 the UDP tracker with . The call is currently blocking , so the other response . The default timeout - i - give - up - time is 60 seconds.</p > < p > The granularity is one process pe...
88336881e6979199b10474808fd03665c7a136badd1429f68e751ff83ec39060
chrisreade/PenroseKiteDart
Main.hs
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeFamilies #-} import Diagrams.Prelude import ChosenBackend (B, mainWith) import DecompExplain --(used for the single figure decompExplainFig) import TileFigExamples includes e.g markedTiles , markedtile...
null
https://raw.githubusercontent.com/chrisreade/PenroseKiteDart/d4a3637fe67d50546dd7352060ba785fb2557d93/app/Main.hs
haskell
# LANGUAGE TypeFamilies # (used for the single figure decompExplainFig) imported for testing / debugging only To produce executable which can output multiple diagrams , use To produce executable which can output multiple diagrams, use normal executable generating single figure newTest -- mistake4Expl...
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # import Diagrams.Prelude import ChosenBackend (B, mainWith) import TileFigExamples includes e.g markedTiles , markedtiles2 , piecesFig , piecesFig2 , newPiecesFig , , fiveInflate , fiveAlternatives , sun6Fig , sun5Over6Fig , ,...
21ea8b2ca10fbae5bb646c8cc29acd52973c5a4a47572b9fdb3cc008ed7a9b20
blindglobe/common-lisp-stat
gaussian.lisp
;;; -*- mode: lisp -*- Time - stamp : < 2010 - 11 - 07 11:38:53 tony > Creation : < 2009 - 03 - 12 17:14:56 tony > ;;; File: gaussian.lisp Author : < > Copyright : ( c)2009 - - , . Currently licensed under MIT ;;; license. See file LICENSE.mit in top-level directory ;;; ...
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/probability/gaussian.lisp
lisp
-*- mode: lisp -*- File: gaussian.lisp license. See file LICENSE.mit in top-level directory for information. Purpose: Gaussian probability law structure and functions What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes', leaving a blo...
Time - stamp : < 2010 - 11 - 07 11:38:53 tony > Creation : < 2009 - 03 - 12 17:14:56 tony > Author : < > Copyright : ( c)2009 - - , . Currently licensed under MIT version .. Think , " 21st Century Schizoid Man " . (in-package :cls-probability) (defun gaussian-probability-density-univ...
5cb34be144dc3e82acea7c851155ede6d148ed8c9a53274a0944345b62dfa76e
hammerlab/biokepi
vaxrank.ml
open Biokepi_run_environment open Common module Configuration = struct type t = { name: string; vaxrank - specific ones vaccine_peptide_length: int; padding_around_mutation: int; max_vaccine_peptides_per_mutation: int; max_mutations_in_report: int; (* isovar-like ones *) min_mapping_qu...
null
https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/bfx_tools/vaxrank.ml
ocaml
isovar-like ones topiary-like ones reporting the rest input other config
open Biokepi_run_environment open Common module Configuration = struct type t = { name: string; vaxrank - specific ones vaccine_peptide_length: int; padding_around_mutation: int; max_vaccine_peptides_per_mutation: int; max_mutations_in_report: int; min_mapping_quality: int; min_variant...
dade4893b40ef8066a11750ba85c218cec41d420fb02c7399503e042edb50111
jellelicht/guix
gnu.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 < > Copyright © 2015 < > ;;; ;;; 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 Foundat...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu.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 © 2014 , 2015 < > Copyright © 2015 < > 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) #:export (use-package-modules use-service-mod...
b63dbf6381ccf9d9c29a32259292bceb7edc2ebae3adb29d5cde1eca3f81f0af
nathanmarz/cascalog
platform.clj
(ns cascalog.cascading.platform (:refer-clojure :exclude [run!]) (:require [jackknife.seq :as s] [jackknife.core :as u] [cascalog.cascading.operations :as ops] [cascalog.cascading.util :as casc] [cascalog.cascading.types :as types] [cascalog.cascading.flow...
null
https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/src/clj/cascalog/cascading/platform.clj
clojure
## Allowed Predicates TODO: Add a dynamic variable that holds an execution context. The Currently predicate macros are expanded in build-rule, in rules.clj. By the time we get here, let's assume that everything has been properly parsed and expanded. TODO: Generator should just be a projection. TODO: Add a valid...
(ns cascalog.cascading.platform (:refer-clojure :exclude [run!]) (:require [jackknife.seq :as s] [jackknife.core :as u] [cascalog.cascading.operations :as ops] [cascalog.cascading.util :as casc] [cascalog.cascading.types :as types] [cascalog.cascading.flow...
7c171f995dc0a2e0906aea8e919509e1bd07a9a42dc8f5452f9864a9aa8aecaf
riverford/datagrep
project.clj
(defproject riverford/datagrep "0.1.1-SNAPSHOT" :description "Grep for datastructures" :url "/" :license "" :dependencies [[org.clojure/clojure "1.8.0"]])
null
https://raw.githubusercontent.com/riverford/datagrep/e6497c13f3f1eb202bcf12045864213c6d07effd/project.clj
clojure
(defproject riverford/datagrep "0.1.1-SNAPSHOT" :description "Grep for datastructures" :url "/" :license "" :dependencies [[org.clojure/clojure "1.8.0"]])
8e21b179f78b1c72379f62f076ace7fe326e695cc07060580ff5e53394692f6d
input-output-hk/cardano-wallet
Node.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE NumericUnderscores # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # -- | Copyright : © 2020 -- License: Ap...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/c4af01b952268b57d3fcd1a0cb476d77dba4f166/lib/wallet/src/Cardano/Wallet/Shelley/Network/Node.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | License: Apache-2.0 Good to read before / additional resources: - Module's documentation in `ouroboros-network/typed-protocols/src/Network/TypedProtocols.hs` * Logging ^ Logging of network layer startup ^ pipelining value by the block heigh ^ Initial blockchain pa...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # Copyright : © 2020 Network Layer for talking to re - written nodes . - Data Diffusio...
e8dc0632374d3aa2163fb0d9a4eb739c849fef84113f7420b5b8dcd1b843ad76
clojure-interop/java-jdk
SynthContext.clj
(ns javax.swing.plaf.synth.SynthContext "An immutable transient object containing contextual information about a Region. A SynthContext should only be considered valid for the duration of the method it is passed to. In other words you should not cache a SynthContext that is passed to you and expect it to re...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/synth/SynthContext.clj
clojure
(ns javax.swing.plaf.synth.SynthContext "An immutable transient object containing contextual information about a Region. A SynthContext should only be considered valid for the duration of the method it is passed to. In other words you should not cache a SynthContext that is passed to you and expect it to re...
1f8b716de04c5836853c703b7cf21fe92b0fbe34f46cef64030b8d0f1b724140
earl-ducaine/cl-garnet
scrolling-labeled-box.lisp
(when (boundp 'win) (opal:destroy win)) (garnet-load "gadgets:scrolling-labeled-box-loader") (create-instance 'win inter:interactor-window (:top 100) (:left 300) (:height 55) (:width 220) (:aggregate (create-instance 'agg opal:aggregate))) (create-instance 'scr-lab-box garnet-gadgets:scrolling-labeled-box (:top ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/doc/previous-version/src/gadgets/garnet-code/scrolling-labeled-box.lisp
lisp
(when (boundp 'win) (opal:destroy win)) (garnet-load "gadgets:scrolling-labeled-box-loader") (create-instance 'win inter:interactor-window (:top 100) (:left 300) (:height 55) (:width 220) (:aggregate (create-instance 'agg opal:aggregate))) (create-instance 'scr-lab-box garnet-gadgets:scrolling-labeled-box (:top ...
48511f13769efba2a74deb5c20ccdf9900c3fce4df220a8eff0efa8264dff859
emina/rosette
forall.rkt
#lang rosette (require rackunit rackunit/text-ui rosette/lib/roseunit rosette/base/core/merge) (define-syntax (check-for/all stx) (syntax-case stx () [(_ (head ([v val mod ...]) expr ...) expected-values) (free-identifier=? #'head #'for/all) #'(check-for/all #:assume #t (head ([v val mod ...]...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/base/forall.rkt
racket
concrete value union union with multiple expressions in the body concrete value union
#lang rosette (require rackunit rackunit/text-ui rosette/lib/roseunit rosette/base/core/merge) (define-syntax (check-for/all stx) (syntax-case stx () [(_ (head ([v val mod ...]) expr ...) expected-values) (free-identifier=? #'head #'for/all) #'(check-for/all #:assume #t (head ([v val mod ...]...
f2a8e11cabe21af31576982f3403ad013207889af0e02fb24d63ec3eb1b5acb6
walmartlabs/lacinia
resolver_errors_test.clj
Copyright ( c ) 2017 - present Walmart , Inc. ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software...
null
https://raw.githubusercontent.com/walmartlabs/lacinia/e483dfcfd9bf23e24f5d2d3715abd9a1e3734782/test/com/walmartlabs/lacinia/resolver_errors_test.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2017 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns com.walmartlabs.lacinia.resolver-errors-test "Tests for errors and exceptions inside field resolvers, and for the exception ...
a7bf6f820cb2f2e96c00b76b02ea608e4e8f5d1235baa26bb56f358488e86c16
Bike/mother
flat-env.lisp
;;;; flat-env.lisp ;;;; "flat" environments, about at simple as possible ;;;; (except hash tables aren't actually that simple *shrug*) (in-package #:mother) (defclass flat-env (environment) ((hash :reader flat-env-hash :initarg :hash :type hash-table))) (defmethod print-object ((obj flat-env) stream) (print-un...
null
https://raw.githubusercontent.com/Bike/mother/be571bcc8ed2a9f6c65a5d73e5e711509499420b/flat-env.lisp
lisp
flat-env.lisp "flat" environments, about at simple as possible (except hash tables aren't actually that simple *shrug*)
(in-package #:mother) (defclass flat-env (environment) ((hash :reader flat-env-hash :initarg :hash :type hash-table))) (defmethod print-object ((obj flat-env) stream) (print-unreadable-object (obj stream :type t :identity t) (write (hash-table-keys (flat-env-hash obj)) :stream stream :length 5))) (defun b...
6c9c55cd7a55ec8e6fe4569bf3469b3c94e8a9214be68c156d8985094c99ad54
defaultxr/cl-collider-tutorial
distortion.lisp
(in-package #:sc) (defugen (crossover-distortion "CrossoverDistortion") (in &optional (amp .5) (smooth .5) (mul 1.0) (add 0.0)) ((:ar (madd (multinew new 'ugen in amp smooth) mul add)))) (defugen (smooth-decimator "SmoothDecimator") (in &optional (rate 44100.0) (smoothing .5) (mul 1.0) (add 0)) ((:ar (ma...
null
https://raw.githubusercontent.com/defaultxr/cl-collider-tutorial/266ae3e6aaa16d35695266ec884c30626fc8e38d/cl-collider/ugens/distortion.lisp
lisp
(in-package #:sc) (defugen (crossover-distortion "CrossoverDistortion") (in &optional (amp .5) (smooth .5) (mul 1.0) (add 0.0)) ((:ar (madd (multinew new 'ugen in amp smooth) mul add)))) (defugen (smooth-decimator "SmoothDecimator") (in &optional (rate 44100.0) (smoothing .5) (mul 1.0) (add 0)) ((:ar (ma...
cae9ee16a5c66b1efb65f5af06c1cdf024b59c236afcdf463e0f1af94c012f58
jyh/metaprl
mfir_token.mli
* The Mfir_token module defines tokens , a syntactic mechanism * for representing strings and operations on strings . * * ------------------------------------------------------------------------ * * @begin[license ] * This file is part of MetaPRL , a modular , higher order * logical framework th...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fir/mfir_token.mli
ocaml
************************************************************************* * Declarations. ************************************************************************* ************************************************************************* * Rewrites. ******************************************************************...
* The Mfir_token module defines tokens , a syntactic mechanism * for representing strings and operations on strings . * * ------------------------------------------------------------------------ * * @begin[license ] * This file is part of MetaPRL , a modular , higher order * logical framework th...
2cf329376f9f65eb7cf0f9087b9409be7b53650eb0f72b8275f81cbac6e9960f
Rober-t/apxr_run
substrate_cpp.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright ( C ) 2009 by , DXNN Research Group , %%% %%% %%% The original release of this source code was introduced and explained in a book ( available for purchase on Amazon ) by : %%% Handbook of Neuroevolution Thro...
null
https://raw.githubusercontent.com/Rober-t/apxr_run/9c62ab028af7ff3768ffe3f27b8eef1799540f05/src/agent_mgr/substrate_cpp.erl
erlang
The original release of this source code was introduced and explained you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KI...
Copyright ( C ) 2009 by , DXNN Research Group , in a book ( available for purchase on Amazon ) by : Handbook of Neuroevolution Through Erlang . Springer 2012 , print ISBN : 978 - 1 - 4614 - 4462 - 6 ebook ISBN : 978 - 1 - 4614 - 4463 - 6 . Licensed under the Apache License , Version 2.0 ( th...
be78c93ea765eab86a79aa3cd0095cb4d4bb3ae5e98536424c563138f0373f75
janestreet/shell
test_unix_extended.ml
open! Core open! Import open! Unix_extended let%expect_test "[Mount_entry.parse_line]" = List.iter [ "/dev/mapper/vg01-root / ext4 defaults 0 0" ; "/dev/mapper/vg01-swap swap swap defaults" ; " extra_whitespace\t\t\t /extra_whitespace \t\t ext4 rw 0 \t " ; "weird_comments /weird_comments ext4 defaul...
null
https://raw.githubusercontent.com/janestreet/shell/5f05077606426c900892398e77c5781831faa540/unix_extended/test/test_unix_extended.ml
ocaml
Errors follow we just assert that we got some positive/non-zero width and height.
open! Core open! Import open! Unix_extended let%expect_test "[Mount_entry.parse_line]" = List.iter [ "/dev/mapper/vg01-root / ext4 defaults 0 0" ; "/dev/mapper/vg01-swap swap swap defaults" ; " extra_whitespace\t\t\t /extra_whitespace \t\t ext4 rw 0 \t " ; "weird_comments /weird_comments ext4 defaul...
3e2ecb9afe3374d85560b585eb1501fbafcc7bed89d476a8d58a6d7466ffe03c
8c6794b6/guile-tjit
closure-conversion.scm
Continuation - passing style ( CPS ) intermediate language ( IL ) Copyright ( C ) 2013 , 2014 , 2015 Free Software Foundation , Inc. ;;;; 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 Founda...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/language/cps/closure-conversion.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library 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 ...
Continuation - passing style ( CPS ) intermediate language ( IL ) Copyright ( C ) 2013 , 2014 , 2015 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , ...
434428879acf02a904199160a08eda0f7ddccb1fa3c43bac912e7c11c38db284
mejgun/haskell-tdlib
GetFileDownloadedPrefixSize.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetFileDownloadedPrefixSize where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Returns file downloaded prefix size from a given offset, in bytes @file_id Identifier of the file @offset Offset from w...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/GetFileDownloadedPrefixSize.hs
haskell
# LANGUAGE OverloadedStrings # | | Returns file downloaded prefix size from a given offset, in bytes @file_id Identifier of the file @offset Offset from which downloaded prefix size needs to be calculated | |
module TD.Query.GetFileDownloadedPrefixSize where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data GetFileDownloadedPrefixSize = GetFileDownloadedPrefixSize offset :: Maybe Int, file_id :: Maybe Int } deriving (Eq) instance Show GetFileDownloadedPr...
836259ba264bda298a7c12831f4677316a035eb8356683c071050d5638f85a85
rbermani/ib-api
Types.hs
# LANGUAGE NamedFieldPuns # { - # LANGUAGE BangPatterns # - } {-# LANGUAGE DeriveDataTypeable #-} module IB.Client.Types where import Control.Concurrent import Control.Concurrent.MVar import Data.Int import System.IO import Data.Data data Request = MktDataReq { rqp_tickerId :: TickerId , mdr_contract ...
null
https://raw.githubusercontent.com/rbermani/ib-api/c303cb0384ca5dd255acb4da482206dea2b6576a/src/IB/Client/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # BUY/SELL/SSHORT LegOpenClose enum values pick an actual (ie non-aggregate) exchange that the contract trades on. DO NOT SET TO SMART. COMBOS combo legs typedef std::vector<ComboLegSPtr> ComboLegList typedef shared_ptr<ComboLegList> ComboLegListSPtr ComboLegListSPtr comboLegs delta ...
# LANGUAGE NamedFieldPuns # { - # LANGUAGE BangPatterns # - } module IB.Client.Types where import Control.Concurrent import Control.Concurrent.MVar import Data.Int import System.IO import Data.Data data Request = MktDataReq { rqp_tickerId :: TickerId , mdr_contract :: Contract , mdr_genericTicks :...
79690b894c301f90b2014d81959d8d730ed0f455ea06844f1ca229eeed258e50
restyled-io/restyled.io
Redis.hs
module Restyled.Redis ( HasRedis(..) , runRedis -- * Re-export , Redis , Connection , checkedConnect -- * Actions we use -- | FIXME: encapsulate our own push/pop? , llen , lpush , brpop -- * Convenience , encodeStrict ) where import Restyled.Prelude import Da...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/f9f34b6ad572d2c9ee5689367329916e65596581/src/Restyled/Redis.hs
haskell
* Re-export * Actions we use | FIXME: encapsulate our own push/pop? * Convenience
module Restyled.Redis ( HasRedis(..) , runRedis , Redis , Connection , checkedConnect , llen , lpush , brpop , encodeStrict ) where import Restyled.Prelude import Database.Redis (Connection, Redis, brpop, checkedConnect, llen, lpush) import qualified Database.Redis as Redis ...
caff10853c5beb3329489dce0302ea1a0f75edbb975d8cef01cfc8837d1d8569
mlabs-haskell/plutus-simple-model
Spec.hs
import Prelude import Test.Tasty (TestTree, defaultMain, testGroup) import Plutus.Model ( MockConfig, defaultAlonzo, defaultBabbageV1, defaultBabbageV2, ) import Suites.Plutus.Model.Script.V1 qualified as Script.V1 import Suites.Plutus.Model.Script.V2 qualified as Script.V2 import Suites.Plutus.Model.User q...
null
https://raw.githubusercontent.com/mlabs-haskell/plutus-simple-model/da3893cf969f37b8ce971290958b69289f303aff/psm/test/Spec.hs
haskell
import Prelude import Test.Tasty (TestTree, defaultMain, testGroup) import Plutus.Model ( MockConfig, defaultAlonzo, defaultBabbageV1, defaultBabbageV2, ) import Suites.Plutus.Model.Script.V1 qualified as Script.V1 import Suites.Plutus.Model.Script.V2 qualified as Script.V2 import Suites.Plutus.Model.User q...
b6a55c7c524aa168bc0c1690523501b82ea855241e5bf1a3f7c07b1872d8ae4d
vikram/lisplibraries
lispworks.lisp
(in-package #:bordeaux-threads) documentation on the LispWorks Multiprocessing interface can be found at ;;; -156.htm (mp:initialize-multiprocessing) ;;; Thread Creation (defmethod make-thread (function &key name) (mp:process-run-function name nil function)) (defmethod current-thread () mp:*current-process*)...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/bordeaux-threads/src/lispworks.lisp
lisp
-156.htm Thread Creation Resource contention: locks and recursive locks Resource contention: condition variables Introspection/debugging
(in-package #:bordeaux-threads) documentation on the LispWorks Multiprocessing interface can be found at (mp:initialize-multiprocessing) (defmethod make-thread (function &key name) (mp:process-run-function name nil function)) (defmethod current-thread () mp:*current-process*) (defmethod threadp ((object mp:...
bf16ddd3320adf339687f134bbb7066c080871a2c8e6428884ae8cfe0323b59e
alanz/ghc-exactprint
ExtraConstraints1.hs
# LANGUAGE PartialTypeSignatures # module ExtraConstraints1 where arbitCs1 :: _ => a -> String arbitCs1 x = show (succ x) ++ show (x == x) arbitCs2 :: (Show a, _) => a -> String arbitCs2 x = arbitCs1 x arbitCs3 :: (Show a, Enum a, _) => a -> String arbitCs3 x = arbitCs1 x arbitCs4 :: (Eq a, _) => a -> String arbitC...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/ExtraConstraints1.hs
haskell
# LANGUAGE PartialTypeSignatures # module ExtraConstraints1 where arbitCs1 :: _ => a -> String arbitCs1 x = show (succ x) ++ show (x == x) arbitCs2 :: (Show a, _) => a -> String arbitCs2 x = arbitCs1 x arbitCs3 :: (Show a, Enum a, _) => a -> String arbitCs3 x = arbitCs1 x arbitCs4 :: (Eq a, _) => a -> String arbitC...
e2ebe79f8e31f5b5c77b06fd5c84b2f3e34b532f7b5718be5f1e8d47b322577b
racket/gui
info.rkt
#lang info (define scribblings '(("framework.scrbl" (multi-page) (gui-library 100)))) (define test-responsibles '((all robby)))
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-doc/scribblings/framework/info.rkt
racket
#lang info (define scribblings '(("framework.scrbl" (multi-page) (gui-library 100)))) (define test-responsibles '((all robby)))
076829201e2444610c0974c430dc85beb02b83a20315017fe865ad3d29633f2a
SquircleSpace/shcl
shell-form.lisp
Copyright 2018 ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distributed under the Li...
null
https://raw.githubusercontent.com/SquircleSpace/shcl/cc8d3c841b8b64b6715bf8f238fb19cd6093a793/test/shell-form.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2018 distributed under the License is distributed on an " AS IS " BASIS , (defpackage :shcl/test/shell-form (:use :common-lisp :prove :shcl/core/utility :shcl/core/shell-form :shcl/test/foundation) (:import-from :shcl/core/sequence #:lazy-sequence #:immutable-cons) (:import-from :shcl/cor...
f4c608c62a671c6351c08f598882a2be11d674693154621d9735ae1bd55fc84a
SahilKang/cl-snake
state.lisp
;;; =========================================================================== Copyright ( C ) 2018 < > ;;; ;;; This file is part of cl-snake. ;;; ;;; cl-snake 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 Foundat...
null
https://raw.githubusercontent.com/SahilKang/cl-snake/a9b252dd59967de1104884679b556179b2cf7541/src/state.lisp
lisp
=========================================================================== This file is part of cl-snake. cl-snake is free software: you can redistribute it and/or modify (at your option) any later version. cl-snake is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the ...
Copyright ( C ) 2018 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package #:state) (defmacro defconst (name value) `(load-time-value (d...
a0891e06c19b00b83daee00e5d42c08a800612b45e5595fad8b710904aaba1dd
henryw374/cljc.java-time
instant.cljs
(ns cljc.java-time.instant (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Instant]])) (def min (goog.object/get java.time.Instant "MIN")) (def epoch (goog.object/get java.time.Instant "EPOCH")) (def max...
null
https://raw.githubusercontent.com/henryw374/cljc.java-time/2e47e8104bc2ec7f68a01bf751a7b9a2dee391b4/src/cljc/java_time/instant.cljs
clojure
(ns cljc.java-time.instant (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Instant]])) (def min (goog.object/get java.time.Instant "MIN")) (def epoch (goog.object/get java.time.Instant "EPOCH")) (def max...
047f3f3e2107b0973fed417b7aae48c80bb28c84d3bf5095b7ecf250843201ec
jeapostrophe/racket-langserver
text-document.rkt
#lang racket/base (require data/interval-map framework json racket/gui syntax-color/module-lexer syntax-color/racket-lexer drracket/check-syntax syntax/modread "check-syntax.rkt" "error-codes.rkt" "interfaces.rkt" "json-u...
null
https://raw.githubusercontent.com/jeapostrophe/racket-langserver/fc37990ebaf77f0d606c10782e5012f73d663028/text-document.rkt
racket
Match Expanders must a position `Pos`, defined in interfaces.rkt should be `string | InlayHintLabelPart[]` but let's stay in simple case for now Methods TODO: send user diagnostic or something Hover request be used as the result of the response message. We want signatures from `scribble/blueboxes` as they ...
#lang racket/base (require data/interval-map framework json racket/gui syntax-color/module-lexer syntax-color/racket-lexer drracket/check-syntax syntax/modread "check-syntax.rkt" "error-codes.rkt" "interfaces.rkt" "json-u...
64206c50dd4f2641dabe06421f3983630cbd115b0318afeab5be89e20b5d5fb4
frenetic-lang/ocaml-openflow
SDN_OpenFlow0x04.ml
module Int32 = Core.Std.Int32 module Int64 = Core.Std.Int64 module AL = SDN_Types module Core = OpenFlow0x04_Core module Msg = OpenFlow0x04.Message exception Invalid_port of Int32.t with sexp let from_portId (pport_id : AL.portId) : Core.portId = if Int32.to_int64 pport_id > 0xffffff00L then (* pport_id <= OFPP_M...
null
https://raw.githubusercontent.com/frenetic-lang/ocaml-openflow/289ffb8a692cf32b8413cc58044aae9c151ddd44/lib/SDN_OpenFlow0x04.ml
ocaml
pport_id <= OFPP_MAX XXX(seliopou): Maybe table should take the portid OFPVID_PRESENT calculates the watch port match on vlan_none, then drop the strip_vlan
module Int32 = Core.Std.Int32 module Int64 = Core.Std.Int64 module AL = SDN_Types module Core = OpenFlow0x04_Core module Msg = OpenFlow0x04.Message exception Invalid_port of Int32.t with sexp let from_portId (pport_id : AL.portId) : Core.portId = raise (Invalid_port pport_id) else pport_id let to_payload...
0e3109c247b0c5e50f400bab99d84ef3259b8391961a343f9a91cb01edc2b6c9
karamellpelle/grid
ShadeDot.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/LevelPuzzleData/Fancy/ShadeDot.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzle.LevelPuzzleData.Fancy.Shade...
69eeb075587aeec91353b2e41436cf22f3da58af96116d6406ffc15ba66ce712
sigrlami/haskellcosm
Types.hs
{-# LANGUAGE OverloadedStrings #-} module Types where import Control.Applicative import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as LBS import Data.Csv (DefaultOrdered (headerOrder), FromField (parseField), ...
null
https://raw.githubusercontent.com/sigrlami/haskellcosm/4b2dcb89a82cf3f2e6fd191e942c4290c2bb84e1/app/analysis/src/Types.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ { socialLinkedin :: T.Text , socialFacebook :: T.Text , socialTwitter :: T.Text , branches :: { companyId :: Int }
module Types where import Control.Applicative import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as LBS import Data.Csv (DefaultOrdered (headerOrder), FromField (parseField), ...
206928bdea3d918f7699f26599cd955d231df81143f8f33821cf210f6d282344
silviucpp/erlkaf
test_consume_produce.erl
-module(test_consume_produce). -include("erlkaf.hrl"). -define(TOPIC, <<"test_consume_produce">>). -define(PRODUCER_CLIENT, erlkaf_producer). -export([ % api create/0, create/1, produce/2, produce/3, produce/4, produce_multiple/4, % consumer callbacks init/4, handle_messa...
null
https://raw.githubusercontent.com/silviucpp/erlkaf/f8c47c7c5bc9cb64f84327c2a2d37bf94baeaea0/test/test_consume_produce.erl
erlang
api consumer callbacks producer callbacks stats_callback is defined in both erlkaf_consumer_callbacks and erlkaf_producer_callbacks -behaviour(erlkaf_producer_callbacks). create consumer create producer consumer callbacks producer callbacks internals
-module(test_consume_produce). -include("erlkaf.hrl"). -define(TOPIC, <<"test_consume_produce">>). -define(PRODUCER_CLIENT, erlkaf_producer). -export([ create/0, create/1, produce/2, produce/3, produce/4, produce_multiple/4, init/4, handle_message/2, delivery_report/2, ...
fd5ddc523fba673c4a0c6bb31e23392d36cebda6995f1cd3e233831c45cc4d9b
bhk/scam
math0-q.scm
(require "core.scm") (require "math0.scm" &private) ;;-------------------------------- Utilities ;;-------------------------------- (define `U18 (.. U9 T9)) (define `U27 (.. U18 T9)) Decimal digits to U : ( U 123 ) -- > " 01 011 0111 " ;; (define (U d) (subst "A" U10 "I" U18 "R" U27 (d2u d))) Decimal dig...
null
https://raw.githubusercontent.com/bhk/scam/59d7c02e673f1faebd0b7625d8c595daaa5efc51/math0-q.scm
scheme
-------------------------------- -------------------------------- -------------------------------- Tests -------------------------------- u2d & d2u n>0? u<0? 0- uf-get-lz uf-trim-lz u-carry overflow should produce a mal-formed result uf-carry overflow produces modulo-1 result uf-add u-norm-uns uv-compl...
(require "core.scm") (require "math0.scm" &private) Utilities (define `U18 (.. U9 T9)) (define `U27 (.. U18 T9)) Decimal digits to U : ( U 123 ) -- > " 01 011 0111 " (define (U d) (subst "A" U10 "I" U18 "R" U27 (d2u d))) Decimal digits to UV : ( UV " 123 " ) -- > " 01 011 0111 " (define (UV d) (u2uv ...
9a42b2979afac5730c8e5e15bda5d6e82c746edbaa3a3214e7dd0dd1d7f43f94
arttuka/reagent-material-ui
static_date_range_picker_pro.cljs
(ns reagent-mui.x.static-date-range-picker-pro "Imports @mui/x-date-pickers-pro/StaticDateRangePicker as a Reagent component. Original documentation is at -pickers/static-date-range-picker/ ." (:require [reagent.core :as r] ["@mui/x-date-pickers-pro/StaticDateRangePicker" :as MuiStaticDateRangePicker...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/x/reagent_mui/x/static_date_range_picker_pro.cljs
clojure
(ns reagent-mui.x.static-date-range-picker-pro "Imports @mui/x-date-pickers-pro/StaticDateRangePicker as a Reagent component. Original documentation is at -pickers/static-date-range-picker/ ." (:require [reagent.core :as r] ["@mui/x-date-pickers-pro/StaticDateRangePicker" :as MuiStaticDateRangePicker...
d761678d552833cb9d6903020ab7f0815ad1d2f8b2328b6b50306bfd1f261beb
RefactoringTools/HaRe
FunIn4.expected.hs
module FunIn4 where --Any unused parameter to a definition can be removed. In this example : remove ' x ' will fail , as ( x , y ) is treated as one parameter and ' y ' is used . foo (x,y) = h + t where (h,t) = head $ zip [1..7] [3..y] main :: Int main = foo (10, 20)
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/RmOneParameter/FunIn4.expected.hs
haskell
Any unused parameter to a definition can be removed.
module FunIn4 where In this example : remove ' x ' will fail , as ( x , y ) is treated as one parameter and ' y ' is used . foo (x,y) = h + t where (h,t) = head $ zip [1..7] [3..y] main :: Int main = foo (10, 20)
fee11a636cbb80934d27bd6d8e8ccd2bd4fce3698c4fdb22dc3d84b60ce8c7cf
Quviq/epoch-eqc
aeu_mp_trees_eqc.erl
Author : %%% Description : Created : 17 Jan 2018 by -module(aeu_mp_trees_eqc). -compile(export_all). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -import(eqc_statem, [tag/2]). %% -- Generators ------------------------------------------------------------- gen_d...
null
https://raw.githubusercontent.com/Quviq/epoch-eqc/87fb692697f9377b95a3fa3f04efce75d8b52f87/aeutils_eqc/aeu_mp_trees_eqc.erl
erlang
Description : -- Generators ------------------------------------------------------------- -- State ------------------------------------------------------------------ -- Commands --------------------------------------------------------------- --- new --- --- put --- --- get --- --- delete --- --- to_list --- -...
Author : Created : 17 Jan 2018 by -module(aeu_mp_trees_eqc). -compile(export_all). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -import(eqc_statem, [tag/2]). gen_data() -> ?LET(Keys, list(gen_key()), ?LET(Vals, vector(length(Keys), gen_value()), ...
06104693ce94f647106d7406ec6397ae302f710676f8cfb22c791fc9e35be440
mysql-otp/mysql-otp
mysql_tests.erl
MySQL / OTP – MySQL client library for Erlang / OTP Copyright ( C ) 2014 - 2016 2017 %% %% This file is part of MySQL/OTP. %% MySQL / OTP 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 ...
null
https://raw.githubusercontent.com/mysql-otp/mysql-otp/076bdef2c96b10d44d29ad01bfa8253ee7ef9870/test/mysql_tests.erl
erlang
This file is part of MySQL/OTP. the terms of the GNU Lesser General Public License as published by the Free any later version. This program is distributed in the hope that it will be useful, but WITHOUT FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this pro...
MySQL / OTP – MySQL client library for Erlang / OTP Copyright ( C ) 2014 - 2016 2017 MySQL / OTP is free software : you can redistribute it and/or modify it under Software Foundation , either version 3 of the License , or ( at your option ) ANY WARRANTY ; without even the implied warranty ...
ccf536cd2ee30a9940ae4af323ea0465c331b63aced9742508e2d38b252fd83e
sarabander/p2pu-sicp
2.36.scm
(define (accumulate-n op init seqs) (if (null? (car seqs)) empty (cons (accumulate op init (map car seqs)) (accumulate-n op init (map cdr seqs))))) (define s '((1 2 3) (4 5 6) (7 8 9) (10 11 12))) ' ( 22 26 30 )
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/2.2/2.36.scm
scheme
(define (accumulate-n op init seqs) (if (null? (car seqs)) empty (cons (accumulate op init (map car seqs)) (accumulate-n op init (map cdr seqs))))) (define s '((1 2 3) (4 5 6) (7 8 9) (10 11 12))) ' ( 22 26 30 )
3ac7687890cffc5aa3091427231c4dd04be65c903496d395fc640abc19ac4dc5
lspitzner/brittany
Test293.hs
func = [ (abc, (1111, 1111)) , (def, (2, 2)) , foo -- comment ]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test293.hs
haskell
comment
func = [ (abc, (1111, 1111)) , (def, (2, 2)) ]
51c68a3b5266357834a73c149ba8e58efc46b3056a697f0f193b6e487c285935
ocamllabs/ocaml-modular-implicits
weaktest.ml
(*************************************************************************) (* *) (* OCaml *) (* *) , pr...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/misc/weaktest.ml
ocaml
*********************************************************************** OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2008 Institut National de Recherche en Informatique et under the terms of the Q Public License version 1.0 . let debug = false;; open Printf;; module Hashed = struct type t = string list;; let equal x y = epri...
acb3484874c05ef533be5bf2134a8cc808fe585e4d5f6e05727785f442806f9d
DimaSamoz/mezzo
Chords.hs
----------------------------------------------------------------------------- -- | -- Module : Mezzo.Model.Harmony.Chords -- Description : Models of chords Copyright : ( c ) License : MIT -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -- Types and type funct...
null
https://raw.githubusercontent.com/DimaSamoz/mezzo/13365da8907a714e34540f7a1d99898b67816cc9/src/Mezzo/Model/Harmony/Chords.hs
haskell
--------------------------------------------------------------------------- | Module : Mezzo.Model.Harmony.Chords Description : Models of chords Maintainer : Stability : experimental Portability : portable Types and type functions modelling harmonic chords. --------------------------------------...
Copyright : ( c ) License : MIT module Mezzo.Model.Harmony.Chords ( DyadType (..) , TriadType (..) , TetradType (..) , Inversion (..) , DyaType (..) , TriType (..) , TetType (..) , Inv (..) , InvertChord , ChordType (..) , Cho (..) , FromChord ...
67146c7f8d14866ef577d293efd21acd87191a8bd793e8c2906a0bbdcdbd7fde
fdopen/uwt
t_pipe.ml
open Lwt.Infix module U = Uwt open Uwt.Pipe open Common module Echo_server = struct let addr = let name = Printf.sprintf "uwt_pipe_%d_%d" (Unix.getpid ()) (Unix.getuid ()) in match Sys.win32 with | true -> "\\\\?\\pipe\\" ^ name | false -> Filename.concat (Filename.get_temp_dir_name ()) nam...
null
https://raw.githubusercontent.com/fdopen/uwt/44276aa6755b92eddc9ad58662a968afad243e8b/test/t_pipe.ml
ocaml
no, i won't debug obsolete systems ...
open Lwt.Infix module U = Uwt open Uwt.Pipe open Common module Echo_server = struct let addr = let name = Printf.sprintf "uwt_pipe_%d_%d" (Unix.getpid ()) (Unix.getuid ()) in match Sys.win32 with | true -> "\\\\?\\pipe\\" ^ name | false -> Filename.concat (Filename.get_temp_dir_name ()) nam...
dfbd45d785b4461f182b7c348b1289e1caabd8f0daea2758d5aed626c54f2687
darrenldl/ProVerif-ATP
graph.mli
type write_mode = | Append | Overwrite type bfs_traversal_direction = | Top_to_bottom | Bottom_to_top type root_type = | Top | Bottom module type Base = sig type id val first_id : id val next_id : id -> id type data type node = | Data of data | Group val label_internal : id -> no...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/narrator/src/graph.mli
ocaml
type write_mode = | Append | Overwrite type bfs_traversal_direction = | Top_to_bottom | Bottom_to_top type root_type = | Top | Bottom module type Base = sig type id val first_id : id val next_id : id -> id type data type node = | Data of data | Group val label_internal : id -> no...
79817a3bde094ec3907bf56dc6f7df8599ab0d31637f90d8e4a8b02de3ec37dd
NorfairKing/habitscipline
Main.hs
module Main where import Habitscipline.API.Server main :: IO () main = habitsciplineAPIServer
null
https://raw.githubusercontent.com/NorfairKing/habitscipline/b4baaefef7376868eeb8f374cadfd83d1ddc0972/habitscipline-api-server/app/Main.hs
haskell
module Main where import Habitscipline.API.Server main :: IO () main = habitsciplineAPIServer
844135568d330e834ff9c62096fb88d1512dd724671b8b62d9c4428c8c1014f6
bennn/dissertation
info.rkt
#lang setup/infotab (define scribblings '(("graph.scrbl" ())))
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/mbta/base/graph/graph/info.rkt
racket
#lang setup/infotab (define scribblings '(("graph.scrbl" ())))
1ae32fc544b9c868c11627926b0bdd42ab12852c698531aaf14bf34ad14aca23
esengie/fpl-exploration-tool
Common.hs
# LANGUAGE TemplateHaskell # module CodeGen.RightSide.Common where import Control.Monad.State import Control.Monad.Except (throwError, lift) import Control.Lens import Language.Haskell.Exts.Simple import qualified Data.Map as Map import AST hiding (Var, name, Name) import qualified AST (Term(Var), Name) import C...
null
https://raw.githubusercontent.com/esengie/fpl-exploration-tool/bf655e65d215da4d7cae703dda7a7fde1a180b43/src/langGenerator/CodeGen/RightSide/Common.hs
haskell
T def - need forall f() def - need funsyms if we have forall x.T, but then xrt.T = term, we store x.T -> (xrt, term) this will be concatted we define some metavars on the right of :, others we need to check various counters - the outer monad will have to use this need this to get the kinds of funsyms |- g def -
# LANGUAGE TemplateHaskell # module CodeGen.RightSide.Common where import Control.Monad.State import Control.Monad.Except (throwError, lift) import Control.Lens import Language.Haskell.Exts.Simple import qualified Data.Map as Map import AST hiding (Var, name, Name) import qualified AST (Term(Var), Name) import C...
239e96364cb1abac0b7ca4c5ea5a4bdda7fd22f8efc42c14e9ab93a1059a8f1f
EasyCrypt/easycrypt
ecProofTerm.ml
(* -------------------------------------------------------------------- *) open EcUtils open EcLocation open EcParsetree open EcIdent open EcTypes open EcFol open EcEnv open EcMatching open EcCoreGoal module L = EcLocation module PT = EcProofTyping (* -----------------------------------------------------------------...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/2e53a4272c940b41400de9ce42c8db7f6a514ee7/src/ecProofTerm.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -----------------------------------...
open EcUtils open EcLocation open EcParsetree open EcIdent open EcTypes open EcFol open EcEnv open EcMatching open EcCoreGoal module L = EcLocation module PT = EcProofTyping type pt_env = { pte_pe : proofenv; pte_hy : LDecl.hyps; pte_ue : EcUnify.unienv; pte_ev : EcMatching.mevmap ref; } type pt_ev = { pt...
01c2044acf57316608cde7707df5ed01c5fba9db4d064b090f7bebcd727bd31b
jacobobryant/eelchat
icons.clj
(ns com.eelchat.ui.icons) (def data {:x {:view-box "0 0 384 512", :path "M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15...
null
https://raw.githubusercontent.com/jacobobryant/eelchat/840590638d934a087a143eb7981cc72d3e5803b0/src/com/eelchat/ui/icons.clj
clojure
(ns com.eelchat.ui.icons) (def data {:x {:view-box "0 0 384 512", :path "M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15...
eadc4e3ac11ff6ebfa245b1a99fa6a52c866383893bd5d1790178d317e1a02dc
tdp2110/HaskellTiger
Absyn.hs
module Absyn ( Var(..) , Exp(..) , Dec(..) , Ty(..) , Oper(..) , Field(..) , FunDec(..) , TyDec(..) , Pos(..) ) where import Symbol import qualified Data.Text as T data Pos = Pos { absChrOffset :: !Int , lineno :: !Int , colno :: !Int} ...
null
https://raw.githubusercontent.com/tdp2110/HaskellTiger/f6ce2b92727fb8702501ee273d2702c23cc2edad/compiler/Absyn.hs
haskell
module Absyn ( Var(..) , Exp(..) , Dec(..) , Ty(..) , Oper(..) , Field(..) , FunDec(..) , TyDec(..) , Pos(..) ) where import Symbol import qualified Data.Text as T data Pos = Pos { absChrOffset :: !Int , lineno :: !Int , colno :: !Int} ...
dc159583d35df9e555083ff3a2455cdbd13c106681f8f251309ce9700193b4e4
manuel-serrano/hop
profile.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / hopscript / profile.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/hopscript/profile.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / hopscript / profile.scm * / * Author : * / * Creation : Tue Feb 6 17:28:45 2018 * / * Last change : Mon May 11 15:56:07 2020 ( serrano ) * / * Cop...
ec54daefc9508c6e87cf20f57b290361350b56e08877bc5a7763419c06a44d42
ucsd-progsys/nate
ezyGenerate.mli
open EzyUtils open EzyOcamlmodules open EzyTypingCoreTypes open EzyErrors open EzyEnrichedAst module EzyPredef : sig val bool_type : ExtLocation.t -> Ty.t val unit_type : ExtLocation.t -> Ty.t val exn_type : ExtLocation.t -> Ty.t val int_type : ExtLocation.t -> Ty.t val array_type : ExtLocation.t...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/easyocaml/ezyGenerate.mli
ocaml
* PostProcess.t contains information which must be checked after the * generation (unbound_vars) or after unification (type_annotations) - * after generation anyway. * Errors which do not allow unification and raised before that * Errors which are reported after unification * Type annotations are to be checke...
open EzyUtils open EzyOcamlmodules open EzyTypingCoreTypes open EzyErrors open EzyEnrichedAst module EzyPredef : sig val bool_type : ExtLocation.t -> Ty.t val unit_type : ExtLocation.t -> Ty.t val exn_type : ExtLocation.t -> Ty.t val int_type : ExtLocation.t -> Ty.t val array_type : ExtLocation.t...
fb7d421c26f5cf4112151fb064d037d72eb55d9faedb06457dcd31372ee0100c
tonyg/kali-scheme
link-packages.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Static linker . Does n't work very well this way ( debug info is ; screwed up), so it's probably better to continue using linker.image ; instead. (define-structure linker linker-interface (...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/link-packages.scm
scheme
screwed up), so it's probably better to continue using linker.image instead. with-fresh-compiler-state set-package-integrate?! name->symbol collect-packages compile-package make closure to pass to write-image with-fresh-compiler-state ? find-free-names-in-syntax-rules usual-variable-type error force-output filter nam...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Static linker . Does n't work very well this way ( debug info is (define-structure linker linker-interface (open scheme-level-2 compiler write-images debuginfo packages reification fil...
57a2d33d5c615a3e11260b8446fbc2af18f338cc36c65592456013f6ac02c25d
maximedenes/native-coq
assumptions.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/library/assumptions.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * A section variable or a Let defini...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Env...
7945b4f15b30d2e7d6a5e93f3db7e55c8327460a6c5e166c738169ceec93d79c
BinaryAnalysisPlatform/bap
bap_knowledge.ml
open Core_kernel[@@warning "-D"] [@@warning "-D"] open Monads.Std module Unix = Caml_unix [@@warning "-49"] type ('a,'b) eq = ('a,'b) Type_equal.t = T : ('a,'a) eq module Order = struct type partial = LT | EQ | GT | NC [@@deriving sexp, equal] module type S = sig type t val order : t -> t -> partial en...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/b8e12b3708cdcec613c85ce27ded6948514f1654/lib/knowledge/bap_knowledge.ml
ocaml
invariant, keywords are always prefixed with [:] the private interface preceeds the interval equal to the start inside of the interval equal to the end follows the interval h(x) = h(y) * h(z) = m-2 * h(LL (w,a,EQ(x,b,y)))=m * h(EQ(x,b,y))=m-1 * h(w)=m-2 * h(x)=m-2 ...
open Core_kernel[@@warning "-D"] [@@warning "-D"] open Monads.Std module Unix = Caml_unix [@@warning "-49"] type ('a,'b) eq = ('a,'b) Type_equal.t = T : ('a,'a) eq module Order = struct type partial = LT | EQ | GT | NC [@@deriving sexp, equal] module type S = sig type t val order : t -> t -> partial en...
8ce6808fe73c939aff1c598186b429d12f548a530ee20c82c18616ba0bca1c96
BekaValentine/SimpleFP-v2
Program.hs
{-# OPTIONS -Wall #-} -- | This module defines what it means to be a program in the simply typed lambda calculus w/ non - parametric user defined types ( eg , ) . module Simple.Core.Program where import Utils.Pretty import Simple.Core.ConSig import Simple.Core.Term import Simple.Core.Type import Data.List (...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Simple/Core/Program.hs
haskell
# OPTIONS -Wall # | This module defines what it means to be a program in the simply typed | A program is just a series of 'Statement's. | A term can be declared either with a simple equality, as in > let not : Bool -> Bool > = \b -> case b of > | True -> False > | False -> True > ...
lambda calculus w/ non - parametric user defined types ( eg , ) . module Simple.Core.Program where import Utils.Pretty import Simple.Core.ConSig import Simple.Core.Term import Simple.Core.Type import Data.List (intercalate) newtype Program = Program [Statement] instance Show Program where show (Pro...
098358cbe3ddbfe97b2ab636c7bbe6e02c327ca6d87dd5c3260ae65ced1f41a5
conjure-cp/conjure
TildeLt.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.TildeLt where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Strict as M ...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/TildeLt.hs
haskell
aeson unordered-containers vector
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.TildeLt where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpTildeLt x = OpTildeLt x x deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable, Ty...
ed9340ba17e24ac7fdc908b764140915a123b7407490f2683cf260621d420d54
openmusic-project/openmusic
xml.lisp
;;;; -*- mode: lisp -*- ;;;; $ I d : xml.lisp , v 1.14 2005/11/20 14:24:34 scaekenberghe Exp $ ;;;; ;;;; This is a Common Lisp implementation of a basic but usable XML parser. The parser is non - validating and not complete ( no CDATA ) . Namespace and entities are handled . ;;;; The API into the parser is a pure...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/api/externals/XML/S-XML/xml.lisp
lisp
-*- mode: lisp -*- This is a Common Lisp implementation of a basic but usable XML parser. The API into the parser is a pure functional parser hook model that comes from SSAX, see also /~oleg/ftp/Scheme/xml.html or You are granted the rights to distribute and use this software (), also known as the LLGPL. er...
$ I d : xml.lisp , v 1.14 2005/11/20 14:24:34 scaekenberghe Exp $ The parser is non - validating and not complete ( no CDATA ) . Namespace and entities are handled . Different DOM models are provided , an XSML , an LXML and a xml - element struct based one . Copyright ( C ) 2002 , 2003 , 2004 , 2005 , Beta...
5fe265219979f6a0b0f6edd5dbdcf36ee21c36c06b7b64faaeea4d29961f05dc
fredlund/McErlang
mce_erl_stacks.erl
Copyright ( c ) 2009 , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions a...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/languages/erlang/src/mce_erl_stacks.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2009 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author 2006 - 2009 @private -module(mce_erl_stacks). -export([mkSend/2,mkLet/2,mkTry/3,tryValue/3,tryHandler/2,parseS...
222935b88fa49ed0ca4f493a3af42453831cb061fdf6d4a02c2e48be07e888c1
triffon/fp-2022-23
08-transpose.rkt
#lang racket ще използваме тази функция в други файлове (provide transpose) (define (column-count matrix) (length (car matrix))) (define (get-column matrix index) (map (lambda (list) (list-ref list index)) matrix)) (define (transpose matrix) (define (transpose-helper start end) (if (> start...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/0698febf5bde7dd2b819acde64958acb7d2e97fb/exercises/inf2/07/08-transpose.rkt
racket
#lang racket ще използваме тази функция в други файлове (provide transpose) (define (column-count matrix) (length (car matrix))) (define (get-column matrix index) (map (lambda (list) (list-ref list index)) matrix)) (define (transpose matrix) (define (transpose-helper start end) (if (> start...
5fdf6eff3ceda5d7029e71dc7a0da24c2901dbf5f81e55333f05b7c9372e9668
racket/rackunit
info.rkt
#lang info (define collection 'multi) (define deps '("base")) (define pkg-desc "Utilities for interoperating between testing frameworks") (define version "1.1") (define pkg-authors '(florence)) (define license '(Apache-2.0 OR MIT))
null
https://raw.githubusercontent.com/racket/rackunit/6c04ee267d258a13f9c5cbc437dac60234e54ef4/testing-util-lib/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base")) (define pkg-desc "Utilities for interoperating between testing frameworks") (define version "1.1") (define pkg-authors '(florence)) (define license '(Apache-2.0 OR MIT))
9eee22b56f18730586c91526a50a3a124e7779d9943bf6c22e09f1b9572d7df1
jlongster/swank-gambit
swank-presentations.scm
;;;============================================================================ ;;; File: "swank-presentations.scm" Copyright ( c ) 2010 by , All Rights Reserved . This software is released under a dual LGPL and Apache 2 license . These licenses are included with this software in LGPL.txt and ;;; LICENSE-2.0...
null
https://raw.githubusercontent.com/jlongster/swank-gambit/81c8de2aa11b03925f9a1a624f3569c3155af7c6/swank-presentations.scm
scheme
============================================================================ File: "swank-presentations.scm" LICENSE-2.0.txt. ============================================================================ This implementation of presentations for Gambit Scheme is experimental, incomplete, and currently requires patchi...
Copyright ( c ) 2010 by , All Rights Reserved . This software is released under a dual LGPL and Apache 2 license . These licenses are included with this software in LGPL.txt and slime-presentation.el with slime-presentations-gambit.patch - which (define *record-repl-results* #t) (define (present-rep...
e7330a8ea5789e2a077b9dd73fba552a74d576abcbeeccaf04a229a5d2b17f1a
eeng/mercurius
event_notifier.clj
(ns mercurius.core.adapters.controllers.event-notifier "Listens to domain events and publishes them to topics so they can be pushed to the interested clients." (:require [mercurius.core.domain.messaging.event-bus :refer [listen]] [mercurius.core.adapters.messaging.pub-sub :refer [publish]])) (defn push...
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/src/mercurius/core/adapters/controllers/event_notifier.clj
clojure
Notify the frontend that some trade on the ticker was made (possibly for different users) so it can update the list of global trades. Notify each user involved so we can display a message that a trade for one of its orders was executed.
(ns mercurius.core.adapters.controllers.event-notifier "Listens to domain events and publishes them to topics so they can be pushed to the interested clients." (:require [mercurius.core.domain.messaging.event-bus :refer [listen]] [mercurius.core.adapters.messaging.pub-sub :refer [publish]])) (defn push...