_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
b98b665a949af84432e1a8ae5824f2a3aa84132ba5e124962cdc5e1059020b6a
greglook/clj-cbor
core_test.clj
(ns clj-cbor.core-test (:require [clj-cbor.codec :as codec] [clj-cbor.core :as cbor] [clj-cbor.test-utils :refer [decode-hex-all]] [clojure.test :refer [deftest testing is]]) (:import (java.io ByteArrayInputStream File IOException) java.time.Instant)) (deftest codec-const...
null
https://raw.githubusercontent.com/greglook/clj-cbor/ff3ec660fe40789e2bf97b87b6a5e9be0361b0b2/test/clj_cbor/core_test.clj
clojure
(ns clj-cbor.core-test (:require [clj-cbor.codec :as codec] [clj-cbor.core :as cbor] [clj-cbor.test-utils :refer [decode-hex-all]] [clojure.test :refer [deftest testing is]]) (:import (java.io ByteArrayInputStream File IOException) java.time.Instant)) (deftest codec-const...
ae082487903857e776fe972f324de1940e0648f9979d7d5dc0cb90626566a3f5
Licenser/clj-sandbox
matcher.clj
(ns net.licenser.sandbox.matcher) (defn function-matcher "Creates a tester that whitelists functions." [& functions] (fn [form] (if (= (type form) clojure.lang.Var) (map (partial = (:name (meta form))) functions) (map (partial = form) functions)))) (defn namespace-matcher "Creates a tester tha...
null
https://raw.githubusercontent.com/Licenser/clj-sandbox/e73433e955c5f1b11efc25151a925ad752b78f5a/src/net/licenser/sandbox/matcher.clj
clojure
(ns net.licenser.sandbox.matcher) (defn function-matcher "Creates a tester that whitelists functions." [& functions] (fn [form] (if (= (type form) clojure.lang.Var) (map (partial = (:name (meta form))) functions) (map (partial = form) functions)))) (defn namespace-matcher "Creates a tester tha...
b363356c7d38823c2224299e5adc9411882445d2ffc6353d79b0e4147d6c09a0
GlideAngle/flare-timing
Haversine.hs
module Props.Haversine ( HaversineTest(..) , distancePoint , distanceHaversine , distanceHaversineF ) where -- NOTE: Avoid orphan instance warnings with these newtypes. import Prelude hiding (span) import Test.SmallCheck.Series as SC import Test.Tasty.QuickCheck as QC import Data.UnitsOfMeasure (u...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite-geodesy/Props/Haversine.hs
haskell
NOTE: Avoid orphan instance warnings with these newtypes.
module Props.Haversine ( HaversineTest(..) , distancePoint , distanceHaversine , distanceHaversineF ) where import Prelude hiding (span) import Test.SmallCheck.Series as SC import Test.Tasty.QuickCheck as QC import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantity(..)) import ...
35bd9a978cd34a9cb66d0d7cbac5121553d38b896ddf242190f7bd8658a2397f
spellhouse/phalanges
user.clj
(ns user (:require [weasel.repl.websocket] [cemerick.piggieback])) (defn ws-repl [] (cemerick.piggieback/cljs-repl :repl-env (weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001)))
null
https://raw.githubusercontent.com/spellhouse/phalanges/3723a31f0491bd58a78d400dc157b0b057356013/dev/user.clj
clojure
(ns user (:require [weasel.repl.websocket] [cemerick.piggieback])) (defn ws-repl [] (cemerick.piggieback/cljs-repl :repl-env (weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001)))
848c12958cc21ea483b5ecfbe1f0fb55a65fc59a02cef07a789c6adb36a20411
sky-big/RabbitMQ
rabbit_node_monitor.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_node_monitor.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. gen_server call...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
68ef80fd4748edbadf96c7fa5505e7631c8c6c842a62f82bece861c66c3f6866
awakesecurity/gRPC-haskell
TestServer.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} module Main where import Prelude hiding (sum) import Simple import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Control.Monad.IO.Class import Data.Monoid import Data.Foldable (sum) import Data.String ...
null
https://raw.githubusercontent.com/awakesecurity/gRPC-haskell/112777023f475ddd752c954056e679fbca0baa44/tests/TestServer.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
# LANGUAGE DataKinds # module Main where import Prelude hiding (sum) import Simple import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Control.Monad.IO.Class import Data.Monoid import Data.Foldable (sum) import Data.String import Network.GRPC.LowLevel import Network.GRPC.HighLevel...
ca09daad0f13085e1187c196bbe04e457555693c56e0cdafa6e5e8548a592a9a
Soyn/sicp
Ex2.18.rkt
#lang racket ;Ex2.18 (define (reverse items) (if (null? (cdr items)) items (append(reverse (cdr items)) (list (car items))))) ;test (reverse (list 1 2 3 4))
null
https://raw.githubusercontent.com/Soyn/sicp/d2aa6e3b053f6d4c8150ab1b033a18f61fca7e1b/CH2/CH2.2/Ex2.18.rkt
racket
Ex2.18 test
#lang racket (define (reverse items) (if (null? (cdr items)) items (append(reverse (cdr items)) (list (car items))))) (reverse (list 1 2 3 4))
9cdf291e35dcb39f366da8f4f9d4c370b8cac478e169c820ce1d630ffeb937c3
let-def/menhir
option.ml
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/option.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...
ddc9d099bf8af0251a4e9b3b337b8dde1d3d2d105143f2ba415274c5c2a0d810
lispnik/iup
mglplot.lisp
(defpackage #:iup-mglplot (:use #:common-lisp) (:export #:open) (:import-from #:tecgraf-base #:defalias) (:shadow #:open)) (in-package #:iup-mglplot) (defalias open #'iup-mglplot-cffi::%iup-mglplot-open) (iup::defiupclasses "IUP-MGLPLOT")
null
https://raw.githubusercontent.com/lispnik/iup/f8e5f090bae47bf8f91ac6fed41ec3bc01061186/mglplot/mglplot.lisp
lisp
(defpackage #:iup-mglplot (:use #:common-lisp) (:export #:open) (:import-from #:tecgraf-base #:defalias) (:shadow #:open)) (in-package #:iup-mglplot) (defalias open #'iup-mglplot-cffi::%iup-mglplot-open) (iup::defiupclasses "IUP-MGLPLOT")
b0f58d5662ce60b8f0c5b409b1ec253cb15b070075bc9e2b30401bc4e7ab96b1
mpelleau/AbSolute
csp.ml
(** This module defines the main types used for the constraint language of AbSolute, along with the type of problems, and instance.*) open Tools (** {1 Types} *) (** Types of variables *) type typ = Int | Real (** declaration *) type decl = typ * string * Dom.t (** the instance type *) type instance = Q.t VarM...
null
https://raw.githubusercontent.com/mpelleau/AbSolute/a5959aa8732cc3cb7ce80667b9bf518963815cc1/lib/lang/csp.ml
ocaml
* This module defines the main types used for the constraint language of AbSolute, along with the type of problems, and instance. * {1 Types} * Types of variables * declaration * the instance type * annotations to test the validity of the solver * type of constraint satisfaction problems extra information ab...
open Tools type typ = Int | Real type decl = typ * string * Dom.t type instance = Q.t VarMap.t type info = | Exact of Instance.t list | Unfeasible | Known of (Instance.t * bool) list type t = { variables: decl list ; constraints: Constraint.t list ; objective: Expr.t option let get_var_names p = Li...
286e27c5d20399411b4b7f9ce2d6f011cbcbf71bfe7815cad0c315e9fafb55d7
semilin/layoup
RSI-Terminated.lisp
(MAKE-LAYOUT :NAME "RSI-Terminated" :MATRIX (APPLY #'KEY-MATRIX '("zcywkxlu,q" "rsitgmneao" "jfpdbvh'.?")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/RSI-Terminated.lisp
lisp
(MAKE-LAYOUT :NAME "RSI-Terminated" :MATRIX (APPLY #'KEY-MATRIX '("zcywkxlu,q" "rsitgmneao" "jfpdbvh'.?")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
dc900d40b390c30bb509e6a4a8a2a42893e7139051149223404dcfea693cd6ed
mariari/Misc-Lisp-Scripts
mahjong.lisp
(defpackage #:scripts.mahjong (:documentation "Provides utility functions for the game of mahjong") (:use #:cl) (:export :calculate-score :round-up-ten :total-tsumo-score :tsumo-win :ron-win)) (in-package :scripts.mahjong) total - tsumo - score ≥ either it is slightly or exactly the same as...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/scripts/mahjong.lisp
lisp
higher Note we don't add the riichi sticks here! people normally use a scoring table, but we have lisp! don't bother with the tags Shanten calculations
(defpackage #:scripts.mahjong (:documentation "Provides utility functions for the game of mahjong") (:use #:cl) (:export :calculate-score :round-up-ten :total-tsumo-score :tsumo-win :ron-win)) (in-package :scripts.mahjong) total - tsumo - score ≥ either it is slightly or exactly the same as...
f4e34ae5dc5ba72ed8dcefb5422f1136e55a4d190059087bf21915ccf39ea0bc
elaforge/karya
Fltk.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt # LANGUAGE CPP # | This has the FLTK event thread , and communication with it . module Ui.Fltk ( Fltk, fltk, Channel, event_loop, send_action, quit_ui_thread ) where #ifdef STUB_OUT...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Ui/Fltk.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | See NOTE [ui-loop-timing] for that. | Putting something into this mvar signals the UI thread to quit. and go into the UI polling loop. This is intended to be run from the main thread, since some UIs don'...
Copyright 2013 # LANGUAGE CPP # | This has the FLTK event thread , and communication with it . module Ui.Fltk ( Fltk, fltk, Channel, event_loop, send_action, quit_ui_thread ) where #ifdef STUB_OUT_FLTK import Ui.FltkStub #else import qualified Control.Concurrent.MVar as MVar import qualified Control.Concurr...
532f8bdad2a58b3e3b8885b06462b09d019ef1a17b17afbb5a0545261481c8fe
robert-strandh/SICL
adjustable-array-p.lisp
(cl:in-package #:sicl-array) (defgeneric adjustable-array-p (array)) (defmethod adjustable-array-p (array) (error 'type-error :datum array :expected-type 'array)) ;;; FIXME: Are displaced arrays adjustable? (defmethod adjustable-array-p ((array array)) t)
null
https://raw.githubusercontent.com/robert-strandh/SICL/bfd1af56c8b00b7f48fd0a055d6685fe4accdc25/Code/Array/adjustable-array-p.lisp
lisp
FIXME: Are displaced arrays adjustable?
(cl:in-package #:sicl-array) (defgeneric adjustable-array-p (array)) (defmethod adjustable-array-p (array) (error 'type-error :datum array :expected-type 'array)) (defmethod adjustable-array-p ((array array)) t)
7ec3ef00f0f834d5422dbcd05736c51c9627c1031eebe3536cfe040d8fc915f6
clj-kondo/clj-kondo
java_test.clj
(ns clj-kondo.analysis.java-test (:require [clj-kondo.core :as clj-kondo] [clj-kondo.impl.utils :refer [err]] [clj-kondo.test-utils :refer [assert-submap2 assert-submaps2]] #_[clojure.edn :as edn] #_[clojure.string :as string] [clojure.test :as t :refer [deftest is testing]] [clojure.tools.deps.a...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/07d59bbffed6b47133c4ee3b90a1e26ba5ba00df/test/clj_kondo/analysis/java_test.clj
clojure
(ns clj-kondo.analysis.java-test (:require [clj-kondo.core :as clj-kondo] [clj-kondo.impl.utils :refer [err]] [clj-kondo.test-utils :refer [assert-submap2 assert-submaps2]] #_[clojure.edn :as edn] #_[clojure.string :as string] [clojure.test :as t :refer [deftest is testing]] [clojure.tools.deps.a...
1ce9b1be0a1b94f56e81b35e734df394a799d9d38ad499d2dd7d227fe11cc74b
RYTong/erlmail-client
imapc.erl
-module(imapc). -include("imap.hrl"). -export([connect/2, connect/3, login/3, list/3, status/3, select/2, examine/2, append/4, expunge/1, search/2, fetch/3, store/4, copy/3, noop/1, logout/1, disconnect/1, quit/1, fsm_state/1 ]). %%%----------------- %%% Client functions ...
null
https://raw.githubusercontent.com/RYTong/erlmail-client/039b9e43d9c78a4d0aab0e1b6dcc5eb50e9658f2/src/imapc.erl
erlang
----------------- Client functions ----------------- The currently defined status data items that can be requested are: MESSAGES ---> The number of messages in the mailbox. RECENT ---> The number of messages with the \Recent flag set. UIDNEXT ---> The next unique identifier value of the ...
-module(imapc). -include("imap.hrl"). -export([connect/2, connect/3, login/3, list/3, status/3, select/2, examine/2, append/4, expunge/1, search/2, fetch/3, store/4, copy/3, noop/1, logout/1, disconnect/1, quit/1, fsm_state/1 ]). connect(Host, Port) -> connect(Host, Por...
21b6046ccddeba3fcc6a62020346c01a6e1c6807a995edb5991e8bde3fc3d8c1
argp/bap
piqi_convert_cmd.ml
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 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 ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqi-tools/piqi_convert_cmd.ml
ocaml
command-line arguments NOTE, XXX: here also loading, processing and validating all the * module's dependencies XXX: print a warning if there are more input objects? ignore default type names ignore default type names XXX: We need to resolve all defaults before converting to JSON or XML since * they...
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 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 ...
a6351dd2fb9dc3fd1bae91c8a3b1b9f1fd41fcbcdf370635d920b3a95e80ebc1
intolerable/stitch
Stitch.hs
module Control.Monad.Trans.Stitch ( StitchT(..) , runStitchT ) where import Stitch.Types import Control.Applicative import Control.Monad.IO.Class import Control.Monad.Trans.Class import Control.Monad.Trans.Writer.Strict import Data.Semigroup (Semigroup(..)) import Data.Monoid (Monoid(..)) newtype StitchT m a = S...
null
https://raw.githubusercontent.com/intolerable/stitch/316eaaafdacec5fe31256e7b14bf2291d6c24049/src/Control/Monad/Trans/Stitch.hs
haskell
module Control.Monad.Trans.Stitch ( StitchT(..) , runStitchT ) where import Stitch.Types import Control.Applicative import Control.Monad.IO.Class import Control.Monad.Trans.Class import Control.Monad.Trans.Writer.Strict import Data.Semigroup (Semigroup(..)) import Data.Monoid (Monoid(..)) newtype StitchT m a = S...
0fb833183f52cae2224c063d65387b6beb273fad5c3b3c5f89fb8fa318a56f3c
cr-org/supernova
Main.hs
# LANGUAGE DeriveAnyClass , DeriveGeneric , OverloadedStrings , RecordWildCards # module Main where import Control.Concurrent ( threadDelay ) import Control.Concurrent.Async ( concurrently_ ) import Control.Monad ( forever ) import Control.Mon...
null
https://raw.githubusercontent.com/cr-org/supernova/602409a18f47a38541ba24f5e885199efd383f48/lib/test/Main.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveGeneric , OverloadedStrings , RecordWildCards # module Main where import Control.Concurrent ( threadDelay ) import Control.Concurrent.Async ( concurrently_ ) import Control.Monad ( forever ) import Control.Mon...
a61a7583c9a365cddfa96e8d8ab6877ba21965b8a2d4b924558a283369df82a9
geophf/1HaskellADay
Solution.hs
module Y2021.M04.D05.Solution where - Today we 're going to ( re)visit Foldable and with our trusty old Vector - type . The Vector - type is a list of a fixed size : Vector 0 [ ] Vector 1 [ foo ] Vector 2 [ foo , bar ] ... So , the Foldable function , length , comes for free . Create a data - t...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/ffe3ba8b50c86b981bd6f9e246ad21bce8434ab0/exercises/HAD/Y2021/M04/D05/Solution.hs
haskell
} } What does this function return? } also, you get size-adjustments for free, too, right? Of course, if we used difference lists, then v1 ++ v2 would be O(c)
module Y2021.M04.D05.Solution where - Today we 're going to ( re)visit Foldable and with our trusty old Vector - type . The Vector - type is a list of a fixed size : Vector 0 [ ] Vector 1 [ foo ] Vector 2 [ foo , bar ] ... So , the Foldable function , length , comes for free . Create a data - t...
13dfa3bd14ff36d748a6e23e57d739f7258ba0284ee08ea21251300163e87eac
HunterYIboHu/htdp2-solution
ex332-model2-TS.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex332-model2-TS) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor ...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter4/Section20-Incremental-Refinement/ex332-model2-TS.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions A Dir.v2 is a structure: (make-dir String LOFD) – '() – (cons File.v2 LOFD) A File.v2 is a String. constants
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex332-model2-TS) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct dir [name content]) A LOFD...
dd6a4491b3fe80fbc7a6b60e4c144ef8d304f9a5acbf9350ee28297ff65d21ea
danr/hipspec
PropT03.hs
module PropT03 where import Prelude(Bool(..)) import Zeno -- Definitions True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True -- Nats data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/testsuite/prod/zeno_version/PropT03.hs
haskell
Definitions Nats Lists Theorem
module PropT03 where import Prelude(Bool(..)) import Zeno True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x * y) (==),(/=) :: Nat...
1d6b6916caf8fdbe27687d1592d5fb4927364eedfa013b4fdff15d0782a8284c
ocaml-multicore/ocaml-tsan
map.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/stdlib/map.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Association tables over ordered types . This module implements applicative association tables , ...
8ad55df9dd38bc037608b79e0fc272eac4293ea1e8299bfda68d8c03679f5d44
ejgallego/coq-lsp
point.ml
(************************************************************************) (* Flèche => document manager: Language Support *) Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : (****************************************...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/e20f1f7146580b3b21d200da75650882e71ad81a/lang/point.ml
ocaml
********************************************************************** Flèche => document manager: Language Support **********************************************************************
Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : type t = { line : int ; character : int ; offset : int } let pp fmt { line; character; offset } = Format.fprintf fmt "{ l: %d, c: %d | o: %d }" line character offset
215a7c0723c7a82e27605dddf4add7acac3c8bf485770f892128e0f4d9a486b5
Ptival/language-ocaml
TypeDeclaration.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Language.OCaml.PrettyPrinter.TypeDeclaration ( typeDeclarationPP, ) where import Language.OCaml.Definitions.Parsing.ParseTree import Language.OCaml.PrettyPrinter.Construc...
null
https://raw.githubusercontent.com/Ptival/language-ocaml/7b07fd3cc466bb2ad2cac4bfe3099505cb63a4f4/lib/Language/OCaml/PrettyPrinter/TypeDeclaration.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Language.OCaml.PrettyPrinter.TypeDeclaration ( typeDeclarationPP, ) where import Language.OCaml.Definitions.Parsing.ParseTree import Language.OCaml.PrettyPrinter.ConstructorDeclaration () import Language.O...
248458ea48a4f069daf3d5a0d15a5c6a3677ccc708670e6e03b94174e52afab1
flybot-sg/Pastoral
async_flow.cljc
Copyright ( c ) 2018 Flybot Pte Ltd , Singapore . ;; This file is distributed under the Eclipse Public License , the same as Clojure . ;; ;; This file incorporates work covered by the following copyright and ;; permission notice: ;; Copyright ( c ) 2016 ;; ;; Permission is hereby granted, free of char...
null
https://raw.githubusercontent.com/flybot-sg/Pastoral/c0bfb0e083e7fee22cb242d03768fc8a72598683/src/pastoral/fx/async_flow.cljc
clojure
This file incorporates work covered by the following copyright and permission notice: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the fo...
Copyright ( c ) 2018 Flybot Pte Ltd , Singapore . This file is distributed under the Eclipse Public License , the same as Clojure . Copyright ( c ) 2016 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and t...
b079987b292390f3af27ccb9f8126f1cda453148dc5543edbc84b236cd884af7
tamarit/edd
dutch.erl
-module(dutch). -compile(export_all). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). ball(red) -> 1; ball(white) -> 2; ball(blue) -> 3. random_ball() -> lists:nth(random:uniform(3), [red, white, blue]). random_balls(N) -> random_balls(N,[]). random_balls(0,L) -> L; rando...
null
https://raw.githubusercontent.com/tamarit/edd/867f287efe951bec6a8213743a218b86e4f5bbf7/examples/Unified_Framework/dutch/no_tests/dutch.erl
erlang
dutch(R, W, B, [blue | L]) -> dutch(R, W, [blue|B], L). % CORRECT WRONG
-module(dutch). -compile(export_all). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). ball(red) -> 1; ball(white) -> 2; ball(blue) -> 3. random_ball() -> lists:nth(random:uniform(3), [red, white, blue]). random_balls(N) -> random_balls(N,[]). random_balls(0,L) -> L; rando...
7db2a171bf3001ecf0e28558893bfdb5c3a99b8edc5ee7732a09c44f3996b705
skanev/playground
48.scm
SICP exercise 3.48 ; ; Explain in detail why the deadlock-avoidance method described above, (i.e. ; accounts are numbered, and each process attempts to acquire the smaller - numbered account first ) avoids deadlock in the exchange problem . ; Rewrite serialzied-exchange to incorporate this idea. (You will also need...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/48.scm
scheme
Explain in detail why the deadlock-avoidance method described above, (i.e. accounts are numbered, and each process attempts to acquire the Rewrite serialzied-exchange to incorporate this idea. (You will also need to modify make-account so that each account is created with a number, which can be accessed by sendin...
SICP exercise 3.48 smaller - numbered account first ) avoids deadlock in the exchange problem . In order to have a deadlock , we need two processes and are attempting to require locks on two resources ( x and y ) . The situation can occur if one both manage to acquire the first lock before they attempt to re...
9419af5da847fc87ae99211ea6987c5bc006a3d423b6d69a1d9b1f5f9c3e17c9
takikawa/racket-ppa
parser-actions.rkt
#lang racket/base (require "grammar.rkt") (provide (except-out (all-defined-out) make-reduce make-reduce*) (rename-out [make-reduce* make-reduce])) ;; An action is ;; - (make-shift int) ;; - (make-reduce prod runtime-action) ;; - (make-accept) ;; - (make-goto int) ;; - (no-action) ;;...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/parser-tools-lib/parser-tools/private-yacc/parser-actions.rkt
racket
An action is - (make-shift int) - (make-reduce prod runtime-action) - (make-accept) - (make-goto int) - (no-action) A reduce contains a runtime-reduce so that sharing of the reduces can be easily transferred to sharing of runtime-reduces. A runtime-action is non-negative-int (shift) (vector int ...
#lang racket/base (require "grammar.rkt") (provide (except-out (all-defined-out) make-reduce make-reduce*) (rename-out [make-reduce* make-reduce])) (define-struct action () #:inspector (make-inspector)) (define-struct (shift action) (state) #:inspector (make-inspector)) (define-struct (reduce a...
ea9c961025fa42765bf275d8cfa78f9799dc50922b15e26c0f4803f0c1d1a3ae
phadej/dlist-nonempty
Main.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 && MIN_VERSION_dlist(1,0,0) #define DNONEMPTY 1 #endif module Main (main) where import Criterion.Main import Prelude () import Prelude.Compat import Data.DList.Instances () import Data.Foldable (toList) import Data.List (foldl') import Data.Semigroup...
null
https://raw.githubusercontent.com/phadej/dlist-nonempty/8d9c22f835f4a88d224ae87a88690f8204d326bc/bench/Main.hs
haskell
left append is fast naive right append is quadratic for list not sure what to expect
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 && MIN_VERSION_dlist(1,0,0) #define DNONEMPTY 1 #endif module Main (main) where import Criterion.Main import Prelude () import Prelude.Compat import Data.DList.Instances () import Data.Foldable (toList) import Data.List (foldl') import Data.Semigroup...
23476f2dcb0103f01870c9257b1c304c117529802c403ee88a14b269f665b378
primalkz/xmonad
xmonad.hs
import XMonad import Data.Monoid import System.Exit import XMonad.Util.SpawnOnce import XMonad.Util.Run import XMonad.Hooks.ManageDocks import XMonad.Hooks.DynamicLog import Graphics.X11.ExtraTypes.XF86 import XMonad.Hooks.EwmhDesktops -- layout import XMonad.Layout.NoBorders import XMonad.Layout.Spacing import XMon...
null
https://raw.githubusercontent.com/primalkz/xmonad/2e2f30f4df577bf96c244379c2779ca74845bc60/config/xmonad.hs
haskell
layout The preferred terminal program, which is used in a binding below and by certain contrib modules. Whether focus follows the mouse pointer. Whether clicking on a window to focus also passes the click to the window Width of the window border in pixels. modMask lets you specify which modkey you want to use....
import XMonad import Data.Monoid import System.Exit import XMonad.Util.SpawnOnce import XMonad.Util.Run import XMonad.Hooks.ManageDocks import XMonad.Hooks.DynamicLog import Graphics.X11.ExtraTypes.XF86 import XMonad.Hooks.EwmhDesktops import XMonad.Layout.NoBorders import XMonad.Layout.Spacing import XMonad.Layout....
e5aabe286b6ae7efad380dd2c476d47b697c4ca7fea9745071539123424dd5aa
layerware/hugsql
clojure_jdbc.clj
(ns hugsql.adapter.clojure-jdbc (:gen-class) (:require [hugsql.adapter :as adapter] [jdbc.core :as jdbc])) (deftype HugsqlAdapterClojureJdbc [] adapter/HugsqlAdapter (execute [this db sqlvec options] (jdbc/execute db sqlvec (merge {:returning (some #(= % (:command options)) [...
null
https://raw.githubusercontent.com/layerware/hugsql/052c04a2a6dc99c3c35810ddf83416c2fd93c5e5/hugsql-adapter-clojure-jdbc/src/hugsql/adapter/clojure_jdbc.clj
clojure
(ns hugsql.adapter.clojure-jdbc (:gen-class) (:require [hugsql.adapter :as adapter] [jdbc.core :as jdbc])) (deftype HugsqlAdapterClojureJdbc [] adapter/HugsqlAdapter (execute [this db sqlvec options] (jdbc/execute db sqlvec (merge {:returning (some #(= % (:command options)) [...
09fc2aeed76f041bade95b4eaa0c2fdb38673df7a75129db5d8f35f3a03a4cba
tweag/ormolu
implicit-params.hs
# LANGUAGE ImplicitParams # sortBy :: (a -> a -> Bool) -> [a] -> [a] sortBy = undefined sort :: (?cmp :: a -> a -> Bool) => [a] -> [a] sort = sortBy ?cmp sort' :: (?cmp :: a -> a -> Bool ,?foo :: Int) => [a] -> [a] sort' = sort
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/implicit-params.hs
haskell
# LANGUAGE ImplicitParams # sortBy :: (a -> a -> Bool) -> [a] -> [a] sortBy = undefined sort :: (?cmp :: a -> a -> Bool) => [a] -> [a] sort = sortBy ?cmp sort' :: (?cmp :: a -> a -> Bool ,?foo :: Int) => [a] -> [a] sort' = sort
b78ddf3a6aeb57643aae8969e6e072e8a11e7c991880d8fceadf852607444135
jsa-aerial/saite
miscdata.cljs
(ns aerial.saite.miscdata (:require [clojure.string] [re-com.core])) (def cljs-core-names ["*" "*1" "*2" "*3" "*assert*" "*clojurescript-version*" "*command-line-args*" "*e" "*eval*" "*exec-tap-fn*" "*flush-on-newline*" "*loaded-libs*" "*main-cli-fn*" "*ns*" "*out*" ...
null
https://raw.githubusercontent.com/jsa-aerial/saite/0bef9a21a34787fca1a3d0dd94a16206da789e68/src/cljs/aerial/saite/miscdata.cljs
clojure
It makes no sense, but these will not properly run on initial loading. So, must run before build, get the values and insert above
(ns aerial.saite.miscdata (:require [clojure.string] [re-com.core])) (def cljs-core-names ["*" "*1" "*2" "*3" "*assert*" "*clojurescript-version*" "*command-line-args*" "*e" "*eval*" "*exec-tap-fn*" "*flush-on-newline*" "*loaded-libs*" "*main-cli-fn*" "*ns*" "*out*" ...
3bb17f7e641f0d4f44f7eda4c7fcb2a1d294c4750e3d38ce091202989cfd3b66
TerrorJack/ghc-alter
Coerce.hs
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , MagicHash # ----------------------------------------------------------------------------- -- | Module : Unsafe . Coerce Copyright : 2006 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability : e...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Unsafe/Coerce.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable The highly unsafe primitive 'unsafeCoerce' converts a value from any type to any other type. Nee...
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , MagicHash # Module : Unsafe . Coerce Copyright : 2006 * Documentation for correct usage in GHC will be found under ' unsafeCoerce # ' in ( around which ' unsafeCoerce ' is just a * In nhc98 , the only representation - safe coercions a...
24b069b6a9ab6f83cee2fde475a482ab44838f500db166898b893c3acea94be9
matteoredaelli/ebot
ebot_worker_util.erl
EBOT , an erlang web crawler . Copyright ( C ) 2010 ~ matteo DOT AT libero DOT it %% / %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lice...
null
https://raw.githubusercontent.com/matteoredaelli/ebot/6a6af4eb345adfa05b4508ed2dec529413d97da8/src/ebot_worker_util.erl
erlang
/ This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
EBOT , an erlang web crawler . Copyright ( C ) 2010 ~ matteo DOT AT libero DOT it 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 Created : 13 Jun 2010 ...
8f9188a7c4c119681e7a412dee25356bcd89ab91f747beff63719d64e7bfef2c
c4-project/c4f
list_actions.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/cmd_fuzz/src/list_actions.mli
ocaml
* [command] is the 'list-actions' command.
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
ac7ab8c0d035937613a1cee87f9cd396ec5a114c86cb11c1cfae34f1de562850
BillHallahan/G2
Test16.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--prune-unsorted" @-} module Combined (f) where {-@ f :: { xs : Int | xs > 0 } @-} f :: Int f = empty (0, 0) empty :: (Ord k) => (k, Int) -> Int empty _ = 1
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/test_files/Pos/Test16.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ LIQUID "--prune-unsorted" @ @ f :: { xs : Int | xs > 0 } @
module Combined (f) where f :: Int f = empty (0, 0) empty :: (Ord k) => (k, Int) -> Int empty _ = 1
610ffd2b1150b7e0368c74780140c7d506eb38de646b3704771f59b11fb336a9
mstksg/backprop-learn
Build.hs
#!/usr/bin/env stack -- stack --install-ghc runghc --package shake import Development.Shake import Development.Shake.FilePath import System.Directory opts = shakeOptions { shakeFiles = ".shake" , shakeVersion = "1.0" , shakeVerbosity = Normal...
null
https://raw.githubusercontent.com/mstksg/backprop-learn/59aea530a0fad45de6d18b9a723914d1d66dc222/Build.hs
haskell
stack --install-ghc runghc --package shake need ["haddocks", "gentags", "install", "exe", "js"]
#!/usr/bin/env stack import Development.Shake import Development.Shake.FilePath import System.Directory opts = shakeOptions { shakeFiles = ".shake" , shakeVersion = "1.0" , shakeVerbosity = Normal , shakeThreads = 0 ...
71a038a1014317dcb0ce8438e70b68caf1eec6c5b3bce30951d6cb26af82eeb8
bjorng/wings
wings_sel_cmd.erl
%% %% wings_sel_cmd.erl -- %% %% This module implements the commands in the selection menu. %% Copyright ( c ) 2001 - 2011 %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% -module(wings_sel_cmd). -expo...
null
https://raw.githubusercontent.com/bjorng/wings/0ebe43abfcb094344c015589d8cd072b643d80ed/src/wings_sel_cmd.erl
erlang
wings_sel_cmd.erl -- This module implements the commands in the selection menu. See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ Selection commands. Select Inverse. Can't inverse. Deselect Hide Selected ...
Copyright ( c ) 2001 - 2011 -module(wings_sel_cmd). -export([menu/0,update_menu/1,command/2]). Utilities . -export([init/0,select_all/1]). -include("wings.hrl"). -import(lists, [map/2,foldl/3,reverse/1,member/2,keymember/3,keyfind/3, usort/1,any/2]). init() -> wings_pref:set_default(saved_selections_c...
e8ed2af2aed42453e7ff29382fccccdd1f90ebdda8b92bed0665f350ce95d8e2
finnishtransportagency/harja
urakan_kohdehaku_test.clj
(ns harja.palvelin.integraatiot.yha.urakan-kohdehaku-test (:require [clojure.test :refer [deftest is use-fixtures]] [com.stuartsierra.component :as component] [org.httpkit.fake :refer [with-fake-http]] [harja.testi :refer :all] [harja.palvelin.integraatiot.yha.yha-kompo...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/86f8bed1931093dcdb2c3e61170f8d4fb4e29d79/test/clj/harja/palvelin/integraatiot/yha/urakan_kohdehaku_test.clj
clojure
(ns harja.palvelin.integraatiot.yha.urakan-kohdehaku-test (:require [clojure.test :refer [deftest is use-fixtures]] [com.stuartsierra.component :as component] [org.httpkit.fake :refer [with-fake-http]] [harja.testi :refer :all] [harja.palvelin.integraatiot.yha.yha-kompo...
6abef2ff84d96e021a7c5c7e1584155131134e0175592431290b7f998f6db5e0
c4-project/c4f
path_context.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz/src/path_context.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
36028653fd3d7972e4404d1f92e30d23b25c6593fac9fbe7fcb9d6a588a9ed14
c-cube/frog-utils
IPC_client.mli
(* This file is free software, part of frog-utils. See file "license" for more details. *) * { 1 Client - Side } Most functions will use { ! } as a side - effect . Most functions will use {!Lwt_log} as a side-effect. *) open Frog module E = Misc.Err type t type msg = IPC_message.t val connect : int -> (t -> '...
null
https://raw.githubusercontent.com/c-cube/frog-utils/3f68c606a7abe702f9e22a0606080191a2952b18/src/server/IPC_client.mli
ocaml
This file is free software, part of frog-utils. See file "license" for more details. * Connect the the remote daemon @param port on which the daemon should be listening * [acquire daemon f] acquires the lock on the remote [daemon], then calls [f true] and returns the result of [f true]. If the lock can't...
* { 1 Client - Side } Most functions will use { ! } as a side - effect . Most functions will use {!Lwt_log} as a side-effect. *) open Frog module E = Misc.Err type t type msg = IPC_message.t val connect : int -> (t -> 'a Lwt.t) -> 'a Lwt.t val acquire : ?cwd:string -> ?user:string -> ?info:string -> ...
2f5ee2f1fcfb8d62cd415a155508add68362ad8ab5ea9e7839c0702b235ac359
atolab/yaks-common
yaks_common_errors.ml
type error_info = [`NoMsg | `Msg of string | `Code of int | `Pos of (string * int * int * int) | `Loc of string] [@@deriving show] type yerror = [ | `InvalidBackendProperty of error_info | `InsufficientStorage | `InvalidPath of error_info | `Forbidden of error_info | `InvalidParameters | `ConflictingStor...
null
https://raw.githubusercontent.com/atolab/yaks-common/39d95312ffeb7cc354ff2965872f6669222eb0ba/lib/yaks_common_errors.ml
ocaml
type error_info = [`NoMsg | `Msg of string | `Code of int | `Pos of (string * int * int * int) | `Loc of string] [@@deriving show] type yerror = [ | `InvalidBackendProperty of error_info | `InsufficientStorage | `InvalidPath of error_info | `Forbidden of error_info | `InvalidParameters | `ConflictingStor...
4049d65b19cecc775e34c02175e428822e01118d2f408733a9f0b9e8d4fe7448
uim/sigscheme
sigscheme-init.scm
;; Filename : sigscheme-init.scm About : Initialization file for SigScheme ;; Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the ...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/lib/sigscheme-init.scm
scheme
Filename : sigscheme-init.scm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the ...
About : Initialization file for SigScheme Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the nam...
6584547d8f204ebc7b7d9bbc91beee7bb809c03ea572b24965d1e8d35164c0bc
ocsigen/js_of_ocaml
partial_cps_analysis.ml
Js_of_ocaml compiler * / * * 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 the License , or ( at your option ) any l...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/cb629335639c8e7ef9bda7745e7838c6c846664e/compiler/lib/partial_cps_analysis.ml
ocaml
x depends on y
Js_of_ocaml compiler * / * * 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 the License , or ( at your option ) any l...
c4a89c2dd36dc29baa732d7268acdbc7f2ce4a3d15025bd1d477fd34866e3a8f
openworkload/swm-core
wm_sim.erl
-module(wm_sim). -behaviour(gen_server). -export([start_link/1]). -export([start_all/0, stop_all/0, start_node/1, stop_node/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(mstate, {nodes = maps:new() :: map(), sim_type = none :: atom(), sim_spool = "."...
null
https://raw.githubusercontent.com/openworkload/swm-core/250facc707739010715cd9f1605b0dda817ab05c/src/lib/wm_sim.erl
erlang
============================================================================ API functions ============================================================================ @doc Start simulation service @doc Start all nodes (in configuration) simulation @doc Stop all nodes (in configuration) simulation @doc Start ini...
-module(wm_sim). -behaviour(gen_server). -export([start_link/1]). -export([start_all/0, stop_all/0, start_node/1, stop_node/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(mstate, {nodes = maps:new() :: map(), sim_type = none :: atom(), sim_spool = "."...
8869164fbb79771667ae983407f6285d0e83ec272ecca5d9626a7e7021c1004c
mfoemmel/erlang-otp
gb_sets.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 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/stdlib/src/gb_sets.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 2001 - 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 " Copyright ( C ) 1999 - 2001 An implem...
b638a6c12326a27fef4ce13ceef04809c6fa0859041b9cb4e474c96e14e454c8
danilkolikov/dfl
DependencyResolverTest.hs
| Module : Util . DependencyResolverTest Description : Tests for the dependency resolver Copyright : ( c ) , 2019 License : MIT Tests for the dependency resolver Module : Util.DependencyResolverTest Description : Tests for the dependency resolver Copyright : (c) Danil Ko...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/test/Util/DependencyResolverTest.hs
haskell
| Module : Util . DependencyResolverTest Description : Tests for the dependency resolver Copyright : ( c ) , 2019 License : MIT Tests for the dependency resolver Module : Util.DependencyResolverTest Description : Tests for the dependency resolver Copyright : (c) Danil Ko...
203c417639438555928593747decb4068b05b4403a164921f669ef48a7c83e4f
Eventuria/demonstration-gsd
Settings.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Write.CommandConsumer.Settings where import Eventuria.Commons.Logger.Core import Eventuria.Commons.Network.Core import qualified Eventuria.Libraries.PersistedStreamEngine.Instances.EventStore.Client.Settings as EventStore data Settings = Se...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Write/CommandConsumer/Settings.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Write.CommandConsumer.Settings where import Eventuria.Commons.Logger.Core import Eventuria.Commons.Network.Core import qualified Eventuria.Libraries.PersistedStreamEngine.Instances.EventStore.Client.Settings as EventStore data Settings = Se...
a91330f3024153335b7ffa0dce870bd80e406dd02e52566c3d666fddd04f2d34
OCamlPro/ocamlexc
hashtbl.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/stdlib/hashtbl.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . $ I d : hashtbl.ml , v 1.1 1998/08/19 13:29:06 pessaux Exp $ external hash_param : int[`a] <[`b]-> int[`c] <...
78c245c6f14211ccb41620ff497c4c955c4247ac586e31034c11e57a6f730476
sidwubf/wechat-erlang-sdk
wechat_media.erl
-module(wechat_media). 素材管理 -export([get_media/2, add_news/2, get_material/2, delete_material/2, update_news/2, get_material_count/1, get_batch_material/2]). get_media(AccessToken, MediaId) -> URL = list_to_binary(?API_URL_PREFIX ++ "/cgi-bin/media/get?access_token="++AccessToken++"&media_id="++MediaId), ...
null
https://raw.githubusercontent.com/sidwubf/wechat-erlang-sdk/5242ce4615423499f58fbb9b058361757073c6ee/apps/wechat/src/wechat_media.erl
erlang
-module(wechat_media). 素材管理 -export([get_media/2, add_news/2, get_material/2, delete_material/2, update_news/2, get_material_count/1, get_batch_material/2]). get_media(AccessToken, MediaId) -> URL = list_to_binary(?API_URL_PREFIX ++ "/cgi-bin/media/get?access_token="++AccessToken++"&media_id="++MediaId), ...
849f8e995cc6cc16652453cb643b6b8e4da18707bf3962542cf78a55f8a86547
lixiangqi/medic
scrub-slider.rkt
#lang racket (require racket/draw racket/gui/base) (provide scrub-slider%) (define scrub-slider% (class canvas% (init-field [text #f] [step 1] [frame-width 400]) (inherit get-dc refresh get-parent) (super-new) (define slider-co...
null
https://raw.githubusercontent.com/lixiangqi/medic/0920090d3c77d6873b8481841622a5f2d13a732c/trace-browser/scrub-slider.rkt
racket
get the thumb id that the mouse is currently on
#lang racket (require racket/draw racket/gui/base) (provide scrub-slider%) (define scrub-slider% (class canvas% (init-field [text #f] [step 1] [frame-width 400]) (inherit get-dc refresh get-parent) (super-new) (define slider-co...
5afbc0c88430d2c53cd01e5d5b018b381cdbe39705df3dac226efaadb12f3ebc
clj-kondo/clj-kondo
pprint.clj
(ns clj-kondo.tools.pprint (:require [clj-kondo.core :as clj-kondo] [clojure.pprint :as p])) (defn- private-fixed-arity [_x _y _z]) (defmacro macro-varargs-arity [_x & _xs]) (defn -main [& [format & paths]] (if (empty? paths) (println "usage: <(edn | table)> <(true | false)> <path>+") (let [format ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/d012ab5614e0824dd51da9946dc8708dee7f498d/analysis/src/clj_kondo/tools/pprint.clj
clojure
(ns clj-kondo.tools.pprint (:require [clj-kondo.core :as clj-kondo] [clojure.pprint :as p])) (defn- private-fixed-arity [_x _y _z]) (defmacro macro-varargs-arity [_x & _xs]) (defn -main [& [format & paths]] (if (empty? paths) (println "usage: <(edn | table)> <(true | false)> <path>+") (let [format ...
62ead704d17215124a9d8a463cd311acfbdd893e3727537c30c1c72ded6caead
2600hz/kazoo
kz_endpoint_v5.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz %%% @doc @author @author @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtai...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_endpoint/src/kz_endpoint_v5.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @end ------------------------------------------------------------------...
( C ) 2011 - 2020 , 2600Hz @author @author @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_endpoint_v5). -export([get/1, get/2]). -export([flush_account/1 ...
2f5a91b6faf12e8db922a1889231189b47f9f929f8f7cbd2bbf612f89eef22c0
Bogdanp/racket-kafka
00-wait-for-kafka.rkt
#lang racket/base (require kafka) (define deadline (+ (current-seconds) 60)) (let loop () (cond [(> (current-seconds) deadline) (error 'wait-for-kafka "kafka not available")] [else (with-handlers ([exn:fail? (lambda (e) ((error-display-handler) (exn-me...
null
https://raw.githubusercontent.com/Bogdanp/racket-kafka/19d874bc6f23e26cba4c0bbc08f605851cdb5799/tests/00-wait-for-kafka.rkt
racket
#lang racket/base (require kafka) (define deadline (+ (current-seconds) 60)) (let loop () (cond [(> (current-seconds) deadline) (error 'wait-for-kafka "kafka not available")] [else (with-handlers ([exn:fail? (lambda (e) ((error-display-handler) (exn-me...
78d221b88f77e66eaad04050d063161e97abf2006b889a517651df9d3693f741
overtone/overtone
line.clj
(ns overtone.sc.machinery.ugen.metadata.line (:use [overtone.sc.machinery.ugen common check])) (def specs [ {:name "Line", :summary "Line generator." :args [{:name "start", :default 0.0 :doc "Starting value"} {:name "end", :default 1.0 :doc "En...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/sc/machinery/ugen/metadata/line.clj
clojure
(ns overtone.sc.machinery.ugen.metadata.line (:use [overtone.sc.machinery.ugen common check])) (def specs [ {:name "Line", :summary "Line generator." :args [{:name "start", :default 0.0 :doc "Starting value"} {:name "end", :default 1.0 :doc "En...
603987ed89113828cd3ad6682a3bb8c53987644b9e033cb950df5023882cf2e1
inconvergent/cl-veq
ops-1.lisp
(in-package :veq) (ops (:1 @+ (ax bx)) (+ ax bx) (:1 @- (ax bx)) (- ax bx) (:1 @* (ax bx)) (* ax bx) (:1 @/ (ax bx)) (/ ax bx) (:1 @i- (ax bx)) (- bx ax) (:1 @i/ (ax bx)) (/ bx ax) (:1 @scale (ax s)) (values (* ax s)) (:1 @iscale (ax s)) (values (/ ax s)) (:1 @abs (ax)) (abs ax) (:1 @neg (ax)) ...
null
https://raw.githubusercontent.com/inconvergent/cl-veq/0398740398b801cedfee34aa0a156ccc3d4d7bde/src/ops-1.lisp
lisp
(:1 @deg (ax)) (values (/ ax 360))
(in-package :veq) (ops (:1 @+ (ax bx)) (+ ax bx) (:1 @- (ax bx)) (- ax bx) (:1 @* (ax bx)) (* ax bx) (:1 @/ (ax bx)) (/ ax bx) (:1 @i- (ax bx)) (- bx ax) (:1 @i/ (ax bx)) (/ bx ax) (:1 @scale (ax s)) (values (* ax s)) (:1 @iscale (ax s)) (values (/ ax s)) (:1 @abs (ax)) (abs ax) (:1 @neg (ax)) ...
5cc11218fba1634cd61b58610e12769b5311466565187b56f8d8c93580d20d68
lopusz/langlab
colls.clj
(ns langlab.cmns.colls "Module contains various collection utilities.") ;; This does not follow the rule of verb in function name. ;; This is analogy for function keys. (defn keys-sorted-by-val-asc "Returns keys of map `m` sorted according to values in ascending order." [ m ] (sort-by m #(compare %1 %2) (key...
null
https://raw.githubusercontent.com/lopusz/langlab/dd075c9f4ef3594defe16b88bab8460db23c7c75/src/main/clojure/langlab/cmns/colls.clj
clojure
This does not follow the rule of verb in function name. This is analogy for function keys.
(ns langlab.cmns.colls "Module contains various collection utilities.") (defn keys-sorted-by-val-asc "Returns keys of map `m` sorted according to values in ascending order." [ m ] (sort-by m #(compare %1 %2) (keys m))) (defn keys-sorted-by-val-desc "Returns keys of map `m` sorted according to values in d...
779c166c4c4b09a711c2ff916cbebd4836fc29e3a450f1e4877d6f7cfaf048d9
UU-ComputerScience/uhc
Types.hs
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # EXCLUDE_IF_TARGET js # {-# EXCLUDE_IF_TARGET cr #-} # LANGUAGE GenericDeriving # -- XXX -fno-warn-unused-binds stops us warning about unused constructors, -- but really we should just remove them if ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/uhcbase/Foreign/C/Types.hs
haskell
# EXCLUDE_IF_TARGET cr # XXX -fno-warn-unused-binds stops us warning about unused constructors, but really we should just remove them if we don't want them --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Stability : p...
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # EXCLUDE_IF_TARGET js # # LANGUAGE GenericDeriving # Module : Foreign . C.Types Copyright : ( c ) The FFI task force 2001 Maintainer : Mapping of C types to corresponding ty...
e930365f900a8765172032c615fdf35b4eeaa5198fc8dd79722d087c4b0ff917
incoherentsoftware/defect-process
Types.hs
module Game.Types ( module Game.Mode , Game(..) ) where import Console.Types import Game.Mode import Menu.Types import Util.Time import World.Types data Game = Game { _mode :: GameMode , _prevMode :: GameMode , _world :: World , _menu :: Menu , _time :: Time , _conso...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Game/Types.hs
haskell
module Game.Types ( module Game.Mode , Game(..) ) where import Console.Types import Game.Mode import Menu.Types import Util.Time import World.Types data Game = Game { _mode :: GameMode , _prevMode :: GameMode , _world :: World , _menu :: Menu , _time :: Time , _conso...
aac0e8ed91052c54de4e729edcc3c51ec2995a79d221c6fcd52cd4ef4cbad92d
japan-clojurians/curriculum
middleware.clj
(ns todo-clj.middleware (:require [environ.core :refer [env]] [immutant.internal.util :as iu] [ring.middleware.defaults :as defaults] [todo-clj.middleware.http-response :as http-response] [todo-clj.middleware.trailing-slash :as trailing-slash])) (defn wrap-dev "開発環境の...
null
https://raw.githubusercontent.com/japan-clojurians/curriculum/b4646925df3a5c6a504f129382dfbe9cccd75791/simple-todo-app/src/todo_clj/middleware.clj
clojure
(ns todo-clj.middleware (:require [environ.core :refer [env]] [immutant.internal.util :as iu] [ring.middleware.defaults :as defaults] [todo-clj.middleware.http-response :as http-response] [todo-clj.middleware.trailing-slash :as trailing-slash])) (defn wrap-dev "開発環境の...
b78c307fa502f9d78528c05f10364c4d9528d3d7a006e05883efb62d68d1be03
runeksvendsen/restful-payment-channel-server
Interface.hs
module PayChanServer.Callback.Interface ( module PayChanServer.Callback.Interface , API.CallbackInfo(..) , API.CallbackResponse(..) ) where import qualified RBPCP.Callback as API import AppPrelude.Types import qualified AppPrelude.Types.Config as Conf import AppPrelude.Util ...
null
https://raw.githubusercontent.com/runeksvendsen/restful-payment-channel-server/0fe65eadccad5ef2b840714623ec407e509ad00b/src/PayChanServer/Callback/Interface.hs
haskell
module PayChanServer.Callback.Interface ( module PayChanServer.Callback.Interface , API.CallbackInfo(..) , API.CallbackResponse(..) ) where import qualified RBPCP.Callback as API import AppPrelude.Types import qualified AppPrelude.Types.Config as Conf import AppPrelude.Util ...
a2e1b500486c1ab2fa429b6c8f093d83db7b77945ede1a9e2cfd72a989e274b3
Deep-Symmetry/afterglow
project.clj
(defproject afterglow "0.2.6-SNAPSHOT" :description "A live-coding environment for light shows, built on the Open Lighting Architecture, using bits of Overtone." :url "-Symmetry/afterglow" :license {:name "Eclipse Public License 2.0" :url "-2.0/"} Suppress dock icon and focus stealing when compilin...
null
https://raw.githubusercontent.com/Deep-Symmetry/afterglow/eb7467adf3e18fd8e7e4a19fce820ccb59efa18b/project.clj
clojure
For embedded use For hosting on netlify Perform the tasks which embed the developer guide and api docs before compilation, so they will be available both in development, and in the distributed archive.
(defproject afterglow "0.2.6-SNAPSHOT" :description "A live-coding environment for light shows, built on the Open Lighting Architecture, using bits of Overtone." :url "-Symmetry/afterglow" :license {:name "Eclipse Public License 2.0" :url "-2.0/"} Suppress dock icon and focus stealing when compilin...
f2cf746e4ded085ae1ca08abf38f3693f43c22fbff0351186b041affb2a5f9f0
samrushing/irken-compiler
t_match5.scm
(define (eq? a b) (%%cexp ('a 'a -> bool) "%0==%1" a b)) (define (error x) (%exit #f x) ) (define flip 0 -> 1 1 -> 0 x -> (error "flipped out!") ) (flip 0)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_match5.scm
scheme
(define (eq? a b) (%%cexp ('a 'a -> bool) "%0==%1" a b)) (define (error x) (%exit #f x) ) (define flip 0 -> 1 1 -> 0 x -> (error "flipped out!") ) (flip 0)
15a078a534e927a6c7476f580d61ad15c8acc09aee146cecc9a2a84bec247d15
nuvla/api-server
nuvlabox_status_0_test.cljc
(ns sixsq.nuvla.server.resources.spec.nuvlabox-status-0-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.nuvlabox-status :as nbs] [sixsq.nuvla.server.resources.spec.nuvlabox-status-0 :as nb-status-0] [sixsq.nuvla.server.resources.spec.spec-test-utils :as stu])) (def valid...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/spec/nuvlabox_status_0_test.cljc
clojure
required optional
(ns sixsq.nuvla.server.resources.spec.nuvlabox-status-0-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.nuvlabox-status :as nbs] [sixsq.nuvla.server.resources.spec.nuvlabox-status-0 :as nb-status-0] [sixsq.nuvla.server.resources.spec.spec-test-utils :as stu])) (def valid...
9ec56e0796ca677c2dccc24bc0569aa34c5774861f16f1645b3b53fe16f47012
ghc/ghc
Phases.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} module GHC.Driver.Pipeline.Phases (TPhase(..), PhaseHook(..)) where import GHC.Prelude import GHC.Driver.Pipeline.Monad import GHC.Driver.Env.Types import GHC.Driver.Session import GHC.Driver.CmdLine import GHC.Types.SourceFile import GHC.Unit.Module.ModSummary impor...
null
https://raw.githubusercontent.com/ghc/ghc/14b2e3d3dda104c62c5abafd3353dd0315de71ad/compiler/GHC/Driver/Pipeline/Phases.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # Typed Pipeline Phases MP: TODO: We need to refine the arguments to each of these phases so recompilation can be smarter. For example, rather than passing a whole HscEnv, just pass the options which each phase depends on, then recompilation checking can decide to only rerun...
module GHC.Driver.Pipeline.Phases (TPhase(..), PhaseHook(..)) where import GHC.Prelude import GHC.Driver.Pipeline.Monad import GHC.Driver.Env.Types import GHC.Driver.Session import GHC.Driver.CmdLine import GHC.Types.SourceFile import GHC.Unit.Module.ModSummary import GHC.Unit.Module.Status import GHC.Tc.Types ( Fron...
b2e0e424b427c58b02fb41b12fe76d660409f80adc3b2ad962f2ed506fe30006
dgiot/dgiot
dgiot_tdengine.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/eb1ff70727aed64127473653a72628c7038443c5/apps/dgiot_tdengine/src/dgiot_tdengine.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_tdengine). -author("kenneth"). -include("dgiot_tdengine.hrl"). -include_lib("dgi...
7d08edf7658c6d2fbbe1458e26570c780b6bd62bff83bb39a84fdf8d63b94121
ocaml-multicore/tezos
script_interpreter.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/script_interpreter.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2020 Metastate AG < > Copyright ( c ) 2021 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit perso...
c9de24f07a69ae91f8812033c95b180268db088559e2b638b67443f1e86a93c1
metabase/metabase
util.clj
(ns metabase.async.util "Utility functions for core.async-based async logic." (:require [clojure.core.async :as a] [metabase.util.log :as log] [schema.core :as s]) (:import (clojure.core.async.impl.buffers PromiseBuffer) (clojure.core.async.impl.channels ManyToManyChannel) (java.util.concurrent ...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/async/util.clj
clojure
so maybe we should consider getting rid of it. forward any result of `in-chan` to `out-chan`. Close both channels once either gets a result or is closed. * `done-chan` will always get closed immediately after `(f)` is finished * `result-chan` will get the result of `(f)`, *after* `done-chan` is closed if `result-...
(ns metabase.async.util "Utility functions for core.async-based async logic." (:require [clojure.core.async :as a] [metabase.util.log :as log] [schema.core :as s]) (:import (clojure.core.async.impl.buffers PromiseBuffer) (clojure.core.async.impl.channels ManyToManyChannel) (java.util.concurrent ...
4022dd5657088dc83e07f9ced6626daac0f0a4d5e7beeb122bbe8140e2067077
AccelerateHS/accelerate-llvm
Monad.hs
{-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeApplications # {-# OPTIONS_HADDOCK hide ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/1da65b5951b1410b5e4e1a646fbe1b17bee780a8/accelerate-llvm/src/Data/Array/Accelerate/LLVM/CodeGen/Monad.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # OPTIONS_HADDOCK hide # | License : BSD3 Stability : experimental declarations basic blocks instructions metadata Code generation =============== | The code generation state for sca...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # Module : Data . Array . Accelerate . LLVM.CodeGen . Copyright : [ 2015 .. 2020 ] The Accelerate Team Maintainer : < > Portability : n...
50afb28e759459d1cbc8e3dd02a48e2e26bb7ee7dc040546eef3e4cfe4a582ce
metosin/malli
bb_test_runner.clj
(ns bb-test-runner (:require [clojure.test :as t] [malli.clj-kondo-test] [malli.core-test] [malli.destructure-test] [malli.dot-test] [malli.error-test] [malli.experimental-test] [malli.generator-test] [malli.instrument-test] [malli.json-schema-test] [malli.plantuml-test] [malli.pro...
null
https://raw.githubusercontent.com/metosin/malli/5ac623f1f64d8339382751c8820f8a1de67986e9/test/bb_test_runner.clj
clojure
'malli.generator-test ;; skipped for now due to test.chuck incompatibility
(ns bb-test-runner (:require [clojure.test :as t] [malli.clj-kondo-test] [malli.core-test] [malli.destructure-test] [malli.dot-test] [malli.error-test] [malli.experimental-test] [malli.generator-test] [malli.instrument-test] [malli.json-schema-test] [malli.plantuml-test] [malli.pro...
ee379ceef1b34af98af3d4d69f3401071d3b3043121216bad36dc4d845b15580
RichiH/git-annex
TransferQueue.hs
git - annex assistant pending transfer queue - - Copyright 2012 - 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012-2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} {-# LANGUAGE BangPatterns #-} module Assistant.TransferQueue ( TransferQ...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/TransferQueue.hs
haskell
# LANGUAGE BangPatterns # Reads the queue's content without blocking or changing it. Adds transfers to queue for some of the known remotes. - Honors preferred content settings, only transferring wanted files. Adds transfers to queue for some of the known remotes, that match a - condition. Honors preferred conten...
git - annex assistant pending transfer queue - - Copyright 2012 - 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012-2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Assistant.TransferQueue ( TransferQueue, Schedule(..), newTrans...
5710fc6e921b5bf7cc089b067ba9fa1466595df63c1ec26bf7a963088cd86d35
Elzair/nazghul
old-mine.scm
;;;; ;;;; old-mine.scm -- an abandoned mine littered with gems ;;;; (mk-dungeon-room 'p_old_mine "Old Mine" (list "rn rn r8 r8 rn rn rn rn rn r8 r8 r8 r8 r8 r8 r8 r8 r8 rn " "rn rc bb bb ra rn rn rn rc bb bb bb .. .. .. .. bb bb r2 " "r4 bb .. .. bb ra r8 rc bb .. .. .. .. .. .. .. .. bb r2 " "r4 bb .. .. .....
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/old-mine.scm
scheme
old-mine.scm -- an abandoned mine littered with gems drop gems drop some corpses fill upper left corner with cobwebs
(mk-dungeon-room 'p_old_mine "Old Mine" (list "rn rn r8 r8 rn rn rn rn rn r8 r8 r8 r8 r8 r8 r8 r8 r8 rn " "rn rc bb bb ra rn rn rn rc bb bb bb .. .. .. .. bb bb r2 " "r4 bb .. .. bb ra r8 rc bb .. .. .. .. .. .. .. .. bb r2 " "r4 bb .. .. .. .. .. .. .. .. .. .. r3 r5 .. .. .. bb r2 " "rn r5 .. .. .. .. .....
66ac6a1b3c77d37efc2a558b17a07d6bd2b9c1c347821b5ad3a303c7daeca377
Plutonomicon/plutarch-plutus
PairSpec.hs
module Plutarch.PairSpec (spec) where import Plutarch.Prelude import Plutarch.Test import Test.Hspec spec :: Spec spec = do describe "pair" . pgoldenSpec $ do "eq" @\ do "true" @| pcon @(PPair PInteger PString) (PPair 42 "Hello") #== pcon (PPair 42 "Hello") @-> passert "f...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/plutarch-test/tests/Plutarch/PairSpec.hs
haskell
module Plutarch.PairSpec (spec) where import Plutarch.Prelude import Plutarch.Test import Test.Hspec spec :: Spec spec = do describe "pair" . pgoldenSpec $ do "eq" @\ do "true" @| pcon @(PPair PInteger PString) (PPair 42 "Hello") #== pcon (PPair 42 "Hello") @-> passert "f...
8f60cf08b82e21bb99cdc174aa6aa737fa2060eb02bc7fc137a157a105596b63
ocaml/ocamlbuild
digest_cache.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/src/digest_cache.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with Original author : open My_std open Pathname.Opera...
ba246093d6662a0630ad798bf9a6fbe551f1a411799c24bbfbc645ddecf624dd
esl/erlang-web
wpart_input.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/wparts-1.4.1/src/wpart_input.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
669eebe14349ef12e0e9d9bf89e74b710f81a239b99552dcda4d8f5329680cf9
spurious/sagittarius-scheme-mirror
syntactic.sps
#!r6rs (import (tests r6rs records syntactic) (tests r6rs test) (rnrs io simple)) (display "Running tests for (rnrs records syntactic)\n") (run-records-syntactic-tests) (report-test-results)
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/r6rs-test-suite/tests/r6rs/run/records/syntactic.sps
scheme
#!r6rs (import (tests r6rs records syntactic) (tests r6rs test) (rnrs io simple)) (display "Running tests for (rnrs records syntactic)\n") (run-records-syntactic-tests) (report-test-results)
c94d2de56966a13f781fdcb4e9bf205acf56e2c3ecc54db29218f2b81c2cec12
awakesecurity/gRPC-haskell
Bench.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} import Control.Concurrent import Control.Concurrent.Async import Control.Exception (bracket) impor...
null
https://raw.githubusercontent.com/awakesecurity/gRPC-haskell/1bdc3662db13686f5e4941f3cc506f6fdf11ce32/bench/Bench.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # import Control.Concurrent import Control.Concurrent.Async import Control.Exception (bracket) import Control.Monad import Criterion.Main import ...
0e9b269079de3826f7ff64812c5bc8ca121655e84bbbd765c87c4d2f13ece256
Rhywun/get-programming-with-haskell
Main.hs
module Main where import Lib import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering putStr "What is the size of pizza 1? " size1 <- getLine putStr "What is the cost of pizza 1? " cost1 <- getLine putStr "What is the size of pizza 2? " size2 <- getLine putStr "Wha...
null
https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit06/Lesson35/pizzas/app/Main.hs
haskell
cheaper is better!
module Main where import Lib import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering putStr "What is the size of pizza 1? " size1 <- getLine putStr "What is the cost of pizza 1? " cost1 <- getLine putStr "What is the size of pizza 2? " size2 <- getLine putStr "Wha...
f512f6bf0f6650c4f00ae3894a18e207f9bef67ee84d33153207007fe03c134c
pezipink/Pisemble
reader.rkt
Copyright , 2022 #lang racket (require syntax/readerr) (provide wrapper1 make-pis-readtable) (define (make-pis-readtable) (make-readtable (current-readtable) #\{ 'terminating-macro read-lbrace #\@ 'terminating-macro read-@ #\% 'terminating-macro rea...
null
https://raw.githubusercontent.com/pezipink/Pisemble/ec65aae50125c9e2616f08a8200ae3976267ef55/reader.rkt
racket
outside of parens. ) (equal? paren-count 0)) treat a comment as an end-of-line (writeln "comment")
Copyright , 2022 #lang racket (require syntax/readerr) (provide wrapper1 make-pis-readtable) (define (make-pis-readtable) (make-readtable (current-readtable) #\{ 'terminating-macro read-lbrace #\@ 'terminating-macro read-@ #\% 'terminating-macro rea...
f578274a3c04d86e932a643db564ad66dc272a6255a256d0201d341eb3d55670
LexiFi/menhir
IO.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/IO.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
489e1ea04082e59b0247c5b3544c53bf7514986e55340d9bb623df38155c1ef1
embecosm/cgen
types.scm
; Type system. ; This provides the low level classes for describing data, except for ; the actual type (confusingly enough) which is described in mode.scm. Copyright ( C ) 2000 , 2009 Red Hat , Inc. This file is part of CGEN . ; See file COPYING.CGEN for details. ; Array type. DIMENSIONS has a suitable initial v...
null
https://raw.githubusercontent.com/embecosm/cgen/3fa8809c015376cd0e80018a655d372df3678bc6/cgen/types.scm
scheme
Type system. This provides the low level classes for describing data, except for the actual type (confusingly enough) which is described in mode.scm. See file COPYING.CGEN for details. Array type. Return number of elements in array. Return mode of the array. Return the rank of the array (number of dimensions). ...
Copyright ( C ) 2000 , 2009 Red Hat , Inc. This file is part of CGEN . DIMENSIONS has a suitable initial value so ( new < scalar > ) to works . (define <array> (class-make '<array> nil '(mode (dimensions . ())) nil)) (method-make! <array> 'get-num-elms (lambda (self) (apply * (elm-get self 'dimensions)))...
46c9eec35e40d73d1f66b332dd555cad7837818ecaf3fef4b21a0c812707bdfd
zouv/erlbte
n_return_failure.erl
%% Author: zouv Date : 2016 - 09 - 27 %% Doc: ever return failure -module(n_return_failure). -behaviour(bte_node_behaviour). -include("common.hrl"). -export([ node_name/0, init/1, execute/3 ]). node_name() -> "ReturnFailure". init(_Parameters) -> {}. execute(BteStatus, Node, IsFromStack) -> if IsFr...
null
https://raw.githubusercontent.com/zouv/erlbte/dad129dafdbbac11b38c7d10f0f0b4d49555f427/src/decorators/n_return_failure.erl
erlang
Author: zouv Doc: ever return failure
Date : 2016 - 09 - 27 -module(n_return_failure). -behaviour(bte_node_behaviour). -include("common.hrl"). -export([ node_name/0, init/1, execute/3 ]). node_name() -> "ReturnFailure". init(_Parameters) -> {}. execute(BteStatus, Node, IsFromStack) -> if IsFromStack -> BteStatus#r_bte_status{status ...
55a8348e49981862d157c983dd2a88ee7daf06d854a81efc0b1e89e50c46ae2b
srdqty/talc-3.0
discoff.mli
(**********************************************************************) ( c ) , , , August 1999 , all rights reserved . (**********************************************************************) discoff.mli * * Provides a Disobjfile.objfile implementation f...
null
https://raw.githubusercontent.com/srdqty/talc-3.0/df83dd5ff0e2b189b13280ddae233d8277199350/talx86/discoff.mli
ocaml
******************************************************************** ********************************************************************
( c ) , , , August 1999 , all rights reserved . discoff.mli * * Provides a Disobjfile.objfile implementation for reading COFF object * files given a file name . * * Provides a Disobjfile.objfile implementation for reading COFF object * files give...
9816d9a7208a971cc8bd15430b175a433e08cd9a1dbe9b997bc329ee1d67094d
oubiwann/star-traders
finance_test.clj
(ns starlanes.finance-test (:require [clojure.test :refer :all] [starlanes.finance :as finance] [starlanes.util :as util])) (deftest test-get-new-exchange (is (= [:A] (sort (keys (finance/get-new-exchange ["A"]))))) (is (= [:A :B] (sort (keys (finance/get-new-exchange ["A" "B"]))))) (i...
null
https://raw.githubusercontent.com/oubiwann/star-traders/8d7b85ce9ad6446f3b766cced08c120787a82352/clojure/test/starlanes/finance_test.clj
clojure
(ns starlanes.finance-test (:require [clojure.test :refer :all] [starlanes.finance :as finance] [starlanes.util :as util])) (deftest test-get-new-exchange (is (= [:A] (sort (keys (finance/get-new-exchange ["A"]))))) (is (= [:A :B] (sort (keys (finance/get-new-exchange ["A" "B"]))))) (i...
9974cb607546bf1f21fd560799f67cffd8313d7f9a03f53265104e2b8bd8f234
PLSysSec/lio
Trans.hs
{-# LANGUAGE Safe #-} | ' MonadLIO ' generalizations for " LIO.Concurrent . LMVar " . module LIO.Concurrent.LMVar.Trans ( newEmptyLMVar , newEmptyLMVarP , newLMVar , newLMVarP , takeLMVar , takeLMVarP , tryTakeLMVar , tryTakeLMVarP , putLMVar , putLMVarP , tryPutLMVar , tryPutLMVarP , readL...
null
https://raw.githubusercontent.com/PLSysSec/lio/622a3e7bc86a3b42ab4ce8be954064a5f142247a/lio/LIO/Concurrent/LMVar/Trans.hs
haskell
# LANGUAGE Safe # | See 'LIO.Concurrent.LMVar.newEmptyLMVarP'. | See 'LIO.Concurrent.LMVar.newLMVarP'. | See 'LIO.Concurrent.LMVar.takeLMVar'. | See 'LIO.Concurrent.LMVar.takeLMVarP'. | See 'LIO.Concurrent.LMVar.tryTakeLMVarP'. | See 'LIO.Concurrent.LMVar.putLMVarP'. | See 'LIO.Concurrent.LMVar.tryPutLMVar'. | ...
| ' MonadLIO ' generalizations for " LIO.Concurrent . LMVar " . module LIO.Concurrent.LMVar.Trans ( newEmptyLMVar , newEmptyLMVarP , newLMVar , newLMVarP , takeLMVar , takeLMVarP , tryTakeLMVar , tryTakeLMVarP , putLMVar , putLMVarP , tryPutLMVar , tryPutLMVarP , readLMVar , readLMVarP ...
955dd9996f7eace5d3c7696810926a5611fd76864cbc5e94cdbdffca8bd237cb
johnstonskj/simple-oauth2
fitbit.rkt
#lang racket/base ;; ;; simple-oauth2 - oauth2/tools/fitbit. ;; Simple OAuth2 client and server implementation ;; Copyright ( c ) 2019 ( ) . ;; ---------- Requirements (require racket/bool racket/cmdline racket/date racket/format racket/list racket/logging ...
null
https://raw.githubusercontent.com/johnstonskj/simple-oauth2/b8cb40511f64dcb274e17957e6fc9ab4c8a6cbea/tools/fitbit.rkt
racket
simple-oauth2 - oauth2/tools/fitbit. Simple OAuth2 client and server implementation ---------- Requirements ---------- Implementation ---------- Internal procedures ---------- Common commands ---------- API access commands
#lang racket/base Copyright ( c ) 2019 ( ) . (require racket/bool racket/cmdline racket/date racket/format racket/list racket/logging racket/set json oauth2 oauth2/client oauth2/client/flow oauth2/storage/clients ...
9c2c96f8b91529b6ca7a37e7d82ba1c055c66540d52ca26b6b544d90746818a5
xh4/web-toolkit
flexbox.lisp
(in-package :css) ;; -flexbox-1 ;; TODO: flex (define-property flex () ()) (define-property flex-direction () () (:value .flex-direction)) (define-parser .flex-direction () (lambda (input) (multiple-value-bind (rest value match-p) (parse (.or (.s "row") (.s "row-reverse") (.s "column") (.s "colu...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/flexbox.lisp
lisp
-flexbox-1 TODO: flex (flex-flow "row") (flex-flow "column wrap") (flex-flow "row-reverse wrap-reverse") TODO: -flexbox-1/#flex-basis-property
(in-package :css) (define-property flex () ()) (define-property flex-direction () () (:value .flex-direction)) (define-parser .flex-direction () (lambda (input) (multiple-value-bind (rest value match-p) (parse (.or (.s "row") (.s "row-reverse") (.s "column") (.s "column-reverse")) ...
32d1cbbb53e94e68a7588c6083af80b1b30d5de946ca30d98faa55f6f700a584
stylewarning/cl-permutation
package.lisp
;;;; src/package.lisp ;;;; Copyright ( c ) 2012 - 2015 (defpackage #:cl-permutation (:use #:cl) (:nicknames #:perm) ;; permutation.lisp (:export #:perm-element #:perm ; Type, Structure #:enable-perm-reader #:list-to-perm #:perm-to-list #:vector-to-perm #:...
null
https://raw.githubusercontent.com/stylewarning/cl-permutation/631b17541ad9fb5e2fbf89b09bc0d5a98d718e1c/src/package.lisp
lisp
src/package.lisp permutation.lisp Type, Structure bruhat.lisp permutation-generation.lisp group.lisp free-group.lisp CLASS FUNCTION FUNCTION FUNCTION TYPE CLASS FUNCTION FUNCTION FUNCTION permutation-group.lisp CLASS FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUN...
Copyright ( c ) 2012 - 2015 (defpackage #:cl-permutation (:use #:cl) (:nicknames #:perm) (:export #:perm-element #:enable-perm-reader #:list-to-perm #:perm-to-list #:vector-to-perm #:perm-to-vector #:make-perm #:perm-identity #:perm-identity-p #:random-perm #:perm-ref #:p...
56eea0ebbd8508ed781f9c3cd3e0b402942cc4bdb320e2781a393937be04698d
xguerin/netml
NetML_Layer_IV_TCP.ml
type t = { source : int; destination : int; seqnum : Int32.t; acknum : Int32.t; checksum : int; } [@@deriving yojson] let decode_header data = match%bitstring data with | {| source : 16 : bigendian; destination : 16 : bigendian; seqnum : 32 : bigendian; ...
null
https://raw.githubusercontent.com/xguerin/netml/de9d277d2f1ac055aea391b89391df6830f80eff/src/NetML_Layer_IV_TCP.ml
ocaml
ns cwr ece urg ack psh rst syn fin winsize urgptr options
type t = { source : int; destination : int; seqnum : Int32.t; acknum : Int32.t; checksum : int; } [@@deriving yojson] let decode_header data = match%bitstring data with | {| source : 16 : bigendian; destination : 16 : bigendian; seqnum : 32 : bigendian; ...
a865471f84f7f2e1a770c6f4809697ba30d5e572aa05b71890c5b2026e5377e9
e-bigmoon/haskell-blog
Ans2.hs
#!/usr/bin/env stack -- stack script --resolver lts-12.2 import System.IO.Extra main :: IO () main = do cp932 <- mkTextEncoding "cp932" content <- readFileEncoding cp932 "./shift-jis.txt" putStrLn content
null
https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/quiz/Quiz14/Ans2.hs
haskell
stack script --resolver lts-12.2
#!/usr/bin/env stack import System.IO.Extra main :: IO () main = do cp932 <- mkTextEncoding "cp932" content <- readFileEncoding cp932 "./shift-jis.txt" putStrLn content
7e67e5ae90824f1086b8e4fa179817e0846615bb27541745563dcadd13dd7b09
inhabitedtype/ocaml-aws
putInventory.mli
open Types type input = PutInventoryRequest.t type output = PutInventoryResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/putInventory.mli
ocaml
open Types type input = PutInventoryRequest.t type output = PutInventoryResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
1308cc02a5bee62d10ee59d35e8bae0bef74b789f6b7f9a2e5ca280cd58d4ae7
clojurewerkz/meltdown
env.clj
Copyright ( c ) 2013 - 2014 , , and the ClojureWerkz Team . ;; 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 ...
null
https://raw.githubusercontent.com/clojurewerkz/meltdown/58d50141bb35b4a5abf59dcb13db9f577b6b3b9f/src/clojure/clojurewerkz/meltdown/env.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 p...
Copyright ( c ) 2013 - 2014 , , and the ClojureWerkz Team . distributed under the License is distributed on an " AS IS " BASIS , (ns clojurewerkz.meltdown.env "Convenience functions for working with Reactor environments" (:import reactor.core.Environment)) (defn create "Instantiates new environment" ...
1728f9aa58241326a16fe3e1d84fdf5d269c5d87e09ad9fc113ff875b21a3b10
huangz1990/SICP-answers
59-union-set.scm
59-union-set.scm (load "p103-element-of-set.scm") (define (union-set set1 set2) (iter (append set1 set2) '())) (define (iter input result) (if (null? input) (reverse result) (let ((current-element (car input)) (remain-element (cdr input))) (if (element-of-set? curr...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/59-union-set.scm
scheme
59-union-set.scm (load "p103-element-of-set.scm") (define (union-set set1 set2) (iter (append set1 set2) '())) (define (iter input result) (if (null? input) (reverse result) (let ((current-element (car input)) (remain-element (cdr input))) (if (element-of-set? curr...
f49dd3e0ff2c7b1191252997fc08850c2a558c0e102651f5d3238943e4ac3450
ocaml/ocaml-lsp
ocaml_lsp_server.mli
val run : Lsp.Cli.Channel.t -> read_dot_merlin:bool -> unit -> unit module Diagnostics = Diagnostics module Version = Version
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/38d5ef8b5f224f28f8fb4377ec8c506ed3265ce3/ocaml-lsp-server/src/ocaml_lsp_server.mli
ocaml
val run : Lsp.Cli.Channel.t -> read_dot_merlin:bool -> unit -> unit module Diagnostics = Diagnostics module Version = Version
52b61eb1554d5f9e4171532d09b5faff27d39153ff3578c311354b504008db33
blindglobe/clocc
exporting.lisp
Macros that export their definiendum ;;; Copyright ( C ) 2004 by ;;; This is open-source software. GNU Lesser General Public License ( LGPL ) is applicable : ;;; No warranty; you may copy/modify/redistribute under the same ;;; conditions with the source code. ;;; See <URL:> ;;; for details and the precise copyr...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/ext/exporting/exporting.lisp
lisp
This is open-source software. No warranty; you may copy/modify/redistribute under the same conditions with the source code. See <URL:> for details and the precise copyright document. or "SB-MOP"?
Macros that export their definiendum Copyright ( C ) 2004 by GNU Lesser General Public License ( LGPL ) is applicable : (defpackage "EXPORTING" (:use "COMMON-LISP") (:shadow . #1=(defconstant defparameter defvar define-symbol-macro defun defgeneric defmethod define-compiler-macro defsetf ...
2f1ce7e28a5514e3f094bae1a5a690dde60dde5062ea1a314f779f60a7256476
portnov/ghcprofview-hs
Gui.hs
{-# LANGUAGE OverloadedStrings #-} module Gui where import qualified Data.Text as T () -- instances only import Data.Int import Data.GI.Base.GType import Data.GI.Base.GValue import Types import Operations import Gui.TreeWidget treeWidgetConfig :: TreeWidgetConfig CostCentreData treeWidgetConfig = TreeWidgetConfi...
null
https://raw.githubusercontent.com/portnov/ghcprofview-hs/b4dc1241dbbc54a91b094fcbebcb4f6df8182afd/src/Gui.hs
haskell
# LANGUAGE OverloadedStrings # instances only
module Gui where import Data.Int import Data.GI.Base.GType import Data.GI.Base.GValue import Types import Operations import Gui.TreeWidget treeWidgetConfig :: TreeWidgetConfig CostCentreData treeWidgetConfig = TreeWidgetConfig { twcColumns = [ 0 1 2 3 4 5 6 7 8 9 10 ] } noC...
d9fde40bfcc2d133b7b8188ddacc5307d04dc385c17af951f64277480d3e8cde
heshrobe/joshua-dist
mcl-ie-arglist.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*- $ fiHeader : input - editor - commands.lisp , v 1.24 92/12/03 10:26:54 cer Exp $ (in-package :clim-internals) (define-input-editor-command (com-ie-show-arglist :rescan nil :type information) (st...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-fixes/mcl-ie-arglist.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
$ fiHeader : input - editor - commands.lisp , v 1.24 92/12/03 10:26:54 cer Exp $ (in-package :clim-internals) (define-input-editor-command (com-ie-show-arglist :rescan nil :type information) (stream input-buffer) "Show function arglist" (let* ((symbol (symbol-at-position stream input-buffer '(#\( ))) ...
44dc5b0aa81deb15f7e4e271e4f256c9ab1f1004f2958917bab4cd62d35abf0a
lisp/de.setf.thrift
test.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : thrift - test ; -*- (in-package :thrift-test) ;;; (run-tests "setup/.*") ;;; (thrift-test::run-tests) ;;; (pprint-tabular t (sort (loop for key being each hash-key of *tests* collect (string key)) #'string-lessp)) (defparameter *test-root-path...
null
https://raw.githubusercontent.com/lisp/de.setf.thrift/32b0d1ca3d9fa95327165b8090e1021bc563ed3e/test/test.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : thrift - test ; -*- (run-tests "setup/.*") (thrift-test::run-tests) (pprint-tabular t (sort (loop for key being each hash-key of *tests* collect (string key)) #'string-lessp)) (stop-test-server) (test-server) doesn't work as the connect beats the accept and ...
(in-package :thrift-test) (defparameter *test-root-pathname* (make-pathname :name nil :type nil :defaults (or *compile-file-pathname* *load-pathname*))) (defvar *tests* (make-hash-table)) (defvar *test-location* #u"thrift:9091") (defvar *test-service* (make-instance 'service :identifier "Test Root")) (defvar *...