_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
dd1a25588ee13942276e0aff75810a4d954ccd78aa4d5fb090c0b3979b0db441
racehub/mandrill-clj
core.clj
(ns mandrill.core "Methods for interacting with the Mandrill API." (:require [cheshire.core :as json] [clojure.core.async :as a] [environ.core :as e] [mandrill.schema :as ms] [org.httpkit.client :as http] [schema.core :as s]) (:import [clojure.lang ISeq]...
null
https://raw.githubusercontent.com/racehub/mandrill-clj/74fcee04436f4f6f1952942c6ed7c64d80fc15bf/src/mandrill/core.clj
clojure
## Public Methods
(ns mandrill.core "Methods for interacting with the Mandrill API." (:require [cheshire.core :as json] [clojure.core.async :as a] [environ.core :as e] [mandrill.schema :as ms] [org.httpkit.client :as http] [schema.core :as s]) (:import [clojure.lang ISeq]...
32762667783a4e7ae216a2c1a203c3267fa46d13fcdc8ba75fa74cc99c314375
pavlobaron/ErlangOTPBookSamples
records.erl
-module(records). -export([start/0, stop/1, step/1, check_state/2]). -record(state, { state = initial, calls = 0, lasttime }). change_state(OldState, StateAtom) -> #state{ state = StateAtom, calls = OldState#state.calls + 1, lasttime = time() }. start() ->...
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/sprache/records.erl
erlang
-module(records). -export([start/0, stop/1, step/1, check_state/2]). -record(state, { state = initial, calls = 0, lasttime }). change_state(OldState, StateAtom) -> #state{ state = StateAtom, calls = OldState#state.calls + 1, lasttime = time() }. start() ->...
b881e55cd342fb32d35c5fd53c16a9f4481f75d90c4f1e153ac28ab67c28911c
cicakhq/potato
potato-index.lisp
(in-package :potato-index) (declaim #.potato.common::*compile-decl*) (defvar *channel-group-cache* (receptacle:make-blocking-hash-map :name "Map from channel to group" :test #'equal)) (defvar *main-seq-field-name* "couchdb_seq") (defvar *main-seq* nil) (defvar *message-seq-field-name* "couchdb_message_seq") (defvar ...
null
https://raw.githubusercontent.com/cicakhq/potato/88b6c92dbbc80a6c9552435604f7b1ae6f2a4026/src/index/potato-index.lisp
lisp
TODO: Make sure this delete call works ELSE: Normal message update ("user_email" . ,user-email) ELSE: The solr server is not available, print a warning message
(in-package :potato-index) (declaim #.potato.common::*compile-decl*) (defvar *channel-group-cache* (receptacle:make-blocking-hash-map :name "Map from channel to group" :test #'equal)) (defvar *main-seq-field-name* "couchdb_seq") (defvar *main-seq* nil) (defvar *message-seq-field-name* "couchdb_message_seq") (defvar ...
c78bd034b2489d03d7334d35a1c47a8ed1e4224967bc84fc59d663e4a9c3fdae
DSiSc/why3
encoding_sort.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/transform/encoding_sort.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Ident open Ty open Term open Decl open Theory open Task type tenv = { specials : tysymbol Hty.t; ...
ac7fd953fb4f54c0cc54373c4144689c345a6b1bae7b859fc2c12ab091f3bbfb
psholtz/MIT-SICP
exercise1-06.scm
;; ;; Execise 1.6 ;; does n't see why " if " needs to be provded as a special form . " Why ca n't I just define it as an ordinary procedure in terms of " cond " ? " she asks . 's friend ;; claims this can indeed be done, and she defines a new version of "if": ;; ;; (define (new-if predicate then-clause else-...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-1.1/mit-scheme/exercise1-06.scm
scheme
Execise 1.6 claims this can indeed be done, and she defines a new version of "if": (define (new-if predicate then-clause else-clause) (cond (predicate then-clause) (else else-clause))) ==> 0 (define (sqrt-iter guess x) (new-if (good-enough? guess x) guess (sqrt-iter (impr...
does n't see why " if " needs to be provded as a special form . " Why ca n't I just define it as an ordinary procedure in terms of " cond " ? " she asks . 's friend Eva demonstrates the program for : ( new - if (= 2 3 ) 0 5 ) = = > 5 ( new - if (= 1 1 ) 0 5 ) Delighted , uses " new - if " to rewr...
b7f97fd3c164c48b0dec3754831f4d608fed5930ef03cdbe3b222693dc9547a5
mransan/ocaml-protoc
test02_ml.ml
module T = Test02_types module Pp = Test02_pp module Pb = Test02_pb let decode_ref_data () = { T.o01 = 1.0; T.o02 = 2.0; T.o03 = -123l; T.o04 = 456L; T.o05 = 123l; T.o06 = 456L; T.o07 = -123l; T.o08 = -456L; T.o09 = 0xFFFFFFFFl; T.o10 = 0xFFFFFFFFFFFFFFFFL; T.o11 = 0xFFFFF...
null
https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/tests/integration-tests/test02_ml.ml
ocaml
module T = Test02_types module Pp = Test02_pp module Pb = Test02_pb let decode_ref_data () = { T.o01 = 1.0; T.o02 = 2.0; T.o03 = -123l; T.o04 = 456L; T.o05 = 123l; T.o06 = 456L; T.o07 = -123l; T.o08 = -456L; T.o09 = 0xFFFFFFFFl; T.o10 = 0xFFFFFFFFFFFFFFFFL; T.o11 = 0xFFFFF...
4e95f4cfcb0e1e0b1b0bb563d07a3122fa93bf4e5a63929f292ebee7ff177752
prakhar1989/type-inference
test.ml
open Ast module NameMap = Map.Make(String) let rec get_ids (e: expr): id list = let rec dedup = function | [] -> [] | x :: y :: xs when x = y -> y :: dedup xs | x :: xs -> x :: dedup xs in let ids = match e with | NumLit(_) | BoolLit(_) -> [] | Val(x) -> [x] | Fun(x, y) -> [x] @ (get_ids y) |...
null
https://raw.githubusercontent.com/prakhar1989/type-inference/1b31cc9dc05fca41d089517e54edbf66a8012512/test.ml
ocaml
Run it
open Ast module NameMap = Map.Make(String) let rec get_ids (e: expr): id list = let rec dedup = function | [] -> [] | x :: y :: xs when x = y -> y :: dedup xs | x :: xs -> x :: dedup xs in let ids = match e with | NumLit(_) | BoolLit(_) -> [] | Val(x) -> [x] | Fun(x, y) -> [x] @ (get_ids y) |...
a05eb972c67bfa2f5b2e1c4aef8b74a3ecda907bf4158aaae50ad18b872266e5
lisp/de.setf.xml
namespace.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*- (in-package :xml-query-data-model) (setq xml-query-data-model:*namespace* (xml-query-data-model:defnamespace "-schema#" (:use) ...
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/www-w3-org/2000/01/rdf-schema/namespace.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*- (xqdm:find-namespace "-schema#" :if-does-not-exist :load)
(in-package :xml-query-data-model) (setq xml-query-data-model:*namespace* (xml-query-data-model:defnamespace "-schema#" (:use) (:nicknames "rdfs") (:export ...
c9056835196f6b84acd48e85f7d313091fbf262b23eb59bf181a70c85455b116
fredlund/McErlang
g_sup.erl
%%%---------------------------------------------------------------------- %%% File : g_sup.erl Author : > %%% Purpose : Supervisor for the elevator graphics control processes. Created : 30 Aug 1999 by > %%%---------------------------------------------------------------------- -module(g_sup). -author('...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/examples/Elevator/src/g_sup.erl
erlang
---------------------------------------------------------------------- File : g_sup.erl Purpose : Supervisor for the elevator graphics control processes. ---------------------------------------------------------------------- External exports supervisor callbacks --------------------------------------------------...
Author : > Created : 30 Aug 1999 by > -module(g_sup). -author(''). -vsn("1.0"). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, g_sup}, g_sup, []). init([]) -> {ok, {{one_for_one, 0, 1}, []}}.
c9d67ed055d9d28f610c87fec5b759ba911e9238e6be58c1be08ccb6a45c4e47
rd--/hsc3
jp-record-scratcher.hs
record scratcher ( jp ) ; requires = buf let (buf, nc) = (control kr "buf" 0, 2) dup a = mce2 a a d = Envelope [0, 1, 0] [0.1, 0.1] [EnvSin] (Just 1) (Just 0) 0 e = envGen kr 1 0.5 0 1 RemoveSynth d x = mouseX kr (-10) 10 Linear 0.2 dx = x - delayN x 0.1 0.1 bdx = mouseButton kr 1 0 0.3 + dx ...
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Graph/jp-record-scratcher.hs
haskell
-- ; buffer setup
record scratcher ( jp ) ; requires = buf let (buf, nc) = (control kr "buf" 0, 2) dup a = mce2 a a d = Envelope [0, 1, 0] [0.1, 0.1] [EnvSin] (Just 1) (Just 0) 0 e = envGen kr 1 0.5 0 1 RemoveSynth d x = mouseX kr (-10) 10 Linear 0.2 dx = x - delayN x 0.1 0.1 bdx = mouseButton kr 1 0 0.3 + dx ...
8586d0ae2d362c4f76dca9299723b2c1009f6db7976a3552a6762bb94dfc5685
jwiegley/notes
Gpyh.hs
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # {-# LANGUAGE GADTs #-} # LANGUAGE TypeOperators # module Gyph where import GHC.TypeLits data Person :: [Symbol] -> * where Person :: KnownSymbol n => String -> proxy n -> Person ancestors -> Person (n ': ancestors)
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/9423ea6e1515b4d99531/Gpyh.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # module Gyph where import GHC.TypeLits data Person :: [Symbol] -> * where Person :: KnownSymbol n => String -> proxy n -> Person ancestors -> Person (n ': ancestors)
07b01f1b1ed3b7d0b2672046597c604c4d18072d2567ceff746a105de91ab8e1
exercism/clojure
pascals_triangle.clj
(ns pascals-triangle) (def triangle) (defn row [] ;; <- arglist goes here ;; your code goes here )
null
https://raw.githubusercontent.com/exercism/clojure/7ed96a5ae3c471c37db2602baf3db2be3b5a2d1a/exercises/practice/pascals-triangle/src/pascals_triangle.clj
clojure
<- arglist goes here your code goes here
(ns pascals-triangle) (def triangle) )
ac841b0fff088149c497082d84650bce268368352f470c553b95103b485ecb9c
sveri/closp-crud
routes_generator.clj
(ns de.sveri.clospcrud.routes-generator (:require [selmer.parser :as selm] [clojure.pprint :as pp] [de.sveri.clospcrud.helper :as h] [de.sveri.clospcrud.spec.clospcrud :as schem] [clojure.spec :as s])) (def bool-conv-fn '(defn convert-boolean [b] (if (= "on" b) true fa...
null
https://raw.githubusercontent.com/sveri/closp-crud/92890f778f22005a8e5cee1b966bc157ed8b396c/src/de/sveri/clospcrud/routes_generator.clj
clojure
(ns de.sveri.clospcrud.routes-generator (:require [selmer.parser :as selm] [clojure.pprint :as pp] [de.sveri.clospcrud.helper :as h] [de.sveri.clospcrud.spec.clospcrud :as schem] [clojure.spec :as s])) (def bool-conv-fn '(defn convert-boolean [b] (if (= "on" b) true fa...
13fd2cf2f589192b2fb47e03b5b35f04d50a535252223c46776c125117fa8ec1
metosin/sormilla
io_utils.clj
(ns sormilla.io-utils (:require [sormilla.bin :as bin]) (:import [java.io InputStream] [java.net Socket InetAddress InetSocketAddress] [org.apache.commons.io IOUtils])) (defn read-fully [^InputStream in ^bytes buffer ^long offset ^long size] (IOUtils/readFully in buffer offset size) buffe...
null
https://raw.githubusercontent.com/metosin/sormilla/e50930930c41f64272f06c4bd02a4e3ab58e923f/src/sormilla/io_utils.clj
clojure
(ns sormilla.io-utils (:require [sormilla.bin :as bin]) (:import [java.io InputStream] [java.net Socket InetAddress InetSocketAddress] [org.apache.commons.io IOUtils])) (defn read-fully [^InputStream in ^bytes buffer ^long offset ^long size] (IOUtils/readFully in buffer offset size) buffe...
a08be679cd769fc753dac5e7de9c90e9ce88b043587b79da7f755db7d7bfe11e
scrintal/heroicons-reagent
gift_top.cljs
(ns com.scrintal.heroicons.solid.gift-top) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M11.25 3v4.046a3 3 0 00-4.277 4.204H1.5v-6A2.25 2.25 0 013.75 3h7.5zM12.75 3v4.011a3 3 0 014.239 4.239H22.5v-6A2.25 2.2...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/gift_top.cljs
clojure
(ns com.scrintal.heroicons.solid.gift-top) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M11.25 3v4.046a3 3 0 00-4.277 4.204H1.5v-6A2.25 2.25 0 013.75 3h7.5zM12.75 3v4.011a3 3 0 014.239 4.239H22.5v-6A2.25 2.2...
0ea6dd34950e9f3715ed5ad48ab850c11fe0d6e51e6388d96bb24556b4733f8d
datacrypt-project/datacrypt
core.clj
(ns datacrypt.core (:require [hitchhiker.redis :as redis] [hitchhiker.tree.core :as core] [hitchhiker.tree.messaging :as msg] [datascript.core :as d]) (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
null
https://raw.githubusercontent.com/datacrypt-project/datacrypt/28fa3bcb44f85d4fc53ad578bb639b9306b972b3/src/datacrypt/core.clj
clojure
(ns datacrypt.core (:require [hitchhiker.redis :as redis] [hitchhiker.tree.core :as core] [hitchhiker.tree.messaging :as msg] [datascript.core :as d]) (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
f26daf8f4e5612ad4f270b463fccb51a4a18623d95a8d4d910b9be09e1e0ed33
Opetushallitus/ataru
virkailija_routes.clj
(ns ataru.virkailija.virkailija-routes (:require [ataru.applications.automatic-eligibility :as automatic-eligibility] [ataru.tutkintojen-tunnustaminen :as tutkintojen-tunnustaminen] [ataru.applications.automatic-payment-obligation :as automatic-payment-obligation] [ataru.applicatio...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/4f1f156d14625631971b3ae92be62129da702c01/src/clj/ataru/virkailija/virkailija_routes.clj
clojure
DO NOT REMOVE! extend-protocol below breaks otherwise! through unchanged so that the thread won't be blocked. deprecated, use /valinta-tulos-service deprecated, use /valinta-tulos-service All these paths are required to be proxied by raamit when running locally in your dev-environment. They will get proxied to th...
(ns ataru.virkailija.virkailija-routes (:require [ataru.applications.automatic-eligibility :as automatic-eligibility] [ataru.tutkintojen-tunnustaminen :as tutkintojen-tunnustaminen] [ataru.applications.automatic-payment-obligation :as automatic-payment-obligation] [ataru.applicatio...
b739eee0eab9ba32a245060a5f6a886690507b185685cf77582f2cd4eaa2e6ef
abevoelker/haskellbook-solutions
ShortExercise.hs
module ShortExercise where import Test.Hspec resurrected from chapter 8 exercises mult :: (Integral a) => a -> a -> a mult x y = go x y 0 where go x' remainingCount accum | remainingCount == 0 = accum | otherwise = go x' (remainingCount - 1) (accum + x') -- Intermission: Short Exercise main :: IO () main...
null
https://raw.githubusercontent.com/abevoelker/haskellbook-solutions/9e2804940b3b45bdc1b04cfa5d536097629c9498/ch14/ShortExercise.hs
haskell
Intermission: Short Exercise
module ShortExercise where import Test.Hspec resurrected from chapter 8 exercises mult :: (Integral a) => a -> a -> a mult x y = go x y 0 where go x' remainingCount accum | remainingCount == 0 = accum | otherwise = go x' (remainingCount - 1) (accum + x') main :: IO () main = hspec $ do describe "Additi...
058c038fba54da5680ef0b91fbb34eb981d3dad8baaabb1b3944ac54dc42dd49
OCamlPro/ocp-build
autoconfFS.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-autoconf/autoconfFS.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file type oc val open_out : string -> oc val output_string : oc -> string -> unit val fprintf : oc -> ('b, Buffer.t, unit) format -> 'b val close_out : oc -> unit val write_...
b899563a0cc6ce297a359a8df321670e89fbd028800bed876f60a30ddf887eab
realworldocaml/book
patience_diff.mli
* @inline
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/patience_diff/src/patience_diff.mli
ocaml
* @inline
ffbf6508abd79a8d441cb4b369e3ca5a6053dc9eb9d6650fd528641acc74f6f2
iconnect/api-tools
Types.hs
{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Data.API.Doc.Types ( URL , HTTPMethod , StatusCode , Call(..) , Header(..) , Param(..) , View(..) , Sample(..) , Body(..) , DocInfo(..) , r...
null
https://raw.githubusercontent.com/iconnect/api-tools/3d7b4dfadf82c7cb859b515d033447bd1d8ef6c6/src/Data/API/Doc/Types.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # | Documents a single method call on a resource in a web application ^ HTTP method being documented ^ Relative URL path of the resource ^ Free-form text description ^ Does the call require authentication? ^ HTTP headers relevant to the...
# LANGUAGE RecordWildCards # module Data.API.Doc.Types ( URL , HTTPMethod , StatusCode , Call(..) , Header(..) , Param(..) , View(..) , Sample(..) , Body(..) , DocInfo(..) , renderAPIType , renderBodyType , mk_link ) where import Data.API.P...
4a7b33697e046aab6767c24e6f8208d650831e8d3c05ad9e19c32dd68d4c55f8
expipiplus1/vulkan
VK_EXT_shader_subgroup_vote.hs
{-# language CPP #-} -- | = Name -- -- VK_EXT_shader_subgroup_vote - device extension -- -- == VK_EXT_shader_subgroup_vote -- -- [__Name String__] @VK_EXT_shader_subgroup_vote@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 66 -- -- [__Revision__] 1 -- -- [_...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_EXT_shader_subgroup_vote.hs
haskell
# language CPP # | = Name VK_EXT_shader_subgroup_vote - device extension == VK_EXT_shader_subgroup_vote [__Name String__] [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] [__Deprecation state__] - /Deprecated/ ...
@VK_EXT_shader_subgroup_vote@ 66 1 - Requires support for Vulkan 1.0 < -extensions/html/vkspec.html#versions-1.1-new-features Vulkan 1.1 > - < -Docs/issues/new?body=[VK_EXT_shader_subgroup_vote ] @dgkoch%0A*Here describe the issue or question you have about the ...
888a3ec45bb671978d683ac8c9daa616eb6d70f9468bb49e454bbd0cc6b90956
gelisam/hyzzy
A6.hs
{-# LANGUAGE OverloadedStrings #-} module Rooms.A6 where import Hyzzy.Command look :: Command look = "More foliage walls. This place is a maze..." east :: Command east = Command $ goToRoom "A7" west :: Command west = Command $ goToRoom "A5" -- 1 2 3 4 5 6 7 -- +-+-+ +-+-+-+-+ -- A| | * | -- ...
null
https://raw.githubusercontent.com/gelisam/hyzzy/c5c861d5556ed3ca82fbb583d6928fac40d0d8df/games/maze/Rooms/A6.hs
haskell
# LANGUAGE OverloadedStrings # 1 2 3 4 5 6 7 +-+-+ +-+-+-+-+ A| | * | + +-+-+-+-+-+ + B| | | | + + +-+-+ + +-+ + + +-+ +-+ + + D| | | | | + + + + + + + + E| | | | | | + + +-+ + +-+ + F| | | | + +-+-+ +-+-+ + +-+-+-+-+-+-+-+
module Rooms.A6 where import Hyzzy.Command look :: Command look = "More foliage walls. This place is a maze..." east :: Command east = Command $ goToRoom "A7" west :: Command west = Command $ goToRoom "A5" C| | | | | |
1a61234a87866e8f1ab258e60f427ed791c56c2e0ce93b00d6b98ae713235ab0
pflanze/chj-schemelib
cj-alist.scm
Copyright 2010 - 2019 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require tes...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/cj-alist.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. ** See alist.scm now, for a more flexible (but perhaps not bootstrappable) solution ** die if not found.ok? show key, show key and alis, show nothing?.. alis) if not > (symbol-alist-replace '((z a)) '(a b...
Copyright 2010 - 2019 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require test C (predicates-1 any? true/1 false/2) cj-env) (export symbol-alist-ref keyword-alist-ref number-alist-ref...
10890d6aa9a3a5ca2814177223020d1c0d8fdac7bd1622f6345ca83f5febf82d
neongreen/haskell-ex
Main.hs
module Main where import Data.Char bin :: Int -> String bin n = if q == 0 then show r else bin q ++ show r where (q,r) = quotRem n 2 dec :: String -> Int dec xs = sum $ zipWith (*) digits pow where digits = reverse $ map digitToInt xs pow = iterate (*2) 1 main :: IO () main = do print $ bin ...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week3/binary/boccato/Main.hs
haskell
module Main where import Data.Char bin :: Int -> String bin n = if q == 0 then show r else bin q ++ show r where (q,r) = quotRem n 2 dec :: String -> Int dec xs = sum $ zipWith (*) digits pow where digits = reverse $ map digitToInt xs pow = iterate (*2) 1 main :: IO () main = do print $ bin ...
dd6e1149d5eaf748504aff8432dae93966b8d10f1d3e3f067a4301298a5915d2
mariari/vomitchan
StateType.hs
# LANGUAGE TemplateHaskell # module Bot.StateType ( StateConfig(..), GlobalState(..), HashStorage(..), VomState, Quit(..), Response(..), response, noResponse, quit, toHashStorage, toGlobalState, fromStateConfig, defaultChanState, dream, fleecy, yuki, mute ) where --- IMPORTS ----------------...
null
https://raw.githubusercontent.com/mariari/vomitchan/3ffde0a983d6545158c1562bd53362d9d0149831/src/Bot/StateType.hs
haskell
- IMPORTS ----------------------------------------------------------------------------------- - TYPES ------------------------------------------------------------------------------------- - DATA STRUCTURES --------------------------------------------------------------------------- Stores the Hash Information per chann...
# LANGUAGE TemplateHaskell # module Bot.StateType ( StateConfig(..), GlobalState(..), HashStorage(..), VomState, Quit(..), Response(..), response, noResponse, quit, toHashStorage, toGlobalState, fromStateConfig, defaultChanState, dream, fleecy, yuki, mute ) where import qualified Data.Text ...
34d85c76c211677477cc563f6f4173a92a71a993b1af0bd981e7c80d66b3b084
exoscale/clojure-kubernetes-client
v1_service.clj
(ns clojure-kubernetes-client.specs.v1-service (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-service-spec :refer :all] [clojure-kubernetes-client.specs....
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_service.clj
clojure
(ns clojure-kubernetes-client.specs.v1-service (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-service-spec :refer :all] [clojure-kubernetes-client.specs....
14ef01163f7a88855c1a09390fa41aecb2555c725d88fd380e1e75a8190c85e8
mpenet/jet
server.clj
(ns qbits.jet.server "Adapter for the Jetty 9 server, with websocket + core.async support. Derived from ring.adapter.jetty" (:require [qbits.jet.servlet :as servlet] [clojure.core.async :as async] [qbits.jet.websocket :refer :all]) (:import ;; (org.eclipse.jetty.alpn.server ;; ALPNServerConnection...
null
https://raw.githubusercontent.com/mpenet/jet/c667b1ba24d8c21b38b06f92951742eaed1be5fe/src/clj/qbits/jet/server.clj
clojure
(org.eclipse.jetty.alpn.server ALPNServerConnectionFactory)
(ns qbits.jet.server "Adapter for the Jetty 9 server, with websocket + core.async support. Derived from ring.adapter.jetty" (:require [qbits.jet.servlet :as servlet] [clojure.core.async :as async] [qbits.jet.websocket :refer :all]) (:import (org.eclipse.jetty.server Connector Handler Serve...
cf720958252fa89fb11efd070f5edfaff78d7ab1fa8e9ff058e2693567ac27c6
maximedenes/native-coq
summary.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/library/summary.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
59e7d146dcaf55c433c6356dae75cca22eb2f626c601a04fed118f745253a498
manuel-serrano/bigloo
walk.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Globalize / walk.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : T...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Globalize/walk.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The `globalization' stage */ *===========================...
* ... /prgm / project / bigloo / / comptime / Globalize / walk.scm * / * Author : * / * Creation : Thu Jan 26 14:25:07 1995 * / * Last change : We d Jan 8 13:49:53 2020 ( serrano ) * / * Copyrig...
81b4b22eff871163156ce62a4892f76ee5972659c3b7f2531df9bf3ba19166ee
GillianPlatform/Gillian
Asrt.ml
(** {b GIL logic assertions}. *) type t = TypeDef__.assertion = | Emp (** Empty heap *) | Star of t * t (** Separating conjunction *) | Pred of string * Expr.t list (** Predicates *) | Pure of Formula.t (** Pure formula *) | Types of (Expr.t * Type.t) list (** Typing ass...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/3d0c78f5440f10cef7bd12720f483a25a61bf1d3/GillianCore/GIL_Syntax/Asrt.ml
ocaml
* {b GIL logic assertions}. * Empty heap * Separating conjunction * Predicates * Pure formula * Typing assertion * Core assertion * Deprecated, use {!Visitors.endo} instead. Map recursively to assertions and expressions Get all the logical expressions of --a-- ...
type t = TypeDef__.assertion = [@@deriving eq] let to_yojson = TypeDef__.assertion_to_yojson let of_yojson = TypeDef__.assertion_of_yojson let compare x y = let cmp = Stdlib.compare in match (x, y) with | Pure (Eq (PVar x, _)), Pure (Eq (PVar y, _)) -> cmp x y | Pure (Eq (PVar _, _)), _ -> -1 | _, Pure (Eq ...
baa21d427c32ddcf921cf2d9620af1d878b1a6ce87b459a46adc995a13d0d357
gregnwosu/haskellbook
chap11BinTree.hs
module Chapter11BinTree where import Data.Char data BinaryTree a = Leaf | Node (BinaryTree a) a (BinaryTree a) deriving (Eq, Show , Ord) insert' :: Ord a => a -> BinaryTree a -> BinaryTree a insert' b Leaf = Node Leaf b Leaf insert' b n@(Node left a right) | a == b = n | b > a = Node left a...
null
https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/chapter11/chap11BinTree.hs
haskell
module Chapter11BinTree where import Data.Char data BinaryTree a = Leaf | Node (BinaryTree a) a (BinaryTree a) deriving (Eq, Show , Ord) insert' :: Ord a => a -> BinaryTree a -> BinaryTree a insert' b Leaf = Node Leaf b Leaf insert' b n@(Node left a right) | a == b = n | b > a = Node left a...
f8cbdfafc02a1d90ab0c9d5dcb1084a112dc194fb78edd0091e34e52ad7e1f0f
BekaValentine/SimpleFP-v2
Elaborator.hs
{-# OPTIONS -Wall #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # -- This module defines the core types of a monadic elaborator. module Dependent.Monadic.Elaborator where import Utils.Env import Utils.Vars import Dependent.Core.ConSig import Dependent.Core.Term import qualified Control.Lens as L im...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Dependent/Monadic/Elaborator.hs
haskell
# OPTIONS -Wall # This module defines the core types of a monadic elaborator. | A signature is a collection of constructors together with their constructor signatures. This is used during type checking and elaboration to define the underlying type theory. | A definition consists of a declared name together with it...
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Dependent.Monadic.Elaborator where import Utils.Env import Utils.Vars import Dependent.Core.ConSig import Dependent.Core.Term import qualified Control.Lens as L import Control.Monad.State type Signature = [(String,ConSig)] type Defini...
714ed0cc037d96a87ecf7a1f3ecaa8c48ff160e17d2423fc68aa0b96e7ac631a
jwiegley/notes
Wat.hs
{-# LANGUAGE RankNTypes #-} module Wat where import Control.Monad.Trans.Writer import Control.Monad.Trans.Reader import Control.Monad.ST import Data.STRef data Foo = Foo data Bar = Bar newtype Wat a = Wat { runWat :: forall s. WriterT Foo (ReaderT (STRef s Bar) (ST s)) a } doWat :: Wat t -> Bar -> Foo doWat (Wat a...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Wat.hs
haskell
# LANGUAGE RankNTypes #
module Wat where import Control.Monad.Trans.Writer import Control.Monad.Trans.Reader import Control.Monad.ST import Data.STRef data Foo = Foo data Bar = Bar newtype Wat a = Wat { runWat :: forall s. WriterT Foo (ReaderT (STRef s Bar) (ST s)) a } doWat :: Wat t -> Bar -> Foo doWat (Wat a) x = runST $ do var <- ...
4fc0613374170ad851c90f4d46c71daaae54f6795dd99ccb12be7e2369e7a41f
zkat/chanl
setup-tests.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; indent - tabs - mode : nil -*- ;;;; Copyright © 2009 , ;;;; ;;;; Preparation for the ChanL test suite ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package :chanl) Setting up the : CH...
null
https://raw.githubusercontent.com/zkat/chanl/3a0ad5b9ae31b3874ac91c541fd997123c2e03db/tests/setup-tests.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; indent - tabs - mode : nil -*- Preparation for the ChanL test suite Preparing the test suite
Copyright © 2009 , (in-package :chanl) Setting up the : CHANL package to include 5AM stuff (eval-when (:compile-toplevel :load-toplevel :execute) (import '(5am:def-suite 5am:run! 5am:is 5am:in-suite 5am:signals)) (export 'run-all-tests)) (defmacro test (name &body body) `(5am:test ,name ,@body)) (def-s...
7eb0f63fe9011bb7b79ce6653df3af9ac6d49148b1f41c6ed67a443e905687db
nunchaku-inria/nunchaku
Location.ml
(* This file is free software, part of nunchaku. See file "license" for more details. *) (** {1 Location in a file} *) type t = { file : string; start_line : int; start_column : int; stop_line : int; stop_column : int; } let mk file start_line start_column stop_line stop_column = { file; start_line; sta...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/core/Location.ml
ocaml
This file is free software, part of nunchaku. See file "license" for more details. * {1 Location in a file}
type t = { file : string; start_line : int; start_column : int; stop_line : int; stop_column : int; } let mk file start_line start_column stop_line stop_column = { file; start_line; start_column; stop_line; stop_column; } let internal = mk "<internal>" 0 0 0 0 let mk_pair file (a,b)(c,d) = mk file a b...
dfc3ec4bd7877bc7d48c4308ad9e4b184ebe9ef4c22944e3a31718701ba6d6ea
BinaryAnalysisPlatform/bap
bap_fileutils.ml
open Core_kernel[@@warning "-D"] open Option.Monad_infix module Unix = Caml_unix let mapfile path : Bigstring.t option = let fd = Unix.(openfile path [O_RDONLY] 0o400) in try let data = Mmap.V1.map_file fd Bigarray.char Bigarray.c_layout false [|-1|] in Unix.close fd; Some (Bigarray.array...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_image/bap_fileutils.ml
ocaml
open Core_kernel[@@warning "-D"] open Option.Monad_infix module Unix = Caml_unix let mapfile path : Bigstring.t option = let fd = Unix.(openfile path [O_RDONLY] 0o400) in try let data = Mmap.V1.map_file fd Bigarray.char Bigarray.c_layout false [|-1|] in Unix.close fd; Some (Bigarray.array...
b4270a3da55864837a1a6a03b6a735a6bc54a64fffa6ace36c475dff901eb401
pgj/mirage-kfreebsd
stream_processing.ml
open Lwt (* provides >>= and join *) provides Time , Console and Main let map f source = let (s, push) = Lwt_stream.create () in let rec aux () = match_lwt Lwt_stream.get source with | None -> push None; return () | Some x -> lwt y = f x in push (Some y); aux () in let _ = aux () in s let split so...
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-test/regress/lwt/stream_processing.ml
ocaml
provides >>= and join
provides Time , Console and Main let map f source = let (s, push) = Lwt_stream.create () in let rec aux () = match_lwt Lwt_stream.get source with | None -> push None; return () | Some x -> lwt y = f x in push (Some y); aux () in let _ = aux () in s let split source = let (s1, push1) = Lwt_stream...
b9f98a2378c91e46025a7fd93e8055dd9770cf635096bc39ac00d3a8297e5572
thegeez/clj-board
project.clj
(defproject net.thegeez/clj-board "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha10"] [org.clojure/core.async "0.2.374"] [com.stuartsierra/c...
null
https://raw.githubusercontent.com/thegeez/clj-board/e162d6097ce7b66438f7529418bf48af66e34fa8/project.clj
clojure
temp in prod [org.webjars.npm/react-dnd-html5-backend "2.0.0"] [org.webjars.npm/react-dnd "2.1.4"]
(defproject net.thegeez/clj-board "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha10"] [org.clojure/core.async "0.2.374"] [com.stuartsierra/c...
83212bba38b85dc23c5f4fdbde5bb25a3764a6df02887f8326fbd70ac8c4c5b9
ekmett/lens-core
Core.hs
module Control.Lens.Core where
null
https://raw.githubusercontent.com/ekmett/lens-core/e3c351f8c01e837c5e019bfc99a5b283461b8a9a/src/Control/Lens/Core.hs
haskell
module Control.Lens.Core where
bda1de786f88c99ec6dc3d12e4b534aff24d2bb14339c9922c4f4d5788b32656
airalab/hs-web3
Payment.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} -- | -- Module : Network.Polkadot.Rpc.Payment Copyright : 2016 - 2021 -- License : Apache-2.0 -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -- Polkadot RPC methods with `payment` prefix. -- modu...
null
https://raw.githubusercontent.com/airalab/hs-web3/c03b86eb621f963886a78c39ee18bcec753f17ac/packages/polkadot/src/Network/Polkadot/Rpc/Payment.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Network.Polkadot.Rpc.Payment License : Apache-2.0 Maintainer : Stability : experimental Portability : portable Polkadot RPC methods with `payment` prefix. | Retrieves the fee information for an encoded extrinsic. ^ Extrinsic ^ Block hash or nothin...
# LANGUAGE FlexibleContexts # Copyright : 2016 - 2021 module Network.Polkadot.Rpc.Payment where import Data.ByteArray.HexString (HexString) import Network.JsonRpc.TinyClient (JsonRpc (..)) import Network.Polkadot.Rpc.Types (RuntimeDispatchInfo) queryInfo :: JsonRpc m ...
44d5041104ef93dd1f5824e9beffce27813ae41cdd7843ffbb287fae83e531db
ztellman/collection-check
core_test.cljc
(ns collection-check.core-test (:require #?(:clj [clojure.test :refer [deftest]] :cljs [cljs.test :refer-macros [deftest]]) [collection-check.core :as cc] [clojure.test.check.generators :as gen])) (def gen-element (gen/tuple gen/int)) (deftest test-identities (cc/assert-vector-like 100 [] gen-ele...
null
https://raw.githubusercontent.com/ztellman/collection-check/f715ba2ea63a1dcce66f80e9522ea27948d5bddf/test/collection_check/core_test.cljc
clojure
(ns collection-check.core-test (:require #?(:clj [clojure.test :refer [deftest]] :cljs [cljs.test :refer-macros [deftest]]) [collection-check.core :as cc] [clojure.test.check.generators :as gen])) (def gen-element (gen/tuple gen/int)) (deftest test-identities (cc/assert-vector-like 100 [] gen-ele...
d69fbb9a00059686c77ae90b326ac9fb6bffe52ddc02ca469171a4bce2a77ade
plumatic/fnhouse
schemas.clj
(ns guesthouse.schemas "Schemas and constructors that are used in the guesthouse" (:require [clojure.string :as str] [schema.core :as s])) (s/defschema EntryData "Schema for guestbook entry" {:name String :age Long :lang (s/enum :clj :cljs)}) (s/defschema Entry "A guestbook entry with an index"...
null
https://raw.githubusercontent.com/plumatic/fnhouse/e27ec5649a91470b63285ef9e28c6a77494f7ffd/examples/guesthouse/src/guesthouse/schemas.clj
clojure
(ns guesthouse.schemas "Schemas and constructors that are used in the guesthouse" (:require [clojure.string :as str] [schema.core :as s])) (s/defschema EntryData "Schema for guestbook entry" {:name String :age Long :lang (s/enum :clj :cljs)}) (s/defschema Entry "A guestbook entry with an index"...
68c7679cb7e08fc2e8669fc3171379f3d99f6648391101f3f9b6a9ca02bcde07
mirage/ocaml-cohttp
client.ml
* Copyright ( c ) 2012 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * * 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 c...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/628d8716b22bb7933863dd584673745c974707be/cohttp-mirage/src/client.ml
ocaml
* Copyright ( c ) 2012 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * * 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 c...
fda197166d0d2b18c4ef86a6751f202e05e83ab0edc446861d88fe7b1162f243
jacekschae/learn-reitit-course-files
middleware.clj
(ns cheffy.middleware (:require [ring.middleware.jwt :as jwt] [cheffy.recipe.db :as recipe-db] [ring.util.response :as rr])) (def wrap-auth0 {:name ::auth0 :description "Middleware for auth0 authentication and authorization" :wrap (fn [handler] (jwt/wra...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/42-auth0-management-token/src/cheffy/middleware.clj
clojure
(ns cheffy.middleware (:require [ring.middleware.jwt :as jwt] [cheffy.recipe.db :as recipe-db] [ring.util.response :as rr])) (def wrap-auth0 {:name ::auth0 :description "Middleware for auth0 authentication and authorization" :wrap (fn [handler] (jwt/wra...
fc21199be9e7fcf4bda72f76c23f62f23a2f992752d184dbd58e774849bcdddb
dharrigan/startrek
routes.clj
(ns startrek.ui.lcars.routes {:author "David Harrigan"} (:require [startrek.ui.lcars.authentication.routes :as authentication] [startrek.ui.lcars.middleware.authentication :refer [private-authentication-middleware]] [startrek.ui.lcars.starships.routes :as starships-routes])) (set! *warn-on-reflection* tru...
null
https://raw.githubusercontent.com/dharrigan/startrek/a91caa3f504ffea502b79cfd29d0499574aaced6/src/startrek/ui/lcars/routes.clj
clojure
(ns startrek.ui.lcars.routes {:author "David Harrigan"} (:require [startrek.ui.lcars.authentication.routes :as authentication] [startrek.ui.lcars.middleware.authentication :refer [private-authentication-middleware]] [startrek.ui.lcars.starships.routes :as starships-routes])) (set! *warn-on-reflection* tru...
e236e8db84e30341455d5b1d595c485d5610c681b56ee459416a2b0c99599b0b
GaloisInc/ivory
TestExamples.hs
import System.Environment import qualified AddrOfRegression import qualified Alloc import qualified Area import qualified Array import qualified BitData import qualified Bits import qualified ClassHierarchy import qualified ConcreteFile import qualified Cond import qualified ConstPtrRef import qualified ConstRef impor...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory-examples/examples/TestExamples.hs
haskell
import System.Environment import qualified AddrOfRegression import qualified Alloc import qualified Area import qualified Array import qualified BitData import qualified Bits import qualified ClassHierarchy import qualified ConcreteFile import qualified Cond import qualified ConstPtrRef import qualified ConstRef impor...
855175ffeecef056eab30096970a3b3dee65d3d926befdac49f909aafb6e679b
nasa/Common-Metadata-Repository
user.clj
(ns user "A dev namespace that supports Proto-REPL. It seems that Proto-REPL doesn't support the flexible approach that lein uses: any configurable ns can be the starting ns for a REPL. As such, this minimal ns was created for Proto-REPL users, so they too can have an env that supports startup and shutdown."...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/ous-plugin/dev-resources/src/user.clj
clojure
(ns user "A dev namespace that supports Proto-REPL. It seems that Proto-REPL doesn't support the flexible approach that lein uses: any configurable ns can be the starting ns for a REPL. As such, this minimal ns was created for Proto-REPL users, so they too can have an env that supports startup and shutdown."...
a8b0324fa70e110de9f8616606fdf8c1883812dac4f7ee547b2d21c081d466ed
thheller/shadow-cljs
worker.cljs
(ns demo.worker) ;; this ns in only executed by the worker (defn ^:dev/after-load start [] (js/console.log "worker reload")) (defn init [] (js/console.log "worker started") (js/postMessage (pr-str (assoc {:x 1} :y 2))))
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/demo/worker.cljs
clojure
this ns in only executed by the worker
(ns demo.worker) (defn ^:dev/after-load start [] (js/console.log "worker reload")) (defn init [] (js/console.log "worker started") (js/postMessage (pr-str (assoc {:x 1} :y 2))))
4f1d04b31edf64220fbd89a1ac1befd36f686468669fb53077d5d97115f1a846
PLSysSec/lio
TCB.hs
# LANGUAGE Unsafe # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ExistentialQuantification # | This module exports symbols that must be accessible only to trusted code . By convention , the names of such symbols always end \"@ ... TCB@\ " ( short for \"trusted computing base\ " ) . In many cases , a t...
null
https://raw.githubusercontent.com/PLSysSec/lio/622a3e7bc86a3b42ab4ce8be954064a5f142247a/lio/LIO/TCB.hs
haskell
# LANGUAGE DeriveDataTypeable # ** Accessing internal state * Executing IO actions * Privileged constructors * Uncatchable exception type * Trusted 'Show' ^ Current label. ^ Current clearance. | The @LIO@ monad is a wrapper around 'IO' that keeps track of a /current label/ and /current clearance/. Safe code...
# LANGUAGE Unsafe # # LANGUAGE ExistentialQuantification # | This module exports symbols that must be accessible only to trusted code . By convention , the names of such symbols always end \"@ ... TCB@\ " ( short for \"trusted computing base\ " ) . In many cases , a type is safe to export while its cons...
e3fd65e282b382e3d53a58697b0ae5902cf819a6a24b4b68e883eab3a2725f6c
yanyingwang/smtp
utils.rkt
#lang at-exp racket/base (require rnrs/io/ports-6 rnrs/bytevectors-6 net/base64 racket/format racket/string uuid (file "params.rkt")) (provide (all-defined-out)) (define (b64en str) (bytes->string/utf-8 (base64-encode (string->bytes/utf-8 str) #""))) (define b...
null
https://raw.githubusercontent.com/yanyingwang/smtp/475449a4a2d2ea9d019b51e76b738598275e366f/private/utils.rkt
racket
#lang at-exp racket/base (require rnrs/io/ports-6 rnrs/bytevectors-6 net/base64 racket/format racket/string uuid (file "params.rkt")) (provide (all-defined-out)) (define (b64en str) (bytes->string/utf-8 (base64-encode (string->bytes/utf-8 str) #""))) (define b...
ac1da803eda10afae6104059b70f62c7278a063d3eae39c08ea3bbe24fce71ef
racket/racket7
location.rkt
#lang racket/base (provide port-next-location*) (define (port-next-location* in init-c) If we ve already read ` init - c ` , then back up by one column and ;; position; we assume that `init-c` is not a newline character (cond [(not init-c) (port-next-location in)] [else (define-values (line col pos) (...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/read/location.rkt
racket
position; we assume that `init-c` is not a newline character
#lang racket/base (provide port-next-location*) (define (port-next-location* in init-c) If we ve already read ` init - c ` , then back up by one column and (cond [(not init-c) (port-next-location in)] [else (define-values (line col pos) (port-next-location in)) (values line (and col (max...
e66f8e5e3c8a0bb8ab8f71f5ed8717ee36a3f093db2f857488eb48ae355f7ddf
ucsd-progsys/liquidhaskell
ANF.hs
{-@ LIQUID "--no-termination" @-} module ANF (Op (..)) where import Control.Monad.Trans.State.Lazy mkLet :: [(Var, AnfExpr)] -> AnfExpr -> AnfExpr imm, immExpr :: Expr -> AnfM ([(Var, AnfExpr)], ImmExpr) anf :: Expr -> AnfM AnfExpr fresh :: AnfM Var -------------------------------------------------------------...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/fe1fb0fa9f0b645a82c6753e6582470fb3ad6673/tests/pattern/pos/ANF.hs
haskell
@ LIQUID "--no-termination" @ ------------------------------------------------------------------------------ | Types ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -----------------------------------------...
module ANF (Op (..)) where import Control.Monad.Trans.State.Lazy mkLet :: [(Var, AnfExpr)] -> AnfExpr -> AnfExpr imm, immExpr :: Expr -> AnfM ([(Var, AnfExpr)], ImmExpr) anf :: Expr -> AnfM AnfExpr fresh :: AnfM Var type Var = String data Op = Plus | Minus data Expr = EInt Int | EVar Var | ELet Var...
ae464feb8cebfb8fa5fe5d807c146a5cfef5ac082b2263195cc399b9884dda79
saidone75/wa-tor
core.cljs
Copyright ( c ) 2020 - 2022 Saidone (ns ^:figwheel-hooks wa-tor.core (:require [goog.dom :as gdom] [reagent.dom :as rdom] [wa-tor.board :as board])) (defonce app-state (board/create-board!)) (defn get-app-element [] (gdom/getElement "app")) (defn board [] [:div {:class "outer-div"} [:div.board {...
null
https://raw.githubusercontent.com/saidone75/wa-tor/de95624845d9ea47a12c1d058c8be0d7b4184efb/src/wa_tor/core.cljs
clojure
Copyright ( c ) 2020 - 2022 Saidone (ns ^:figwheel-hooks wa-tor.core (:require [goog.dom :as gdom] [reagent.dom :as rdom] [wa-tor.board :as board])) (defonce app-state (board/create-board!)) (defn get-app-element [] (gdom/getElement "app")) (defn board [] [:div {:class "outer-div"} [:div.board {...
55ba0a159a9ec3a9a0f8bf719cd2c2b882c8385ac3ccb114f49edb5433a558ce
orbitz/phantom_types
estring.ml
type utf8 type utf16 type 'a estring = string let make_utf8 s = s let make_utf16 s = s let compare = String.compare let copy = String.copy let concat = String.concat let sub ~s ~l str = String.sub str s l let get ~p str = String.get str p let str s = s
null
https://raw.githubusercontent.com/orbitz/phantom_types/12f199745f78024e67b01cc39c5aa1a23cfc18e5/rstring/estring.ml
ocaml
type utf8 type utf16 type 'a estring = string let make_utf8 s = s let make_utf16 s = s let compare = String.compare let copy = String.copy let concat = String.concat let sub ~s ~l str = String.sub str s l let get ~p str = String.get str p let str s = s
c998267958e0ebe2138f040563c873c23ca890faa2f2702b41719504e77560c9
onedata/op-worker
atm_openfaas_result_streamer_report.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Record expressing OpenFaaS result st...
null
https://raw.githubusercontent.com/onedata/op-worker/3720bc3b0efc1af1f9c7f11eb9d1cc31f2d1d2a5/src/modules/automation/task/executor/platforms/openfaas/activity_feed/result_streamer/protocol/reports/atm_openfaas_result_streamer_report.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc The record is not persistable, but is encoded to JSON on the activity feed channel. These reports are sent by each lambda result streamer to report their appearance (re...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Record expressing OpenFaaS result streamer report used in openfaas activity feed . -module(atm_openfaas_result_streamer_report). -author("Lukasz Opiola"). -behaviour(jsonable_record). -include("...
53ce5f61b7c239ea0bfce23d42a337335dbb9607056cf52e618c7d04f3b0d956
startalkIM/ejabberd
fxml_gen.erl
%%%---------------------------------------------------------------------- %%% File : xml_gen.erl Author : < > %%% Purpose : XML code generator Created : 22 Jun 2009 by < > %%% %%% Copyright ( C ) 2002 - 2019 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/fast_xml/src/fxml_gen.erl
erlang
---------------------------------------------------------------------- File : xml_gen.erl Purpose : XML code generator 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 WITH...
Author : < > Created : 22 Jun 2009 by < > Copyright ( C ) 2002 - 2019 ProcessOne , SARL . 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(fxml_gen). -compile(debug_info). -compile...
ba9d30b2ed914cb3ae9ccc83c24a2f89d959d0dc91cbf72faaa4d02975dff807
kitten/bs-flow-parser
offset_utils.mli
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
null
https://raw.githubusercontent.com/kitten/bs-flow-parser/00630c06016b51a7040ef4160ed2999cd208babd/src/offset_utils.mli
ocaml
A structure that allows for quick computation of offsets when given a Loc.position Create a table for offsets in the given file. Takes O(n) time and returns an object that takes * O(n) space, where `n` is the size of the given program text. program text Returns the offset for the given location. This is the off...
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
c03862805874f9fdcbf2d7c2d2163c57d92ebf0b55b2e8b368118a13939a76ff
haskell/cabal
Sublib.hs
module Sublib where s :: String s = "Hello World"
null
https://raw.githubusercontent.com/haskell/cabal/da863c18c8e8c09aae57248a656ac53ca49677ea/cabal-testsuite/PackageTests/MultipleLibraries/T7270/dep/Sublib.hs
haskell
module Sublib where s :: String s = "Hello World"
c04784b89162a5fa3e144f4ccf8603555da0e1dc5eed3dec8445818570aa4552
andreasabel/miniagda
PrettyTCM.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - missing - signatures # module PrettyTCM where import Prelude hiding (sequence, mapM, (<>)) import Abstract import {-# SOURCE #-} Eval import {-# SOURCE #-} TCM import qualified Util import Value #if ...
null
https://raw.githubusercontent.com/andreasabel/miniagda/55374597238071c2c2c74acf166cf95b34281e1f/src/PrettyTCM.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances # # SOURCE # # SOURCE # prettyA x = P.prettyA x monadic pretty printing
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - missing - signatures # module PrettyTCM where import Prelude hiding (sequence, mapM, (<>)) import Abstract import qualified Util import Value #if !MIN_VERSION_base(4,8,0) import Control.Applicative ((<$>), (<*>)) #endif import Control.Monad ((<=<)) import ...
d20d51e00b93f877053368385de627faa20d10030c7525c01255616ad4964c4f
icicle-lang/icicle-ambiata
Condense.hs
-- | Condense the streams in a program, -- so that source with same window, filters with same predicate, etc -- are all squashed together # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # # OPTIONS_GHC -Wwarn # module Icicle.Core.Program.Condense ( condenseProgram , condenseStreams ) where import Icicl...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-core/src/Icicle/Core/Program/Condense.hs
haskell
| Condense the streams in a program, so that source with same window, filters with same predicate, etc are all squashed together | Condense the stream operations together | Try to insert as much of this stream into the "seen" ones. Returns any remaining part of the insertion stream, and successful insertions as ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # # OPTIONS_GHC -Wwarn # module Icicle.Core.Program.Condense ( condenseProgram , condenseStreams ) where import Icicle.Common.Base import Icicle.Common.Type import Icicle.Common.Exp hiding (Exp) import Icicle.Core.Exp import Icicle.Core.Program.Program im...
dd8b735b1ed641adfae8a830c25bbbcf1d0dcf714d3d1d942dc81f568aff6533
TorXakis/TorXakis
TestParElm.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} {-# OPTIONS_GHC -Wno-unused-top-bi...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeops/test/TestParElm.hs
haskell
# OPTIONS_GHC -Wno-unused-top-binds # # ANN module "HLint: ignore Reduce duplication" # A ? y >-> P(x) A ? y >-> P() A ? z >-> P() testParElmBasic testParElmXUpperBound ------------------------------------------------------------------------- Helper functions ------------------------------------------------------...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} module TestParElm ( testParElmBas...
02caae2a2ff4e221c7b68b25eb7770bbbf4035fbd8ce8a9387db5d92f294db6a
themetaschemer/malt
impl-no-duals-no-overrides.rkt
#lang racket (require (for-syntax "impl-loader.rkt")) ;;-------------------------------- ;; Define an implementation loader ;;-------------------------------- (define-syntax load-tensors (λ (x) (printf "Tensor implementation (no-duals, no-overrides): ~s~%" (tensor-implementation)) #`(begin #,(case ...
null
https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/impl-no-duals-no-overrides.rkt
racket
-------------------------------- Define an implementation loader --------------------------------
#lang racket (require (for-syntax "impl-loader.rkt")) (define-syntax load-tensors (λ (x) (printf "Tensor implementation (no-duals, no-overrides): ~s~%" (tensor-implementation)) #`(begin #,(case (tensor-implementation) ((learner) #'(require "learner/no-duals-no-overrides.rkt")) ...
2139964929313d8b3551d5ab5d6781b2ced43cc3f86ce7f36c77b0a580d2e139
spurious/sagittarius-scheme-mirror
%3a14.scm
#!core (library (srfi :14) (export ->char-set char-set char-set->list char-set->string char-set-adjoin char-set-adjoin! char-set-any char-set-complement char-set-complement! char-set-contains? char-set-copy c...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a14.scm
scheme
#!core (library (srfi :14) (export ->char-set char-set char-set->list char-set->string char-set-adjoin char-set-adjoin! char-set-any char-set-complement char-set-complement! char-set-contains? char-set-copy c...
7d9ca20221cd26a94548717fc737926ca5bb24242fc02c58e200f84223b60ced
korya/efuns
locale.ml
(***********************************************************************) (* *) (* GwML *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/locale.ml
ocaml
********************************************************************* GwML ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . let langs = ref [ "fr", [ "Move", "Déplacer"; "Resize", "Dimensions"; "Icon...
701bde9d1a26a0a36d2e97810f0ef3ecfc8ff49f7540013fd26cc06539d6c415
roelvandijk/numerals
TestData.hs
| [ @ISO639 - 1@ ] ig [ @ISO639 - 2@ ] ibo [ @ISO639 - 3@ ] ibo [ @Native name@ ] [ @English name@ ] Igbo [@ISO639-1@] ig [@ISO639-2@] ibo [@ISO639-3@] ibo [@Native name@] Asụsụ Igbo [@English name@] Igbo -} module Text.Numeral.Language....
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/IBO/TestData.hs
haskell
------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Test data ---------------------------------------------------------------...
| [ @ISO639 - 1@ ] ig [ @ISO639 - 2@ ] ibo [ @ISO639 - 3@ ] ibo [ @Native name@ ] [ @English name@ ] Igbo [@ISO639-1@] ig [@ISO639-2@] ibo [@ISO639-3@] ibo [@Native name@] Asụsụ Igbo [@English name@] Igbo -} module Text.Numeral.Language....
8873bbbeb5716a936ddb4dd2c4b382a32cf0236bce73bc431ee30498dd3b2796
tallaproject/onion
prop_base64.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 Property Tests for onion_base64 %%% @end %%% ------...
null
https://raw.githubusercontent.com/tallaproject/onion/d0c3f86c726c302744d3cfffa2de21f85c190cf0/test/prop_base64.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ----------------------------------------------------------- @doc Property Tests for onion_base64 @end ----------------------------------------------------------- Properties.
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > -module(prop_base64). -export([prop_base64_iso/0, prop_base64_strip_equal_sign/0 ]). -include_lib("onion/include/onion_test.hrl"). -spec prop_base64_iso() -> term(). prop_base64_iso() -> ?FORALL(Data, binary(), ...
53d6414f9b316d3df8282d28363befac1a3892de90ab2d43a0781793c13e1c5f
nubank/state-flow
cljtest_test.clj
(ns state-flow.cljtest-test (:require [clojure.test :as t :refer [deftest is testing]] [matcher-combinators.result :as result] [matcher-combinators.test :refer [match?]] [state-flow.assertions.matcher-combinators :as mc] [state-flow.cljtest :refer [defflow] :as cljtest]...
null
https://raw.githubusercontent.com/nubank/state-flow/a9ad09b2c5a595d6583188b338c8dc18ec94e9e9/test/state_flow/cljtest_test.clj
clojure
NOTE:(sovelten,2020-12-15) This test works when called via clojure.test/run-tests It doesn't work when called independently as (run-a-flow) because t/*report-counters* is not initialized then
(ns state-flow.cljtest-test (:require [clojure.test :as t :refer [deftest is testing]] [matcher-combinators.result :as result] [matcher-combinators.test :refer [match?]] [state-flow.assertions.matcher-combinators :as mc] [state-flow.cljtest :refer [defflow] :as cljtest]...
5f6d6b5c70528ddfb87aecab3fab2326c93be92bae5db0a2ea8a5ef427554555
LesBoloss-es/sorting
MergesAndRuns.ml
* { 1 Merges and Runs } This file is simply an OCaml version of written by ( ) . The implementations and naming conventions are really not typical of OCaml but the goal is to be really close to the implementation of the authors . The main difference is that all the functions are agnosti...
null
https://raw.githubusercontent.com/LesBoloss-es/sorting/40702b8ff99ac001261af424bd7e0834e2a26bf1/src/array/nearly-optimal-mergesort/MergesAndRuns.ml
ocaml
Find end of run, and reverse range if descending Strictly Descending Weakly Ascending
* { 1 Merges and Runs } This file is simply an OCaml version of written by ( ) . The implementations and naming conventions are really not typical of OCaml but the goal is to be really close to the implementation of the authors . The main difference is that all the functions are agnosti...
b543d89b57ebf530edc11c0d8c8474c169136d844716be0688d3f867672c9a14
ocaml/ocaml
persistent_env.mli
(**************************************************************************) (* *) (* OCaml *) (* *) , proj...
null
https://raw.githubusercontent.com/ocaml/ocaml/9453a903c818dfef161e0534cbef441b1950625c/typing/persistent_env.mli
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Rocquencourt , projet , INRIA Saclay Copyright 2019 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc module Consistbl : module type of struct...
6c5bb1cd9d7a59b36972aa3679ed8b27e31a2789f8a250c700a4114a2b2bfefb
ijvcms/chuanqi_dev
player_operate_active_db.erl
%%%------------------------------------------------------------------- %%% @author tuhujia ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 07 . 七月 2016 09:52 %%%------------------------------------------------------------------- -module(player_operate_active_db). -include("common.hrl"). -include("cache.h...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/operate_active/player_operate_active_db.erl
erlang
------------------------------------------------------------------- @author tuhujia @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ===============================================================...
( C ) 2016 , < COMPANY > Created : 07 . 七月 2016 09:52 -module(player_operate_active_db). -include("common.hrl"). -include("cache.hrl"). -include("record.hrl"). -export([ select_all/1, select_row/1, replace/1, delete/1, insert/1, update/2 ]). select_all({PlayerId, '_'}) -> case db:select_all(player_operat...
bbefbea83add371de4b3838cf6b0edca2e92f80e2bba7ae0b3c32b6eaa818d77
nsg-ethz/O4
lexer-tokenizer-test.rkt
#lang racket/base Lexer & Tokenizer Frontend Tests ; --------------------------------------- (require brag/support rackunit o4/frontend/lexer-tokenizer) (define (lex str) (apply-lexer o4-lexer str)) ; Empty (check-equal? (lex "") null) ; Whitespaces (check-equal? (lex " \n\t") (list (srcloc-token ...
null
https://raw.githubusercontent.com/nsg-ethz/O4/870f6f78a6f7bb1e9e1502e29ff0048e5e1723c5/o4/frontend/tests/lexer-tokenizer-test.rkt
racket
--------------------------------------- Empty Whitespaces Comments Annotations Reserved Terms Integers Identifiers
#lang racket/base Lexer & Tokenizer Frontend Tests (require brag/support rackunit o4/frontend/lexer-tokenizer) (define (lex str) (apply-lexer o4-lexer str)) (check-equal? (lex "") null) (check-equal? (lex " \n\t") (list (srcloc-token (token-struct 'WHITESPACE #f #f #f #f #f #t) (srcloc 'string 1 0...
094dedd9b63c92ce1bbf4160ba3fdf24082b0b39fe1b85110afaae3a1255c6ee
typedclojure/typedclojure
filter_ops.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 ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/a5766b1ecb4ab956d739c54ae3fb474c4d1fc24b/typed/clj.checker/src/typed/cljc/checker/filter_ops.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 ^:no-doc typed.cljc.checker.filter-ops (:require [clojure.set :as set] [typed.cljc.checker.filter-rep :as fr] [typed.cljc.checker.object-rep :as or] [typed.cljc.checker.path-rep :as pr] [typed.cljc.checker.type-ctors :as ...
f0800f150ad1c6bc98db90bb219a0ed5f657c342f8950fdb7017b2a8a1ed4279
Mzk-Levi/texts
Projections.hs
# LANGUAGE TemplateHaskell , GADTs # -------------------------------------------------------------------------------- -- | Module : Data . Comp . . Multi . Derive . Projections Copyright : ( c ) 2011 , -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : ...
null
https://raw.githubusercontent.com/Mzk-Levi/texts/34916d6531af9bc39e50b596247ac2017d8cfdc3/compdata-param-master/src/Data/Comp/Param/Multi/Derive/Projections.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : experimental Derive functions for signature projections. ------------------------------------------------------------------------------
# LANGUAGE TemplateHaskell , GADTs # Module : Data . Comp . . Multi . Derive . Projections Copyright : ( c ) 2011 , Maintainer : < > Portability : non - portable ( GHC Extensions ) module Data.Comp.Param.Multi.Derive.Projections ( projn, projectn, deepProjectn ...
bf3d5701896a4b9eeecc56960af912f830aaf1e0bb5b575f42e018c6baafa157
discus-lang/ddc
Machine.hs
module DDC.Driver.Stage.Machine ( stageMachineLoad , stageMachinePrep , stageMachineOutputSlurp , stageMachineOutputFused) where import DDC.Driver.Dump import DDC.Driver.Config import DDC.Driver.Interface.Source import DDC.Build.Pipeline import DDC.Data.Pretty import qualified DDC.Core....
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-driver/DDC/Driver/Stage/Machine.hs
haskell
------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- | Slurp into abstract pro...
module DDC.Driver.Stage.Machine ( stageMachineLoad , stageMachinePrep , stageMachineOutputSlurp , stageMachineOutputFused) where import DDC.Driver.Dump import DDC.Driver.Config import DDC.Driver.Interface.Source import DDC.Build.Pipeline import DDC.Data.Pretty import qualified DDC.Core....
c6adce6da6f7c1c3e3f2653df6bfc5fbb10cedc695c12a9fb10059c102ab358f
haskell-repa/repa
Format.hs
-- | This module provides the `Format` class definition, -- without exporting the pre-defined formats. module Data.Repa.Convert.Format ( -- * Packing single fields Format (..) -- * Packable , Packable (..) , Packer (..) , unsafeRunPacker -- ** Unp...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-convert/Data/Repa/Convert/Format.hs
haskell
| This module provides the `Format` class definition, without exporting the pre-defined formats. * Packing single fields * Packable ** Unpackable
module Data.Repa.Convert.Format Format (..) , Packable (..) , Packer (..) , unsafeRunPacker , Unpackable (..) , Unpacker (..) , unsafeRunUnpacker) where import Data.Repa.Convert.Internal.Format import Data.Repa.Convert.Internal.Packable import Data.Re...
d8b2406135f101c1aae58897bb1f68ecd9958180e8facadbbace4db5501dd31b
0install/0install
test_distro.ml
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) open Zeroinstall open Zeroinstall.General open Support open Support.Common open OUnit module Q = Support.Qdom open Fake_system module Distro = Zeroinstall.Distro module Distro_impls = Zeroinsta...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/tests/test_distro.ml
ocaml
python-gobject Check the caching worked Check escaping works testCommand Part II Initially, we only get information about the installed version... Tell distro to fetch information about candidates... Now we see the uninstalled package Check restriction appears for both candidates Check the disk cache...
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) open Zeroinstall open Zeroinstall.General open Support open Support.Common open OUnit module Q = Support.Qdom open Fake_system module Distro = Zeroinstall.Distro module Distro_impls = Zeroinsta...
f89ad323a7e8232b69f1608e132535d08360bea01e0fb43a092acdec68588989
mhwombat/som
DSOMInternal.hs
------------------------------------------------------------------------ -- | -- Module : Data.Datamining.Clustering.DSOMInternal Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -- A module containing private @DSOM...
null
https://raw.githubusercontent.com/mhwombat/som/8eb201801a5de407fd9df2c9bfc872b0d748e3a1/src/Data/Datamining/Clustering/DSOMInternal.hs
haskell
---------------------------------------------------------------------- | Module : Data.Datamining.Clustering.DSOMInternal License : BSD-style Maintainer : Stability : experimental Portability : portable A module containing private @DSOM@ internals. Most developers should use @DSOM@ instead. T...
Copyright : ( c ) 2012 - 2022 # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Data.Datamining.Clustering.DSOMInternal where import Control.DeepSeq (NFData) import Data.Datamining.Clust...
dcc18ee0ef324aabc008d6800f10dc92b8ee218126c0b453a532512bd390558b
lanl/APPFL
Char.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , MagicHash # module APPFL.Char (chr) where import APPFL.Base import APPFL.Show | The ' Prelude.toEnum ' method restricted to the type ' Data . . ' . chr :: Int -> Char chr i@(I# i#) | isTrue# (int2Word# i# `leWord#` 0x10FFFF##) = C# (chr# i#) | otherwise ...
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/prelude/APPFL/Char.hs
haskell
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , MagicHash # module APPFL.Char (chr) where import APPFL.Base import APPFL.Show | The ' Prelude.toEnum ' method restricted to the type ' Data . . ' . chr :: Int -> Char chr i@(I# i#) | isTrue# (int2Word# i# `leWord#` 0x10FFFF##) = C# (chr# i#) | otherwise ...
08bd660d340dcece7045186f145f09c4016a2f80b2202f9c1d8e4697ee6d63fe
con-kitty/categorifier-c
Types.hs
{-# LANGUAGE EmptyDataDeriving #-} # LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # module Categorifier.C.CExpr.Types ( CExprTypeProduct (..), CExprTypeLens (..), CExprFunctionCall, CExprSelectExpression, CExprType (..), module X, ) where import qualified Barbies import Cat...
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/a34ff2603529b4da7ad6ffe681dad095f102d1b9/Categorifier/C/CExpr/Types.hs
haskell
# LANGUAGE EmptyDataDeriving # | The type of an internal function call output -- an aggregate of primitive types. | The return type of a select (switch-case) operation -- an aggregate of primitive types. types, but it allows us to work with function calls and select statements as well. | This class providing a lens...
# LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # module Categorifier.C.CExpr.Types ( CExprTypeProduct (..), CExprTypeLens (..), CExprFunctionCall, CExprSelectExpression, CExprType (..), module X, ) where import qualified Barbies import Categorifier.C.CExpr.Types.Operations ...
01d9f2c6e26bb8a0f90a17eedcb9ff5aea65d6f87643b7f1dd265da06d743b36
nuvla/ui
events.cljs
(ns sixsq.nuvla.ui.docs.events (:require [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.docs.spec :as spec] [sixsq.nuvla.ui.main.spec :as main-spec])) (reg-event-fx ::get-documents (fn [{:keys [db]...
null
https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/docs/events.cljs
clojure
(ns sixsq.nuvla.ui.docs.events (:require [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.docs.spec :as spec] [sixsq.nuvla.ui.main.spec :as main-spec])) (reg-event-fx ::get-documents (fn [{:keys [db]...
6fdd547a120d23babaa50b17f2b6255f209a79f2f036110f96a83df24ce006ff
kana/sicp
sec-2.3.3-sets-as-binary-trees.scm
(define (entry tree) (car tree)) (define (left-branch tree) (cadr tree)) (define (right-branch tree) (caddr tree)) (define (make-tree entry left right) (list entry left right)) (define (element-of-set? x set) (cond [(null? set) #f] [(= x (entry set)) #t] [(< x (entry set)) ...
null
https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/sec-2.3.3-sets-as-binary-trees.scm
scheme
(define (entry tree) (car tree)) (define (left-branch tree) (cadr tree)) (define (right-branch tree) (caddr tree)) (define (make-tree entry left right) (list entry left right)) (define (element-of-set? x set) (cond [(null? set) #f] [(= x (entry set)) #t] [(< x (entry set)) ...
f7fda33e00dac6f6e104b6bf0238a7b478aaf121e3491f2bbae7646d9f66c729
MondayMorningHaskell/AdventOfCode
Monad.hs
module Monad where import Data.Char import Data.List.Split (splitOn) solveMonad' :: FilePath -> IO () solveMonad' fp = do instrs <- (map parseInstruction . lines) <$> readFile fp let finalState = foldl foldInstruction rs0 instrs print $ finalState data Exp = Var Char | Const Integer deriving (Show, Eq) da...
null
https://raw.githubusercontent.com/MondayMorningHaskell/AdventOfCode/266e3508c74a58ed4a057fefe8a27865a6f852f4/src/Monad.hs
haskell
If I can plug in a few numbers and determine satisfiability, then I can do a logarithmic search.
module Monad where import Data.Char import Data.List.Split (splitOn) solveMonad' :: FilePath -> IO () solveMonad' fp = do instrs <- (map parseInstruction . lines) <$> readFile fp let finalState = foldl foldInstruction rs0 instrs print $ finalState data Exp = Var Char | Const Integer deriving (Show, Eq) da...
de537aae5a6495fc3590c7289e16cba0a9ce43f8d263904799631333d70e587a
tisnik/clojure-examples
core.clj
(ns spec-test-1.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/spec-test-1/src/spec_test_1/core.clj
clojure
(ns spec-test-1.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
b59de83222e584251c5164a6f006f37d9f0c440894fdea24f8bb58b6a50f4d97
commercialhaskell/stack
Installed.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} module Stack.Setup.Installed ( getCompilerVersion , markInstalled , unmarkInstalled , listInstalled , Tool (..) , toolString , toolNameStrin...
null
https://raw.githubusercontent.com/commercialhaskell/stack/80429690da92c634cb129f99f1507dbc47a70d45/src/Stack/Setup/Installed.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # | 'Tool' values are ordered by name (being @ghc-git@, for @ToolGhcGit _ _@) alphabetically and then by version (later versions are ordered before earlier versions, where applicable). ^ package to find ^ which versions are acceptable ^ tools to filter ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # module Stack.Setup.Installed ( getCompilerVersion , markInstalled , unmarkInstalled , listInstalled , Tool (..) , toolString , toolNameString , parseToolText , filterTools , extraDirs , installDir , t...
f5eeab296ae6496235ca36e26dba3117e60107ccf35b20d50aa7e8dda7f99cfb
pjstadig/humane-test-output
print.clj
(ns pjstadig.print (:require [clojure.pprint :as pp])) (def rprint print) (defn clear []) (defn with-pretty-writer [f] (binding [*out* (pp/get-pretty-writer *out*)] (f)))
null
https://raw.githubusercontent.com/pjstadig/humane-test-output/7c4c868aa9d7424248761941cd736ac0a5f4a75b/src/pjstadig/print.clj
clojure
(ns pjstadig.print (:require [clojure.pprint :as pp])) (def rprint print) (defn clear []) (defn with-pretty-writer [f] (binding [*out* (pp/get-pretty-writer *out*)] (f)))
f23d0ada0e62be16529161c7981f120e1f2eae8a822a9a5f03b788962a45b338
VictorNicollet/Ohm
joy.mli
Ohm is © 2011 (** The type of a field identifier. These are provided to the deserialization functions defined in the template, and can be used to add errors to those fields in the form response. *) type field * A CSS selector used by the javascript code to select a piece of the generated HTML to b...
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/src/joy.mli
ocaml
* The type of a field identifier. These are provided to the deserialization functions defined in the template, and can be used to add errors to those fields in the form response. * Applies a map function to the seed part of the template * Applies a map function t the result part of the template * A templat...
Ohm is © 2011 type field * A CSS selector used by the javascript code to select a piece of the generated HTML to bind behavior to it . Most of the rendering of forms involves providing an HTML renderer and a set of selectors to pick the relevant items from within it . Those selectors are relati...
14b72168c1c9e20597cd27df154bfaeb6f5bd61172f8fbf78d5d40a97a4066ab
ddssff/refact-global-hse
Graph.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE PackageImports #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Graph ( Rd(Rd, _modules, _environment) , MoveType(Down...
null
https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/expected/decl5/Graph.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE RankNTypes # or Up. This must be computed by scanning the parsed code of the departure module (the module where the declaration is when we begin) for any remaining uses of the declaration's symbols. Note that it is possible to specify a move that results in a legitimate imp...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Graph ( Rd(Rd, _modules, _environment) , MoveType(Down, Up) , makeImportGraph , findModuleByKey , find...
60a02e2531215370beed82f383a969866a9a61ca2d0a29f365bcd57d6fffd986
ertugrulcetin/ClojureNews
job.cljs
(ns view.list.job (:require [util.view])) (declare job-owner?) (defn component-job [jobs page] [:table {:class "itemlist" :border "0" :cellPadding "0" :cellSpacing "0"} [:tbody (let [page-as-int (.parseInt js/window page)] (list (for [job (-> jobs :job-entry)] (list ...
null
https://raw.githubusercontent.com/ertugrulcetin/ClojureNews/28002f6b620fa4977d561b0cfca0c7f6a635057b/src/cljs/view/list/job.cljs
clojure
(ns view.list.job (:require [util.view])) (declare job-owner?) (defn component-job [jobs page] [:table {:class "itemlist" :border "0" :cellPadding "0" :cellSpacing "0"} [:tbody (let [page-as-int (.parseInt js/window page)] (list (for [job (-> jobs :job-entry)] (list ...
b5940d53d22aa6a27a7306f751b70ff587ec8fd17034806260382c89a53a6b7a
Denommus/monadic
state.ml
module MakeT (Wrapped : Monad.MONAD) (S : sig type t end) = struct type s = S.t module WrappedInfix = Monad.MonadInfix (Wrapped) open WrappedInfix.Syntax module StateMonad : Monad.MONAD with type 'a t = s -> ('a * s) Wrapped.t = struct type 'a t = s -> ('a * s) Wrapped.t let pure v s ...
null
https://raw.githubusercontent.com/Denommus/monadic/7cbf9b309800303665a6712a9b57c1d9c66e75b8/library/state.ml
ocaml
Adding all the monadic functions to the outer scope Adding the infix functions Adding the syntax extensions as an internal module
module MakeT (Wrapped : Monad.MONAD) (S : sig type t end) = struct type s = S.t module WrappedInfix = Monad.MonadInfix (Wrapped) open WrappedInfix.Syntax module StateMonad : Monad.MONAD with type 'a t = s -> ('a * s) Wrapped.t = struct type 'a t = s -> ('a * s) Wrapped.t let pure v s ...
34e8fc16ee9728e5a242765ec5ab6b7b5a7ad01680c0d24ebebd015134b7b0b5
dyzsr/ocaml-selectml
w32.mli
(* from MPR#7624 *) val g : 'a -> 'a (* multiple bindings *) val n : 'a -> 'a val o : 'a -> 'a (* value in functor argument *) module F (X : sig val x : int end) : sig end module G (X : sig val x : int end) : sig end module H (X : sig val x : int end) : sig val x : int end module type S = sig module F: sig v...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/warnings/w32.mli
ocaml
from MPR#7624 multiple bindings value in functor argument
val g : 'a -> 'a val n : 'a -> 'a val o : 'a -> 'a module F (X : sig val x : int end) : sig end module G (X : sig val x : int end) : sig end module H (X : sig val x : int end) : sig val x : int end module type S = sig module F: sig val x : int end -> sig end end
fff3dd7ba74b0a48be310cee7e1c043e603567f4546d9a99872a437aef6791ab
yav/hobbit
BDD.hs
module BDD where import Error import Data.Word -- Ordered binary decision diagrams -------------------------------------------- type Var = Word32 data BDD = F | T | ITE Var BDD BDD deriving (Eq,Show) simp xs F = F simp xs T = T simp xs (ITE x t e) = case lookup x xs of ...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/BDD.hs
haskell
Ordered binary decision diagrams -------------------------------------------- Bit patterns ---------------------------------------------------------------- always match never match match if argument does not match n n n match if both patterns matchs n m:: m+n m n m+n n:: n match if bits are (unsigned) larger tha...
module BDD where import Error import Data.Word type Var = Word32 data BDD = F | T | ITE Var BDD BDD deriving (Eq,Show) simp xs F = F simp xs T = T simp xs (ITE x t e) = case lookup x xs of Just True -> simp xs t Just False ...
61f8cae5604ca05cdeb9cf2642e9861eb40806ff6c59483e2926efa87ddfb8c6
alekcz/konserve-jdbc
project.clj
(defproject alekcz/konserve-jdbc "0.2.0-SNAPSHOT" :description "A generic JDBC backend for konserve." :url "-jdbc" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.11.1"] [com.h2database/h2 "2.1.214"] ...
null
https://raw.githubusercontent.com/alekcz/konserve-jdbc/cb1b5af62d59092a59cf02666fd00f9757ebe9e4/project.clj
clojure
(defproject alekcz/konserve-jdbc "0.2.0-SNAPSHOT" :description "A generic JDBC backend for konserve." :url "-jdbc" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.11.1"] [com.h2database/h2 "2.1.214"] ...
ffff46bfc407cc0d413b462c7860c5c412af1fa7d250c4a17f3e4a8283fe91d5
day8/re-com
validate.cljs
(ns re-com.validate (:require-macros [re-com.validate]) (:require [cljs-time.core :as time.core] [clojure.set :refer [superset?]] [re-com.config :refer [debug?]] [re-com.debug :as debug] [re-com.util :refer [deref-or-value-peek]] [re...
null
https://raw.githubusercontent.com/day8/re-com/07451b1d19c59eb185548efe93e2d00b5d3eab89/src/re_com/validate.cljs
clojure
-- Helpers ----------------------------------------------------------------- ---------------------------------------------------------------------------- Primary validation functions ---------------------------------------------------------------------------- [IJ] TODO: This can probably be refactored and combined...
(ns re-com.validate (:require-macros [re-com.validate]) (:require [cljs-time.core :as time.core] [clojure.set :refer [superset?]] [re-com.config :refer [debug?]] [re-com.debug :as debug] [re-com.util :refer [deref-or-value-peek]] [re...
4a691a84fdc342d838778cacf8f6e1164b0166716d7bc1d1d3f445a0d75560b5
malgo-lang/malgo
Main.hs
# LANGUAGE TemplateHaskell # module Main (main) where import Control.Lens (makeFieldsNoPrefix, (.~), (<>~)) import Error.Diagnose (addFile, defaultStyle, printDiagnostic) import Error.Diagnose.Compat.Megaparsec (errorDiagnosticFromBundle) import Koriel.Core.Parser qualified as Koriel import Koriel.Id (ModuleName) imp...
null
https://raw.githubusercontent.com/malgo-lang/malgo/b18b8fbc37881a3ccd15eb382979a963c705f22c/app/malgo/Main.hs
haskell
basePath <- getXdgDirectory XdgData ("malgo" </> "base") let ToLLOpt {..} = opt
# LANGUAGE TemplateHaskell # module Main (main) where import Control.Lens (makeFieldsNoPrefix, (.~), (<>~)) import Error.Diagnose (addFile, defaultStyle, printDiagnostic) import Error.Diagnose.Compat.Megaparsec (errorDiagnosticFromBundle) import Koriel.Core.Parser qualified as Koriel import Koriel.Id (ModuleName) imp...
ac811fbf371d8e5c45752e3fcb7a2655bd572e5a2b45e358c3ba15b37f3f2611
agentm/project-m36
Show.hs
module ProjectM36.TransactionGraph.Show where import ProjectM36.Base import ProjectM36.TransactionGraph import qualified Data.Set as S showTransactionStructure :: Transaction -> TransactionGraph -> String showTransactionStructure trans graph = headInfo ++ " " ++ show (transactionId trans) ++ " p" ++ parentTransactions...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/src/lib/ProjectM36/TransactionGraph/Show.hs
haskell
module ProjectM36.TransactionGraph.Show where import ProjectM36.Base import ProjectM36.TransactionGraph import qualified Data.Set as S showTransactionStructure :: Transaction -> TransactionGraph -> String showTransactionStructure trans graph = headInfo ++ " " ++ show (transactionId trans) ++ " p" ++ parentTransactions...
c4c7379da5d1d57c0ecb58651cf19c9eb53f35b60b1fd51886c0cf80809acc88
rescript-lang/rescript-compiler
ext_color.ml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * 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 , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/3a6999082bb842e7d00b99f1e70b39b595b35ba9/jscomp/ext/ext_color.ml
ocaml
* TODO: add more styles later
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * 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 , either version 3 of the License , or * ( at your option ) any later...
7dd90e754ca225b6bdf361eb8f02153eaf880053c55296b5b75595d2e26af012
hawnzug/polycheck
TH.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Test.PolyCheck.TH where import Test.PolyCheck.TH.State import Test.PolyCheck.TH.TypeExp import Test.PolyCheck.TH.Predicate import Data.List (intersperse, zip4, unzip4) import Data.Functor import Data.Function import Control.Monad import Language.Haskell.T...
null
https://raw.githubusercontent.com/hawnzug/polycheck/ae3b9ad2cb472105c028a697b983739697f5d550/Test/PolyCheck/TH.hs
haskell
> prop :: Eq b => (a -> b) -> [a] -> Bool > $(monomorphic prop) A monomorphized function 'prop_mono' will be generated, and can be use in | Calculate the log type of @t@ w.r.t. @a@ ^ The type variable a ^ The type t ^ The skeleton e ^ The label prefix f f' = f . \y -> (x1, x2, x3, y) C : t -> u -> v -> D C...
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Test.PolyCheck.TH where import Test.PolyCheck.TH.State import Test.PolyCheck.TH.TypeExp import Test.PolyCheck.TH.Predicate import Data.List (intersperse, zip4, unzip4) import Data.Functor import Data.Function import Control.Monad import Language.Haskell.T...
3c8b7edea2f6ca00e98ab28e139aaeb27aa3c48374e550cad2ac832f12fcf987
FPBench/FPBench
core2c.rkt
#lang racket (require generic-flonum) (require "imperative.rkt") (provide c-header core->c c-supported c-reserved type->c params->c) ; required by core2h.rkt (define c-header (const "#include <fenv.h>\n#include <math.h>\n#include <stdint.h>\n#define TRUE 1\n#define FALSE 0\n\n")) (define c-supported (sup...
null
https://raw.githubusercontent.com/FPBench/FPBench/ecdfbfc484cc7f392c46bfba43813458a6406608/src/core2c.rkt
racket
required by core2h.rkt Language-specific reserved names (avoid name collisions) TODO: warn unfaithful
#lang racket (require generic-flonum) (require "imperative.rkt") (provide c-header core->c c-supported (define c-header (const "#include <fenv.h>\n#include <math.h>\n#include <stdint.h>\n#define TRUE 1\n#define FALSE 0\n\n")) (define c-supported (supported-list (invert-op-proc (curry set-member? '(array dim s...
5b58c92094752875942f333be8bf62efdb4af9b4d7197240fe91004a36a83d91
realworldocaml/book
sexp_prefix.mli
include Sexp_prefix_intf.Sexp_prefix
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/parsexp/prefix/src/sexp_prefix.mli
ocaml
include Sexp_prefix_intf.Sexp_prefix