_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
3ea9b42167439ac339aff8068964e1b7267f5027de651dcd4eb977cb046b9099
metosin/kekkonen
ring_test.clj
(ns kekkonen.ring-test (:require [kekkonen.core :as k] [kekkonen.ring :as r] [kekkonen.midje :refer :all] [midje.sweet :refer :all] [schema.core :as s] [ring.util.http-response :refer [ok]] [plumbing.core :as p] [kekkonen.common :as k...
null
https://raw.githubusercontent.com/metosin/kekkonen/5a38c52af34a0eb0f19d87e9f549e93e6d87885f/test/kekkonen/ring_test.clj
clojure
(ns kekkonen.ring-test (:require [kekkonen.core :as k] [kekkonen.ring :as r] [kekkonen.midje :refer :all] [midje.sweet :refer :all] [schema.core :as s] [ring.util.http-response :refer [ok]] [plumbing.core :as p] [kekkonen.common :as k...
594136e97aef1b4f2399f50ab3169d70d10c6dce8f3970df8c2f4719c686bd7c
SamirTalwar/advent-of-code
AOC_11_1.hs
# LANGUAGE DeriveGeneric # The first floor contains a polonium generator , a thulium generator , a thulium - compatible microchip , a promethium generator , a ruthenium generator , a ruthenium - compatible microchip , a cobalt generator , and a cobalt - compatible microchip . The second floor contains a polonium - ...
null
https://raw.githubusercontent.com/SamirTalwar/advent-of-code/8a595b9bd82443164c834400a5513ecea91c8650/2016/AOC_11_1.hs
haskell
--------------------------------------
# LANGUAGE DeriveGeneric # The first floor contains a polonium generator , a thulium generator , a thulium - compatible microchip , a promethium generator , a ruthenium generator , a ruthenium - compatible microchip , a cobalt generator , and a cobalt - compatible microchip . The second floor contains a polonium - ...
d32f7548acfdb18564aebbf8fbb728f50d04b01663d7549ab233b314a7dabcee
ml4tp/tcoq
summary.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/library/summary.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module registers the declarat...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type marshallable = type 'a...
6e076cd56b2dfe9d0fa134480ddec9b9ffa60f07b3539dc5b2ff33d82b5b7b8d
vyzo/gerbil
files-to-be-ported.scm
pregexp.scm
null
https://raw.githubusercontent.com/vyzo/gerbil/17fbcb95a8302c0de3f88380be1a3eb6fe891b95/src/std/pregexp/dialects/files-to-be-ported.scm
scheme
pregexp.scm
2260255b62db2c682127fab3421907e1f647a8e017c866f5058cc473c630164f
jedimahdi/soltan
Session.hs
module Hokm.Api.Data.Session ( Session (..) , withAnonymous , withAuthenticated ) where import qualified Hokm.Api.Data.Jwt as Jwt import qualified Hokm.Api.Servant.Response as Response import Servant ( IsMember, Union, respond ) data Session = Authenticated Jwt.Pr...
null
https://raw.githubusercontent.com/jedimahdi/soltan/bc2f9c040854420b8964ad011205d6a251872fe0/backend/hokm-api/src/Hokm/Api/Data/Session.hs
haskell
module Hokm.Api.Data.Session ( Session (..) , withAnonymous , withAuthenticated ) where import qualified Hokm.Api.Data.Jwt as Jwt import qualified Hokm.Api.Servant.Response as Response import Servant ( IsMember, Union, respond ) data Session = Authenticated Jwt.Pr...
b544c7a11f6096f161295554484c7bfcfeac58c98798c17c0df5bd3c03773842
ghc/ghc
T22379a.hs
{-# LANGUAGE Haskell2010 #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # module Bug where import Data.Kind import Data.Proxy (Proxy) data Delayed (env :: Type) (c :: Type) data Handler (a :: Type) data Router (a :: Type) class , then type decl class HasServer api where type Ser...
null
https://raw.githubusercontent.com/ghc/ghc/37cfe3c0f4fb16189bbe3bb735f758cd6e3d9157/testsuite/tests/polykinds/T22379a.hs
haskell
# LANGUAGE Haskell2010 # # LANGUAGE RankNTypes #
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # module Bug where import Data.Kind import Data.Proxy (Proxy) data Delayed (env :: Type) (c :: Type) data Handler (a :: Type) data Router (a :: Type) class , then type decl class HasServer api where type ServerT api (m :: Type -> Type) :: Type route :: P...
517da796ca51b1ef5737bdc40332e6b91c13feafc8d2ec74e4549c9144050cc9
kuberlog/daemon-clj
derp.clj
(ns daemon.visual-cortex.derp) (defrecord HerpDerp [Lerp]) (Herp)
null
https://raw.githubusercontent.com/kuberlog/daemon-clj/904699d005ea2df3d86426d8aa1d3b030178e683/src/daemon/visual_cortex/derp.clj
clojure
(ns daemon.visual-cortex.derp) (defrecord HerpDerp [Lerp]) (Herp)
70b01e4e56ce0f25f267c929dad6af7e9a62d42c7d16af8a8d7b959d1004f17b
frenetic-lang/ocaml-topology
Parser_Test.ml
open Network open Network_Common.Net open OUnitHack TEST "true" = true TEST "single node" = let t = Parse.from_dotfile "test/dot/single_node.dot" in (Topology.VertexSet.length (Topology.vertexes t) = 1) TEST "single edge" = let t = Parse.from_dotfile "test/dot/single_edge.dot" in (Topology.VertexSet....
null
https://raw.githubusercontent.com/frenetic-lang/ocaml-topology/a13ed36faaf216962fabd24d3402f91f5fec781d/test/Parser_Test.ml
ocaml
open Network open Network_Common.Net open OUnitHack TEST "true" = true TEST "single node" = let t = Parse.from_dotfile "test/dot/single_node.dot" in (Topology.VertexSet.length (Topology.vertexes t) = 1) TEST "single edge" = let t = Parse.from_dotfile "test/dot/single_edge.dot" in (Topology.VertexSet....
9fb85a915cbe125fc14d8cbcd152dc8054d8eb2a9ebe6eb9cb7e44978cf5b036
clojure-cookbook/clojure-cookbook
my_clojure_program.clj
(println "Yo.")
null
https://raw.githubusercontent.com/clojure-cookbook/clojure-cookbook/1b3754a7f4aab51cc9b254ea102870e7ce478aa0/03_general-computing/3-05_main/my_clojure_program.clj
clojure
(println "Yo.")
e91b694ed6c5d27860498b9229d08f648f146a7211fe0cc9344140518b020889
7theta/re-frame-via
subs.cljs
;; Copyright (c) 7theta. All rights reserved. ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-v10.html) ;; which can be found in the LICENSE file at the root of this ;; distribution. ;; ;; By using this software in any fashion, you are agreeing to be bo...
null
https://raw.githubusercontent.com/7theta/re-frame-via/ae530337eff4098991e937d6e06aa413d8ad7b45/example/src/cljs/example/subs.cljs
clojure
Copyright (c) 7theta. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-v10.html) which can be found in the LICENSE file at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the ...
(ns example.subs (:require-macros [reagent.ratom :refer [reaction]]) (:require [re-frame.core :refer [reg-sub]])) (reg-sub :authenticated? (fn [db] (:authenticated db)))
1416495f8f51bb023a93306be0e844c608404b5ec4b7e1f0969895dd9e984666
haskell/haskell-language-server
EmptyCaseParens.expected.hs
test = True && (case True of False -> _ True -> _)
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/EmptyCaseParens.expected.hs
haskell
test = True && (case True of False -> _ True -> _)
5684d8eb112694e5cbc43bce848a68f0ff4d60602a7a33a34908536e61ad353b
michaelklishin/welle
cache_test.clj
(ns clojurewerkz.welle.test.cache-test (:require [clojurewerkz.welle.core :as wc] [clojurewerkz.welle.buckets :as wb] [clojure.core.cache :refer :all] [clojure.test :refer :all] [clojurewerkz.welle.cache :refer :all] [clojurewerkz.welle.testkit :refer [dr...
null
https://raw.githubusercontent.com/michaelklishin/welle/3f3cd24af7c0d95489298e4096b362b6943f85ef/test/clojurewerkz/welle/test/cache_test.clj
clojure
little documentation, incomplete test suite and slightly non-standard (although necessary to support all those cache variations) cache operations protocol. This is by no means clear or complete either but it did the job of helping me explore the API. Tests
(ns clojurewerkz.welle.test.cache-test (:require [clojurewerkz.welle.core :as wc] [clojurewerkz.welle.buckets :as wb] [clojure.core.cache :refer :all] [clojure.test :refer :all] [clojurewerkz.welle.cache :refer :all] [clojurewerkz.welle.testkit :refer [dr...
57688542962ef08a25f1a92a40567cc6a3c7394f41dc0ee32bdcfa2f2b4873a1
rabbitmq/rabbitmq-msg-store-index-eleveldb
rotating_bloom_filter.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/rabbitmq/rabbitmq-msg-store-index-eleveldb/211e7a64c56f2fb6d690b1b8295b221c46a73c6c/src/rotating_bloom_filter.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. Given the const...
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 ) 2017 Pivotal Software , Inc. All rights reserved . -module...
501613c45a6e744a84039ead8b93efcd519e6dc73610b149ae47e91090581828
Cantido/clj-bittorrent
binary_test.clj
(ns clj-bittorrent.math.binary-test (:require [clojure.test :refer :all] [clojure.test.check.clojure-test :refer :all] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clj-bittorrent.math.binary :as bin] [schema.test :as st])...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/test/clj_bittorrent/math/binary_test.clj
clojure
(ns clj-bittorrent.math.binary-test (:require [clojure.test :refer :all] [clojure.test.check.clojure-test :refer :all] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clj-bittorrent.math.binary :as bin] [schema.test :as st])...
47a97c453a2ef9b05cc0652f01d9ab3109cbec544bb2bde62ee4fe35ab6cb4a3
aprell/compiler-potpourri
qbe.mli
open Three_address_code open Control_flow val emit_function : IR.decl -> Cfg.t -> unit val emit : ?optimize:bool -> string -> unit
null
https://raw.githubusercontent.com/aprell/compiler-potpourri/845e7cb8ecff0489b3d9bfd8e7a210082c28ee7d/qbe/qbe.mli
ocaml
open Three_address_code open Control_flow val emit_function : IR.decl -> Cfg.t -> unit val emit : ?optimize:bool -> string -> unit
a5be0a060a3523302cef87eb6b1c0707c1d11f6a768a3c459581dab770005b21
martintrojer/datalog
literals.clj
Copyright ( c ) . All rights reserved . The use and ;; distribution terms for this software are covered by the Eclipse Public ;; License 1.0 (-1.0.php) which can ;; be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by t...
null
https://raw.githubusercontent.com/martintrojer/datalog/bd64e76ceb02c0494a654010c0221ada5fc2a002/src/datalog/literals.clj
clojure
distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or an...
Copyright ( c ) . All rights reserved . The use and A Clojure implementation of Datalog -- Literals straszheimjeffrey ( gmail ) Created 25 Feburary 2009 Converted to Clojure1.4 by 2012 . (ns datalog.literals (:use [datalog.util] [datalog.database]) (:use [clojure.set :only (intersectio...
f3c1fcf8964a057a6874ae4ef194e80a5bf052f14b064027005f62f967e0cfef
BitGameEN/bitgamex
hello_table.erl
%% File : hello_table.erl Purpose : Brief demonstration of Luerl table access . Use $ erlc hello_table.erl & & erl -pa .. / .. /ebin -s hello_table run -s init stop -noshell -module(hello_table). -export([run/0]). run() -> LuaScript = <<"hello_table = { hello=\"world\" }; return hello_table">>, ...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/luerl/examples/hello/hello_table.erl
erlang
File : hello_table.erl
Purpose : Brief demonstration of Luerl table access . Use $ erlc hello_table.erl & & erl -pa .. / .. /ebin -s hello_table run -s init stop -noshell -module(hello_table). -export([run/0]). run() -> LuaScript = <<"hello_table = { hello=\"world\" }; return hello_table">>, {[_Table], Lua0} = luerl:do(L...
799ef5cce96965fd2f8a77459ba00104079a1e5fec3ce1f545340d871e01f0cc
vyorkin/haskbot
Interpreter.hs
module Haskbot.Interpreter ( -- * Types Command(..) -- * Functions , setup , run , run' -- * Re-exports , module Haskbot.Interpreter.Context , module Haskbot.Interpreter.Error , module Haskbot.Interpreter.Options ) where import Data.Text (Text) import qualified Data.Text as Text import Cont...
null
https://raw.githubusercontent.com/vyorkin/haskbot/efc22a16da229efd7728cfbb1cea823cc4b3fcd5/src/Haskbot/Interpreter.hs
haskell
* Types * Functions * Re-exports | Interpreter commands. ^ Evaluate expression. ^ Get type of an expression. ^ Get expression kind.
module Haskbot.Interpreter Command(..) , setup , run , run' , module Haskbot.Interpreter.Context , module Haskbot.Interpreter.Error , module Haskbot.Interpreter.Options ) where import Data.Text (Text) import qualified Data.Text as Text import Control.Monad.IO.Class (MonadIO) import Control.Monad.Catc...
b7afa71c62a808c88e07ce6ab697860b400813619253ee7523bd20226fe24bfc
c-cube/ocaml-containers
CCVector.ml
(* This file is free software, part of containers. See file "license" for more details. *) * { 1 , mutable vector } type rw = [ `RW ] type ro = [ `RO ] type 'a iter = ('a -> unit) -> unit type 'a gen = unit -> 'a option type 'a equal = 'a -> 'a -> bool type 'a ord = 'a -> 'a -> int type 'a printer = Format.formatter...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/b1c39832aa0ac239978a848580a4c6ea29850a2c/src/core/CCVector.ml
ocaml
This file is free software, part of containers. See file "license" for more details. * A vector of 'a. is the underlying array empty? next capacity, if current one is [n] resize the underlying array using x to temporarily fill the array grow the array, using [x] as a filler if required do not really use [x]...
* { 1 , mutable vector } type rw = [ `RW ] type ro = [ `RO ] type 'a iter = ('a -> unit) -> unit type 'a gen = unit -> 'a option type 'a equal = 'a -> 'a -> bool type 'a ord = 'a -> 'a -> int type 'a printer = Format.formatter -> 'a -> unit type ('a, 'mut) t = { mutable size: int; mutable vec: 'a array } type 'a v...
2beff7dc09752fe1667a322dcbc73f50f06264618f38ae15645c32cc4d6e678a
hemmi/coq2scala
segmenttree.ml
(** This module is a very simple implementation of "segment trees". A segment tree of type ['a t] represents a mapping from a union of disjoint segments to some values of type 'a. *) (** Misc. functions. *) let list_iteri f l = let rec loop i = function | [] -> () | x :: xs -> f i x; loop (i + 1) x...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/lib/segmenttree.ml
ocaml
* This module is a very simple implementation of "segment trees". A segment tree of type ['a t] represents a mapping from a union of disjoint segments to some values of type 'a. * Misc. functions. * We focus on integers but this module can be generalized. * A value of type [domain] is interpreted different...
let list_iteri f l = let rec loop i = function | [] -> () | x :: xs -> f i x; loop (i + 1) xs in loop 0 l let log2 x = log x /. log 2. let log2n x = int_of_float (ceil (log2 (float_of_int x))) type elt = int type domain = | Interval of elt * elt * On internal node or root , a domain [ Universe ...
bd1d7d4f867eddbd20871ddba7f75ba4bee1ae3e3d7051bc04d17150f84b40d8
sky-big/RabbitMQ
rabbit_mgmt_format.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, WITH...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-management/src/rabbit_mgmt_format.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. -------------------------------------------------------------------- 用F...
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 Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ Management Plugin . The Initial Developer of the Original Code...
31a59e182ddf5e694e844be564e8ff5014ad8f9c1523d4b1ea259565672f07f4
parsonsmatt/prairie
Prairie.hs
| A library for first - class record fields . -- @since 0.0.1.0 module Prairie ( module Prairie.Class , module Prairie.Update , module Prairie.Diff , module Prairie.TH ) where import Prairie.Class import Prairie.Update import Prairie.Diff import Prairie.TH
null
https://raw.githubusercontent.com/parsonsmatt/prairie/4ef22f23a30774df9698fcd0009d2104d228dfad/src/Prairie.hs
haskell
| A library for first - class record fields . @since 0.0.1.0 module Prairie ( module Prairie.Class , module Prairie.Update , module Prairie.Diff , module Prairie.TH ) where import Prairie.Class import Prairie.Update import Prairie.Diff import Prairie.TH
5a9ca4b8299029529c7bd9895993dce24c12ded5444f38b46c1a18d5fd148948
lemmaandrew/CodingBatHaskell
maxMirror.hs
From We 'll say that a \"mirror\ " section in an array is a group of contiguous elements such that somewhere in the array , the same group appears in reverse order . For example , the largest mirror section in { 1 , 2 , 3 , 8 , 9 , 3 , 2 , 1 } is length 3 ( the { 1 , 2 , 3 } part ) . Return the size of the l...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Array-3/maxMirror.hs
haskell
From We 'll say that a \"mirror\ " section in an array is a group of contiguous elements such that somewhere in the array , the same group appears in reverse order . For example , the largest mirror section in { 1 , 2 , 3 , 8 , 9 , 3 , 2 , 1 } is length 3 ( the { 1 , 2 , 3 } part ) . Return the size of the l...
cc1a157f21289164c593f070ad0d77f124eb96a07875432611910804e941b882
ekasilicon/jade
uint.rkt
#lang racket/base (require racket/match "base.rkt") (define digit-values (hasheqv #\0 0 #\1 1 #\2 2 #\3 3 #\4 4 #\5 5 #\6 6 #\7 7 #\8 8 #\9 9 #\a 10 #\A 10 #\b 11 #\B 11 #\c 12...
null
https://raw.githubusercontent.com/ekasilicon/jade/75790e8aea12b6aeac7f3c98f6626652bf067349/src/parse/uint.rkt
racket
(parse-varuint "hello")
#lang racket/base (require racket/match "base.rkt") (define digit-values (hasheqv #\0 0 #\1 1 #\2 2 #\3 3 #\4 4 #\5 5 #\6 6 #\7 7 #\8 8 #\9 9 #\a 10 #\A 10 #\b 11 #\B 11 #\c 12...
d78b66b3d753547961d8dbd04b93b547936f2e8750e8d118efce9b15b846aa2b
ocaml-omake/omake
lm_map.ml
* Build a table using a red - black tree . * Every node in the tree is colored either black or red . * A red - black tree has the following invariants : * 1 . Every leaf is colored black * 2 . All children of every red node are black . * 3 . Every path from the root to a leaf has the * ...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_map.ml
ocaml
* Table is a binary tree. * Color is kept in the label to save space. * Make the set. * Path into the tree. * Size of a table. *********************************************************************** * DEBUGGING * ***********...
* Build a table using a red - black tree . * Every node in the tree is colored either black or red . * A red - black tree has the following invariants : * 1 . Every leaf is colored black * 2 . All children of every red node are black . * 3 . Every path from the root to a leaf has the * ...
07619bba161eae6caf8951c506195564fa16864f2d0f153d9f569cce5d2e15a8
funcool/datoteka
user.clj
(ns user (:require [clojure.tools.namespace.repl :as repl] [clojure.walk :refer [macroexpand-all]] [clojure.pprint :refer [pprint]] [clojure.test :as test])) ;; --- Development Stuff (defn run-test ([] (run-test #"^datoteka.tests.*")) ([o] (repl/refresh) (cond (ins...
null
https://raw.githubusercontent.com/funcool/datoteka/cbff7206cd218c185cda8a9f2b3600a3a13d044c/test/user.clj
clojure
--- Development Stuff
(ns user (:require [clojure.tools.namespace.repl :as repl] [clojure.walk :refer [macroexpand-all]] [clojure.pprint :refer [pprint]] [clojure.test :as test])) (defn run-test ([] (run-test #"^datoteka.tests.*")) ([o] (repl/refresh) (cond (instance? java.util.regex.Pa...
9dda612b2648d9668cbb8f32220ba098f0cad47b0f137202566b1bb78a41bc24
aumouvantsillage/Hydromel-lang
syntax.rkt
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 /. #lang racket (require "expander.rkt" "std.rkt" (for-syntax racket/syntax syntax/parse)) (provide (for-syntax (all-defined-out...
null
https://raw.githubusercontent.com/aumouvantsillage/Hydromel-lang/241cfa3745e0b45954abfa41b3b0af3b1ae67110/hydromel/lib/syntax.rkt
racket
TODO Add function definitions field-expr is handled in checker.rkt
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 /. #lang racket (require "expander.rkt" "std.rkt" (for-syntax racket/syntax syntax/parse)) (provide (for-syntax (all-defined-out...
0fa2710c6fc323f36df0ab09594a319e0bcef0b28b9801b99c16fb5297012dbb
phoe/binding-arrows
documentation.lisp
(in-package #:binding-arrows) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Documentation (setf (documentation '-> 'function) "The thread-first threading macro. Binds anonymous variables and threads them into subsequent forms as their first arguments. For example, the fo...
null
https://raw.githubusercontent.com/phoe/binding-arrows/bd732c548c2010fdb49e03b865f2631e065d1aab/src/documentation.lisp
lisp
Documentation
(in-package #:binding-arrows) (setf (documentation '-> 'function) "The thread-first threading macro. Binds anonymous variables and threads them into subsequent forms as their first arguments. For example, the following form: (-> foo bar (baz) (quux 1 2 3)) Is equivalent to: (let ((temp1 foo...
8c3ff87d85d1b14548f1f2a82581b2df7480811829eb49241cc96687a57ce3d9
wdebeaum/DeepSemLex
tomatoseed.lisp
;;;; W::TOMATOSEED ;;;; (define-words :pos W::n :words ( (W::TOMATOSEED (senses ((LF-PARENT ONT::NUTS-SEEDS) (TEMPL MASS-PRED-TEMPL) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/tomatoseed.lisp
lisp
W::TOMATOSEED (define-words :pos W::n :words ( (W::TOMATOSEED (senses ((LF-PARENT ONT::NUTS-SEEDS) (TEMPL MASS-PRED-TEMPL) ) ) ) ))
ce6209474c79d97836fb7cc742631765234367257680776cd37f5ffa6f582848
teburd/hottub
hottub_SUITE.erl
Copyright ( c ) 2011 - 2013 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/teburd/hottub/dcf9d0bfdadb94e535b3964c513d673c2fc2ac2d/test/hottub_SUITE.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2013 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(hottub_SUITE). -include_lib("common_test/inc...
33436ce0ed242c0e0ec1995db0f5b327edcf16b8df0f1dea3704789fa3390efc
jrh13/hol-light
make.ml
(* ========================================================================= *) A tool for formal verification of nonlinear inequalities in HOL Light . (* *) ( c ) 2012 . (* ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Formal_ineqs/make.ml
ocaml
========================================================================= ========================================================================= ---------------...
A tool for formal verification of nonlinear inequalities in HOL Light . ( c ) 2012 . Distributed under the same license as HOL Light . needs "Multivariate/realanalysis.ml";; load_path := (Filename.concat (!hol_dir) "Formal_ineqs")...
4ce70a4a9349f229cd5a9cb676e0b79d64f9536ec4846c7e0be5b41ff4f102b9
esl/MongooseIM
domain_isolation_SUITE.erl
-module(domain_isolation_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all, nowarn_export_all]). -import(distributed_helper, [mim/0, require_rpc_nodes/1, rpc/4, subhost_pattern/1]). -import(domain_helper, [host_type/0, secondary_host_type/0]). -import(co...
null
https://raw.githubusercontent.com/esl/MongooseIM/6e3fd8a9b0d75b15a6f0caf3fbefc5fcf9948c16/big_tests/tests/domain_isolation_SUITE.erl
erlang
This suite tests domain isolation. So, we could need to init modules only once. -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- Tests ------------------------...
-module(domain_isolation_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all, nowarn_export_all]). -import(distributed_helper, [mim/0, require_rpc_nodes/1, rpc/4, subhost_pattern/1]). -import(domain_helper, [host_type/0, secondary_host_type/0]). -import(co...
45beea2fa484f9d5963f6e71a0802d9761537a2559fcd2ce7f919b6838baa6e9
kyleburton/sandbox
project.clj
(defproject argon2 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main ^:skip-aot argon2.core :global-vars {*warn-on-reflection* true} [ org.clojure/clojure " 1.8.0 " ] [org.clojure/clojure ...
null
https://raw.githubusercontent.com/kyleburton/sandbox/1164c96c1c0de0948e8666e2ad8a06bbc673d37a/examples/clojure/argon2/project.clj
clojure
(defproject argon2 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main ^:skip-aot argon2.core :global-vars {*warn-on-reflection* true} [ org.clojure/clojure " 1.8.0 " ] [org.clojure/clojure ...
ec221bf88fb0f402a37f4d5a5a5c1bba4df948251fbd15ec8cec023b748db3af
drewt/scmus
playlist-view.scm
;; Copyright 2014 - 2020 ;; ;; 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 2 of the ;; License, or (at your option) any later version. ;; ;; This program is distributed in ...
null
https://raw.githubusercontent.com/drewt/scmus/5041ec376cb17db463117b8fa212b16b23fe770d/src/playlist-view.scm
scheme
This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS...
Copyright 2014 - 2020 modify it under the terms of the GNU General Public License as You should have received a copy of the GNU General Public License (declare (hide)) (import (scmus base) (scmus client) (scmus event) (scmus option) (scmus status) (scmus track) ...
7f3dd7ec8a969659063d87c4bc0390558dccd53878830e2fa6b7abdbe0a9c2dd
nshepperd/funn
Buffer.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # module AI.Funn.CL.Buffer ( Buffer, malloc, arg, fromVector, toVector, fromList, toList, size, slice, concat, clone, copyInto, addInto, fromMemSub, toMemSub ) where import Prelude hi...
null
https://raw.githubusercontent.com/nshepperd/funn/23138fc44cfda90afd49927c39b122ed78945293/AI/Funn/CL/Buffer.hs
haskell
O(size) O(size) O(n)
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # module AI.Funn.CL.Buffer ( Buffer, malloc, arg, fromVector, toVector, fromList, toList, size, slice, concat, clone, copyInto, addInto, fromMemSub, toMemSub ) where import Prelude hi...
3e706b827f779dd218798b7466a9c7fd38fd359024790e91e390ae7a0301cf9d
ghc/testsuite
Roles1.hs
# LANGUAGE RoleAnnotations , PolyKinds # module Roles1 where data T1 a = K1 a data T2 a = K2 a data T3 (a :: k) = K3 data T4 (a :: * -> *) b = K4 (a b) data T5 a = K5 a data T6 a = K6 data T7 a b = K7 b type role T1 nominal type role T2 representational type role T3 phantom type role T4 nominal _ type role T5 _
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/roles/should_compile/Roles1.hs
haskell
# LANGUAGE RoleAnnotations , PolyKinds # module Roles1 where data T1 a = K1 a data T2 a = K2 a data T3 (a :: k) = K3 data T4 (a :: * -> *) b = K4 (a b) data T5 a = K5 a data T6 a = K6 data T7 a b = K7 b type role T1 nominal type role T2 representational type role T3 phantom type role T4 nominal _ type role T5 _
1af38fa27018ebf50b5e20f3cdafcfbccc49163b16e00c2ea006f204145b202c
tranma/shitty-complexity
Generate.hs
-- * This module defines arbitrary-based benchmark generators. -- module Test.BigOh.Generate ( -- * Benchmark generators Input(..) , genWhnf , genNf , genInputs , genIndependentInputs ) where import Control.Applicative import Prelude import Control.DeepSeq import ...
null
https://raw.githubusercontent.com/tranma/shitty-complexity/573815a8af9d5f3cda3c96e22d59b71ec9f29de9/src/Test/BigOh/Generate.hs
haskell
* This module defines arbitrary-based benchmark generators. * Benchmark generators | Given a function `f :: a -> b`, generate inputs of type `a`, then apply the generated inputs to `f` and evaluate to weak head-normal form. ^ max number of inputs ^ range of input size ^ given a size, how to generate an in...
module Test.BigOh.Generate Input(..) , genWhnf , genNf , genInputs , genIndependentInputs ) where import Control.Applicative import Prelude import Control.DeepSeq import Criterion.Main import qualified Data.List as L import Test.QuickCheck im...
715d117b6eb472121a71442a067c4bc67f1608858a83809392bdf4ec07e5dc32
mbenelli/klio
kws-deps.scm
kliows.scm - Klio web server dependencies , uses for debugging purpose . ;; Copyright ( c ) 2010 , 2011 by < > All Rights Reserved . (include "prelude.scm") (include "lists.scm") (include "charsets.scm") (include "strings.scm") (include "input-parse.scm") (include "ssax.scm") (include "sxml.scm") (include "ba...
null
https://raw.githubusercontent.com/mbenelli/klio/33c11700d6080de44a22a27a5147f97899583f6e/klio/kws-deps.scm
scheme
(include "http.scm")
kliows.scm - Klio web server dependencies , uses for debugging purpose . Copyright ( c ) 2010 , 2011 by < > All Rights Reserved . (include "prelude.scm") (include "lists.scm") (include "charsets.scm") (include "strings.scm") (include "input-parse.scm") (include "ssax.scm") (include "sxml.scm") (include "base6...
ed3d890d11fe728c90cbdcd33180d0ee9b2b216fc5f2106bb3b01f713c906cad
Javran/advent-of-code
Day11.hs
# LANGUAGE PatternSynonyms # module Javran.AdventOfCode.Y2020.Day11 ( ) where import Control.Applicative import Control.Monad import Data.Monoid import qualified Data.Vector as V import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP hiding (many) data Day11 deriving (Generic) type Cell = Maybe Bo...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2020/Day11.hs
haskell
row-major going one direction until hitting something
# LANGUAGE PatternSynonyms # module Javran.AdventOfCode.Y2020.Day11 ( ) where import Control.Applicative import Control.Monad import Data.Monoid import qualified Data.Vector as V import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP hiding (many) data Day11 deriving (Generic) type Cell = Maybe Bo...
9c0289f2427977084f6367ff5e22503ba7e21cb75f1574bc32aae32cc753b9af
janestreet/memtrace_viewer_with_deps
linked_queue_tests.ml
open Core_kernel open Linked_queue let%test_module _ = (module struct let m = let module M = struct type 'a u = 'a t [@@deriving bin_io] type t = int u [@@deriving bin_io] end in (module M : Binable.S with type t = M.t) ;; let test list = let t = of_list lis...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/core_kernel/test/src/linked_queue_tests.ml
ocaml
open Core_kernel open Linked_queue let%test_module _ = (module struct let m = let module M = struct type 'a u = 'a t [@@deriving bin_io] type t = int u [@@deriving bin_io] end in (module M : Binable.S with type t = M.t) ;; let test list = let t = of_list lis...
5e1b9766e2c4a3dce9726a840a7d76841619a4ec5f9df9632c39135548675554
pbrinkmeier/corediff
Pairing.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} module CoreDiff.Pairing where import Data.Foldable (toList) import Data.List (find, nubBy) import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe (catMaybes) import Data.Sequence (Seq(..), (><)) import qualified ...
null
https://raw.githubusercontent.com/pbrinkmeier/corediff/61edd6c2bdcfb84944a347673abb4f94002262ba/src/CoreDiff/Pairing.hs
haskell
# LANGUAGE OverloadedStrings # /-/blob/a1f34d37b47826e86343e368a5c00f1a4b1f2bce/compiler/GHC/Tc/Module.hs#L1794 There is even a note about this here: /-/blob/a1f34d37b47826e86343e368a5c00f1a4b1f2bce/compiler/GHC/Tc/Module.hs#L1893 This confuses the "trivial pairings" algorithm, which assumes that exported binders ha...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module CoreDiff.Pairing where import Data.Foldable (toList) import Data.List (find, nubBy) import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe (catMaybes) import Data.Sequence (Seq(..), (><)) import qualified Data.Sequence as Seq import qualifi...
9e51d9ce13f76e72a980ddbd68fed9efaed2993187046a66be839f4e0f9b4661
nomeata/gipeda
BenchmarkSettings.hs
# LANGUAGE OverloadedStrings , DeriveGeneric # module BenchmarkSettings where import Data.Yaml import Data.Aeson import qualified Data.Vector as V import Data.Functor import Control.Applicative import Control.Monad import Data.Monoid import Data.Maybe import GHC.Generics (Generic) data NumberType = IntegralNT | Smal...
null
https://raw.githubusercontent.com/nomeata/gipeda/f3c8c52df24361c1a09bdfbdaefcd63b54fef0d8/src/BenchmarkSettings.hs
haskell
Keep in sync with setting_for() in gipeda.js Very naive glob, * only at the end
# LANGUAGE OverloadedStrings , DeriveGeneric # module BenchmarkSettings where import Data.Yaml import Data.Aeson import qualified Data.Vector as V import Data.Functor import Control.Applicative import Control.Monad import Data.Monoid import Data.Maybe import GHC.Generics (Generic) data NumberType = IntegralNT | Smal...
095d796163222f52e6ecd35ef03787fb1e5816dddb2b26f0bb6f6f4dff37d74e
lisp/de.setf.xml
xcl-construction-context.lisp
-*- package : de.setf.xcl ; Syntax : Common - lisp ; Base : 10 -*- (in-package :de.setf.xcl) ;; an xmlp-based sax parser drives the event-based counterpart based on ;; inline parser construction operations. ;; note that the bridge class implementation does not specify the ;; instantiation and invocation structure. ...
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/demos/xcl/xcl-construction-context.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- an xmlp-based sax parser drives the event-based counterpart based on inline parser construction operations. note that the bridge class implementation does not specify the instantiation and invocation structure. if that succeeds, then try to locate the type using the unive...
(in-package :de.setf.xcl) (defClass xcl-construction-context (asexp-construction-context) () (:documentation "the class xcl-construction-context further specializes ae-construction-context to produce xml common logic expressions.")) specialized versions of the xml parser constructors generate xcl expressi...
1286d6f6e100ce4d3f0d5b1eef8bf6f6244a95760a6425effd5be3dabc0af327
abcdw/rde
mail.scm
(define-module (gnu home-services mail) #:use-module (gnu home services) #:use-module (gnu home-services-utils) #:use-module (gnu home services shepherd) #:use-module (gnu packages mail) #:use-module (gnu services configuration) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (guix ...
null
https://raw.githubusercontent.com/abcdw/rde/5b8605f421d0b8a9569e43cb6f7e651e7a8f7218/src/gnu/home-services/mail.scm
scheme
Commentary: This modules contains mail-related services. Code: Isync. L2md.
(define-module (gnu home-services mail) #:use-module (gnu home services) #:use-module (gnu home-services-utils) #:use-module (gnu home services shepherd) #:use-module (gnu packages mail) #:use-module (gnu services configuration) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (guix ...
ab0a1b4f84ff774f8c4db241d0f55337d642cc4ce7c091cf592e67e3d481f8ff
swannodette/swannodette.github.com
core.clj
(ns bar.core) (defmacro mult [a b] `(* ~a ~b))
null
https://raw.githubusercontent.com/swannodette/swannodette.github.com/91a196ded00bfacd59cc925161312090b2cfa931/assets/cljs/bar/core.clj
clojure
(ns bar.core) (defmacro mult [a b] `(* ~a ~b))
54e5d4ac19d5d98bd0bfa1a12311e760f68f623c1fd46ae617b470705b2c1254
job-streamer/job-streamer-control-bus
recoverer.clj
(ns job-streamer.control-bus.component.recoverer (:require [clojure.tools.logging :as log] [com.stuartsierra.component :as component] [meta-merge.core :refer [meta-merge]] [clojure.core.async :refer [go-loop <! timeout close!]] (job-streamer.control-bus.component [datom...
null
https://raw.githubusercontent.com/job-streamer/job-streamer-control-bus/af38bc8838366c230e4f53f08b447eecc3e794b7/src/clj/job_streamer/control_bus/component/recoverer.clj
clojure
(ns job-streamer.control-bus.component.recoverer (:require [clojure.tools.logging :as log] [com.stuartsierra.component :as component] [meta-merge.core :refer [meta-merge]] [clojure.core.async :refer [go-loop <! timeout close!]] (job-streamer.control-bus.component [datom...
a0b25d4a2353ea88520d89039312b8ce637d20e73d43da2d32c93878513de22d
emina/rosette
bvseq.rkt
#lang rosette (require rackunit rackunit/text-ui (rename-in rackunit [check-exn rackunit/check-exn]) rosette/lib/roseunit (only-in rosette/base/core/merge merge*)) (define-symbolic b2 (bitvector 2)) (define-symbolic b3 (bitvector 3)) (define-symbolic a c d e boolean?) (define b2∪3 (if a b2 b3)) (define b2∪...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/base/bvseq.rkt
racket
(printf "VC:~a\nActual: ~a\nExpected: ~a\n" (vc) (result-state ra) (result-state re)) (printf "Actual: ~a\nExpected: ~a\n" ra re)
#lang rosette (require rackunit rackunit/text-ui (rename-in rackunit [check-exn rackunit/check-exn]) rosette/lib/roseunit (only-in rosette/base/core/merge merge*)) (define-symbolic b2 (bitvector 2)) (define-symbolic b3 (bitvector 3)) (define-symbolic a c d e boolean?) (define b2∪3 (if a b2 b3)) (define b2∪...
b7a087a3e0bd53a517d7ced1d19243bd1b1cf69aeb53dc7c1483873eca5f915c
xapi-project/message-switch
time.ml
* Copyright ( c ) Citrix Systems Inc. * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
null
https://raw.githubusercontent.com/xapi-project/message-switch/ba637b63c009d23cdd71076eb3718f7c8411bf63/switch/time.ml
ocaml
* Copyright ( c ) Citrix Systems Inc. * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
0a49a67b91d904a99937eaf7c1c6ee520be72df98bb6f957489203252bd5e377
sebsheep/elm2node
Doc.hs
# OPTIONS_GHC -Wall # {-# LANGUAGE OverloadedStrings #-} module Reporting.Doc ( P.Doc , (P.<+>), (<>) , P.align, P.cat, P.empty, P.fill, P.fillSep, P.hang , P.hcat, P.hsep, P.indent, P.sep, P.vcat , P.red, P.cyan, P.magenta, P.green, P.blue, P.black, P.yellow , P.dullred, P.dullcyan, P.dullyellow -- , f...
null
https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/compiler/src/Reporting/Doc.hs
haskell
# LANGUAGE OverloadedStrings # FROM TO STRING FORMATTING NOTES HINTS LINKS HELPERS JSON
# OPTIONS_GHC -Wall # module Reporting.Doc ( P.Doc , (P.<+>), (<>) , P.align, P.cat, P.empty, P.fill, P.fillSep, P.hang , P.hcat, P.hsep, P.indent, P.sep, P.vcat , P.red, P.cyan, P.magenta, P.green, P.blue, P.black, P.yellow , P.dullred, P.dullcyan, P.dullyellow , fromChars , fromName , fromVersion ...
a4a6380a2c08c99a6e1bf70ad4f54380324b97191d35cea0266861477f2f0cbd
airbus-seclab/bincat
unrel.ml
This file is part of BinCAT . Copyright 2014 - 2021 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/ab4787e7fa70c3fc4bd2399e0e695fef446a5e81/ocaml/src/domains/unrel.ml
ocaml
**************************************************************************** Functor generating common functions of unrelational abstract domains basically it is a map from Registers/Memory cells to abstract values **************************************************************************** * Unrelation...
This file is part of BinCAT . Copyright 2014 - 2021 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
1a39d5c5959b17447d1c2d0c75ead668af460a7d067d771175b09255b72e69b9
alexandroid000/improv
RosTypes.hs
-- |Utility types for working with ROS. module Ros.Internal.RosTypes (ROSTime, ROSDuration, URI, CallerID, TopicName, NodeName, ParamName, TopicType, ConnectionID, ServiceName) where import Data.Word (Word32) import Foreign.Storable.Tuple () type URI ...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/src/Ros/Internal/RosTypes.hs
haskell
|Utility types for working with ROS. |ROSTime is a tuple of (seconds, nanoseconds) |ROSDuration is a tuple of (seconds, nanoseconds)
module Ros.Internal.RosTypes (ROSTime, ROSDuration, URI, CallerID, TopicName, NodeName, ParamName, TopicType, ConnectionID, ServiceName) where import Data.Word (Word32) import Foreign.Storable.Tuple () type URI = String type CallerID = String t...
f19cfc3542b849fae9970a33bdd240c9ed446d8351fd6ecfafe68796903d3959
crategus/cl-cffi-gtk
gio.loadable-icon.lisp
;;; ---------------------------------------------------------------------------- ;;; gio.loadable-icon.lisp ;;; ;;; The documentation of this file is taken from the GIO Reference Manual Version 2.68 and modified to document the Lisp binding to the GIO library . ;;; See <>. The API documentation of the Lisp binding is...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/gio/gio.loadable-icon.lisp
lisp
---------------------------------------------------------------------------- gio.loadable-icon.lisp The documentation of this file is taken from the GIO Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms ...
Version 2.68 and modified to document the Lisp binding to the GIO library . available from < -cffi-gtk/ > . Copyright ( C ) 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use GNU Lesser General Public License f...
ce10e14d619c1aecf6a37f511106c89da1d3e3735b1c7871d91497baf9e1d1b1
matthiasn/systems-toolbox-sente
server.clj
(ns matthiasn.systems-toolbox-sente.server "This namespace contains a component for the server side of WebSockets communication. Also provides fully featured HTTP/S server." (:require [matthiasn.systems-toolbox-sente.util :as u] [matthiasn.systems-toolbox-sente.spec] [matthiasn.systems-to...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox-sente/edd0a8295f372063e507810c3fa92b23c0524f67/src/clj/matthiasn/systems_toolbox_sente/server.clj
clojure
Sente's and resources' routes are wrapped in ring-defaults. User routes are not, by default. However, user can use (wrap-routes-defaults) to use defaults, if needed.
(ns matthiasn.systems-toolbox-sente.server "This namespace contains a component for the server side of WebSockets communication. Also provides fully featured HTTP/S server." (:require [matthiasn.systems-toolbox-sente.util :as u] [matthiasn.systems-toolbox-sente.spec] [matthiasn.systems-to...
edc36124a700f9a322a8194d36f387af666df230c4fa03439619568d68b4fa46
ogaml/ogaml
docgen.mli
(** [parse_from_file filename] *) val parse_from_file : string -> AST.module_field list (** [preprocess modulename fields] *) val preprocess : string -> AST.module_field list -> ASTpp.module_data (** [preprocess_file filename] *) val preprocess_file : string -> ASTpp.module_data (** [gen_header root modulename] *) ...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/doc/docgen.mli
ocaml
* [parse_from_file filename] * [preprocess modulename fields] * [preprocess_file filename] * [gen_header root modulename] * [gen_main root module] * [gen_index_main root modules examplefile] * [gen_aside root modules]
val parse_from_file : string -> AST.module_field list val preprocess : string -> AST.module_field list -> ASTpp.module_data val preprocess_file : string -> ASTpp.module_data val gen_header : string -> string -> string val gen_main : string -> ASTpp.module_data -> string val gen_index_main : string -> ASTpp.module...
d92ab438dae351a5446afc0ff25c14e0480a667978bfd66f7c6f1a90f7728cf8
mcna/usocket
openmcl.lisp
$ I d : openmcl.lisp 697 2012 - 11 - 10 16:14:33Z ctian $ ;;;; $URL: svn-lisp.net/project/usocket/svn/usocket/tags/0.6.0.1/backend/openmcl.lisp $ ;;;; See LICENSE for licensing information. (in-package :usocket) (defun get-host-name () (ccl::%stack-block ((resultbuf 256)) (when (zerop (#_gethostname resultbu...
null
https://raw.githubusercontent.com/mcna/usocket/187e0ecd58ec0b2093d972e0eb607a50182a3efd/backend/openmcl.lisp
lisp
$URL: svn-lisp.net/project/usocket/svn/usocket/tags/0.6.0.1/backend/openmcl.lisp $ See LICENSE for licensing information. we need something which the openmcl implementors 'forgot' to do: ugh! openmcl streams are bi/multivalent and their associated objects are represented by the same object. so we have to defin...
$ I d : openmcl.lisp 697 2012 - 11 - 10 16:14:33Z ctian $ (in-package :usocket) (defun get-host-name () (ccl::%stack-block ((resultbuf 256)) (when (zerop (#_gethostname resultbuf 256)) (ccl::%get-cstring resultbuf)))) (defparameter +openmcl-error-map+ '((:address-in-use . address-in-use-error) (...
7803e0a74adf31c29cb1346b3da782537380c96f41ea669edb503734fc1a05d2
essen/egs
egs_script_compiler.erl
@author < > 2010 - 2011 . @doc EGS script compiler . %% This file is part of EGS . %% EGS is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the %% License, or (at you...
null
https://raw.githubusercontent.com/essen/egs/ceea04c3b438cee9a8470f2abc6297429bf347c5/apps/egs/src/egs_script_compiler.erl
erlang
License, or (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. @doc Compile a script parsed using egs_script_lexer and egs_script_parser. High level...
@author < > 2010 - 2011 . @doc EGS script compiler . This file is part of EGS . EGS is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the EGS is distributed in the ...
4606c85d27dd85754fb64025f54a1006f3bd7f31d6434e873176903f4d22a715
xsc/claro
leaf.cljc
(ns claro.data.tree.leaf (:require [claro.data.protocols :as p]) (:import [claro.data.protocols ResolvableTree])) (deftype ResolvableLeaf [resolvable] ResolvableTree (wrapped? [_] false) (processable? [_] false) (unwrap-tree [this] this) (partial-value [this _] (.-resolvable this)) (res...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/data/tree/leaf.cljc
clojure
(ns claro.data.tree.leaf (:require [claro.data.protocols :as p]) (:import [claro.data.protocols ResolvableTree])) (deftype ResolvableLeaf [resolvable] ResolvableTree (wrapped? [_] false) (processable? [_] false) (unwrap-tree [this] this) (partial-value [this _] (.-resolvable this)) (res...
b05f73a644b79f51dc752b6698053f4c377677c93557824c2daeecfbd77b23cf
transient-haskell/transient-stack
teststreamsocket.hs
test.hs{-# LANGUAGE RecordWildCards, ScopedTypeVariables #-} module Main where import Network import qualified Network.Socket as NS hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import qualified Network.BSD as BSD import System.IO hiding (hPutBufNonBlocking) import Control.Concu...
null
https://raw.githubusercontent.com/transient-haskell/transient-stack/dde6f6613a946d57bb70879a5c0e7e5a73a91dbe/transient-universe/tests/teststreamsocket.hs
haskell
# LANGUAGE RecordWildCards, ScopedTypeVariables # only done if there's an error
module Main where import Network import qualified Network.Socket as NS hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import qualified Network.BSD as BSD import System.IO hiding (hPutBufNonBlocking) import Control.Concurrent import Control.Monad import Control.Exception import ...
c796a196a6363739b16b63c10c30e78139fe7250774513b2f0f34c194f7a4578
nojb/llvm-min-caml
myocamlbuild.ml
open Ocamlbuild_plugin;; ocaml_lib ~extern:true "llvm";; ocaml_lib ~extern:true "unix" ~tag_name: "use_unix_fix";; ocaml_lib ~extern:true "llvm_bitwriter";; (* ocaml_lib ~extern:true "llvm_executionengine";; *) ocaml_lib ~extern:true "llvm_scalar_opts";; (* ocaml_lib ~extern:true "llvm_target";; *) flag ["link"; "oca...
null
https://raw.githubusercontent.com/nojb/llvm-min-caml/68703b905f8292cb2e20b41bbd90cfea85ca2a19/myocamlbuild.ml
ocaml
ocaml_lib ~extern:true "llvm_executionengine";; ocaml_lib ~extern:true "llvm_target";;
open Ocamlbuild_plugin;; ocaml_lib ~extern:true "llvm";; ocaml_lib ~extern:true "unix" ~tag_name: "use_unix_fix";; ocaml_lib ~extern:true "llvm_bitwriter";; ocaml_lib ~extern:true "llvm_scalar_opts";; flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"]);;
df3a7ce4d06ba905b851c1b42a57f1e8144aa587497927295ceebe98e6874110
stoychoX/File-System
Output.hs
module Output where import FileSystem(FileSystem(..)) printFile :: FileSystem -> String printFile (File name content) = "File name: " ++ name ++ "\nContent: \n" ++ content ++ "\n" printFile _ = "Error, not rigth type of file" printSystem :: [FileSystem] -> String printSystem ((Root "/" _) : xs) = "...
null
https://raw.githubusercontent.com/stoychoX/File-System/ebeb06650fe32632539ef0cb9e983e9db7ae929f/Output.hs
haskell
module Output where import FileSystem(FileSystem(..)) printFile :: FileSystem -> String printFile (File name content) = "File name: " ++ name ++ "\nContent: \n" ++ content ++ "\n" printFile _ = "Error, not rigth type of file" printSystem :: [FileSystem] -> String printSystem ((Root "/" _) : xs) = "...
11e07cea0b8e90599883b0b58a94d4adc9b87693bce17ba17efa039cf72d9423
kadena-io/chainweb-node
Consensus.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Chainweb.Test.Mempool.Consensus ( tests ) where import Control.Monad.IO.Class import qualified Data.ByteString.Short as SB import Data.Foldable (toList) import Da...
null
https://raw.githubusercontent.com/kadena-io/chainweb-node/aff594a05096341d01ae50a9f37056b2519025d2/test/Chainweb/Test/Mempool/Consensus.hs
haskell
# LANGUAGE DeriveAnyClass # internal modules -------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------- | Property: All transactions returned by processFork (for re-introduction t...
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Chainweb.Test.Mempool.Consensus ( tests ) where import Control.Monad.IO.Class import qualified Data.ByteString.Short as SB import Data.Foldable (toList) import Data.Hashable import Data.HashMap....
2a686c138d47bcb940505e3d0533ee8f835ffca2255cb5dfd2e6d9bccd3e1ab4
parapluu/monadic-typechecker
AST.hs
-- | -- Module : Initial.AST Copyright : © 2019 and License : MIT -- -- Stability : experimental -- Portability : portable -- -- This module includes functionality for creating an Abstract Syntax Tree (AST), -- as well as helper functions for checking different aspects of the AST . #...
null
https://raw.githubusercontent.com/parapluu/monadic-typechecker/9f737a9ed2a3ac4ff5245e2e48deeac7bc2ee73d/artifact/typechecker-oopl/src/Initial/AST.hs
haskell
| Module : Initial.AST Stability : experimental Portability : portable This module includes functionality for creating an Abstract Syntax Tree (AST), as well as helper functions for checking different * AST declarations $ Declaration for the Abstract Syntax Tree of the language. This section cont...
Copyright : © 2019 and License : MIT aspects of the AST . # LANGUAGE NamedFieldPuns # module Initial.AST where import Data.Maybe import Data.List import Text.Printf (printf) as an AST . The AST is produced by a parser . For more information on < -7.0.5 > . type Name = String isConst...
b080b5923e8815100450bd2713065be2b4db8bdf417006a6eb1e2d4ad81b0da1
GaloisInc/semmc
Memory.hs
# LANGUAGE DataKinds # # LANGUAGE ImplicitParams # {-# LANGUAGE RankNTypes #-} module SemMC.Architecture.PPC.Base.Memory ( manualMemory ) where import Prelude hiding ( concat ) import Control.Monad ( when ) import SemMC.DSL import SemMC.Architecture.PPC.Base.Core import SemMC.Architecture.PPC.Base.Core.Memory man...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-ppc/src/SemMC/Architecture/PPC/Base/Memory.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE DataKinds # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.Memory ( manualMemory ) where import Prelude hiding ( concat ) import Control.Monad ( when ) import SemMC.DSL import SemMC.Architecture.PPC.Base.Core import SemMC.Architecture.PPC.Base.Core.Memory manualMemory :: (?bitSize :: Bi...
bab2506dd956f62db8ce5a6d272d06cff44a40f748111933e3eb934b8fca6f7c
objecthub/swift-lispkit
Maze.scm
;;; Maze generation ;;; ;;; This is a slightly bigger example which implements a maze generation framework and two sample algorithms which generate random mazes . ;;; The code is organized in two parts : the framework for representing and generating ;;; mazes is implemented in terms of a library `(lispkit example m...
null
https://raw.githubusercontent.com/objecthub/swift-lispkit/4aa0d8374412675cb519f6f7d4a6bcab74bd7b5e/Sources/LispKit/Resources/Examples/Maze.scm
scheme
Maze generation This is a slightly bigger example which implements a maze generation framework and mazes is implemented in terms of a library `(lispkit example maze)`. It defines a new datatype `maze` which implements a maze of given dimensions as a vector of fixnum the directions towards `north`, `south`, `east...
two sample algorithms which generate random mazes . The code is organized in two parts : the framework for representing and generating values . Conceptually , a maze is a board of cells . Each cell has up to four walls in provides a 60 - bit fixnum value for representing custom flags . The second part of the ...
defba052b37f31252b8fa3b22ab14c10c562b66b3442b6a0e3cd725d2fba6285
vdloo/kodictl
next.rkt
#!/usr/bin/env racket #lang racket/base (require json) (require "../action.rkt") (require "active-players.rkt") (provide kodictl-previous) (provide kodictl-next) (define kodictl-json-rpc-goto (λ (to) (kodi-json-rpc-map-active-players (λ (playerid) (kodi-json-rpc-action "Player.GetTo" "playerid" (nu...
null
https://raw.githubusercontent.com/vdloo/kodictl/31c775a0889c06fcf65a0d91d15937144eb6a30a/kodictl/commands/next.rkt
racket
#!/usr/bin/env racket #lang racket/base (require json) (require "../action.rkt") (require "active-players.rkt") (provide kodictl-previous) (provide kodictl-next) (define kodictl-json-rpc-goto (λ (to) (kodi-json-rpc-map-active-players (λ (playerid) (kodi-json-rpc-action "Player.GetTo" "playerid" (nu...
f2645ca2b201a9453d0a7e3d95d658d57fffcc3e560e742bcbf687c89d84a3cc
nodew/haskell-realworld-example
Tag.hs
# LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TypeFamilies # # LANGUAGE DuplicateRecordFields # module Conduit.Db.Schema.Tag where import RIO import Rel8 import Conduit.Core.Article data TagEntity f = TagEntity { entityTagId ...
null
https://raw.githubusercontent.com/nodew/haskell-realworld-example/8da6f47790b226fa8eb8e0ce539b48a81e58a242/src/Conduit/Db/Schema/Tag.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # # LANGUAGE DuplicateRecordFields # module Conduit.Db.Schema.Tag where import RIO import Rel8 import Conduit.Core.Article data TagEntity f = TagEntity { entityTagId :: Column f TagId , entity...
cf9d5fc0164aa0144c733eeff8f815bc5c416d4afb6a04bb5db42b3de1f32bbb
MLstate/opalang
imp_PatternAnalysis.ml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/qmljsimp/imp_PatternAnalysis.ml
ocaml
depends alias shorthands -- ************************************************************************ ************************************************************************ ************************************************************************ **********************************************************...
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
d6bc69c0a8fb1a739c94cece592c31af0b298b91a2e8ba0077ebd313b481563a
xh4/web-toolkit
cdata.lisp
(in-package :dom) (defclass cdata-section (text) ()) (defmethod node-type ((cdata-section cdata-section)) cdata-section-node) (defmethod node-name ((cdata-section cdata-section)) "#cdata-section") (defun create-cdata-section (document data) )
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/dom/cdata.lisp
lisp
(in-package :dom) (defclass cdata-section (text) ()) (defmethod node-type ((cdata-section cdata-section)) cdata-section-node) (defmethod node-name ((cdata-section cdata-section)) "#cdata-section") (defun create-cdata-section (document data) )
dff2e0f8be16fe480fbdf03be9ec586277859c869104981ffb8d690ce484a0b6
lexi-lambda/racket-tulip
srcloc.rkt
#lang racket/base (provide split-srcloc join-srclocs) ;; --------------------------------------------------------------------------------------------------- ;; srcloc management ; The split-srcloc and join-srclocs functions are used to break apart and join source location information from identifiers . Th...
null
https://raw.githubusercontent.com/lexi-lambda/racket-tulip/1613cfd4d7e8dbc8ceb86cf33479375147f42b2f/tulip-lib/private/util/srcloc.rkt
racket
--------------------------------------------------------------------------------------------------- srcloc management The split-srcloc and join-srclocs functions are used to break apart and join source location of source location information along these lines: racket/base/cons | ...
#lang racket/base (provide split-srcloc join-srclocs) information from identifiers . This is useful in Tulip because we have things like namespaced identifiers , of the form ` racket / base / cons ` , which should be broken up into two separate pieces ^^^^^^^^^^^ ^^^^ Additionally , the ...
bdd82596c123392880704a3219c13d5211b65fb60eaea38e392b4055efbcd2b1
bmeurer/ocaml-arm
glob_lexer.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/ocamlbuild/glob_lexer.mli
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 Q Public License version 1.0 . Original author : open Glob_ast type token = | A...
1cbaaf521c35e14aaba7e8665d8de0810d2312404808ef3adadbeb0a9d4f8b54
haskell-works/avro
Container.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StrictData # # LANGUAGE TupleSections # ...
null
https://raw.githubusercontent.com/haskell-works/avro/cad7fd4c6150ea10fc3543f46f75007ecf2ba215/src/Data/Avro/Internal/Container.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # | Reads the container as a list of blocks without decoding them into actual values. that are contained in this block. The "outer" error represents th...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StrictData # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Data.Avro.Internal.Container where import Control.Monad (when) import qualified Data.Aeson as Aeson...
bcc775fafe67a0c128221eabe55da2730ba8bd519245c6818fb4ba78f4e60d24
chenyukang/eopl
24.scm
(load-relative "../libs/init.scm") (load-relative "./base/environments.scm") (load-relative "./base/proc-lang.scm") ;; I think this is a little difficult, see the new stuff ;; new stuff (run "let even-iter = proc (o) proc(e) proc(num) if zero?(num) then 1 else (((o o) e) -(num, 1)) ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch3/24.scm
scheme
I think this is a little difficult, see the new stuff new stuff
(load-relative "../libs/init.scm") (load-relative "./base/environments.scm") (load-relative "./base/proc-lang.scm") (run "let even-iter = proc (o) proc(e) proc(num) if zero?(num) then 1 else (((o o) e) -(num, 1)) in let odd-iter = proc (o) proc(e) proc(num) if zero?(num) ...
bcf3b5bcd32f73d8ae71a028b442028f62af06416d74833b0117aab3e9c2b9ac
awakesecurity/grpc-mqtt
Message.hs
module Test.Network.GRPC.MQTT.Message (tests) where -------------------------------------------------------------------------------- import Hedgehog () import Test.Tasty (TestTree, testGroup) -------------------------------------------------------------------------------- import Test.Network.GRPC.MQTT.Message.Packe...
null
https://raw.githubusercontent.com/awakesecurity/grpc-mqtt/7445d878a5822299c518dff531d82f3d9bedbbe1/test/Test/Network/GRPC/MQTT/Message.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module Test.Network.GRPC.MQTT.Message (tests) where import Hedgehog () import Test.Tasty (TestTree, testGroup) import Test.Network.GRPC.MQTT.Message.Packet qualified import Test.Network.GRPC.MQTT.Message.Request qualified import Test.Network.GRPC.MQTT.Message.Stream qualified tests :: TestTree tests = testGroup...
f0abb9c08a2a512f646836078c256ba79d16642fcb45297a1964afbc437f4777
Bronsa/tools.decompiler
sugar.clj
Copyright ( c ) contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; th...
null
https://raw.githubusercontent.com/Bronsa/tools.decompiler/904d771e59d6c53f7966b9172b3eabc52cafdd17/src/clojure/tools/decompiler/sugar.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) contributors . (ns clojure.tools.decompiler.sugar (:require [clojure.tools.decompiler.utils :as u] [clojure.edn :as e])) WIP this could use a postwalk (defmulti ast->sugared-ast :op) (defmethod ast->sugared-ast :const [ast] ast) (defmethod ast->sugared-ast :list [ast] (->...
ab6b1068c09616f68713ea186f5e43219658e7be83bead6d9873c350f09b5df5
themattchan/advent-of-code
day2.hs
import Control.Arrow import Control.Monad import Data.List solve1 :: [String] -> Int solve1 = (*) <$> s2 <*> s3 where f n = not . null . filter (==n) . map length . group . sort s2 = length . filter (f 2) s3 = length . filter (f 3) solve2 :: [String] -> Maybe String solve2 = fmap (map fst . snd) . find ...
null
https://raw.githubusercontent.com/themattchan/advent-of-code/0b08a4fbadf7e713d40044523af3debb7d0cb6b9/2018/day2/day2.hs
haskell
import Control.Arrow import Control.Monad import Data.List solve1 :: [String] -> Int solve1 = (*) <$> s2 <*> s3 where f n = not . null . filter (==n) . map length . group . sort s2 = length . filter (f 2) s3 = length . filter (f 3) solve2 :: [String] -> Maybe String solve2 = fmap (map fst . snd) . find ...
45fb85b040dd2e05c33258c2b6571caa0d0463f5f66484f852658a8c9d260c21
alan-turing-institute/advent-of-code-2021
day_9_part_1.rkt
#lang racket sufficiently different part1 and part2 impl today part1 uses lists , part2 uses vectors (define (parse-input input-str) (map (λ (line) (map (λ (c) (- (char->integer c) 48)) (string->list line))) (string-split input-str))) ; transpose list of lists (define (transpos...
null
https://raw.githubusercontent.com/alan-turing-institute/advent-of-code-2021/648953afcb2cc1db37f3a8f87b545a65b41d0c04/day-09/racket_lannelin/day_9_part_1.rkt
racket
transpose list of lists --------- MAIN --------- --------- TEST ---------
#lang racket sufficiently different part1 and part2 impl today part1 uses lists , part2 uses vectors (define (parse-input input-str) (map (λ (line) (map (λ (c) (- (char->integer c) 48)) (string->list line))) (string-split input-str))) (define (transpose xss) (apply map list x...
5c0b79fed7822f7dfae3355359c9f4ffe2779f52b8863b9c34acbbdbe09d0c17
softwarelanguageslab/maf
stack.scm
#lang racket (parse-cmdline!) (require acontracts) (define stack-node (actor "stack-node" (content link) (pop (customer) (if link (begin (send customer message content) (link)) (begin (error "popping an em...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/25ef679d70abe08e0166423ce481f989c8abb6d0/test/concurrentScheme/actors/contracts/stack.scm
scheme
#lang racket (parse-cmdline!) (require acontracts) (define stack-node (actor "stack-node" (content link) (pop (customer) (if link (begin (send customer message content) (link)) (begin (error "popping an em...
d882dc0043c23bba3f712e0259e612cafb07f60237e20328519888a8f1fb8ec2
PEZ/pirate-lang
reverse.clj
(ns pez.lab.reverse (:refer-clojure :exclude [reverse])) ;; We are Only allowed to use the * first ;; * cons ;; * rest ;; * concat ;; * count (defn reverse' [head tail] (if (empty? tail) head (reverse' (cons (first tail) head) (rest tail)))) (defn reverse [lst] (reverse' '() lst)) (comment (revers...
null
https://raw.githubusercontent.com/PEZ/pirate-lang/a4c8b3431d2ef98ae386ccde822d3e98c30c297f/src/pez/lab/reverse.clj
clojure
We are Only allowed to use the * cons * rest * concat * count
(ns pez.lab.reverse (:refer-clojure :exclude [reverse])) * first (defn reverse' [head tail] (if (empty? tail) head (reverse' (cons (first tail) head) (rest tail)))) (defn reverse [lst] (reverse' '() lst)) (comment (reverse (str 512345)))
1dcf4c1f98944edf9c4d42e1ba89673d206393fa051c2d2a4419a264ab962694
radicle-dev/radicle-alpha
Pretty.hs
# OPTIONS_GHC -fno - warn - orphans # module Radicle.Lang.Pretty where import Protolude hiding (Type, TypeError, (<>)) import Data.Copointed (Copointed(..)) import qualified Data.Map as Map import Data.Sequence (Seq(..)) import qualified Data.Sequence as Seq import qualified Data.Text a...
null
https://raw.githubusercontent.com/radicle-dev/radicle-alpha/b38a360d9830a938fa83fc066c1d131ec903b5e1/radicle-lang/src/Radicle/Lang/Pretty.hs
haskell
| We can't just pretty print the pointer id since that would break referential transparency, so instead we just label refs as '<ref>' | As with references, we do not print the actual counter of the handle. | As with references, we do not print the actual counter of the handle. | A fast and compact layout. Primaril...
# OPTIONS_GHC -fno - warn - orphans # module Radicle.Lang.Pretty where import Protolude hiding (Type, TypeError, (<>)) import Data.Copointed (Copointed(..)) import qualified Data.Map as Map import Data.Sequence (Seq(..)) import qualified Data.Sequence as Seq import qualified Data.Text a...
27fd77dfb7af73a289607d21bea0b2b96468050614168e7110d563d11e818a4f
ramalho/mac316
aula1.scm
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 "reader.ss" "plai" "lang") (define-type AE ; tipo [num (n number?)] ; construtor 'num' e recebe um n?mero construtor ' add ' recebe 2...
null
https://raw.githubusercontent.com/ramalho/mac316/4c925557064c788c4d29e3408a6b1d327386d98b/gubi/aula1.scm
scheme
about the language level of this file in a form that our tools can easily process. tipo construtor 'num' e recebe um n?mero similar. se for um cons (lista) olha o primeiro soma construtor e chamada recursiva End Avaliador similar
The first three lines of this file were inserted by . They record metadata #reader(lib "reader.ss" "plai" "lang") construtor ' add ' recebe 2 AE s (rhs AE?)] (rhs AE?)]) Parser em Scheme (define (parse sexp) (cond se for um número , use o construtor (parse (third sexp))) ...
611c1ef437b0309d899a36c6427a18158e17841b695358229dd72017b6957d24
clojurebook/ClojureProgramming
processing.clj
(ns eventing.processing) (derive 'sales/lead-generation 'processing/realtime) (derive 'sales/purchase 'processing/realtime) (derive 'security/all 'processing/archive) (derive 'finance/all 'processing/archive) (defmulti process-event :evt-type)
null
https://raw.githubusercontent.com/clojurebook/ClojureProgramming/bcc7c58862982a5793e22788fc11a9ed7ffc548f/ch15-couchdb/src/eventing/processing.clj
clojure
(ns eventing.processing) (derive 'sales/lead-generation 'processing/realtime) (derive 'sales/purchase 'processing/realtime) (derive 'security/all 'processing/archive) (derive 'finance/all 'processing/archive) (defmulti process-event :evt-type)
a2013f8d5a3673c8cf42dd01cc2c45949593bd0ea47477d76941057480097051
clj-kondo/clj-kondo
core.rrb-vector.clj
(ns definterface) (definterface NodeManager (node [^java.util.concurrent.atomic.AtomicReference edit arr]) (empty []) (array [node]) (^java.util.concurrent.atomic.AtomicReference edit [node]) (^boolean regular [node]) (clone [^clojure.core.ArrayManager am ^int shift node])) (defn foo [x] (aget ^objects ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/core.rrb-vector.clj
clojure
(ns definterface) (definterface NodeManager (node [^java.util.concurrent.atomic.AtomicReference edit arr]) (empty []) (array [node]) (^java.util.concurrent.atomic.AtomicReference edit [node]) (^boolean regular [node]) (clone [^clojure.core.ArrayManager am ^int shift node])) (defn foo [x] (aget ^objects ...
c27075f44b780a1eafd9bedfd14496dab5b814363bf3c0a48fed0671c25adaee
tallaproject/onion
onion_certs_cell.erl
%%% Copyright ( c ) 2016 The Talla Authors . All rights reserved . %%% Use of this source code is governed by a BSD-style %%% license that can be found in the LICENSE file. %%% %%% ----------------------------------------------------------- @author < > %%% @doc Certs Cell Utilities %%% %%% @end %%% -------------...
null
https://raw.githubusercontent.com/tallaproject/onion/d0c3f86c726c302744d3cfffa2de21f85c190cf0/src/onion_certs_cell.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ----------------------------------------------------------- @doc Certs Cell Utilities @end ----------------------------------------------------------- API. FIXME(ahf): Missing. The certified key in the ID certi...
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > -module(onion_certs_cell). -export([validate_server/2]). -spec validate_server(CertsCell, PublicKey) -> boolean() when CertsCell :: onion_cell:certs_cell(), PublicKey :: public_key:der_encoded(). validate_server(Cert...
12c0bd2b574f503a02854054ceefb23f6928d36928c93e2d1d57d8190f1e2267
diffusionkinetics/open
StatView.hs
# LANGUAGE OverloadedStrings , ExtendedDefaultRules , FlexibleContexts , TemplateHaskell # module Dashdo.Examples.StatView where import System.Statgrab import Dashdo import Dashdo.Types import Dashdo.Serve import Dashdo.Elements import Dashdo.FlexibleInput import Dashdo.Rdash import Control.Arrow ((&&&), second) impo...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/dashdo-examples/lib/Dashdo/Examples/StatView.hs
haskell
Processes dashdo end of Processes dashdo
# LANGUAGE OverloadedStrings , ExtendedDefaultRules , FlexibleContexts , TemplateHaskell # module Dashdo.Examples.StatView where import System.Statgrab import Dashdo import Dashdo.Types import Dashdo.Serve import Dashdo.Elements import Dashdo.FlexibleInput import Dashdo.Rdash import Control.Arrow ((&&&), second) impo...
06a27f4f0dad50cc388eb1c25062f15c58df2e6faccbf21025c2e59333e449ed
jrh13/hol-light
pa_j_3.1x_6.02.2.ml
(* ------------------------------------------------------------------------- *) (* New version. *) (* ------------------------------------------------------------------------- *) (* camlp5r *) $ I d : pa_o.ml , v 6.33 2010 - 11 - 16 16:48:21 deraugla Exp $...
null
https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/pa_j_3.1x_6.02.2.ml
ocaml
------------------------------------------------------------------------- New version. ------------------------------------------------------------------------- camlp5r ------------------------------------------------------------------------- The m...
$ I d : pa_o.ml , v 6.33 2010 - 11 - 16 16:48:21 deraugla Exp $ Copyright ( c ) INRIA 2007 - 2010 #load "pa_extend.cmo"; #load "q_MLast.cmo"; #load "pa_reloc.cmo"; open Pcaml; Pcaml.syntax_name.val := "OCaml"; Pcaml.no_constructors_arity.val := True; $ I d : reloc.ml , v 6.19 2011 - 02 - 17 10:20:50 deraugl...
0cfa32e54ef9212824f1733bab183819065015675e01a20c8792b34cea91725c
OlivierSohn/hamazed
Spec.hs
import Test.Imj.ParseCommand main :: IO () main = do testMaxOneSpace testParseCommand
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-server/test/Spec.hs
haskell
import Test.Imj.ParseCommand main :: IO () main = do testMaxOneSpace testParseCommand
dddb8428c311120d6c242060649835fc0bc20560489c7230521b0fa15534995c
Eonblast/Scalaxis
merkle_tree_SUITE.erl
2010 - 2011 Zuse Institute Berlin % @end % Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, softw...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/test/merkle_tree_SUITE.erl
erlang
@end 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 lang...
2010 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > Created : 06/04/2011 by < > -module(merkle_tree_SUITE). -compile(export_all). -include("scalaris.hrl"). -inclu...
0ec9b787c4fb5cfb29de693f8011c7eedefa0110c7302bd24dcacb81e8a22ba7
cljdoc/cljdoc-analyzer
core.cljs
;; ;; Note: this file is used in tests that rely on line numbers ;; (ns metagetta-test.cljs-macro-functions.foo.core) (defn add [a b] (+ a b 0.001))
null
https://raw.githubusercontent.com/cljdoc/cljdoc-analyzer/f4196c2bdbd343b9e1b484ddf7aee75ff2879c80/modules/metagetta/test-sources/metagetta_test/cljs_macro_functions/foo/core.cljs
clojure
Note: this file is used in tests that rely on line numbers
(ns metagetta-test.cljs-macro-functions.foo.core) (defn add [a b] (+ a b 0.001))
dea53634a409bf5d503d3b8ff22fbd3ec9e21286197d52fb02c26c7fe92b0777
sacundim/free-operational
Example.hs
# LANGUAGE RankNTypes , ScopedTypeVariables , GADTs # # LANGUAGE GeneralizedNewtypeDeriving # -- | Simple examples of "Control.Applicative.Operational" module Example where import Control.Applicative import Control.Applicative.Operational --------------------------------------------------------------- --------------...
null
https://raw.githubusercontent.com/sacundim/free-operational/ff8e37134800635f3c2e1e7ecff532154982ad6b/examples/Example.hs
haskell
| Simple examples of "Control.Applicative.Operational" ------------------------------------------------------------- ------------------------------------------------------------- Reader | \"Denotational\" implementation of 'runReader'; given an evaluation of each instruction as an 'Applicative' action, | \"Synta...
# LANGUAGE RankNTypes , ScopedTypeVariables , GADTs # # LANGUAGE GeneralizedNewtypeDeriving # module Example where import Control.Applicative import Control.Applicative.Operational type Reader r a = ProgramAp (ReaderI r) a data ReaderI r a where Ask :: ReaderI r r ask :: Reader r r ask = singleton Ask ' in...
cd482ad9a6defda76b1417e4711c37bc03129d2cb3aab942acefa16818bd6302
walkable-server/realworld
common.clj
(ns conduit.common (:require [cheshire.core :refer [generate-string]])) (def profile-query [:user/id :user/username :user/bio :user/image {:user/followed-by-me? [:agg/count]}]) (def comment-query [{:article/comments [:comment/id :comment/created-at :comment/updated-at :comment/body {:c...
null
https://raw.githubusercontent.com/walkable-server/realworld/786706f15399b827e2820877ac3e2e26184ee79a/src/conduit/common.clj
clojure
(ns conduit.common (:require [cheshire.core :refer [generate-string]])) (def profile-query [:user/id :user/username :user/bio :user/image {:user/followed-by-me? [:agg/count]}]) (def comment-query [{:article/comments [:comment/id :comment/created-at :comment/updated-at :comment/body {:c...
b4db4361c03a0d0c7c0b4a1ac03b6828e1b9bd6d7075dec22ee7cc812a57141f
simingwang/emqx-plugin-kafkav5
logger_h_common.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2017 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/logger_h_common.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2017 - 2020 . 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(logger_h_common). -behaviour(gen_server). -include("logger_h_common.hrl"). -include("logger_internal.hrl"). ...
4786d292d9877ee1130893c9f9d03ed9a826fbb963cac2cfba793e6cd88e146e
skanev/playground
31.scm
SICP exercise 5.31 ; ; In evaluating a procedure application, the explicit-control evaluator always ; saves and restores the env register around the evaluation of the operator, ; saves and restores env around the evaluation of each operand (except the ; final one), saves and restores argl around the evalutaion of eac...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/31.scm
scheme
In evaluating a procedure application, the explicit-control evaluator always saves and restores the env register around the evaluation of the operator, saves and restores env around the evaluation of each operand (except the final one), saves and restores argl around the evalutaion of each operand, and saves and ...
SICP exercise 5.31 * proc needs to be saved and restored around the evaluation of the first * env needs to be saved and restored around the evaluation of the first * proc needs to be saved and restored around the evaluation of the first
becf5beb1cd73937abf740007f79a1355a009b293372c862fb8e85e5ac9fc068
malcolmreynolds/GSLL
lognormal.lisp
Regression test LOGNORMAL for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST LOGNORMAL (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 2.386447068127768d0 0.11687602167359055d0 4.753374578796263d0 30.093393775755004d0 0.8119584375760986d0 3.163421055157545d0 0.9146206567715...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/lognormal.lisp
lisp
Regression test LOGNORMAL for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST LOGNORMAL (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 2.386447068127768d0 0.11687602167359055d0 4.753374578796263d0 30.093393775755004d0 0.8119584375760986d0 3.163421055157545d0 0.9146206567715...
55302e2b05bad98b72bf87c381101b95c2bf562046f8e0f4d1e06e9a584119ce
danr/hipspec
Get.hs
module HipSpec.Sig.Get (getSignature) where import Test.QuickSpec.Signature import HipSpec.Sig.Scope import GHC hiding (Sig) import Data.Dynamic getSignature :: Ghc (Maybe Sig) getSignature = do ok <- inScope "sig" if ok then mapJust fromDynamic `fmap` mapM dynCompileExpr [ "sig" ...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/src/HipSpec/Sig/Get.hs
haskell
module HipSpec.Sig.Get (getSignature) where import Test.QuickSpec.Signature import HipSpec.Sig.Scope import GHC hiding (Sig) import Data.Dynamic getSignature :: Ghc (Maybe Sig) getSignature = do ok <- inScope "sig" if ok then mapJust fromDynamic `fmap` mapM dynCompileExpr [ "sig" ...
a7463a16c1cc504ef5618a13429b8d328c9e60d93a9e4e6fc4b1c32d04296520
lem-project/lem
euc.lisp
(uiop:define-package :lem-encodings-table/euc (:use :cl) (:export :generate-table)) (in-package :lem-encodings-table/euc) (defun map-bytes (fun &key country) "from " (loop for c from #x00 to #x7f do (funcall fun c)) (loop for b1 from #xa1 to #xfe do (loop for b2 from #xa1 to #xfe ...
null
https://raw.githubusercontent.com/lem-project/lem/2efd909118a24434623907330de7302143358f1c/lib/encodings/encodings-table/euc.lisp
lisp
(uiop:define-package :lem-encodings-table/euc (:use :cl) (:export :generate-table)) (in-package :lem-encodings-table/euc) (defun map-bytes (fun &key country) "from " (loop for c from #x00 to #x7f do (funcall fun c)) (loop for b1 from #xa1 to #xfe do (loop for b2 from #xa1 to #xfe ...
0a236367f0da35bf1f825947e701791efb9f2df38a987c75b7a92eed068a41c3
lopec/LoPEC
dispatcher_SUITE.erl
-module(dispatcher_SUITE). % easier than exporting by name -compile(export_all). % required for common_test to work -include_lib("common_test/include/ct.hrl"). -include_lib("../../master/include/db.hrl"). %%%%%%%%%%%%%%%%%%%%%%%%%%% %% common test callbacks %% %%%%%%%%%%%%%%%%%%%%%%%%%%% all() -> [ tas...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/common/test/dispatcher_SUITE.erl
erlang
easier than exporting by name required for common_test to work common test callbacks %% test cases %% This test case is used to verify that request times out when there is no free tasks, so taskFetcher can try again at later time. We need to wait for cast to be processed. Expecting to get added ta...
-module(dispatcher_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("../../master/include/db.hrl"). all() -> [ task_allocation, timeout_test, task_completed, free_tasks, assigned_test ]. init_per_suite(Config) -> error_logge...
60f13fcc92b3183d151ad852f22d20d889273444ab4185caa1a57d32b22c0d9d
RichiH/git-annex
Help.hs
git - annex command - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Help where import Command import qualified Command.Init import qualified Command.Add import qua...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Command/Help.hs
haskell
git - annex command - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Help where import Command import qualified Command.Init import qualified Command.Add import qua...
9c7dd570c823c461cedd0b85de4a57c0b80ccd514dc0b387765ac6989489136f
weavejester/cljfmt
core.cljc
(ns cljfmt.core #?(:clj (:refer-clojure :exclude [reader-conditional?])) (:require #?(:clj [clojure.java.io :as io]) [clojure.string :as str] [rewrite-clj.node :as n] [rewrite-clj.parser :as p] [rewrite-clj.zip :as z]) #?(:clj (:import java.util.regex.Pattern) ...
null
https://raw.githubusercontent.com/weavejester/cljfmt/3418b7f4c82c2a5acebc3c41e50138ea80d17010/cljfmt/src/cljfmt/core.cljc
clojure
newline cannot be introduced by start-element
(ns cljfmt.core #?(:clj (:refer-clojure :exclude [reader-conditional?])) (:require #?(:clj [clojure.java.io :as io]) [clojure.string :as str] [rewrite-clj.node :as n] [rewrite-clj.parser :as p] [rewrite-clj.zip :as z]) #?(:clj (:import java.util.regex.Pattern) ...
b631d1b4329add557793a44738e49b8807d1106bedcf133f2b9c0524f97ca826
willghatch/racket-rash
info.rkt
#lang info (define collection 'multi) (define deps '(("base" #:version "6.12") "rash" "basedir" "shell-pipeline" "linea" "udelim" "scribble-lib" "scribble-doc" "racket-doc" "rackunit-l...
null
https://raw.githubusercontent.com/willghatch/racket-rash/42460a283ce2d7296257b068505cd4649052f67c/rash-demos/info.rkt
racket
for the make demo for csv-file->dicts in demo/setup temporarily
#lang info (define collection 'multi) (define deps '(("base" #:version "6.12") "rash" "basedir" "shell-pipeline" "linea" "udelim" "scribble-lib" "scribble-doc" "racket-doc" "rackunit-l...
6ead85e2713122d8bc305342d274df7d21483a52349a5963c122aa6c6cc7e3be
jrm-code-project/LISP-Machine
em.lisp
-*- Mode : LISP ; Package : STEVE ; : CL ; -*- Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . ;Permission to copy all or part of this material is granted, provided that the copies are not made or distributed for resale , the MIT ; copyright notice and reference to the source file and...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/steve/em.lisp
lisp
Package : STEVE ; : CL ; -*- Permission to copy all or part of this material is granted, provided copyright notice and reference to the source file and the software distribution version appear, and that notice is given that copying Editor. ********* These "old and in the way" inconsistent definitions might have...
Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . that the copies are not made or distributed for resale , the MIT is by permission of Massachusetts Institute of Technology . (defconstant line-not-modified 0) (defconstant this-line-modified-bit 1) (defconstant next-line-modified-bit 2) ...