_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
7662f339a7e34e735d1da68252f9e0a627ce4b3991bd55d2b1cd63a72c30881c
ntoronto/pict3d
typed-context.rkt
#lang typed/racket/base (require/typed "untyped-context.rkt" [#:struct gl-context ([number : Natural])] [gl-context-ok? (-> gl-context Boolean)] [gl-delete-later (-> gl-context Symbol Natural (-> Natural Any) Void)] [call-with-gl-context (All (A) (-> (-> A) gl-context A))] [get-current-managed-gl-context (->...
null
https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/private/gl/typed-context.rkt
racket
#lang typed/racket/base (require/typed "untyped-context.rkt" [#:struct gl-context ([number : Natural])] [gl-context-ok? (-> gl-context Boolean)] [gl-delete-later (-> gl-context Symbol Natural (-> Natural Any) Void)] [call-with-gl-context (All (A) (-> (-> A) gl-context A))] [get-current-managed-gl-context (->...
049af4903ad98bf741440e6cd609846e7d9aa627f64b6e77a9e19efb7bdf1aee
dereknheiley/ibnuda.dactyl-keyboard
project.clj
(defproject dactyl-keyboard "0.1.0-SNAPSHOT" :description "A parametrized, split-hand, concave, columnar, erogonomic keyboard" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [unicode-math "0.2.0"] [sc...
null
https://raw.githubusercontent.com/dereknheiley/ibnuda.dactyl-keyboard/9e564d4affae53c76d49458a64040e8cfdfb29c3/project.clj
clojure
(defproject dactyl-keyboard "0.1.0-SNAPSHOT" :description "A parametrized, split-hand, concave, columnar, erogonomic keyboard" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [unicode-math "0.2.0"] [sc...
871036728668fab8c8f64ec2ea19225294ad172b7b1b33c84a5e9fce992a3381
clojureverse/clojurians-log-app
production_import.clj
This script is used as part of the Ansible provisioning of new servers . Do ;; not edit unless you are sure of what you are doing. (use 'clojurians-log.repl) (load-slack-data!) (def result (load-files! (log-files))) @(second result) (prn result)
null
https://raw.githubusercontent.com/clojureverse/clojurians-log-app/d34c9bd715e492c8f1899653548716d32c623fad/repl/production_import.clj
clojure
not edit unless you are sure of what you are doing.
This script is used as part of the Ansible provisioning of new servers . Do (use 'clojurians-log.repl) (load-slack-data!) (def result (load-files! (log-files))) @(second result) (prn result)
7e290a1ccc9af5f10a2fe3434a71138fb5558b19db7599d6d5822c9e432afea0
TorXakis/TorXakis
ChanSearch.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} -----------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeq/src/utils/ChanSearch.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental --------------------------------------------------------------------------- Lists all channels that can be reached from the given behavioral expression.
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} Module : ChanSearch Cop...
285b01c75254b68e5f75eb2d05b00a933e38533c4e48d6c5ccf7c26af9db10f2
vbrankov/hdf5-ocaml
h5p.mli
module Cls_id : sig type t = | OBJECT_CREATE | FILE_CREATE | FILE_ACCESS | DATASET_CREATE | DATASET_ACCESS | DATASET_XFER | FILE_MOUNT | GROUP_CREATE | GROUP_ACCESS | DATATYPE_CREATE | DATATYPE_ACCESS | STRING_CREATE | ATTRIBUTE_CREATE | OBJECT_COPY | LINK_CREATE | LINK_ACCESS end mod...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/raw/h5p.mli
ocaml
module Cls_id : sig type t = | OBJECT_CREATE | FILE_CREATE | FILE_ACCESS | DATASET_CREATE | DATASET_ACCESS | DATASET_XFER | FILE_MOUNT | GROUP_CREATE | GROUP_ACCESS | DATATYPE_CREATE | DATATYPE_ACCESS | STRING_CREATE | ATTRIBUTE_CREATE | OBJECT_COPY | LINK_CREATE | LINK_ACCESS end mod...
1d64b0b0ed8913e8f065c07ca4c04e35a836903649417ae0981fc3702ecce5f3
borkdude/quickdoc
source.clj
(ns source) (defn foo "Hello" [])
null
https://raw.githubusercontent.com/borkdude/quickdoc/13f8e5e1cd08eb3efcbdacd843b41981307e5dbd/test-resources/source.clj
clojure
(ns source) (defn foo "Hello" [])
65c2cc0687d1acad664ff274d785a8f746ef6452ee21bebf2cbe8afc0738991e
dhleong/wish
chars_carousel.cljs
(ns ^{:author "Daniel Leong" :doc "campaign.chars-carousel"} wish.views.campaign.chars-carousel (:require [archetype.views.error-boundary :refer [error-boundary]] [wish.util :refer [<sub >evt]] [wish.util.nav :as nav :refer [sheet-url]] [wish.views.widgets :refer [icon link...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/views/campaign/chars_carousel.cljs
clojure
sheet is ready; render! either we don't have the sheet at all, or it's just a stub with no actual data; either way, load it!
(ns ^{:author "Daniel Leong" :doc "campaign.chars-carousel"} wish.views.campaign.chars-carousel (:require [archetype.views.error-boundary :refer [error-boundary]] [wish.util :refer [<sub >evt]] [wish.util.nav :as nav :refer [sheet-url]] [wish.views.widgets :refer [icon link...
38a6edba2f99cb4eb7e4ae42f7812dc8d0806ff74ecbbc1d5531d79f901bff23
khibino/haskell-relational-record
Columns.hs
module Database.Relational.Schema.DB2Syscat.Columns # DEPRECATED " import Database . Relational . Schema . instead of this module . " # module Database.Relational.Schema.IBMDB2.Columns, ) where import Database.Relational.Schema.IBMDB2.Columns
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-schemas/src/Database/Relational/Schema/DB2Syscat/Columns.hs
haskell
module Database.Relational.Schema.DB2Syscat.Columns # DEPRECATED " import Database . Relational . Schema . instead of this module . " # module Database.Relational.Schema.IBMDB2.Columns, ) where import Database.Relational.Schema.IBMDB2.Columns
c1b139c607fb37b5524a9a5fb24e275f9c339bf7a240fb72cf5fb5071c187d02
shop-planner/shop3
shop3.lisp
(in-package :shop3) ;; replaced with a constant that is defined in the ASDF system definition. [2007/10/24:rpg] ( defparameter * version * " SHOP2 version 2.0 alpha " ) (defconstant +shopyright+ "Copyright (C) 2004-2021 SIFT, LLC. Original SHOP2 code Copyright (C) 2002 University of Maryland. This software is dis...
null
https://raw.githubusercontent.com/shop-planner/shop3/d752728df28c0d4697aa5a4c43a759b725576f91/shop3/shop3.lisp
lisp
replaced with a constant that is defined in the ASDF system definition. [2007/10/24:rpg] 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...
(in-package :shop3) ( defparameter * version * " SHOP2 version 2.0 alpha " ) (defconstant +shopyright+ "Copyright (C) 2004-2021 SIFT, LLC. Original SHOP2 code Copyright (C) 2002 University of Maryland. This software is distributed on an \"AS IS\" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Th...
6745ce52a979eef7a2457d60f55c81ebafc00ec7000e96c4387cca66f3ccc928
inhabitedtype/httpaf
test_request.ml
open Httpaf open Request open Helpers let body_length = Alcotest.of_pp Request.Body_length.pp_hum let check = let alco = Alcotest.result (Alcotest.of_pp pp_hum) Alcotest.string in fun message ~expect input -> let actual = Angstrom.parse_string ~consume:All Httpaf_private.Parse.request ...
null
https://raw.githubusercontent.com/inhabitedtype/httpaf/8bb25ddd6daa9164c602bcd17e9d1005ce0adfe5/lib_test/test_request.ml
ocaml
open Httpaf open Request open Helpers let body_length = Alcotest.of_pp Request.Body_length.pp_hum let check = let alco = Alcotest.result (Alcotest.of_pp pp_hum) Alcotest.string in fun message ~expect input -> let actual = Angstrom.parse_string ~consume:All Httpaf_private.Parse.request ...
2a24b6ca2690ed2a6d22212b8353b9d0390aa57ca82f99c03d2100d6ce1fa8ad
ghc/packages-dph
MatrixPrimTest.hs
import MatrixPrim import Control.Exception (evaluate) import System.Console.GetOpt import qualified System.Random as R import qualified Data.Array.Parallel.Unlifted as U import Bench.Benchmark import Bench.Options import Debug.Trace algs = [(" vecMult", mmMult)] mmMult'':: (Int, U.Array Double, U.Array Double) -...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/icebox/examples/matrix/MatrixPrimTest.hs
haskell
mmMult'' (order, m, n) = (lres == ares) else error ("div res:\n" ++ (show (sum (zipWith (-) ares lres)))) benchmark opts mmMult''
import MatrixPrim import Control.Exception (evaluate) import System.Console.GetOpt import qualified System.Random as R import qualified Data.Array.Parallel.Unlifted as U import Bench.Benchmark import Bench.Options import Debug.Trace algs = [(" vecMult", mmMult)] mmMult'':: (Int, U.Array Double, U.Array Double) -...
3a68e17246098119f69a24776d2ce3e01178e72087e795b1360cb03b056ec99e
puppetlabs/puppetdb
population_test.clj
(ns puppetlabs.puppetdb.query.population-test (:require [puppetlabs.puppetdb.query.population :as pop] [clojure.test :refer :all] [puppetlabs.puppetdb.jdbc :as jdbc] [puppetlabs.puppetdb.scf.storage :refer [deactivate-node!]] [puppetlabs.puppetdb.scf.storage-utils :as s...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/query/population_test.clj
clojure
c2's resource shouldn'sutils/munge-hash-for-storage t be counted, as they don't correspond to an active node
(ns puppetlabs.puppetdb.query.population-test (:require [puppetlabs.puppetdb.query.population :as pop] [clojure.test :refer :all] [puppetlabs.puppetdb.jdbc :as jdbc] [puppetlabs.puppetdb.scf.storage :refer [deactivate-node!]] [puppetlabs.puppetdb.scf.storage-utils :as s...
a57818d9e48259612c53a4f19a9433cc3ea3deb52651f49a64d7f68dcb4c3b96
quchen/generative-art
Main.hs
module Main (main) where import qualified Data.Text.Lazy as TL import qualified Data.Vector as V import Prelude hiding ((**)) import System.Random.MWC import Draw import Draw.Plotting import Geometry as G import Geometry.Algorithms.Delaunay import Geome...
null
https://raw.githubusercontent.com/quchen/generative-art/ce3ed644ff657f9ff7e89fdac0c1beb43f905417/penplotting/Voronoi/Main.hs
haskell
constructed so that we have roughly `count` points constructed so that we have roughly `count` points Lower feedrate for white pen, and draw twice
module Main (main) where import qualified Data.Text.Lazy as TL import qualified Data.Vector as V import Prelude hiding ((**)) import System.Random.MWC import Draw import Draw.Plotting import Geometry as G import Geometry.Algorithms.Delaunay import Geome...
ba62fec6b9b14b739dfd54b581f6bcf889e28619f01876b1e9507fdd0a37bbfa
jtanguy/hmacaroons
Base64.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Crypto . Macaroon . Serializer . Base64 Copyright : ( c ) 2015 License : BSD3 Maintainer : Stability : experimental Portability : portable Base64 serializer / deserializer Module : Crypto.Macaroon.Serializer.Base64 Copyright :...
null
https://raw.githubusercontent.com/jtanguy/hmacaroons/6fbca87836a4baef171c5ffc774387766c709fbf/src/Crypto/Macaroon/Serializer/Base64.hs
haskell
# LANGUAGE OverloadedStrings #
| Module : Crypto . Macaroon . Serializer . Base64 Copyright : ( c ) 2015 License : BSD3 Maintainer : Stability : experimental Portability : portable Base64 serializer / deserializer Module : Crypto.Macaroon.Serializer.Base64 Copyright : (c) 2015 Julien Tanguy License ...
53795e479db0f1ceac5ab3282f74d1f2023ddf61a3585a5ddedbcd8231dab61c
maurolopes/profit
utils.clj
(ns profit.utils (:require [clojure.pprint :refer [pprint]])) (defn pprint-str [x] (let [str (with-out-str (pprint x))] (subs str 0 (dec (count str))))) (defn color-str [text] (let [start-color "\033[37;1;45m\033[1m" restore-color "\033[0m"] (str start-color text restore-color))) (defn truncate...
null
https://raw.githubusercontent.com/maurolopes/profit/b1e3639ad09c11bf1eb80d0e3c1c3ace0c8dce9b/src/profit/utils.clj
clojure
(ns profit.utils (:require [clojure.pprint :refer [pprint]])) (defn pprint-str [x] (let [str (with-out-str (pprint x))] (subs str 0 (dec (count str))))) (defn color-str [text] (let [start-color "\033[37;1;45m\033[1m" restore-color "\033[0m"] (str start-color text restore-color))) (defn truncate...
b0f0cc30890a6d36500b9c8e94fa339fd572d1930394ab24bb2ac43313970788
ocaml-gospel/gospel
char2.mli
type t = A of char @ function f2 ( x : t ) : bool = match x with | A ( ' \000' .. '\010 ' ) - > false | A ( ' .. 'a ' ) | A ( ' c' .. '\255 ' ) - > false match x with | A ('\000'..'\010') -> false | A ('\011'..'a') | A ('c'..'\255') -> false *) { gospel_expe...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/patterns/negative/char2.mli
ocaml
type t = A of char @ function f2 ( x : t ) : bool = match x with | A ( ' \000' .. '\010 ' ) - > false | A ( ' .. 'a ' ) | A ( ' c' .. '\255 ' ) - > false match x with | A ('\000'..'\010') -> false | A ('\011'..'a') | A ('c'..'\255') -> false *) { gospel_expe...
470a957f36a6fa54d06bf2d0c7c5f97597db3b60d224f860823633117923916f
DHSProgram/DHS-Indicators-SPSS
CM_RISK_wm.sps
* Encoding: UTF-8. ***************************************************************************************************** Program: CM_RISK_wm.sps Purpose: Code to compute high risk birth in women Data inputs: IR dataset Data outputs: coded variables Author: Shireen Assaf and Thomas Pullum, and translated to S...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap08_CM/CM_RISK_wm.sps
scheme
* Encoding: UTF-8. ***************************************************************************************************** Program: CM_RISK_wm.sps Purpose: Code to compute high risk birth in women Data inputs: IR dataset Data outputs: coded variables Author: Shireen Assaf and Thomas Pullum, and translated to S...
78d6cbbff61d698c8a4b42bd0f8602a57e5e1e39c3eac4c65a641504636e3f45
danstiner/hfmt
Stylish.hs
module Language.Haskell.Format.Stylish ( autoSettings , formatter ) where import Language.Haskell.Stylish as Stylish import Language.Haskell.Format.Internal import Language.Haskell.Format.Types newtype Settings = Settings Stylish.Config autoSettings :: IO Settings autoSettings = do path <- Stylish...
null
https://raw.githubusercontent.com/danstiner/hfmt/dfc3f2ba9e6002d9a99d373d0f35578335e13fc5/src/Language/Haskell/Format/Stylish.hs
haskell
module Language.Haskell.Format.Stylish ( autoSettings , formatter ) where import Language.Haskell.Stylish as Stylish import Language.Haskell.Format.Internal import Language.Haskell.Format.Types newtype Settings = Settings Stylish.Config autoSettings :: IO Settings autoSettings = do path <- Stylish...
d35f3b1bdb623a0ab8a6c467161d5e2bfee2cf0730d91a63c76f37a8454f668f
metawilm/cl-python
posix.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CLPYTHON.MODULE.POSIX ; : PY - USER - READTABLE -*- ;; This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to ;; distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License ;; (), ;; k...
null
https://raw.githubusercontent.com/metawilm/cl-python/bce7f80b0c67d3c9f514556f2d14d098efecdde8/lib/posix.lisp
lisp
Syntax : COMMON - LISP ; Package : CLPYTHON.MODULE.POSIX ; : PY - USER - READTABLE -*- distribute and use this software as governed by the terms (), known as the LLGPL. #:|O_TRUNC| #:|O_DSYNC| #:|O_RSYNC| #:|O_SYNC| #:|O_NDELAY| #:|O_NONBLOCK| #:|O_NOCTTY| #:|O_SLOCK| #:|O_EXLOCK| #:|O_BINARY| #:|O_NOINHERIT| ...
This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to of the Lisp Lesser GNU Public License (in-package :clpython.module.posix) (in-syntax *user-readtable*) # : |O_RDONLY| # : # : |O_RDWR| # : |O_APPEND| # : |O_CREAT| # : |O_EXCL| # : |O_TEMPORARY| # : |O_RANDOM| # : ...
e388bbb322f03746b0b2cb7cea3a2d1f7fc5bb65ec6479071e5493c1a17e4e28
danilkolikov/dfl
Base.hs
| Module : Frontend . Base Description : Base definitions for frontend steps Copyright : ( c ) , 2019 License : MIT Base definitions for frontend processing Module : Frontend.Base Description : Base definitions for frontend steps Copyright : (c) Danil Kolikov, 2019 Licen...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Base.hs
haskell
| State of the frontend processing | A type of errors which can be encountered during processing source files | An output of processing sources files ^ Translated expressions ^ State of the processor | An empty output | A debug output of processing source files
| Module : Frontend . Base Description : Base definitions for frontend steps Copyright : ( c ) , 2019 License : MIT Base definitions for frontend processing Module : Frontend.Base Description : Base definitions for frontend steps Copyright : (c) Danil Kolikov, 2019 Licen...
cfadc6b921781e9bc2bae6e21f33c843313aed86750d8c6267a45691b3f4ca92
narkisr-deprecated/core
common.clj
(ns re-core.integration.workflows.common "Common testing workflows fns" (:require [re-core.persistency.systems :as s])) (defn spec ([] (spec {})) ([m] (assoc (merge-with merge (s/get-system 1) m) :system-id 1))) (defn get-spec [& ks] (get-in (spec) ks))
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/test/re_core/integration/workflows/common.clj
clojure
(ns re-core.integration.workflows.common "Common testing workflows fns" (:require [re-core.persistency.systems :as s])) (defn spec ([] (spec {})) ([m] (assoc (merge-with merge (s/get-system 1) m) :system-id 1))) (defn get-spec [& ks] (get-in (spec) ks))
8fcbe3991de3f47d74d69a8ff13d931238841484b3bb8d83afed0cd93df1036b
AdRoll/rebar3_format
sort_arity_qualifiers_uppercase_names.erl
-module(sort_arity_qualifiers_uppercase_names). -format #{sort_arity_qualifiers => true}. -export(['ABC_FIRST_FUNCTION'/1, 'SECOND_FUNCTION'/2, 'SECOND_FUNCTION'/3, lowercase_function/0]). 'ABC_FIRST_FUNCTION'(_) -> ok. 'SECOND_FUNCTION'(_, _, _) -> 'SECOND_FUNCTION'(). 'SECOND_FUNCTION'() -> ...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/7292c4e309491a19294ec5b2ff0b86a98b01d72c/test_app/after/src/sort_arity_qualifiers/sort_arity_qualifiers_uppercase_names.erl
erlang
-module(sort_arity_qualifiers_uppercase_names). -format #{sort_arity_qualifiers => true}. -export(['ABC_FIRST_FUNCTION'/1, 'SECOND_FUNCTION'/2, 'SECOND_FUNCTION'/3, lowercase_function/0]). 'ABC_FIRST_FUNCTION'(_) -> ok. 'SECOND_FUNCTION'(_, _, _) -> 'SECOND_FUNCTION'(). 'SECOND_FUNCTION'() -> ...
c02ef6628280519e87b5b4b4e36dd9dc9c2591d50dbe5666dc6f77de57305949
erszcz/learning
eet_app.erl
%%%------------------------------------------------------------------- %% @doc eet public API %% @end %%%------------------------------------------------------------------- -module(eet_app). -behaviour(application). %% Application callbacks -export([start/2 ,stop/1]). %%=====================================...
null
https://raw.githubusercontent.com/erszcz/learning/b21c58a09598e2aa5fa8a6909a80c81dc6be1601/erlang-enforced-types/src/eet_app.erl
erlang
------------------------------------------------------------------- @doc eet public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ============================================================...
-module(eet_app). -behaviour(application). -export([start/2 ,stop/1]). start(_StartType, _StartArgs) -> eet_sup:start_link(). stop(_State) -> ok. Internal functions
d65115515d1f707ab52869d55ac5ea18a8c421bbcecc737e2fbd56d26f16ccbe
reagent-project/reagent-cursor
cursor_impl.cljs
copyright ( c ) 2014 (ns cursor-impl (:require-macros [cemerick.cljs.test :refer (is deftest with-test run-tests testing)]) (:require [cemerick.cljs.test :as t] [reagent.cursor :as c])) ;; Here we test if the cursors act as a normal atom (deftest values (let [test-atom (atom {...
null
https://raw.githubusercontent.com/reagent-project/reagent-cursor/eba5797ba3f295728e19ed5aa156dbdf2a56e6dc/test/cursor_impl.cljs
clojure
Here we test if the cursors act as a normal atom nasty edge case get the initial values now we update the cursor with a reset restore test-atom swap empty map empty map per the description, reset! should return the new values per the description, swap! should return the new values watches should behave l...
copyright ( c ) 2014 (ns cursor-impl (:require-macros [cemerick.cljs.test :refer (is deftest with-test run-tests testing)]) (:require [cemerick.cljs.test :as t] [reagent.cursor :as c])) (deftest values (let [test-atom (atom {:a {:b {:c {:d 1}}}}) test-cursor (c/cur tes...
71acf378228a9c52c04265f40efa0936f6091e77e584b0ad2ba3adaf43e0acaa
acl2/acl2
guard-theorem-no-simplify-dollar@useless-runes.lsp
(GUARD-THEOREM-NO-SIMPLIFY$) (PSEUDO-TERMP-OF-GUARD-THEOREM-NO-SIMPLIFY$)
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/std/system/.sys/guard-theorem-no-simplify-dollar%40useless-runes.lsp
lisp
(GUARD-THEOREM-NO-SIMPLIFY$) (PSEUDO-TERMP-OF-GUARD-THEOREM-NO-SIMPLIFY$)
07325191f12c3d03a1449351b94f1b90188aa0c5a6c752602b6fa187a40a5b35
swarmpit/swarmpit
chart.cljs
(ns material.component.chart (:require [material.components :as comp] [sablono.core :refer-macros [html]])) (defn pie [data label className id tooltip] (let [hashd (hash data)] (html [:div {:className className :key (str "pie-wrapper-" id "-" hashd)} (comp/responsive...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/material/component/chart.cljs
clojure
(ns material.component.chart (:require [material.components :as comp] [sablono.core :refer-macros [html]])) (defn pie [data label className id tooltip] (let [hashd (hash data)] (html [:div {:className className :key (str "pie-wrapper-" id "-" hashd)} (comp/responsive...
2dfea9d297b574e841caca3d5e79e22d9e53e8e73b3872f8d0d17bb3e16d87ce
careercup/CtCI-6th-Edition-Clojure
chapter_1_q3_test.clj
(ns chapter-1.chapter_1_q3_test (:require [clojure.test :refer :all] [chapter-1.chapter-1-q3 :refer :all])) (deftest url-ify-test (is (= (url-ify "test" 4) "test")) (is (= (url-ify " " 1) "%20")) (is (= (url-ify " " 2) "%20%20")) (is (= (url-ify " test " 5) "%20test")) (is (= (url-ify "...
null
https://raw.githubusercontent.com/careercup/CtCI-6th-Edition-Clojure/ef151b94978af82fb3e0b1b0cd084d910870c52a/test/chapter_1/chapter_1_q3_test.clj
clojure
(ns chapter-1.chapter_1_q3_test (:require [clojure.test :refer :all] [chapter-1.chapter-1-q3 :refer :all])) (deftest url-ify-test (is (= (url-ify "test" 4) "test")) (is (= (url-ify " " 1) "%20")) (is (= (url-ify " " 2) "%20%20")) (is (= (url-ify " test " 5) "%20test")) (is (= (url-ify "...
83248ea38ad67548bc6992943407566dfe010ac712a2f814d8227b1a68b2d26a
LukaKurnjek/plutus-pioneer-program-book
oracle-pab.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RankNTypes # # LANGUAGE TypeApplications # {-# LANGUAGE Typ...
null
https://raw.githubusercontent.com/LukaKurnjek/plutus-pioneer-program-book/ed8e4a0e54c5246e72c0ba9f832e4b8820458a4a/code/Oracles/app/oracle-pab.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators #
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # # LANGUAGE RankNTypes # # LANGUAGE TypeApplications # module Main ( main ) where import Control.Monad (forM_, void, when) import ...
53b3fc9d4d87f08fc75dd47a3348b6937aa41674fad598445edd197b43d51599
fogfish/cache
cache_util.erl
%% Copyright 2012 , 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 applicable law or agreed to in writing...
null
https://raw.githubusercontent.com/fogfish/cache/8697b0246be280b8dd679b15f16293d3222c1d87/src/cache_util.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2012 , 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(cache_util). -export([ mdiv/2, madd/2, mmul/2, now/0, stats/2, stats/3 ]). mdiv(X, Y) when X =:= undefined orelse Y ...
ccf56137390fa11ac6a358120dc465e0bdace483f749962da8972bb3aae07ef3
rescript-lang/rescript-compiler
hashmap.cppo.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/45d8bbdb515ae6b3cfc35f8363b13635d66a4be6/jscomp/others/hashmap.cppo.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * Adapted by , Authors of 2017 ...
cc879552bf1c881b8ba33043339078f18d98273a4780215fe16166f59a7dc649
AshleyYakeley/Truth
Bi.hs
module Changes.Core.Types.Bi.Bi where import Changes.Core.Edit import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.None import Changes.Core.Types.ReadOnly import Shapes type BiReader (preader :: Type -> Type) (qreader :: Type -> Type) = qreader newtype BiEdit (pedit :: Type) (qedit :: Type) =...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/9ec79d8f4f3f2925a1c766a5f3f2478be9dcefbe/Changes/changes-core/lib/Changes/Core/Types/Bi/Bi.hs
haskell
module Changes.Core.Types.Bi.Bi where import Changes.Core.Edit import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.None import Changes.Core.Types.ReadOnly import Shapes type BiReader (preader :: Type -> Type) (qreader :: Type -> Type) = qreader newtype BiEdit (pedit :: Type) (qedit :: Type) =...
f0df4cc420c3749f5cc137e410a2fa3ea26a412c2ebb507b221faffca8f81572
gafiatulin/codewars
Product.hs
-- Product of the main diagonal of a square matrix. -- / module Codewars.Kata.Product where mainDiagonalProduct :: Num a => [[a]] -> a mainDiagonalProduct = snd . foldl (\(i, p) row -> (i+1, p * (row !! i))) (0, 1)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/Product.hs
haskell
Product of the main diagonal of a square matrix. /
module Codewars.Kata.Product where mainDiagonalProduct :: Num a => [[a]] -> a mainDiagonalProduct = snd . foldl (\(i, p) row -> (i+1, p * (row !! i))) (0, 1)
e19ded04b5a940044e03a93aa29c61a60fbe956c198d628329cf26ed80b54a57
blynn/compiler
TyperPrecisely.hs
-- Arbitrary precision integers. module Typer where import Base import Map import Ast import Parser import Unify -- Pattern compiler. rewritePats searcher = \case [] -> pure $ V "join#" vsxs@((as0, _):_) -> case as0 of [] -> pure $ foldr1 (A . L "join#") $ snd <$> vsxs _ -> do let k = length as0 ...
null
https://raw.githubusercontent.com/blynn/compiler/b9fe455ad4ee4fbabe77f2f5c3c9aaa53cffa85b/inn/TyperPrecisely.hs
haskell
Arbitrary precision integers. Pattern compiler. TODO: Check rest of `tab` lies in cs. Type inference. substitution such as (a1, [a]) so the variable names match. e.g. Eq a => [a] -> [a] -> Bool
module Typer where import Base import Map import Ast import Parser import Unify rewritePats searcher = \case [] -> pure $ V "join#" vsxs@((as0, _):_) -> case as0 of [] -> pure $ foldr1 (A . L "join#") $ snd <$> vsxs _ -> do let k = length as0 n <- get put $ n + k let vs = take k $ ...
d73746de11d98d796d324b42f811715d53a17527d9a1d8554922a2098777f451
samrushing/irken-tdfa
test_set.scm
(include "lib/basis.scm") (include "lib/random.scm") (include "set.scm") ;; XXX test with more complicated keys (like records) ;; XXX test with a set of sets. (define (t0) (let ((nums '(3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3)) (s0 (list->set nums < (set/empty))) (s1 (list->set (reverse nums) < (set/empty)))) (pr...
null
https://raw.githubusercontent.com/samrushing/irken-tdfa/ff56945e371ba7afec884f98a17f291cab083637/test/test_set.scm
scheme
XXX test with more complicated keys (like records) XXX test with a set of sets.
(include "lib/basis.scm") (include "lib/random.scm") (include "set.scm") (define (t0) (let ((nums '(3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3)) (s0 (list->set nums < (set/empty))) (s1 (list->set (reverse nums) < (set/empty)))) (printn (set->list s0)) (printn (set->list s1)) (printn (cmp-repr (set/cmp s0 s1 ...
b9e2b6e59f0d38b1ecad27472a655fc3e12a5369c49127a2df38987a8292887d
art-w/deque
deckrev.mli
type 'a t (** The type of a deque containing elements of type ['a]. *) val empty : 'a t (** The [empty] deque. *) val is_empty : 'a t -> bool * [ is_empty xs ] returns [ true ] when the deque [ xs ] contains no elements , [ false ] if at least one . val singleton : 'a -> 'a t (** [singleton x] returns a deque contai...
null
https://raw.githubusercontent.com/art-w/deque/20d3cfafa93b73c9f7ee20c230dc3e1b3f86956e/src/deckrev.mli
ocaml
* The type of a deque containing elements of type ['a]. * The [empty] deque. * [singleton x] returns a deque containing only a single element [x]. * [cons x xs] adds an element [x] to the front of the deque [xs]. {b O(1)} * [snoc xs x] adds an element [x] to the back of the deque [xs]. {b O(1)} * [rev xs] reverses...
type 'a t val empty : 'a t val is_empty : 'a t -> bool * [ is_empty xs ] returns [ true ] when the deque [ xs ] contains no elements , [ false ] if at least one . val singleton : 'a -> 'a t val cons : 'a -> 'a t -> 'a t val uncons : 'a t -> ('a * 'a t) option * [ uncons xs ] pops the left - most element of the deq...
7b5e18d0de00eba3c9209a4cfa4752dfacc5a27e6b176d7012d87fc26dce921b
arttuka/reagent-material-ui
view_comfy_outlined.cljs
(ns reagent-mui.icons.view-comfy-outlined "Imports @mui/icons-material/ViewComfyOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def view-comfy-outlined...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/view_comfy_outlined.cljs
clojure
(ns reagent-mui.icons.view-comfy-outlined "Imports @mui/icons-material/ViewComfyOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def view-comfy-outlined...
0872085124370893db35a1aaf45dde3aabe21eee4e0205dcddf3ef0242ec29e4
herd/herdtools7
optAce.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/c375ecc537da22070913496ad2043ae501c7ab78/herd/optAce.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2021 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
fb6a8805b7733c8d3f0b8db23970e5d7e2a1e3538d8c8ba7f848c244331cb9a9
ghcjs/ghcjs-boot
openFile001.hs
-- !!! test that a file opened in ReadMode can't be written to import System.IO import System.IO.Error main = do hIn <- openFile "openFile001.hs" ReadMode hPutStr hIn "test" `catchIOError` \ err -> if isIllegalOperation err then putStrLn "ok." else error "Oh dear\n"
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/tests/IO/openFile001.hs
haskell
!!! test that a file opened in ReadMode can't be written to
import System.IO import System.IO.Error main = do hIn <- openFile "openFile001.hs" ReadMode hPutStr hIn "test" `catchIOError` \ err -> if isIllegalOperation err then putStrLn "ok." else error "Oh dear\n"
66613c91a0f0dda071698f3f8ada52c9168bc2856d4bc903a1ce5e91c530b1e7
pixlsus/registry.gimp.org_static
JMB-CenterGuides.scm
; Center Guides ; This function puts a horizontal and vertical guide at the center of the ; canvas. (define (script-fu-center-guides image) (let* ( (height (car (gimp-image-height image))) (width (car (gimp-image-width image))) (ypos (/ height 2)) (xpos (/ width 2)) ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/JMB-CenterGuides.scm
scheme
Center Guides This function puts a horizontal and vertical guide at the center of the canvas. Initiates the temporary state. Cleanup Deactivates the temporary state and resets the previous user defaults. Finally register our script with script-fu. func name menu label description author copyright not...
(define (script-fu-center-guides image) (let* ( (height (car (gimp-image-height image))) (width (car (gimp-image-width image))) (ypos (/ height 2)) (xpos (/ width 2)) ) (gimp-image-add-vguide image xpos) (gimp-image-add-hguide image ypos) ...
654296d4a4ff5f5a6506b185cfbbeb52501548e43bc6a12732ba4de5e44fae5b
spl/emgm
Collect.hs
----------------------------------------------------------------------------- -- | -- Module : Collect Copyright : ( c ) 2008 , 2009 Universiteit Utrecht -- License : BSD3 -- Maintainer : ----------------------------------------------------------------------------- module Collect (tests) wher...
null
https://raw.githubusercontent.com/spl/emgm/dc16c10137487d7eb97aa851a577be66b46070a2/tests/Collect.hs
haskell
--------------------------------------------------------------------------- | Module : Collect License : BSD3 --------------------------------------------------------------------------- --------------------------------------------------------------------------- Utility functions ------------------------...
Copyright : ( c ) 2008 , 2009 Universiteit Utrecht Maintainer : module Collect (tests) where import Test.HUnit import Generics.EMGM test_c descr actual expected = descr ~: (collect actual) ~?= expected tests = "Collect" ~: [ test_c "[Maybe Int] -> [Int]" [Just 1,Nothing,Just 2::Maybe Int] [1,...
6de80ec3f1a34d168ebcbf23470794e05ca965d8db168f46433dc7bf5319c865
basho-labs/mesos-erlang
erl_mesos_scheduler.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 Basho Technologies Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may obtain %...
null
https://raw.githubusercontent.com/basho-labs/mesos-erlang/b90bf62c2d614f12a0ac3cd55a915b3737198da5/src/erl_mesos_scheduler.erl
erlang
------------------------------------------------------------------- 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, KIND, either express or implied. See the ...
Copyright ( c ) 2016 Basho Technologies Inc. All Rights Reserved . This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(erl_mesos_scheduler). -behaviour(gen_server). -include("sche...
cadcf604a4b8abbad13b54f660b5510c7c4a2aa5b72216485beeca063fe2ee58
haskell-backpack/backpack-str
Instances.hs
# LANGUAGE CPP # module Instances where import Str.ByteString.Instances import Str.Text.Instances #ifdef MIN_VERSION_foundation import Str.Foundation.Instances #endif
null
https://raw.githubusercontent.com/haskell-backpack/backpack-str/18c070d3b434593446f20d4206f0b607385a8acf/str-tests-compare/insts/Instances.hs
haskell
# LANGUAGE CPP # module Instances where import Str.ByteString.Instances import Str.Text.Instances #ifdef MIN_VERSION_foundation import Str.Foundation.Instances #endif
2031d718ee7555ce94d7ffe36280a035f7061cba93953bc73771d0fd0a29c7ef
Holmusk/elm-street
Spec.hs
module Main (main) where import Test.Hspec (hspec) import Test.Golden (goldenSpec) main :: IO () main = hspec goldenSpec
null
https://raw.githubusercontent.com/Holmusk/elm-street/9aa15b26aff53a56147a62adb2179f714f684dc9/test/Spec.hs
haskell
module Main (main) where import Test.Hspec (hspec) import Test.Golden (goldenSpec) main :: IO () main = hspec goldenSpec
925a7ed5b653a4c90b24d92aaf0baced029d5ea397e4f8a2ec8bd21544a0cea4
nojb/ocaml-gsasl
gsasl_bindings.ml
open Ctypes open Foreign type gsasl_t type gsasl_session_t let gsasl : gsasl_t structure typ = structure "Gsasl" let gsasl_session : gsasl_session_t structure typ = structure "Gsasl_session" let gsasl_null = from_voidp gsasl null let gsasl_session_null = from_voidp gsasl_session null module Bindings (F : Cstubs.FOR...
null
https://raw.githubusercontent.com/nojb/ocaml-gsasl/a96c7b94672a95d71fcfb24436ce25df473096d6/lib/gsasl_bindings.ml
ocaml
open Ctypes open Foreign type gsasl_t type gsasl_session_t let gsasl : gsasl_t structure typ = structure "Gsasl" let gsasl_session : gsasl_session_t structure typ = structure "Gsasl_session" let gsasl_null = from_voidp gsasl null let gsasl_session_null = from_voidp gsasl_session null module Bindings (F : Cstubs.FOR...
86a22f99181652bf1df440cd19a1403f728b2aa84de9a4cc196434add07ed610
openbadgefactory/salava
routes.cljs
(ns salava.social.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.social.ui.connections :as c] [salava.social.ui.stream :as s] [salava.social.ui.dashboard :as d] [salava.core.ui.helper :refer [base-...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/social/ui/routes.cljs
clojure
["" s/handler]
(ns salava.social.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.social.ui.connections :as c] [salava.social.ui.stream :as s] [salava.social.ui.dashboard :as d] [salava.core.ui.helper :refer [base-...
a453de26835f6f12f7c6e394b219fe37509827e3813c24d39a34dd76516ce882
lispbuilder/lispbuilder
regexp-test-suite.lisp
;; ***************************************************************************** ;; FILE ;; Name : regexp-test-suite.cl Date : 2002 - 03 - 01 Author : ;; Purpose : testing module for regular expressions ;; Modified by KMP to run under both rightmost and leftmost ma...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-regex/regexp-test-suite.lisp
lisp
***************************************************************************** FILE Name : regexp-test-suite.cl Purpose : testing module for regular expressions ----------------------------------------------------------------------------- rightmost matches are more canonical, but much slower....
Date : 2002 - 03 - 01 Author : Modified by KMP to run under both rightmost and leftmost matches . (in-package :LISPBUILDER-REGEX-TEST) (allow-nonregister-groups) (allow-nongreedy-quantifiers) (allow-rangematch) (allow-backmatch) ( : regex - right * features * ) (registers-match-ri...
f416d93d73c9ec39a32c613e73955c919db3f90e82ea8e838a1b968aef5c088a
AdaCore/why3
encoding_twin.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/03f27e383b7191f9df0c7df84016a6450603f864/src/transform/encoding_twin.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 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Wstdlib open Ident open Ty open Term open Decl let make_pont = Wty.memoize 3 (fun ty -> let t2tb = ...
9b6132e70bef4aed90179ab07294dbdcff835d1e4aa0171f8fbfa8327b528632
abdulapopoola/SICPBook
Ex2.37.scm
#lang planet neil/sicp ;; helpers (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (accumulate-n op init seqs) (if (null? (car seqs)) nil (cons ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.2/Ex2.37.scm
scheme
helpers
#lang planet neil/sicp (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (accumulate-n op init seqs) (if (null? (car seqs)) nil (cons (accumulate...
c867de14cc16165dfbde64a3b322104f1eac6250ef17989f63d2232dad0c45d3
helium/blockchain-core
blockchain_poc_receipt_v1.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Proof of Coverage Receipt == %%%------------------------------------------------------------------- -module(blockchain_poc_receipt_v1). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain_caps....
null
https://raw.githubusercontent.com/helium/blockchain-core/83ed1aff3a7139870a1bde1896eec0d6bfb776eb/src/transactions/v1/blockchain_poc_receipt_v1.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Proof of Coverage Receipt == ------------------------------------------------------------------- ------------------------------------------------------------------ -----------------------------------------------------------------...
-module(blockchain_poc_receipt_v1). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain_caps.hrl"). -include("blockchain_vars.hrl"). -include("blockchain_utils.hrl"). -include_lib("helium_proto/include/blockchain_txn_poc_receipts_v1_pb.hrl"). -export([ new/5, new/7, new/9, gatewa...
e089fc6c97989f752b0ca8e4fc60ff29624fadea1956d736789c49f0a916b020
GaloisInc/semmc
Combined.hs
-- This module creates a set of definitions that represent the combined set of A32 and T32 Opcodes , Operands , -- and locations. # LANGUAGE DataKinds # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveLift #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE Insta...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-aarch32/src/SemMC/Architecture/ARM/Combined.hs
haskell
This module creates a set of definitions and locations. # LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveLift # # LANGUAGE GADTs # compare (A32Opcode x) (A32Opcode y) = compare x y compare (A32Opcode x) (A32Opcode y) = compare x y compare (T32Opcode _) (A32Opcode _) = LT compare (T32Opcode _) (A32Opcode _) = LT ...
that represent the combined set of A32 and T32 Opcodes , Operands , # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE ...
726170d69f2c497256379c9291304100b57529cf0838bc1ac79351171ad56282
goldfirere/singletons
T470.hs
module T470 where import Data.Kind import Data.Singletons.Base.TH $(singletons [d| type T :: Type -> Type data T a where MkT1 :: a -> T a MkT2 :: !Void -> T a data S = MkS {-# UNPACK #-} !Bool |]) f :: T a -> a f (MkT1 x) = x type F :: T a -> a type family F x where F ('MkT1 x) = x sF :: forall ...
null
https://raw.githubusercontent.com/goldfirere/singletons/70d622645b960d60411ab8f31d16ffb91e69379e/singletons-base/tests/compile-and-dump/Singletons/T470.hs
haskell
# UNPACK #
module T470 where import Data.Kind import Data.Singletons.Base.TH $(singletons [d| type T :: Type -> Type data T a where MkT1 :: a -> T a MkT2 :: !Void -> T a |]) f :: T a -> a f (MkT1 x) = x type F :: T a -> a type family F x where F ('MkT1 x) = x sF :: forall a (x :: T a). Sing x -> Sing (...
ab96549810e7a718da383fdb0143fabf1492c3276eb4d6e8a79deea0f34844f8
unnohideyuki/bunny
sample272.hs
main = do print $ sum [1..5] print $ product [1..5]
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample272.hs
haskell
main = do print $ sum [1..5] print $ product [1..5]
c4853b9ead8550921f8061c95e0c32aa7b588a26ac72e012763d45fbc35ef974
AhaMove/metabase-http-driver
query_processor.clj
(ns metabase.driver.http.query-processor (:refer-clojure :exclude [==]) (:require [cheshire.core :as json] [clojure.walk :as walk] [clj-http.client :as client]) (:import [com.jayway.jsonpath JsonPath Predicate])) (declare compile-expression compile-function) (defn json-path [query body...
null
https://raw.githubusercontent.com/AhaMove/metabase-http-driver/2118931021fb3cfe9dcb60582b8a3f140eb699ba/src/metabase/driver/http/query_processor.clj
clojure
(ns metabase.driver.http.query-processor (:refer-clojure :exclude [==]) (:require [cheshire.core :as json] [clojure.walk :as walk] [clj-http.client :as client]) (:import [com.jayway.jsonpath JsonPath Predicate])) (declare compile-expression compile-function) (defn json-path [query body...
c7e96a2cd1794f4bdc5b84ef94cb0e62c89a4e65d0784b793a4f1c7226e552a5
c4-project/c4f
config.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/delitmus/src/config.ml
ocaml
So far, there is no distinction between global and local mapping. This might change.
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
a77736746ce0ae781a6d1c9c7e7552303c2bf4b891868f789f604684c0a08ec8
adam-james-v/scripts
vidwiz.clj
#!/usr/bin/env bb (babashka.deps/add-deps '{:deps {borkdude/spartan.spec {:git/url "" :sha "e5c9f40ebcc64b27b3e3e83ad2a285ccc0997097"} svg-clj/svg-clj {:local/root "/Users/adam/dev/svg-clj"}}}) (ns vidwiz.main "This is a prototype script for automating a portion of my video ed...
null
https://raw.githubusercontent.com/adam-james-v/scripts/4dd6b8679dd21ced260bca5b5bbc1fcc055e6fae/src/vidwiz.clj
clojure
utils create clips create clips file list concat clips together delete tmp files input messy, but it works!! create clip directory create all animation layers retrieve the base clip clip 'effect' compose all layers can delete intermediate files, but probably good to keep them
#!/usr/bin/env bb (babashka.deps/add-deps '{:deps {borkdude/spartan.spec {:git/url "" :sha "e5c9f40ebcc64b27b3e3e83ad2a285ccc0997097"} svg-clj/svg-clj {:local/root "/Users/adam/dev/svg-clj"}}}) (ns vidwiz.main "This is a prototype script for automating a portion of my video ed...
a89ea3c0c941691a50dd3b2d4d2b4e268ac9fa9dc94cb4cdd8077f6b5264f7fc
generateme/fastmath
optimization_examples.clj
(ns fastmath.optimization-examples (:require [fastmath.optimization :refer :all] [metadoc.examples :refer :all] [fastmath.core :as m])) (add-examples minimize (example "1d function" (let [bounds [[-5.0 5.0]] f (fn [x] (+ (* 0.2 (m/sin (* 10.0 x))) (/ (+ 6.0 (- (* x x) (* 5.0 x...
null
https://raw.githubusercontent.com/generateme/fastmath/2eb38baffe73077bab331a20449d9d7596af7059/metadoc/fastmath/optimization_examples.clj
clojure
(ns fastmath.optimization-examples (:require [fastmath.optimization :refer :all] [metadoc.examples :refer :all] [fastmath.core :as m])) (add-examples minimize (example "1d function" (let [bounds [[-5.0 5.0]] f (fn [x] (+ (* 0.2 (m/sin (* 10.0 x))) (/ (+ 6.0 (- (* x x) (* 5.0 x...
8c723366924cb3e879ee96b06066e21127df39c1e9d08cb6aab1a9866718210b
typeclasses/haskell-phrasebook
test-hello-world.hs
main = propertyMain $ withTests 1 $ property do x <- exeStdout $ phrasebook "hello-world" strLines x === [ "hello world" ]
null
https://raw.githubusercontent.com/typeclasses/haskell-phrasebook/2b0aa44ef6f6e9745c51ed47b4e59ff704346c87/tests/test-hello-world.hs
haskell
main = propertyMain $ withTests 1 $ property do x <- exeStdout $ phrasebook "hello-world" strLines x === [ "hello world" ]
70c4b94fa8458a66e6603df9d13bce150bb3b7c7dfaba69c84f5f16d0c7c9467
eugeneia/athens
headers.lisp
(in-package :conspack) ;; Constants (defconstant +boolean-header+ #b00000000) ; #b0000000n # b0001nnnn (defconstant +container-header+ #b00100000) ; #b001xxfnn (defconstant +string-header+ #b01000000) ; #b010000nn # b011fdddd (defconstant +r-ref-header+ #b01100100) ; #b01100100 (defconstant...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/cl-conspack-20170403-git/src/headers.lisp
lisp
Constants #b0000000n #b001xxfnn #b010000nn #b01100100 #b011010nn #b111fdddd #b10000001 #b100001nn #b10001000 #b101fdddd Header testing id-follows id-inline id-follows id-inline Making headers Decode more of an estimate, really
(in-package :conspack) # b0001nnnn # b011fdddd # b10000000 # b1000001f (defconstant +int8+ #x0) (defconstant +int16+ #x1) (defconstant +int32+ #x2) (defconstant +int64+ #x3) (defconstant +uint8+ #x4) (defconstant +uint16+ #x5) (defconstant +uint32+ #x6) (defconstant +uint64+ #x7) (defconstant +single-float+ ...
1da1fdbb1cbb0a1faa2f8b9822c859782c9409328aee883c2ee31b259eb30ca9
acieroid/scala-am
leap-year.scm
(define (sign number) (cond ((zero? number) 0) ((> number 0) 1) (else -1))) (define (divides? deler deeltal) (= 0 (modulo deeltal deler))) (define (leap-year? year) (if (divides? 4 year) (if (divides? 100 year) (divides? 400 year) #t) #f)) (define (leap-year2? y...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/scp1/leap-year.scm
scheme
(define (sign number) (cond ((zero? number) 0) ((> number 0) 1) (else -1))) (define (divides? deler deeltal) (= 0 (modulo deeltal deler))) (define (leap-year? year) (if (divides? 4 year) (if (divides? 100 year) (divides? 400 year) #t) #f)) (define (leap-year2? y...
5e43e61e80204163a32f2533ed8a9cfaa2ae9dd3e6e4366b90e9676fbcaae3df
ghcjs/ghcjs-dom
WebKitNamespace.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.WebKitNamespace (js_getMessageHandlers, getMessageHandlers, WebKitNamespace(..), ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/WebKitNamespace.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/WebKitNamespace.messageHandlers Mozilla WebKitNamespace.messageHandlers documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.WebKitNamespace (js_getMessageHandlers, getMessageHandlers, WebKitNamespace(..), gTypeWebKitNamespace) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Doub...
1f07b4cb5391f4a9cbabdc65df0f18e1ff78cfed202e7c8656f0d907f6632669
pa-ba/compdata
Test.hs
module Main where import qualified Functions.Comp as A import qualified Functions.Standard as S import DataTypes.Comp import DataTypes.Transform import Test.QuickCheck import Data.List main = mapM_ (quickCheckWith stdArgs{maxSize=10}) allProp allProp = map forAllTyped [prop_desug, prop_desugAlg, prop_desugType, prop...
null
https://raw.githubusercontent.com/pa-ba/compdata/5783d0e11129097e045cabba61643114b154e3f2/benchmark/Test.hs
haskell
module Main where import qualified Functions.Comp as A import qualified Functions.Standard as S import DataTypes.Comp import DataTypes.Transform import Test.QuickCheck import Data.List main = mapM_ (quickCheckWith stdArgs{maxSize=10}) allProp allProp = map forAllTyped [prop_desug, prop_desugAlg, prop_desugType, prop...
038f0250ce2cf66f15a5bdf0a8aa8a0d5902106c6613341faa48cd8d2940a4ff
MyDataFlow/ttalk-server
mongooseim.erl
%%============================================================================== Copyright 2014 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/src/mongooseim.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2014 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mongooseim). -export([start/0]). start() -> application:start(mongooseim), ejabberd:start().
a0665acfedfb091bad189b9f75f8cf13956aede8779a6ed9a6e20016de16af3a
haskell-mafia/mismi
EMR.hs
# LANGUAGE NoImplicitPrelude # module Mismi.EMR ( ) where
null
https://raw.githubusercontent.com/haskell-mafia/mismi/f6df07a52c6c8b1cf195b58d20ef109e390be014/mismi-emr/src/Mismi/EMR.hs
haskell
# LANGUAGE NoImplicitPrelude # module Mismi.EMR ( ) where
a4c13523b9e62cab8da34ef1a25cc79cb42df13b25c286059fd418286a58981f
bgamari/the-thoralf-plugin
Nat.hs
# LANGUAGE TypeFamilies , TypeInType , TypeOperators , GADTs , RecordWildCards , StandaloneDeriving # GADTs, RecordWildCards, StandaloneDeriving #-} module ThoralfPlugin.Encode.Nat ( natTheory ) where import GhcPlugins ( getUnique ) import TysWiredIn ( typeNatKindCon ) import TcTypeNats ( typeNatAddTyCon, ...
null
https://raw.githubusercontent.com/bgamari/the-thoralf-plugin/fa4e403b25bfcaf9e8d5142ab40d3c54b33a3630/src/ThoralfPlugin/Encode/Nat.hs
haskell
# LANGUAGE TypeFamilies , TypeInType , TypeOperators , GADTs , RecordWildCards , StandaloneDeriving # GADTs, RecordWildCards, StandaloneDeriving #-} module ThoralfPlugin.Encode.Nat ( natTheory ) where import GhcPlugins ( getUnique ) import TysWiredIn ( typeNatKindCon ) import TcTypeNats ( typeNatAddTyCon, ...
65e9270bb6a9f1a887cc122c4e02796ea1adf017d0693ab3d1b44c0c3a69ad30
nikita-volkov/rebase
Real.hs
module Rebase.GHC.Real ( module GHC.Real ) where import GHC.Real
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/Real.hs
haskell
module Rebase.GHC.Real ( module GHC.Real ) where import GHC.Real
b8e39b855859b128d2b995188dfa835bba34d168ff42a006c41a87c4bd7c59bb
gonzojive/elephant
lisp-types.lisp
(in-package :db-lisp) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Map lisp types to binary types (defparameter *lisp-binary-typemap* '((fixnum . u32) (char . iso-8859-1-char) (single-float . single-float) (double-float . double-float) (negative-bignum . bignum) (positiv...
null
https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/src/contrib/eslick/db-lisp/archive/lisp-types.lisp
lisp
Map lisp types to binary types
(in-package :db-lisp) (defparameter *lisp-binary-typemap* '((fixnum . u32) (char . iso-8859-1-char) (single-float . single-float) (double-float . double-float) (negative-bignum . bignum) (positive-bignum . bignum) (rational . rational) (null ....
a3327d50b793fcd0d38767f4824d99e2166ff331cf89414d45af1f8a603e143b
LaurentMazare/ocaml-torch
stb_image_write.ml
open Bigarray type 'kind buffer = ('a, 'b, c_layout) Array1.t constraint 'kind = ('a, 'b) kind type float32 = (float, float32_elt) kind type int8 = (int, int8_unsigned_elt) kind external png : string -> w:int -> h:int -> c:int -> int8 buffer -> unit = "ml_stbi_write_png" external bmp : string -> ...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/src/vision/stb_image_write.ml
ocaml
open Bigarray type 'kind buffer = ('a, 'b, c_layout) Array1.t constraint 'kind = ('a, 'b) kind type float32 = (float, float32_elt) kind type int8 = (int, int8_unsigned_elt) kind external png : string -> w:int -> h:int -> c:int -> int8 buffer -> unit = "ml_stbi_write_png" external bmp : string -> ...
09a8d69a3f264e4e5e11852ce86ccb256dadea1ee529ec29c4b0907c92414edd
rems-project/minisail
annot_pp.ml
open PPrintEngine open PPrintCombinators open Sail_pp open Type_check open Ast_util let opt_pp_env = ref true let pp_json_env env = string "{ " ^^ string "\"locals\" : [ " ^^ separate (string ",") (List.map (fun (s,(_,t)) -> string "{ \"id...
null
https://raw.githubusercontent.com/rems-project/minisail/58099c82e51eb0107e90e022fa353855328caabe/src/annot_pp.ml
ocaml
open PPrintEngine open PPrintCombinators open Sail_pp open Type_check open Ast_util let opt_pp_env = ref true let pp_json_env env = string "{ " ^^ string "\"locals\" : [ " ^^ separate (string ",") (List.map (fun (s,(_,t)) -> string "{ \"id...
8e07c9d62c84a6785686fc22c304f10d109dd208dd527efb8e2b34d2a54c985a
rpav/cl-freetype2
outline.lisp
(in-package :freetype2-tests) (in-suite freetype2-tests) (defvar *outline*) (defvar *curves*) (defvar *result-a-curve* '((:MOVETO (220 0) NIL NIL) (:LINETO (424 844) NIL NIL) (:LINETO (627 0) NIL NIL) (:LINETO (817 0) NIL NIL) (:LINETO (527 1088) NIL NIL) (:LINETO (327 1088) NIL NIL) (:LINETO (31 0) NIL...
null
https://raw.githubusercontent.com/rpav/cl-freetype2/96058da730b4812df916c1f4ee18c99b3b15a3de/t/outline.lisp
lisp
(in-package :freetype2-tests) (in-suite freetype2-tests) (defvar *outline*) (defvar *curves*) (defvar *result-a-curve* '((:MOVETO (220 0) NIL NIL) (:LINETO (424 844) NIL NIL) (:LINETO (627 0) NIL NIL) (:LINETO (817 0) NIL NIL) (:LINETO (527 1088) NIL NIL) (:LINETO (327 1088) NIL NIL) (:LINETO (31 0) NIL...
6a12f636b2587f9eafed7d84a10c425fa7b196fdbbcbaee703c97385b3350d40
RedlineResearch/floorplan
Position.hs
| Module : Language . Rust . Data . Position Description : Positions and spans in files Copyright : ( c ) , 2017 - 2018 License : BSD - style Maintainer : Stability : experimental Portability : GHC Everything to do with describing a position or a contiguous region in a file . Mo...
null
https://raw.githubusercontent.com/RedlineResearch/floorplan/dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf/src/Language/Rust/Data/Position.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveAnyClass # * Positions in files * Spans in files | A position in a source file. The row and column information is kept only for its convenience and human-readability. Analogous to the information encoded in a cursor. # UNPACK # ^ absolute offset the source file. # U...
| Module : Language . Rust . Data . Position Description : Positions and spans in files Copyright : ( c ) , 2017 - 2018 License : BSD - style Maintainer : Stability : experimental Portability : GHC Everything to do with describing a position or a contiguous region in a file . Mo...
197702630406688621ed5d4331f32e42db1bec0581da521533284b6a73b6c227
arttuka/reagent-material-ui
severe_cold_sharp.cljs
(ns reagent-mui.icons.severe-cold-sharp "Imports @mui/icons-material/SevereColdSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def severe-cold-sharp (crea...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/severe_cold_sharp.cljs
clojure
(ns reagent-mui.icons.severe-cold-sharp "Imports @mui/icons-material/SevereColdSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def severe-cold-sharp (crea...
ea87ef11c68738088ebad250c46e30ade186ec3e24012d07f54c108d5e116ddf
webyrd/n-grams-for-synthesis
interp-simplified.scm
This version uses expert hand - ordering of clauses ( combination of expert knowledge and looking at statistics gathered from n-grams.scm ) TODO create a version of this file in which eval - expo is generated by a macro , and then create a version of that file in which ordering is auto generated based on statisti...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/old-intermediate-interp-transformations/interp-simplified.scm
scheme
and removes the non-empty initial environment. Shadowing of core forms is no longer supported. interpreters. Multi-argument need to make sure lambdas are well formed. grammar constraints would be useful here!!!
This version uses expert hand - ordering of clauses ( combination of expert knowledge and looking at statistics gathered from n-grams.scm ) TODO create a version of this file in which eval - expo is generated by a macro , and then create a version of that file in which ordering is auto generated based on statisti...
0d34ce35d69cfeadf463686c2a84791c7aa18e19ac446c66a61e552fa1bce1ec
lojic/LearningRacket
ch-03.2.rkt
#lang racket (require racket/trace) (define (factorial n) (if (= n 0) 1 (* n (factorial (- n 1))))) (trace factorial) (factorial 5) (define (fact i a) (if (= i 0) a (fact (- i 1) (* a i)))) (define (factorial2 n) (fact n 1)) (trace fact) (factorial2 5)
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/the-scheme-programming-language/ch-03.2.rkt
racket
#lang racket (require racket/trace) (define (factorial n) (if (= n 0) 1 (* n (factorial (- n 1))))) (trace factorial) (factorial 5) (define (fact i a) (if (= i 0) a (fact (- i 1) (* a i)))) (define (factorial2 n) (fact n 1)) (trace fact) (factorial2 5)
aa2c96b9d87f7d46704a7eb17542d934796a56b8bb9859271a6e499ae4756bf5
composewell/streaming-benchmarks
BenchmarkTH.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE DeriveLift #-} module Benchmarks.BenchmarkTH ( createBgroupSink , createBgroupSinkN , createBgroupSrc , pureMods , monadicMods , allMods , benchMods , iterMods , Select (..) ) where import Data.List ((\\)) import Language.Haskell.TH.Syn...
null
https://raw.githubusercontent.com/composewell/streaming-benchmarks/c31fa9d2d20c9b4e8e85be19ac1e7a41a88b4945/lib/Benchmarks/BenchmarkTH.hs
haskell
# LANGUAGE DeriveLift # | createBgroupSink <selection func> <module name> <benchmark name> <stream consumer function name> | createBgroupSink <selection func> <module names> <benchmark name> <stream consumer function name> <number of iterations>
# LANGUAGE TemplateHaskell # module Benchmarks.BenchmarkTH ( createBgroupSink , createBgroupSinkN , createBgroupSrc , pureMods , monadicMods , allMods , benchMods , iterMods , Select (..) ) where import Data.List ((\\)) import Language.Haskell.TH.Syntax (Q, Exp, Lift) import B...
d851c8f6ac01527c76f4f9fd2522f39eef0890d93c6472fa615554986bc4bf13
rizo/snowflake-os
proc.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/proc.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ val word_addressed: bool val...
8a9d16b87f4c724fcafc32b6ab51de2836a3a8f8e9dbce5a9f615137d88c0e8b
nd/sicp
5.38.scm
;; result of factorial compilation with build-in primitive functions: ((env) (val) ((assign val (op make-compiled-procedure) (label entry2) (reg env)) (goto (label after-lambda1)) ;;factorial function entry entry2 (assign env (op compiled-procedure-env) (reg proc)) (assign env (op extend-environment) (con...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch05/5.38.scm
scheme
result of factorial compilation with build-in primitive functions: factorial function entry (= n 1) ? argl = (- n 1) arg1 = (factorial (- n 1)) arg2 = n val = (* n (factorial (- n 1)))
((env) (val) ((assign val (op make-compiled-procedure) (label entry2) (reg env)) (goto (label after-lambda1)) entry2 (assign env (op compiled-procedure-env) (reg proc)) (assign env (op extend-environment) (const (n)) (reg argl) (reg env)) (assign arg2 (const 1)) (assign arg1 (op lookup-variable-value) (...
3958fa70064faa32c015549e7793c028b008114871b4ea3f30463b51ffdb960a
WeiDUorg/weidu
myarg.ml
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 18 March 2006 . All changes for this file are listed in d...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/a4048b11e6904f39ea1f956a36018e5d9a6e8e5c/src/myarg.ml
ocaml
********************************************************************* Objective Caml ...
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 18 March 2006 . All changes for this file are listed in d...
7570e5363bebf2eb91f2be3b952c9d11d0ae3cfc667c5639f5bcc1bbbad6f8e7
simonmichael/hledger
Reports.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} | Generate several common kinds of report from a journal , as \"*Report\ " - simple intermediate data structures intended to be easily rendered as text , html , , csv etc . by , hamlet templates , javascript , or whatever . Generate seve...
null
https://raw.githubusercontent.com/simonmichael/hledger/8274da81fc9c5aabf0dd2593e651442ff90e4fa1/hledger-lib/Hledger/Reports.hs
haskell
# LANGUAGE OverloadedStrings # * Tests
# LANGUAGE FlexibleInstances # | Generate several common kinds of report from a journal , as \"*Report\ " - simple intermediate data structures intended to be easily rendered as text , html , , csv etc . by , hamlet templates , javascript , or whatever . Generate several common kinds of report from a j...
6318fb8fc2a1dbc6850a54e48264c6baf15d37955e795e176d7efdca13865032
emina/rosette
all-tests.rkt
#lang racket (require rosette/lib/roseunit) (test-groups [test fast] "memory.rkt" "operators.rkt" "reals.rkt" "typecheck.rkt" "work.rkt" (submod "../examples/matrixMultiply/synth/test.rkt") (submod "../examples/matrixMultiply/verify/test.rkt") (submod "../examples/sobelFilter/test.rkt") (submod "../examples/...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/synthcl/test/all-tests.rkt
racket
#lang racket (require rosette/lib/roseunit) (test-groups [test fast] "memory.rkt" "operators.rkt" "reals.rkt" "typecheck.rkt" "work.rkt" (submod "../examples/matrixMultiply/synth/test.rkt") (submod "../examples/matrixMultiply/verify/test.rkt") (submod "../examples/sobelFilter/test.rkt") (submod "../examples/...
9f777e1b05aa4dc079786b26a0b1fb9a4cedc0520f41ec7dff8f12f0c0b963de
theodormoroianu/SecondYearCourses
LambdaChurch_20210415165242.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415165242.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
ceb78894119bbc4a9d3c61eff76cab901d7064cd2d1066a97571377e68e256e2
aib/Project-Euler
euler22.hs
import Control.Monad import Data.Char import Data.Function import Data.List import Data.List.Split wordScore = sum . map letterScore where letterScore l = 1 + flip ((-) `on` ord) 'A' l main = do names <- liftM (map (filter (/= '"')) . wordsBy (== ',')) $ readFile "euler22-names.txt" print $ sum $ zipWi...
null
https://raw.githubusercontent.com/aib/Project-Euler/a01a142d360f3a30fcea69ab29d4d198160ee921/euler22.hs
haskell
import Control.Monad import Data.Char import Data.Function import Data.List import Data.List.Split wordScore = sum . map letterScore where letterScore l = 1 + flip ((-) `on` ord) 'A' l main = do names <- liftM (map (filter (/= '"')) . wordsBy (== ',')) $ readFile "euler22-names.txt" print $ sum $ zipWi...
44264c1c663a946404630297af3272f3da679d2c402e72746505b5215bb26801
janestreet/core_kernel
tuple_type_intf.ml
open! Core open! Import module type Slots = sig * [ Slots ] has types [ t1 ] , ... , [ t12 ] of arities 1 to 12 that are isomorphic to tuple types of the corresponding arities . Type [ ( ' a0 , ... , ' a < N-1 > ) t < N > ] corresponds to [ ' a0 * ... * ' a < N-1 > ] . Each type [ ti ] is an...
null
https://raw.githubusercontent.com/janestreet/core_kernel/18b2a732657ecac73e075e81e1edd0ef797fcc7d/tuple_pool/src/tuple_type_intf.ml
ocaml
* A [Slot.t] represents a slot in a tuple type. * [ti] is the [i]'th slot.
open! Core open! Import module type Slots = sig * [ Slots ] has types [ t1 ] , ... , [ t12 ] of arities 1 to 12 that are isomorphic to tuple types of the corresponding arities . Type [ ( ' a0 , ... , ' a < N-1 > ) t < N > ] corresponds to [ ' a0 * ... * ' a < N-1 > ] . Each type [ ti ] is an...
f4ef65b8d57cf8979c13419854192a83ca01e749dc5ae8d4ea88212ea40ea374
benjaminselfridge/propcheck
Parse.hs
module Logic.Propositional.Parse ( parseFormula , parseProof ) where import Logic.Propositional import Logic.Propositional.Natural import Logic.Propositional.Natural.ProofLine import Data.Maybe import Text.ParserCombinators.Parsec import qualified Data.Map.Strict as Map spacebars = skipMany (char ' ') -- | Pa...
null
https://raw.githubusercontent.com/benjaminselfridge/propcheck/3902bbd20db14c3a98d6d0e95e5cb43531c960f9/src/Logic/Propositional/Parse.hs
haskell
| Parse a formula. | Parse a proof reference. | Parsing a proof body. | Parsing a proof.
module Logic.Propositional.Parse ( parseFormula , parseProof ) where import Logic.Propositional import Logic.Propositional.Natural import Logic.Propositional.Natural.ProofLine import Data.Maybe import Text.ParserCombinators.Parsec import qualified Data.Map.Strict as Map spacebars = skipMany (char ' ') parseF...
822c0eaf2a2910a318c4acd464a8a35a89623f79b695ae7e4f68eb8ac011e03e
gedge-platform/gedge-platform
rabbit_channel_tracking.erl
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 /. %% Copyright ( c ) 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_channel_tracking). %% Abstracts away how...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_channel_tracking.erl
erlang
Abstracts away how tracked connection records are stored and queried. See also: * rabbit_reader * rabbit_event API Sets up and resets channel tracking tables for this node. Asynchronously handle update events ignore channel has terminated, unregister iff local Shutting down channels will take care of...
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 /. Copyright ( c ) 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_channel_tracking). * -behaviour(rabbit_tra...
3ef06cef1e0cd01d9e9c949af7946a23b78defcc1abe311687605c26d5ac512f
karetsu/xmonad-aloysius
LogHook.hs
| XMonad - Aloysius eventLog for polybar | From : -contributed-module module Bus.LogHook ( logHooker ) where import Control.Monad ( forM_ ) import Control.Lens import XMonad import qualified XMonad.StackSet as W import Theme.ChosenTheme ...
null
https://raw.githubusercontent.com/karetsu/xmonad-aloysius/9910c8db4bb75600fc9af51b9e64ab5704e8126c/app/Bus/LogHook.hs
haskell
Useful information for formatting %{T-} resets it back to font-0 this module then depends on +THEME+ could this also support a pop up panel? -contrib-0.16/docs/XMonad-Util-Loggers-NamedScratchpad.html Supporting functions -------------------------------------------------------- fallback for changes in C.Layout ...
| XMonad - Aloysius eventLog for polybar | From : -contributed-module module Bus.LogHook ( logHooker ) where import Control.Monad ( forM_ ) import Control.Lens import XMonad import qualified XMonad.StackSet as W import Theme.ChosenTheme ...
3448ca4f4d87d6a555ad8d08790024610b8ff2d20a974ce32e0be0c20538a547
rescript-lang/rescript-compiler
belt_Array.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/9525c421630eb6f86a9ab58a9a286df7403a4851/jscomp/others/belt_Array.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with type 'a t = 'a array external length :...
17612e132e55c8972565b6d6d1058848c6256fb8ce7c90dda6e27231cd469d02
bmourad01/ocamlchess
square.ml
open Core_kernel [@@warning "-D"] let bits = 6 let count = 64 let nmask = lnot 63 module T = struct type t = int [@@deriving compare, equal, hash, sexp] end include T include Comparable.Make(T) let of_int_exn i = if Int.(i land nmask <> 0) then invalid_argf "Invalid square integer '%d'" i () else i let of_...
null
https://raw.githubusercontent.com/bmourad01/ocamlchess/0496db8ad7dddd5a048fb4868aacff221a706238/chess/src/square.ml
ocaml
Extract the bits
open Core_kernel [@@warning "-D"] let bits = 6 let count = 64 let nmask = lnot 63 module T = struct type t = int [@@deriving compare, equal, hash, sexp] end include T include Comparable.Make(T) let of_int_exn i = if Int.(i land nmask <> 0) then invalid_argf "Invalid square integer '%d'" i () else i let of_...
132b74d583796d0b5ef3291ec9b678a0654248018767d6dc8dcef6765dc62661
MinaProtocol/mina
construction_hash_request.ml
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Construction_hash_request.t : ConstructionHashRequest is the input to the ` /construction / hash ` endpoint . * This file has been generated by the OCamlClientCod...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/construction_hash_request.ml
ocaml
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Construction_hash_request.t : ConstructionHashRequest is the input to the ` /construction / hash ` endpoint . * This file has been generated by the OCamlClientCod...
60f781857844bed1c6e096aeb9b7b281db10c805828ca6dea00b11b53b349d0f
pedestal/pedestal
server.clj
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 ...
null
https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/samples/ring-middleware/src/ring_middleware/server.clj
clojure
The use and distribution terms for this software are covered by the 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 any other, from this software. T...
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. Eclipse Public License 1.0 ( ) (ns ring-middleware.server for -main method in uberjar (:require [io.pedestal.http :as server] [ring-middleware.service :as service] [io.pedestal.http.route :as route])) (defonce r...
66c3fada03b2eb82f96ba914e1bb5ca63013d3c7ce622dc6797ac73c0ad3be99
OCamlPro/ez_api
timings.ml
(**************************************************************************) (* *) (* Copyright 2018-2023 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/5253f7dd8936e923290aa969ee43ebd3dc6fce2d/src/server/timings.ml
ocaml
************************************************************************ Copyright 2018-2023 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special type period = { name : string; mutable prev : int; nb : int array; dt : float array; } type t = { first : float; mutable last : float; minutes : period; hours : period; days : period; all : period; } Move to current time...
361835c8cb47f94bc79feb273c58cbec4469229b5357a70ea0ecdfc9a45c0219
takikawa/tr-pfds
bankers-deque-benchmarks.rkt
#lang typed/racket (require "../deque/bankers.rkt") # # # # # # # # # # # # # # # # # # # # # # # # # ;; Performance-related Tests # # # # # # # # # # # # # # # # # # # # # # # # # ;; Test to show performance improvement from less laziness ;; (ie using partial stream instead of stream) ;; -----------------------...
null
https://raw.githubusercontent.com/takikawa/tr-pfds/a08810bdfc760bb9ed68d08ea222a59135d9a203/pfds/tests/bankers-deque-benchmarks.rkt
racket
Performance-related Tests Test to show performance improvement from less laziness (ie using partial stream instead of stream) ------------------------------------------------------- enqueue in rear, pull from front with streams: with partial streams: enqueue in rear, pull from rear with streams: with partial ...
#lang typed/racket (require "../deque/bankers.rkt") # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # (let ([q (time (build-deque (expt 2 21) add1))]) (time (let: loop : Integer ([q : (Deque Positive-Integer) q]) (if (empty? q) 0 (+ (head q) (lo...
63bd62361c54902ae3c8c929e7837e88d3f94225e96df09e4ddc77283a09e996
s-expressionists/Cleavir
instructions.lisp
(in-package #:cleavir-bir) This instruction creates a first - class object from a FUNCTION . (defclass enclose (no-input one-output instruction) ((%code :initarg :code :reader code :type function :documentation "The BIR function representing the code of the closure that will be created.") (%...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/22efd8c954dd63b57cb284ff2739f2be9306f247/BIR/instructions.lisp
lisp
FIXME: Remove? Constants Retrieve the function bound to a constant. Retrieve the value bound to a known symbol. convenience method A local call is a legal call to a function within the same FUNCTION. Importantly, illegal calls (i.e. ones whose arguments are not compatible with the lambda list of the callee) are...
(in-package #:cleavir-bir) This instruction creates a first - class object from a FUNCTION . (defclass enclose (no-input one-output instruction) ((%code :initarg :code :reader code :type function :documentation "The BIR function representing the code of the closure that will be created.") (%...
7324c8546fd7eda40a24f5493c7d9e6a62213287f7f3fbf88b6368132f0dd1d9
softlab-ntua/bencherl
dn_cache_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/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/test/dn_cache_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 < > @doc Test suite for the dn_cache module . Created : 26 Aug 2010 by < > @version $ I d : dn_cache_SUITE.er...
c9970ddaa4954a4e2a8db98ea180cc032ab7dcabbf71e4dabb6a663ff2185458
danilkolikov/dfl
Explicit.hs
| Module : Frontend . Module . Export . Explicit Description : Processor for explicit exports Copyright : ( c ) , 2019 License : MIT Functions for processing explicit exports of a module Module : Frontend.Module.Export.Explicit Description : Processor for explicit exports C...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Module/Export/Explicit.hs
haskell
| Selects explicit exports of a module
| Module : Frontend . Module . Export . Explicit Description : Processor for explicit exports Copyright : ( c ) , 2019 License : MIT Functions for processing explicit exports of a module Module : Frontend.Module.Export.Explicit Description : Processor for explicit exports C...
e0cb00485cf0d2290edec1f566d77a38d298588766bb8b6069dbc7c0a403f8bb
mitchellwrosen/planet-mitchell
Word.hs
module Num.Word ( -- * Word Word , Word8 , Word16 , byteSwap16 , Word32 , byteSwap32 , Word64 , byteSwap64 ) where import GHC.Word (Word, Word16, Word32, Word64, Word8, byteSwap16, byteSwap32, byteSwap64)
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Num/Word.hs
haskell
* Word
module Num.Word Word , Word8 , Word16 , byteSwap16 , Word32 , byteSwap32 , Word64 , byteSwap64 ) where import GHC.Word (Word, Word16, Word32, Word64, Word8, byteSwap16, byteSwap32, byteSwap64)
b0741f229e39eadc411fbac59d42a5c1d52987d0f8df98a793902d664550c796
metosin/muuntaja
project.clj
(defproject metosin/muuntaja "0.6.8" :description "Clojure library for format encoding, decoding and content-negotiation" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url "" :dir "../.."} :plugins [[lein-parent "0.3.2"]] :parent-project {:...
null
https://raw.githubusercontent.com/metosin/muuntaja/83da35f35518aaa02ef4d1ca6bbd007b781ebf84/modules/muuntaja/project.clj
clojure
(defproject metosin/muuntaja "0.6.8" :description "Clojure library for format encoding, decoding and content-negotiation" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url "" :dir "../.."} :plugins [[lein-parent "0.3.2"]] :parent-project {:...
435ffaf31d9dda3e61d60037c0410b1e81937dedef3bba59a50360b47040f2ea
ninegua/lambda-viewer
prog-04.hs
Program that goes with " Learn You a Lambda , a Haskell Tutorial " , Chapter 4 . import Data.Char Datatype definition for lambda expression . data Term = Var Var | Lam Var Term | App Term Term data Var = V String Show instances for Var and Term . instance Show Var where show (V s) = s instance Show Term w...
null
https://raw.githubusercontent.com/ninegua/lambda-viewer/7ba426e6bb9def273374b9fb4b2b7e0255dcd66d/program/prog-04.hs
haskell
Program that goes with " Learn You a Lambda , a Haskell Tutorial " , Chapter 4 . import Data.Char Datatype definition for lambda expression . data Term = Var Var | Lam Var Term | App Term Term data Var = V String Show instances for Var and Term . instance Show Var where show (V s) = s instance Show Term w...
2b774c95a285ce6dc148cde0f6fb9f91ffca529ed4ec107bc091719ad5042cc5
philnguyen/soft-contract
kcfa3.rkt
; #lang racket (require soft-contract/fake-contract) ((λ (f1) (let ((a (f1 #t))) (f1 #f))) (λ (x1) ((λ (f2) (let ((b (f2 #t))) (f2 #f))) (λ (x2) ((λ (f3) (let ((c (f3 #t))) (f3 #f))) (λ (x3) ((λ (z) (z x1 x2 x3)) (λ (y1 y2 y3) y1))))))))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/sergey/kcfa3.rkt
racket
#lang racket (require soft-contract/fake-contract) ((λ (f1) (let ((a (f1 #t))) (f1 #f))) (λ (x1) ((λ (f2) (let ((b (f2 #t))) (f2 #f))) (λ (x2) ((λ (f3) (let ((c (f3 #t))) (f3 #f))) (λ (x3) ((λ (z) (z x1 x2 x3)) (λ (y1 y2 y3) y1))))))))
86296746e93cf7fae6f2474ea193a9cc3bb4124b13fd08a4e5bf9e1371e847a9
clash-lang/clash-compiler
T967a.hs
module T967a where import Clash.Prelude topEntity x = setName @"myRegister" (delay @System True x)
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Naming/T967a.hs
haskell
module T967a where import Clash.Prelude topEntity x = setName @"myRegister" (delay @System True x)
88fe50e09d395f4723592be526ddc52e1cc386a69931fc928451d7381896aba6
hellonico/origami-fun
colors.clj
(ns opencv4.colors (:require [opencv4.core :refer :all] [opencv4.utils :as u])) (def test-mat (new-mat 100 100 CV_8UC3)) (set-to test-mat (opencv4.colors.html/->scalar "#0068B7")) (u/show test-mat)
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/colors.clj
clojure
(ns opencv4.colors (:require [opencv4.core :refer :all] [opencv4.utils :as u])) (def test-mat (new-mat 100 100 CV_8UC3)) (set-to test-mat (opencv4.colors.html/->scalar "#0068B7")) (u/show test-mat)