_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
90116f0c7528b733510b5bcaac0e1d4b03ee2e916ea2e6bd5a32c79f05fae4c8
lemmih/lhc
CAF.hs
module Main where import LHC.Prim import LHC.Prelude hundred :: [Char] hundred = showInt 100 main :: IO () main = do putStr "hundred = " putStrLn hundred entrypoint :: () entrypoint = unsafePerformIO main
null
https://raw.githubusercontent.com/lemmih/lhc/53bfa57b9b7275b7737dcf9dd620533d0261be66/examples/CAF.hs
haskell
module Main where import LHC.Prim import LHC.Prelude hundred :: [Char] hundred = showInt 100 main :: IO () main = do putStr "hundred = " putStrLn hundred entrypoint :: () entrypoint = unsafePerformIO main
f07fdcfa7efffd060242e99c952500cb8ab799da352bd558f24b70384f110bf9
mgudarzi/CSC345
Prog4Test.hs
" Prog4Test.hs " - Test Cases for HW 4 - > Prog4.hs Last Edited : 17 OCT 2019 West Chester University CSC 345 - Programming Language Concepts / Paradigms - Fall 2019 Original format provided by : , distributed with permission . Authors : , , , and AUTHORS GIVE NO GUARANTEES THAT TEST CASES ARE ...
null
https://raw.githubusercontent.com/mgudarzi/CSC345/24d54e8a4408430d7355c0a62c7ced200c80e34b/Prog4Test.hs
haskell
" Prog4Test.hs " - Test Cases for HW 4 - > Prog4.hs Last Edited : 17 OCT 2019 West Chester University CSC 345 - Programming Language Concepts / Paradigms - Fall 2019 Original format provided by : , distributed with permission . Authors : , , , and AUTHORS GIVE NO GUARANTEES THAT TEST CASES ARE ...
c831cfd03be1c506f9f8201510c9adbdf2bc50d08100a87f1ddde9e7a201bd98
artyom-poptsov/guile-deck
third-party-identifier.scm
(use-modules (srfi srfi-64) (srfi srfi-26) (ice-9 regex) (oop goops) (deck core types third-party-identifier)) (define %test-name "third-party-identifier") (test-begin %test-name) (test-equal "alist->third-party-identifier" (make <third-party-identifier> ...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-deck/21c3fac88ec3e6814f229085a2597b515484166d/tests/third-party-identifier.scm
scheme
(use-modules (srfi srfi-64) (srfi srfi-26) (ice-9 regex) (oop goops) (deck core types third-party-identifier)) (define %test-name "third-party-identifier") (test-begin %test-name) (test-equal "alist->third-party-identifier" (make <third-party-identifier> ...
3f256c13e15f7c2864c82463b40283ab7c75116512d0f11acfca91827851a623
bldl/magnolisp
test-run-lifts-3.rkt
#lang magnolisp (require (only-in racket/base + =)) (require "lib-cxx-runner.rkt") (define (main3 x) #:: (export [type (-> int int)]) (define y 1) ;; copy propagation cannot deal with this since these assignments get a different value number (if (non-zero? x) (set! y x) (set! y x)) y) = > 7 (fu...
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/test-run-lifts-3.rkt
racket
copy propagation cannot deal with this since these assignments get a different value number
#lang magnolisp (require (only-in racket/base + =)) (require "lib-cxx-runner.rkt") (define (main3 x) #:: (export [type (-> int int)]) (define y 1) (if (non-zero? x) (set! y x) (set! y x)) y) = > 7 (function (run) #:: (export [type (-> Void)] [expected 7]) (put-int (main3 7))) (run)
9dec89a4bf61ddd06e28ff8238be98f6be7dc103a8a917f6d0e77a48ab32a35c
bobatkey/sott
static.ml
module AttributeMap = Map.Make (String) type attributes = string AttributeMap.t type element_name = string type node = | Void_element of element_name * attributes | Normal_element of element_name * attributes * node | RawText_element of element_name * attributes * string | Esca...
null
https://raw.githubusercontent.com/bobatkey/sott/233a5b23982c02d2435d645c7274edfe44fc248d/html5/static.ml
ocaml
******************************************************************** Rendering FIXME: escaping ******************************************************************** ******************************************************************** ******************************************************************** **************...
module AttributeMap = Map.Make (String) type attributes = string AttributeMap.t type element_name = string type node = | Void_element of element_name * attributes | Normal_element of element_name * attributes * node | RawText_element of element_name * attributes * string | Esca...
63b26c6bf6c5a0a851fe158a02e39b8be370d6fe2b11e9b0df4de10ddda0376f
xh4/web-toolkit
launch-program.lisp
;;;; ------------------------------------------------------------------------- ;;;; launch-program - semi-portably spawn asynchronous subprocesses (uiop/package:define-package :uiop/launch-program (:use :uiop/common-lisp :uiop/package :uiop/utility :uiop/pathname :uiop/os :uiop/filesystem :uiop/stream) (:export...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/uiop-3.3.3/launch-program.lisp
lisp
------------------------------------------------------------------------- launch-program - semi-portably spawn asynchronous subprocesses Escaping the command invocation madness launch-program ----- Escaping strings for the shell ----- -us/library/bb776391(v=vs.85).aspx -us/library/17w5ykft(v=vs.85).aspx The pr...
(uiop/package:define-package :uiop/launch-program (:use :uiop/common-lisp :uiop/package :uiop/utility :uiop/pathname :uiop/os :uiop/filesystem :uiop/stream) (:export #:easy-sh-character-p #:escape-sh-token #:escape-sh-command #:escape-windows-token #:escape-windows-command #:escape-shell-token #:escape...
435c78ad4b088b7570cd21e245c4683129f594cf8914e65c14a7e14b13b0f308
korya/efuns
recvalues.ml
(* Recursive value definitions *) let _ = let rec x = 1 :: x in if match x with 1 :: x' -> x == x' | _ -> false then print_string "Test 1: passed\n" else print_string "Test 1: FAILED\n"; let one = 1 in let rec y = (one, one+1) :: y in if match y with (1,2) :: y' -> y == y' | _ -...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/perf/Moretest/recvalues.ml
ocaml
Recursive value definitions Trash the minor generation
let _ = let rec x = 1 :: x in if match x with 1 :: x' -> x == x' | _ -> false then print_string "Test 1: passed\n" else print_string "Test 1: FAILED\n"; let one = 1 in let rec y = (one, one+1) :: y in if match y with (1,2) :: y' -> y == y' | _ -> false then print_string "Test ...
f72af95a6763b1efbb4e3a81833573edb814862bbdcaeff5e464e873e0450793
avsm/melange
spl_location.ml
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/melange/e92240e6dc8a440cafa91488a1fc367e2ba57de1/tools/spl/spl_location.ml
ocaml
Keep track of our location
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
30b484187282e4731cc9fcf746f18ba2800d3bb87fbd7d0af9b4f19b077e1b5b
digital-asset/ghc
tcrun037.hs
# LANGUAGE ConstrainedClassMethods # module Main where class C a where op :: (Show a, Show b) => a -> b -> String -- This class op has local quantification, but -- also adds a constraint on 'a' instance C Bool where op x y = show x ++ " " ++ show y main = do { putStrLn (op True 'x'); putStrLn (o...
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_run/tcrun037.hs
haskell
This class op has local quantification, but also adds a constraint on 'a'
# LANGUAGE ConstrainedClassMethods # module Main where class C a where op :: (Show a, Show b) => a -> b -> String instance C Bool where op x y = show x ++ " " ++ show y main = do { putStrLn (op True 'x'); putStrLn (op False (3::Int)) }
08010778cb124fcf69df9c0819ab09e9d9c59b73c560b786fd40ea58e2717a85
geneweb/geneweb
perso.mli
$ I d : perso.mli , v 5.7 2007 - 03 - 30 18:57:19 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Gwdb open Config type generation_person = | GP_person of Sosa.t * iper * ifam option | GP_same of Sosa.t * Sosa.t * iper | GP_interv of (Sosa.t * Sosa.t * (Sosa.t * Sosa.t) option) option | GP_missing of Sos...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/perso.mli
ocaml
* Displays the HTML page of a person * Displays the ascendants of the selected person * Displays links to pages associated to the person
$ I d : perso.mli , v 5.7 2007 - 03 - 30 18:57:19 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Gwdb open Config type generation_person = | GP_person of Sosa.t * iper * ifam option | GP_same of Sosa.t * Sosa.t * iper | GP_interv of (Sosa.t * Sosa.t * (Sosa.t * Sosa.t) option) option | GP_missing of Sos...
8aa3d3ed4c6f5915dbb6fd4eea181f93acac20b29e12fd3b20c39fbe2fc6a510
vaclavsvejcar/headroom
VariablesSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # module Headroom.VariablesSpec ( spec ) where import Headroom.Template.Mustache (Mustache) import Headroom.Types (CurrentYear (..)) import Headroom.Variables import Headroom.Variables.Types (Variables (..)) import R...
null
https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/test/Headroom/VariablesSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # module Headroom.VariablesSpec ( spec ) where import Headroom.Template.Mustache (Mustache) import Headroom.Types (CurrentYear (..)) import Headroom.Variables import Headroom.Variables.Types (Variables (..)) import RIO import qualified RIO.HashMap as ...
755f1afdf74c4bcc673cd3bbd1cd75fcaff91200b0a2a9f6de469aab3b3295ba
logseq/logseq
notification.cljs
(ns frontend.handler.notification "Provides notification related functionality" (:require [frontend.state :as state] [frontend.util :as util])) (defn clear! [uid] (let [contents (state/get-notification-contents)] (state/set-state! :notification/contents (dissoc contents uid)))) (defn clear-all...
null
https://raw.githubusercontent.com/logseq/logseq/f90e8ee7d59eae489e767ed5e2e02559c252f925/src/main/frontend/handler/notification.cljs
clojure
(ns frontend.handler.notification "Provides notification related functionality" (:require [frontend.state :as state] [frontend.util :as util])) (defn clear! [uid] (let [contents (state/get-notification-contents)] (state/set-state! :notification/contents (dissoc contents uid)))) (defn clear-all...
4e2789a285bb14a3eaaf8fe7c3e1a74314d2474b64b705ce0fd3d4bc6c345a75
emqx/emqx
emqx_pd_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2018 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/test/emqx_pd_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2018 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_pd_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eunit...
33c4828a1136158e3a670c192eebfe612e98caae542429a60ab08f55138a535f
dlesl/erqwest
server.erl
-module(server). -export([ listen/0 , accept/1 , read/1 , read/2 , read_silent/2 , reply/2 , send/2 , close/1 , wait_for_close/1 ]). listen() -> {ok, LSock} = gen_tcp:listen(0, [binary, {packet, raw}, {active, false}]), {ok, Port} = inet:port...
null
https://raw.githubusercontent.com/dlesl/erqwest/afe7a984a51531687a1ca2540c1310a7bb65d9a5/test/server.erl
erlang
-module(server). -export([ listen/0 , accept/1 , read/1 , read/2 , read_silent/2 , reply/2 , send/2 , close/1 , wait_for_close/1 ]). listen() -> {ok, LSock} = gen_tcp:listen(0, [binary, {packet, raw}, {active, false}]), {ok, Port} = inet:port...
f27eee5e049d88c2e69da80006a2aee04355fb73985cf8885db2d55b19ca4094
zachjs/sv2v
Logic.hs
sv2v - Author : < > - - Conversion from ` logic ` to ` wire ` or ` reg ` - - We convert a module - level logic to a reg if it is assigned to in an always or - initial block . Other module - level logics become wires . All other logics - ( i.e. , in a function ) become regs . - - Paramete...
null
https://raw.githubusercontent.com/zachjs/sv2v/f68bf187afa83da1a6f2349eb51d2a2267e472b4/src/Convert/Logic.hs
haskell
write down which vars are procedurally assigned rewrite reg continuous assignments and output port connections rewrite bad continuous assignments to use procedural assignments rewrite port bindings to use temporary nets where necessary ignore the timing LHSs
sv2v - Author : < > - - Conversion from ` logic ` to ` wire ` or ` reg ` - - We convert a module - level logic to a reg if it is assigned to in an always or - initial block . Other module - level logics become wires . All other logics - ( i.e. , in a function ) become regs . - - Paramete...
1c26e09f522dd8b6946e1c074820fa7de3170edc980ff21a293f8fdb74bced96
davebryson/erlang_websocket
basic_websocket.erl
%% %% Simple Echo example @author [ ] %% -module(basic_websocket). -export([start/1, stop/0, loop/1]). start(Options) -> Loop = fun (WebSocket) -> ?MODULE:loop(WebSocket) end, mochiweb_websocket:start([{name, ?MODULE}, {loop, Loop} | Options]). stop() -> mochiweb_websoc...
null
https://raw.githubusercontent.com/davebryson/erlang_websocket/435e2dd8d2a558b539e7bc1a9c4e3eddbdda3a82/examples/basic/src/basic_websocket.erl
erlang
Simple Echo example Get the data sent from the client Our example... On initial connect we get this message Other messages go here
@author [ ] -module(basic_websocket). -export([start/1, stop/0, loop/1]). start(Options) -> Loop = fun (WebSocket) -> ?MODULE:loop(WebSocket) end, mochiweb_websocket:start([{name, ?MODULE}, {loop, Loop} | Options]). stop() -> mochiweb_websocket:stop(?MODULE). loop(Web...
7d7d491a0ceaaf2b814944e4d00cf41b05ed370808d7f206412ce5e67ce27512
ucsd-progsys/liquidhaskell
Proves.hs
{-@ LIQUID "--higherorder" @-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE TypeFamilies # {-# LANGUAGE IncoherentInstances #-} module Proves ( (==:), (<=:), (<:), (>:) , (==?) , (==.), (<=.), (<.), (>.), (>=.) --...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/benchmarks/popl18/lib/Proves.hs
haskell
@ LIQUID "--higherorder" @ # LANGUAGE FlexibleContexts # # LANGUAGE IncoherentInstances # Function Equality | proof operators requiring proof terms | proof operators with optional proof terms provide the proof terms after ? @ measure proofBool :: Proof -> Bool @ | proof goes from Int to resolve types f...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # module Proves ( (==:), (<=:), (<:), (>:) , (==?) , (==.), (<=.), (<.), (>.), (>=.) , Arg , (=*=:) , (?), (∵), (***) , (==>), (&&&) , proof, toProof, simpleProof , QED(..) , Proof ...
59af22b9ae9d81a2bc23da7a4fd3d246b338f102b2ae45216114a8006e7edb95
erlang/otp
erl_prim_loader.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/erts/preloaded/src/erl_prim_loader.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , A primary loader , provides two different methods to fetch a file : The start_it/4 function initializes a record...
7894f6e02bed535cf17f891187fa376a87aeda81c833605825fc5c290c156022
LukaKurnjek/plutus-pioneer-program-book
Deploy.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Week03.Deploy ( writeJSON , writeValidator , writeUnit , writeVestingValidator ) where import Cardano.Api import Cardano.Api.Shelley (PlutusScript (..)) import Codec.Serialise (serialise...
null
https://raw.githubusercontent.com/LukaKurnjek/plutus-pioneer-program-book/0e69b2719dc7412a412a546825a002be5209e733/code/week03/src/Week03/Deploy.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # module Week03.Deploy ( writeJSON , writeValidator , writeUnit , writeVestingValidator ) where import Cardano.Api import Cardano.Api.Shelley (PlutusScript (..)) import Codec.Serialise (serialise) import Data.Aeson ...
b17dab21c1c27870a3a75a586f18a86e0662b23dc34061cbd960ec725df67024
aws-beam/aws-erlang
aws_api_pricing.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . %% @doc AWS Price List Service API (AWS Price List Service) is a centralized and convenient way to programmatically query Amazon Web Services for %% services, products, and pricing information. %% The AWS Price List Service us...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/6d397ab64649fbde8b5e57a5c2c22d007ce54e65/src/aws_api_pricing.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! @doc AWS Price List Service API (AWS Price List Service) is a centralized services, products, and pricing information. `Location', `Storage Class', and `Operating System', and provides prices control and scenario planning tools, reconcile billing data, forecast future s...
See -beam/aws-codegen for more details . and convenient way to programmatically query Amazon Web Services for The AWS Price List Service uses standardized product attributes such as at the SKU level . You can use the AWS Price List Service to build cost all AWS services , then ` GetServices ' with a service ...
67b46af77e97d1a4dee22bf961866eb7a94d53528291aa8a3d3c5cbd97e0cf8b
fulcrologic/semantic-ui-wrapper
ui_message_item.cljc
(ns com.fulcrologic.semantic-ui.collections.message.ui-message-item (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$MessageItem" :as MessageItem]))) (def ui-message-item "A message list can contain an item. Props: - as (elementType): An element type to re...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/collections/message/ui_message_item.cljc
clojure
(ns com.fulcrologic.semantic-ui.collections.message.ui-message-item (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$MessageItem" :as MessageItem]))) (def ui-message-item "A message list can contain an item. Props: - as (elementType): An element type to re...
2d2380bd09dc82539ae0e932268466c3ea98583552d1c91293c0e070cc8d9508
spechub/Hets
NuSmvLtl.hs
| Module : ./Temporal / NuSmvLtl.hs Copyright : ( c ) , Uni Bremen 2008 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable Module : ./Temporal/NuSmvLtl.hs Copyright : (c) Klaus Hartke, Uni Bremen 2008 Lice...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Temporal/NuSmvLtl.hs
haskell
---------------------------------------------------------------------------- LTL Specifications ---------------------------------------------------------------------------- logical not logical and logical or logical exlusive or logical implies logical equivalence Future next state globally ...
| Module : ./Temporal / NuSmvLtl.hs Copyright : ( c ) , Uni Bremen 2008 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable Module : ./Temporal/NuSmvLtl.hs Copyright : (c) Klaus Hartke, Uni Bremen 2008 Lice...
fea9b2e5a9c096da3084f75673148e4a999f63bf131b8a0cfcb2940827930340
rabbitmq/rabbitmq-trust-store
config_schema_SUITE.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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(config_schema_SUITE). -compile(export_al...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-trust-store/b6a0cb779ae8d2efd58e66c9e291b54ab82322fa/test/config_schema_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- ------------------------------------------------------------------- Testcases. -------------------------------------------------------------------
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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(config_schema_SUITE). -compile(export_all). a...
9e468afb0f175afdb88c2b51132eed6a90c1e94b755ab63497fe78e48b0d7f59
snowleopard/alga
Network.hs
# LANGUAGE TypeFamilies # ----------------------------------------------------------------------------- -- | -- Module : Algebra.Graph.Labelled.Example.Network Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) -- Maintainer : -- Stability : experimental -- -- __Alga__ is a library f...
null
https://raw.githubusercontent.com/snowleopard/alga/399b5dc538a2496b67f9322dc7247e06a4ec326b/src/Algebra/Graph/Labelled/Example/Network.hs
haskell
--------------------------------------------------------------------------- | Module : Algebra.Graph.Labelled.Example.Network Maintainer : Stability : experimental __Alga__ is a library for algebraic construction and manipulation of graphs motivation behind the library, the underlying theory, and implement...
# LANGUAGE TypeFamilies # Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) in Haskell . See < -paper this paper > for the module Algebra.Graph.Labelled.Example.Network where import Algebra.Graph.Labelled data City = Aberdeen | Edinburgh | Glasgow | Londo...
ba7fa14eb9955d25f5922570896b550e491015bfb79d00cbac1f110a0ff90a1b
cxphoe/SICP-solutions
3.48.rkt
(load "mutex.rkt") (define (make-serial-number) (let ((serial-number 10000)) (define (make-account balance) (let ((id serial-number)) (set! serial-number (+ serial-number 1)) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) ...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/4.Concurrence/3.48.rkt
racket
exchange test
(load "mutex.rkt") (define (make-serial-number) (let ((serial-number 10000)) (define (make-account balance) (let ((id serial-number)) (set! serial-number (+ serial-number 1)) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) ...
8325b4001e53afe79de0a1778616838c427309ae0822dca72e1b75bfda40148f
goldfirere/video-resources
Equal.hs
# LANGUAGE PartialTypeSignatures , TypeFamilies , ScopedTypeVariables # module Equal where outer :: forall q. Num q => q -> [q] outer x = inner 5 where -- inner :: (q ~ t) => t -> [q] inner y = [x, y] -- x :: q -- y :: alpha -- [W] alpha ~ q
null
https://raw.githubusercontent.com/goldfirere/video-resources/49fd0e2c3a74e9bed6221e6896990a4d67822cf9/2021-07-13-generalization/Equal.hs
haskell
inner :: (q ~ t) => t -> [q] x :: q y :: alpha [W] alpha ~ q
# LANGUAGE PartialTypeSignatures , TypeFamilies , ScopedTypeVariables # module Equal where outer :: forall q. Num q => q -> [q] outer x = inner 5 where inner y = [x, y]
1d338cb1398694db30fc16830fc9448fbadbd50db8a70491109e72f99eba1c31
ocaml-community/obus
oBus_bus.ml
* oBus_bus.ml * ----------- * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_bus.ml * ----------- * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implement...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/src/protocol/oBus_bus.ml
ocaml
+-----------------------------------------------------------------+ | Local properties | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ | Message bus creation ...
* oBus_bus.ml * ----------- * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_bus.ml * ----------- * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implement...
019c867ade0ae43650adcae287da01ae0836f4ac74799f528f483e28cda79bf8
renatoalencar/milho-ocaml
environment.ml
exception Variable_not_found of string type t = (string, Value.t) Hashtbl.t list let init () = let builtin = let tbl = Hashtbl.create 10 in Hashtbl.add tbl "+" (Value.Function Milho_core.sum); Hashtbl.add tbl "-" (Value.Function Milho_core.sub); Hashtbl.add tbl "*" (Value.Function Milho_core.m...
null
https://raw.githubusercontent.com/renatoalencar/milho-ocaml/9e0f75e3d531f927851604631dca453ee814949b/environment.ml
ocaml
exception Variable_not_found of string type t = (string, Value.t) Hashtbl.t list let init () = let builtin = let tbl = Hashtbl.create 10 in Hashtbl.add tbl "+" (Value.Function Milho_core.sum); Hashtbl.add tbl "-" (Value.Function Milho_core.sub); Hashtbl.add tbl "*" (Value.Function Milho_core.m...
f3cace6da7c05e0ce3714aab197a20c91b843fb08925e7d601815ad237978a53
Zulu-Inuoe/seq
hash-table-tests.lisp
(defpackage #:com.inuoe.seqio-tests.hash-table-tests (:use #:cl #:com.inuoe.seqio #:com.inuoe.seqio-tests) (:import-from #:fiveam #:def-suite #:in-suite #:test) (:export ;;; Test suites #:seqio.hash-table)) (in-package #:com.inuoe.seqio-tests) (def-suite seqio.hash-table :descriptio...
null
https://raw.githubusercontent.com/Zulu-Inuoe/seq/504dd97594b89afcf95ebcd8f4543dc1a0519e4b/t/seqio/hash-table-tests.lisp
lisp
Test suites
(defpackage #:com.inuoe.seqio-tests.hash-table-tests (:use #:cl #:com.inuoe.seqio #:com.inuoe.seqio-tests) (:import-from #:fiveam #:def-suite #:in-suite #:test) (:export #:seqio.hash-table)) (in-package #:com.inuoe.seqio-tests) (def-suite seqio.hash-table :description "Tests for seqio ...
770a61abbaf3eaff8fedaa79bbbef82a01878a282e6fce9bcf41161a075f7fc7
upgradingdave/cljs
dev.cljs
(ns up.img.resize.dev (:require [devcards.core :as dc] [reagent.core :as r] [goog.date :as dt] [up.img.resize.core :as resize] [up.html5 :as html5] ) (:require-macros [devcards.core :as dc :refer [defcard deftest defcard-doc]] [cljs.test :re...
null
https://raw.githubusercontent.com/upgradingdave/cljs/1026b6db905214586fb7e04800df078da19b37cc/src/cljs/up/img/resize/dev.cljs
clojure
(ns up.img.resize.dev (:require [devcards.core :as dc] [reagent.core :as r] [goog.date :as dt] [up.img.resize.core :as resize] [up.html5 :as html5] ) (:require-macros [devcards.core :as dc :refer [defcard deftest defcard-doc]] [cljs.test :re...
d6eeee2a1cd4cdaa9b33db058176786851df9acd0aa4d4e5a4a8851ccaf752e3
xh4/web-toolkit
common.lisp
(in-package :json) (defmacro let-gensyms ((&rest names) &body body) `(let ,(loop for name in names collect `(,name (gensym))) ,@body)) ;;; Custom variables (eval-when (:compile-toplevel :load-toplevel) (defvar *custom-vars* nil) (defmacro with-shadowed-custom-vars (&body body) `(let ,(loop for (var)...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/json/common.lisp
lisp
Custom variables
(in-package :json) (defmacro let-gensyms ((&rest names) &body body) `(let ,(loop for name in names collect `(,name (gensym))) ,@body)) (eval-when (:compile-toplevel :load-toplevel) (defvar *custom-vars* nil) (defmacro with-shadowed-custom-vars (&body body) `(let ,(loop for (var) in *custom-vars* ...
0952a7220d3d9f020189cd83f01b634f9f100552db12f2cc7b95d3b418f20920
kupl/LearnML
patch.ml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec test (lam : lambda) : (string * string) list = match lam with | V x -> [ ("v", x) ] | P (x, l) -> let lst : (string * string) list = test l in [ ("p", x) ] @ lst | C (l1, l2) -> let lst1 : (string ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/lambda/sub126/patch.ml
ocaml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec test (lam : lambda) : (string * string) list = match lam with | V x -> [ ("v", x) ] | P (x, l) -> let lst : (string * string) list = test l in [ ("p", x) ] @ lst | C (l1, l2) -> let lst1 : (string ...
3875960523186b795a17e3ca67a439ff17d6df0e08d31a0b678b801e122cd25e
leviroth/ocaml-reddit-api
relationship.ml
open! Core include Relationship_intf module Common = struct module Id = String include Json_object.Utils let relationship_id = required_field "rel_id" string let username = required_field "name" username let user_id = required_field "id" (string >> Thing.User.Id.of_string) let date = required_field "date"...
null
https://raw.githubusercontent.com/leviroth/ocaml-reddit-api/6519697a39d68d675c3c36fd54add8ba35e939f3/reddit_api_kernel/relationship.ml
ocaml
open! Core include Relationship_intf module Common = struct module Id = String include Json_object.Utils let relationship_id = required_field "rel_id" string let username = required_field "name" username let user_id = required_field "id" (string >> Thing.User.Id.of_string) let date = required_field "date"...
3cd69febbfe38d8d66567c207c3ec3c3c55c0711e4ea113dfb38ad742df8995a
metaocaml/ber-metaocaml
tast_iterator.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/tast_iterator.mli
ocaml
************************************************************************ OCaml ...
Isaac " " Copyright 2019 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Typedtree type iterator = { binding_op: iterator -> binding_op -> unit; case: 'k . iterator -> 'k ...
4511799cf41d17abff8cfa5446e4fab444717aee848fd28068111976b410689e
jserot/hocl
ir.ml
(**********************************************************************) (* *) This file is part of the HOCL package (* *) Copyright ( c ) 2019 - prese...
null
https://raw.githubusercontent.com/jserot/hocl/7ab1dba918e64c3cdbc446e5f2c0cba37181bccf/tools/pi2hcl/ir.ml
ocaml
******************************************************************** All rights reserved. ...
This file is part of the HOCL package Copyright ( c ) 2019 - present , ( ) . type key = string type value = string type node_desc = { n_id: string; n_name: string; n_kind: string; n_period: string; n_desc: string; n_ports: port_desc list; n_init_fn: st...
cd2e0d439bc53f8c25be2eaffcaaef47182cbd071eb36786c40fb21a578ed21e
openmusic-project/openmusic
treetempoeditor.lisp
;;=========================================================================== ;LW Score Editors ;Interface tools for score editing and inspection ;;=========================================================================== ;=========================================================================== ; This program i...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/64bf80647c71d1f863ef44fda8ef9e1db9c08062/OPENMUSIC/code/api/om-LW/editors/treetempoeditor.lisp
lisp
=========================================================================== LW Score Editors Interface tools for score editing and inspection =========================================================================== =========================================================================== This program is free so...
modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . Author : DocFile (in-package :om-e...
135e1d6a5d1cd5c5f8eea10b4e0fcacf842274a6cbac3f5d7fb449b7601ac4bc
HaskellEmbedded/data-stm32
Periph.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Data.Ivory.Periph where import Data.SVD.Types import Text.PrettyPrint.ANSI.Leijen hiding ((<$>)) import Data.Char (toLower, toUpper, isDigit) import Data.List (intersperse, isPrefixOf) import Data.Ivory.Pretty ppList pp x = vcat $ map pp x ppPe...
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/src/Data/Ivory/Periph.hs
haskell
# LANGUAGE OverloadedStrings # register definitions with constructors ++ show f) -- debug show
# LANGUAGE RecordWildCards # module Data.Ivory.Periph where import Data.SVD.Types import Text.PrettyPrint.ANSI.Leijen hiding ((<$>)) import Data.Char (toLower, toUpper, isDigit) import Data.List (intersperse, isPrefixOf) import Data.Ivory.Pretty ppList pp x = vcat $ map pp x ppPeriphRegs res = displayIvoryCompact ...
328b4331a34dbb42533ec9d14546503be845bd019d63c16426bfa1cf863c7a27
trivial-gray-streams/trivial-gray-streams
package.lisp
-*- Mode : LISP ; Base : 10 ; Syntax : ANSI - Common - lisp ; Package : CL - USER -*- (defpackage trivial-gray-streams-test (:use :cl #:trivial-gray-streams) (:shadow #:method) (:export #:run-tests #:failed-test-names))
null
https://raw.githubusercontent.com/trivial-gray-streams/trivial-gray-streams/2b3823edbc78a450db4891fd2b566ca0316a7876/test/package.lisp
lisp
Base : 10 ; Syntax : ANSI - Common - lisp ; Package : CL - USER -*-
(defpackage trivial-gray-streams-test (:use :cl #:trivial-gray-streams) (:shadow #:method) (:export #:run-tests #:failed-test-names))
fb009a923707955013d7b633a9d319019754dbe43b6d49407129b4e15ba0e938
ankushdas/Nomos
InOut.mli
module A = Ast val add_cost_exp : A.decl * A.ext -> unit
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/nomos/nomos-lib/InOut.mli
ocaml
module A = Ast val add_cost_exp : A.decl * A.ext -> unit
543793f5360cb19440c0be2843a5d33176faad7f6aca25b7d539e2ee9a1340be
emillon/dmqh
dmqh.ml
type tile = T2 | T4 | T8 | T16 | T32 | T64 | T128 | T256 | T512 | T1024 | T2048 let pr_tile = function | T2 -> "2" | T4 -> "4" | T8 -> "8" | T16 -> "16" | T32 -> "32" | T64 -> "64" | T128 -> "128" | T256 -> "256" | T512 -> "512" | T1024 -> "1024" | T2048 -> "2048" exception Win exception Lose l...
null
https://raw.githubusercontent.com/emillon/dmqh/889d3d900cb924e1363cbfe713cbbe5f2a251c9a/dmqh.ml
ocaml
type tile = T2 | T4 | T8 | T16 | T32 | T64 | T128 | T256 | T512 | T1024 | T2048 let pr_tile = function | T2 -> "2" | T4 -> "4" | T8 -> "8" | T16 -> "16" | T32 -> "32" | T64 -> "64" | T128 -> "128" | T256 -> "256" | T512 -> "512" | T1024 -> "1024" | T2048 -> "2048" exception Win exception Lose l...
9756cd682091771bdad84472cc07e59e183d8f6768069f72177b9c6b45a48e34
Eventuria/demonstration-gsd
GoalStats.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE DuplicateRecordFields # module Eventuria.GSD.Read.Model.GoalStats where import Data.Aeson data GoalStats = GoalStats {total :: Integer, accomplished :: Integer, toBeAccomplished :: Integer } deriving Show instance ToJSON GoalStats where to...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Read/Model/GoalStats.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE DuplicateRecordFields # module Eventuria.GSD.Read.Model.GoalStats where import Data.Aeson data GoalStats = GoalStats {total :: Integer, accomplished :: Integer, toBeAccomplished :: Integer } deriving Show instance ToJSON GoalStats where to...
c148ada4b66ce426fc97e09d698343514ce798d21b27be815f28f04fa3ee4763
wfnuser/sicp-solutions
e3-5.scm
(define (random-in-range low high) (let ((range (- high low))) (+ low (random range)))) (define (in-circle) (let ((x (random-in-range 0.0 1.0)) (y (random-in-range 0.0 1.0))) (if (< (+ (* x x) (* y y)) 1) #t #f) ) ) (define (monte-carlo trials experiment) (define (iter...
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch3/e3-5.scm
scheme
(define (random-in-range low high) (let ((range (- high low))) (+ low (random range)))) (define (in-circle) (let ((x (random-in-range 0.0 1.0)) (y (random-in-range 0.0 1.0))) (if (< (+ (* x x) (* y y)) 1) #t #f) ) ) (define (monte-carlo trials experiment) (define (iter...
b282241b5a5f7e2b5ec5f91c8cd38ba9c0af62f253b62eec713e0132e1891b2a
coq/coq
modintern.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/284b7133ff792dab82c658a274db0c5e0a04d2d5/interp/modintern.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
ec664a68c7f909e2326a197ce234b91b6aede1f7a3d0ccf5edd2ba2d6cb428ce
gsakkas/rite
3173.ml
let pipe fs = let f a x = a + x in let base = f in List.fold_left f base fs;; fix let pipe fs = let f a x = x in let base x = x in List.fold_left f base fs ; ; let pipe fs = let f a x = x in let base x = x in List.fold_left f base fs;; *) changed spans ( 2,27)-(2,32 ) x VarG ( 2,47)-(2,48 ) f...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3173.ml
ocaml
let pipe fs = let f a x = a + x in let base = f in List.fold_left f base fs;; fix let pipe fs = let f a x = x in let base x = x in List.fold_left f base fs ; ; let pipe fs = let f a x = x in let base x = x in List.fold_left f base fs;; *) changed spans ( 2,27)-(2,32 ) x VarG ( 2,47)-(2,48 ) f...
567a61f48b12a9c488bb8569e148972c04b8e99d4106d7a76933e2736a980624
mbutterick/beautiful-racket
HalfAdder.hdl.rkt
#lang hdl-demo CHIP HalfAdder { // 1 - bit inputs OUT sum, // Right bit of a + b carry; // Left bit of a + b PARTS: Xor(a=a, b=b, out=sum); And(a=a, b=b, out=carry); }
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/hdl-demo/HalfAdder.hdl.rkt
racket
// Left bit of a + b
#lang hdl-demo CHIP HalfAdder { // 1 - bit inputs OUT sum, // Right bit of a + b PARTS: }
15a1f82775f46fa8d2dfefa50c3d2a3100a225ac0414ddc8f313853c339e2864
Practical-Formal-Methods/adiff
Main.hs
MIT License -- Copyright ( c ) 2018 -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, merge, pu...
null
https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/adiff/app/adiff-run-package/Main.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice...
MIT License Copyright ( c ) 2018 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS...
f29d33734b0999b454f816ded95b17cd5c2ea6d9a2cd9abea16ba99c49e2c10e
colah/FormatParser
Text.hs
module Text.FormatParser (whitespace, char, digit, int) where import Text.FormatParser.Definitions import Text.FormatParser.Primitives whitespace :: FormatParser [Char] a String whitespace = const " " =|= many (oneOf " \t\n") char :: Char -> FormatParser [Char] a Char char c = const c =|= oneOf [c] digit = oneOf "...
null
https://raw.githubusercontent.com/colah/FormatParser/2d9c4f5aa9bcf94d2a814b03a9832497184b4f32/Text/FormatParser/Text.hs
haskell
module Text.FormatParser (whitespace, char, digit, int) where import Text.FormatParser.Definitions import Text.FormatParser.Primitives whitespace :: FormatParser [Char] a String whitespace = const " " =|= many (oneOf " \t\n") char :: Char -> FormatParser [Char] a Char char c = const c =|= oneOf [c] digit = oneOf "...
c1faa26664e24f1a5e4d263734a23280550d84280fc0b740214419f6f448c58d
garrigue/labltk
jg_completion.mli
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/garrigue/labltk/c7f50b4faed57f1ac03cb3c9aedc35b10d36bdb6/browser/jg_completion.mli
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ val compare_string : ?nocase:...
20e758e2b7ca12370864e5d757e59b26bdc3dadf58f22b9e70cb7a69b105b04c
hoplon/brew
embedded.cljs
(ns hoplon.embedded (:require [hoplon.core :as h] [javelin.core :as j])) (defmulti h/do! :mount [elem _ v] (let [mount (js/jQuery v)] (.append mount elem)))
null
https://raw.githubusercontent.com/hoplon/brew/08d520fc43a14180dd52955af48dae63d0065add/src/hoplon/embedded.cljs
clojure
(ns hoplon.embedded (:require [hoplon.core :as h] [javelin.core :as j])) (defmulti h/do! :mount [elem _ v] (let [mount (js/jQuery v)] (.append mount elem)))
95af9978c62eaad7c4016425f99831491073bb6d9cea26264c0411fda924f418
carl-eastlund/dracula
acl2-top.rkt
#lang racket (require "do-check.rkt" (for-syntax "syntax-checks.rkt")) (provide (rename-out [acl2-top #%top])) (define-syntax (acl2-top stx) (syntax-case stx () [(_ . keyword) (keyword-syntax? #'keyword) (syntax/loc stx (#%datum . keyword))] [(_ . top) (syntax/loc stx (#%top . top))]))
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/lang/acl2-top.rkt
racket
#lang racket (require "do-check.rkt" (for-syntax "syntax-checks.rkt")) (provide (rename-out [acl2-top #%top])) (define-syntax (acl2-top stx) (syntax-case stx () [(_ . keyword) (keyword-syntax? #'keyword) (syntax/loc stx (#%datum . keyword))] [(_ . top) (syntax/loc stx (#%top . top))]))
cca5554b6d1b474fe42b6bb67a49fd012debf244a2b30f74abd8d5c36f5e892d
ftovagliari/ocamleditor
task_console.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/task_console.ml
ocaml
Disconnect previous callback assiciated with button_run and connect with a new one. task_kind, `RUN, play "error.wav"; play "success.wav"; * Process start * Print command line try * Thread looping over the standard output of the process * Thread looping over the standard error of the process Links pl b...
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
085e53170e723a659c25075ccec2d76ee553aed9d07ab32778b0cb1785438ae1
igorhvr/bedlam
srfi-78.scm
(require-library 'sisc/libs/srfi/srfi-23) (require-library 'sisc/libs/srfi/srfi-42) (define-interface srfi-78-exports (check check-ec check-report check-set-mode! check-reset! check-passed?)) (define-interface srfi-78-implicit-exports (check:mode check:proc check-ec:make check:proc-ec)) (...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-cvs/src/sisc/libs/srfi/srfi-78.scm
scheme
the following really shouldn't be exported, but because comprehensions assume generators are macros in their own right we need to do this.
(require-library 'sisc/libs/srfi/srfi-23) (require-library 'sisc/libs/srfi/srfi-42) (define-interface srfi-78-exports (check check-ec check-report check-set-mode! check-reset! check-passed?)) (define-interface srfi-78-implicit-exports (check:mode check:proc check-ec:make check:proc-ec)) (...
0166b13aa3770f996c9dd4c7114648370b18060a13dc53a552cf73acb90c7346
kindista/kindista
people.lisp
Copyright 2012 - 2018 CommonGoods Network , Inc. ;;; This file is part of Kindista . ;;; Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at you...
null
https://raw.githubusercontent.com/kindista/kindista/60da1325e628841721200aa00e4de5f9687c0adb/src/features/people.lisp
lisp
(at your option) any later version. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. to monitor mystery bug that occasionally records these values incorrectly index fb-id's even when :fb-link-active is nil so...
Copyright 2012 - 2018 CommonGoods Network , Inc. This file is part of Kindista . Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or Kindista is distr...
3e2649f40472c8a4056e0c76aa74666a55bfc315f991801b5bab2ed347fb68f6
deadtrickster/cl-events
base.lisp
(in-package :cl-events) (defgeneric invoke-executor (executor sink args))
null
https://raw.githubusercontent.com/deadtrickster/cl-events/2fdec2dbdef8ba2144139b27a7350d4cedc011a1/src/executors/base.lisp
lisp
(in-package :cl-events) (defgeneric invoke-executor (executor sink args))
b15db9eb82a5ec96ea0f96913f5239341ba43d5ce6f0be9a59c771f9a6811b98
bazurbat/chicken-scheme
specialization-test-2.scm
;;;; specialization-test-2.scm (module main () (import scheme chicken foreign foo) ; note: does not load foo! #> static int inlined(int i) { static int n = 0; n += i; return n;} <# (assert (= 1 (bar 1))) ) # 855 : second walk of arguments after specialization of call to " zero ? " ;; applies enforced typ...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/tests/specialization-test-2.scm
scheme
specialization-test-2.scm note: does not load foo! } applies enforced type-assumption for argument "y" to "string-length" to call to "string-length" itself be applied.
(module main () #> static int inlined(int i) { <# (assert (= 1 (bar 1))) ) # 855 : second walk of arguments after specialization of call to " zero ? " (define (bug855 x) (let ((y (car x))) (zero? (string-length y)))) (assert (handle-exceptions ex #t (bug855 '(#f)) #f)) # 1219 : Specializations from ...
1096f3d9d2f48906330bfec5229ad3fbfaadc5d78efac2c39b58df93fd17f1df
wwezhuimeng/kazoo
stress_mgr.erl
@author < > 2012 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/wwezhuimeng/kazoo/06a15811dbf123ae1601dc7a4ced956a7e04f58a/deps/socketio-0.1.0/stress/src/stress_mgr.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 governing permi...
@author < > 2012 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(stress_mgr). -author('Kirill Trofimov <>'). -behaviour(gen_server). -export([start_link/0, inc_fail_count/0, get_stats/0, inc_init_count/0, i...
cdb8a1ae686449d9cbad0b7ace2495b21cb8fc8c8d64a01f9526c2dbd1dc8dbd
geo2a/redfin-lib
Parser.hs
| Module : ISA.Types . Parser Copyright : ( c ) 2021 License : MIT ( see the file LICENSE ) Maintainer : Stability : experimental A parser infrastructure via Megaparsec Module : ISA.Types.Parser Copyright : (c) Georgy Lukyanov 2021 License : MIT (see the file LICENSE) ...
null
https://raw.githubusercontent.com/geo2a/redfin-lib/8e4a477ba261dadb83a6d4fbd2dd379418840ed3/src/ISA/Types/Parser.hs
haskell
* parsing monad ** lexing ------------------------------------------------------------------------------ | Skip spaces
| Module : ISA.Types . Parser Copyright : ( c ) 2021 License : MIT ( see the file LICENSE ) Maintainer : Stability : experimental A parser infrastructure via Megaparsec Module : ISA.Types.Parser Copyright : (c) Georgy Lukyanov 2021 License : MIT (see the file LICENSE) ...
42b3673ed699a875d528adb3149bcfd5ebd905a62cfcfd34c40449313825aefa
bugczw/Introduction-to-Functional-Programming-in-OCaml
W0_S4.ml
GRADING ENVIRONMENT ( TEST - BED ) ( 40/40 points ) In this test - bed exercise you are asked to ( re)implement the basic integer - arithmetic functions . Write a function plus of type int - > int - > int . Write a function minus of type int - > int - > int . Write a function times of type int - > int - > ...
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W0_ALL/Exercise/W0_S4.ml
ocaml
Some code is loaded in the toplevel before your code.
GRADING ENVIRONMENT ( TEST - BED ) ( 40/40 points ) In this test - bed exercise you are asked to ( re)implement the basic integer - arithmetic functions . Write a function plus of type int - > int - > int . Write a function minus of type int - > int - > int . Write a function times of type int - > int - > ...
83d010251704965353613f67621b3e3fc240e1afb04beae92aa0a65318cbd199
green-labs/gosura
relay.clj
(ns gosura.helpers.relay (:require [camel-snake-kebab.core :as csk] [clojure.string] [gosura.schema :as gosura-schema] [gosura.util :refer [stringify-ids]] [malli.core :as m] [ring.util.codec :refer [base64-decode base64-encode]] [taoensso.nippy ...
null
https://raw.githubusercontent.com/green-labs/gosura/63b73200a0c8354df297b1b44fd47b51e0520747/src/gosura/helpers/relay.clj
clojure
order-by가 :id로 들어오면 :db-id로 우회시켜 줘야 함 커서 이전 행들을 제거 커서 행을 제거 ASC/DESC -> asc/desc
(ns gosura.helpers.relay (:require [camel-snake-kebab.core :as csk] [clojure.string] [gosura.schema :as gosura-schema] [gosura.util :refer [stringify-ids]] [malli.core :as m] [ring.util.codec :refer [base64-decode base64-encode]] [taoensso.nippy ...
bd827dbcd8adf143d95f0e9d64029340fee4a4da49c5971ef4155dd3e7bcff88
acieroid/scala-am
count7.scm
(letrec ((i 100) (thread (lambda (n) (if (<= i 0) #t (begin (set! i (- i 1)) (thread n))))) (t1 (future (thread 1))) (t2 (future (thread 2))) (t3 (future (thread 3))) (t4 (future (thread 4))) (t5 (future (threa...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/futures/variations/count7.scm
scheme
(letrec ((i 100) (thread (lambda (n) (if (<= i 0) #t (begin (set! i (- i 1)) (thread n))))) (t1 (future (thread 1))) (t2 (future (thread 2))) (t3 (future (thread 3))) (t4 (future (thread 4))) (t5 (future (threa...
da531c04fe41602530dfa17cc06833588dee0b2ce4b7566c084d3d0d390e3ffb
input-output-hk/cardano-sl
Util.hs
# LANGUAGE RecordWildCards # -- | Module for command-line utilites, parsers and convenient handlers. module Pos.Client.CLI.Util ( attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser ) where import Universum import ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/lib/src/Pos/Client/CLI/Util.hs
haskell
| Module for command-line utilites, parsers and convenient handlers. | Default logger config. Will be used if `--log-config` argument is not passed. | Reads logger config from given path. By default returns 'defaultLoggerConfig'.
# LANGUAGE RecordWildCards # module Pos.Client.CLI.Util ( attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser ) where import Universum import Text.Megaparsec (Parsec) import qualified Text.Megaparsec as P ...
baf5476262afff492fb9d79c7866e65ac105fac9c62d2d8e66341fd60221ae7b
DavidGregory084/il2ssd
init.clj
;; # # UI initialisation functions ;; ;; In this namespace we define the functions which instantiate any objects that ;; we need and initialise the objects we retrieve using afterburner.fx into data structures which we can more easily manipulate in Clojure . (ns uk.org.il2ssd.jfx.init (:require [clojure....
null
https://raw.githubusercontent.com/DavidGregory084/il2ssd/d6baa5ff38f79878cd1921eaa4c494f2f9322557/src/clojure/uk/org/il2ssd/jfx/init.clj
clojure
In this namespace we define the functions which instantiate any objects that we need and initialise the objects we retrieve using afterburner.fx into data Main FXML file controls Console Tab FXML file controls Pilots Tab FXML file controls Ban List FXML file controls Mission Cycle FXML file controls Settin...
# # UI initialisation functions structures which we can more easily manipulate in Clojure . (ns uk.org.il2ssd.jfx.init (:require [clojure.java.io :refer [resource]] [clojure.edn :as edn] [uk.org.il2ssd.event.bans :as bans] [uk.org.il2ssd.event.console :as console] ...
be240aad435b7877dca98e2a00bf4b3367fd4daf0a978af7ef7353b8c072a684
haskell-servant/servant
Generic.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # module Servant.Client.Generic ( AsClientT, genericClient, genericClientHoist,...
null
https://raw.githubusercontent.com/haskell-servant/servant/1bb0282abc4d31e155471ebf90e0eb37cffc4bf6/servant-client-core/src/Servant/Client/Generic.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # | Generate a record of client functions. | 'genericClient' but with 'hoistClientMonad' in between. ^ natural transformation
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # module Servant.Client.Generic ( AsClientT, genericClient, genericClientHoist, ) where import Data.Proxy (Proxy (..)) import Servant.API.Generic import ...
5001254d68b99cc9772b93f6378e781dda43c053b9149977ea34bc148c5da641
cirfi/sicp-my-solutions
2.05.scm
(define (pow base exp) (cond ((= exp 0) 1) ((even? exp) (square (pow base (/ exp 2)))) (else (* base (pow base (- exp 1)))))) (define (cons x y) (* (pow 2 x) (pow 3 y))) (define (divide? a b) (= (remainder b a) 0)) (define (count-divisor n divisor) (cond ((divide? divisor n) (+ 1 (count-divisor (/ n divi...
null
https://raw.githubusercontent.com/cirfi/sicp-my-solutions/4b6cc17391aa2c8c033b42b076a663b23aa022de/ch2/2.05.scm
scheme
(define (pow base exp) (cond ((= exp 0) 1) ((even? exp) (square (pow base (/ exp 2)))) (else (* base (pow base (- exp 1)))))) (define (cons x y) (* (pow 2 x) (pow 3 y))) (define (divide? a b) (= (remainder b a) 0)) (define (count-divisor n divisor) (cond ((divide? divisor n) (+ 1 (count-divisor (/ n divi...
56fad21ab2fca585d226256be4a41353614f9e3d44b09b9757b53a1b7532fd69
input-output-hk/offchain-metadata-tools
Types.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # L...
null
https://raw.githubusercontent.com/input-output-hk/offchain-metadata-tools/794f08cedbf555e9d207bccc45c08abbcf98add9/token-metadata-creator/src/Cardano/Metadata/Types.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE GADTs # # LANGUAGE RankNTypes # * Subject * WellKnownProperty / Property * Well-known Properties * Attestation * Signing Subject WellKnownProperty / Property FIXME: obsolete serialization methods (cf. cardano-node#207936dafd0f352bafc89b6c4822a636e80a3f01): end FIXM...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Cardano.Metadata.Types ...
717d9aeaf620044a67a44cfc3f8e168738705192b19915794e73401ab4d6c066
erikd/vector-algorithms
Main.hs
{-# LANGUAGE Rank2Types #-} module Main (main) where import Prelude hiding (read, length) import qualified Prelude as P import Control.Monad import Control.Monad.ST import Data.Char import Data.Ord (comparing) import Data.List (maximumBy) import qualified Data.Vector.Unboxed.Mutable as UVector import Data.Vector....
null
https://raw.githubusercontent.com/erikd/vector-algorithms/c89ab67720b6fe101e2961da8c8d85eafaa6dca2/bench/simple/Main.hs
haskell
# LANGUAGE Rank2Types # Does nothing. For testing the speed/heap allocation of the building blocks. Allocates a temporary buffer, like mergesort for similar purposes as noalgo. ----------------- Argument handling -----------------
module Main (main) where import Prelude hiding (read, length) import qualified Prelude as P import Control.Monad import Control.Monad.ST import Data.Char import Data.Ord (comparing) import Data.List (maximumBy) import qualified Data.Vector.Unboxed.Mutable as UVector import Data.Vector.Unboxed.Mutable (MVector, Un...
660750573c492ca62e72ba68539f57257fb6e102848687b6ac7b6c916dbfc30a
srid/zulip-archive
Config.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module Config where import Dhall (auto, input) import Dhall.TH (mak...
null
https://raw.githubusercontent.com/srid/zulip-archive/0051d7e0d260a9f388b71e05d221e0a033904074/src/Config.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module Config where import Dhall (auto, input) import Dhall.TH (makeHaskellTypeFromUnion) import Relude import System.Directory (withC...
85e0b2e99499dd003ae002e6285a15d9bcf85839a9aa913761cefa9d777213d5
lisp-mirror/clpm
entry.lisp
;;;; CLI entry point ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (uiop:define-package #:clpm-cli/entry (:use #:cl #:alexandria #:clpm-cli/common-args #:clpm-cli/interface-defs #:clpm/config ...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/cli/entry.lisp
lisp
CLI entry point LICENSE for license information. Print the help if requested. Augment the config with options from the CLI. Set the log level. Give ourselves a reasonable default, since the spec doesn't *require* this... Gracefully catch ctrl-c On warning, print it and optionally the backtrace. Invoke muffle...
This software is part of CLPM . See README.org for more information . See (uiop:define-package #:clpm-cli/entry (:use #:cl #:alexandria #:clpm-cli/common-args #:clpm-cli/interface-defs #:clpm/config #:clpm/log #:clpm/session) (:import-from #:adopt) ...
dff427f63bcfac07ae5b19ba923f7c3a58951defef37d8d39605800ed0c5a290
inaka/beam_olympics
bo_server.erl
-module(bo_server). -behaviour(gen_server). -export([ start_link/0 ]). -export([ init/1 , handle_call/3 , handle_cast/2 , handle_info/2 , terminate/2 , code_change/3 ]). -export([test/3]). -type state() :: #{}. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
null
https://raw.githubusercontent.com/inaka/beam_olympics/9b16afd54f25c0996430139e9646c3cfdfbdf86b/src/bo_server.erl
erlang
External API functions Callback implementation Unused Callbacks Internals
-module(bo_server). -behaviour(gen_server). -export([ start_link/0 ]). -export([ init/1 , handle_call/3 , handle_cast/2 , handle_info/2 , terminate/2 , code_change/3 ]). -export([test/3]). -type state() :: #{}. -spec start_link() -> {ok, pid()}. start_link(...
48ea7ef14ca9d58ad040214a9d5060197744f274e3cc3ca10a203d0b319c6431
shayan-najd/NativeMetaprogramming
PushHRIf.hs
{-# LANGUAGE RankNTypes #-} module PushHRIf where foo = (if True then id else id) :: forall a. a -> a bar = (foo 'x', foo True)
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_compile/PushHRIf.hs
haskell
# LANGUAGE RankNTypes #
module PushHRIf where foo = (if True then id else id) :: forall a. a -> a bar = (foo 'x', foo True)
05656b066d6b5d856fe282f0623107da36cfa5cb236ab5680ef19b7b4c5b7748
cedlemo/OCaml-GI-ctypes-bindings-generator
Scrollbar.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_scrollbar_new" (Orientation.t_view @-> ptr_opt Adjustment.t_typ @-> returning (ptr Widget.t_typ))
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Scrollbar.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_scrollbar_new" (Orientation.t_view @-> ptr_opt Adjustment.t_typ @-> returning (ptr Widget.t_typ))
b752761329baecc45cc2719f64fb82449595bf943f3808f78262cf1637e86191
lokedhs/maxima-client
popup.lisp
(in-package :maxima-client.gui-tools) (defclass popup-selector-view (clim:textual-view) ()) (defvar +popup-selector-view+ (make-instance 'popup-selector-view)) (defclass popup-menu-element () ((value :initarg :value :reader popup-menu-element/value) (record :initarg :record :accessor po...
null
https://raw.githubusercontent.com/lokedhs/maxima-client/f33161bf345a9831475e6ac66004dda2f80a9e72/src/popup.lisp
lisp
FIXME? There may be a better way.
(in-package :maxima-client.gui-tools) (defclass popup-selector-view (clim:textual-view) ()) (defvar +popup-selector-view+ (make-instance 'popup-selector-view)) (defclass popup-menu-element () ((value :initarg :value :reader popup-menu-element/value) (record :initarg :record :accessor po...
d4a79760b385ed4cdd2e877e50b26fed0180797f407a5ad3488ced1ad6c444e5
rtoy/ansi-cl-tests
invoke-debugger.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Feb 28 21:59:57 2003 Contains : Tests of INVOKE - DEBUGGER (in-package :cl-test) ;;; We can't test actual entry into the debugger, but we can test ;;; that the function in *debugger-hook* is properly called. (deftest invoke-debugger.1 (block done (let ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/invoke-debugger.lsp
lisp
-*- Mode: Lisp -*- We can't test actual entry into the debugger, but we can test that the function in *debugger-hook* is properly called. If the debugger hook function expects the wrong number of arguments, a program-error should be thrown in safe code This error is thrown 'prior to entry to the standard debug...
Author : Created : Fri Feb 28 21:59:57 2003 Contains : Tests of INVOKE - DEBUGGER (in-package :cl-test) (deftest invoke-debugger.1 (block done (let (fn (cnd (make-condition 'simple-error))) (setq fn #'(lambda (c hook) (return-from done (and (null *de...
f9e881115adfe232dde091a2c1db05eca6dc769d06b55ff35b3fb3980909c09f
michaelschade/hs-stripe
Discount.hs
{-# LANGUAGE OverloadedStrings #-} module Web.Stripe.Discount ( Discount(..) ) where import Web.Stripe.Utils import Web.Stripe.Coupon data Discount = Discount { disCustomerId :: CustomerId , disCoupon :: Coupon , disSubscriptionId :: Maybe SubscriptionId , disStart :: Maybe UTCTime , disEnd ::...
null
https://raw.githubusercontent.com/michaelschade/hs-stripe/64b58415ccc567b00171b34470e93400cb9e79fd/src/Web/Stripe/Discount.hs
haskell
# LANGUAGE OverloadedStrings #
module Web.Stripe.Discount ( Discount(..) ) where import Web.Stripe.Utils import Web.Stripe.Coupon data Discount = Discount { disCustomerId :: CustomerId , disCoupon :: Coupon , disSubscriptionId :: Maybe SubscriptionId , disStart :: Maybe UTCTime , disEnd :: Maybe UTCTime } deriving (Show) ...
d6c60a8e0ea2972398c9136d902522378683d77fdae6eb07e17e5afa13ada9da
clojure/clojurescript
base64_tests.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the t...
null
https://raw.githubusercontent.com/clojure/clojurescript/a4673b880756531ac5690f7b4721ad76c0810327/src/test/clojure/cljs/source_map/base64_tests.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.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns cljs.source-map.base64-tests (:require [clojure.test :refer [deftest is]] [cljs.source-map.base64 :as base64])) (deftest encode-test (doseq [n (range 64)] (is (= (get base64/int->char n) (base64/encode n)))) (i...
b0e7b31dfb263886c11814b3f6a4295b4afd197f6b8a989bb5985d38dbda63ed
intermine/bluegenes-old
core.clj
(ns bluegenes.app)
null
https://raw.githubusercontent.com/intermine/bluegenes-old/5b719c7ac83a7340e0ff65790cf42413c15fb7e9/src/clj/bluegenes/core.clj
clojure
(ns bluegenes.app)
8490ab795706bcfc8c0687d12a295aa40e287fd3b5eb14d5c8be9aabfcb3905f
gnarroway/hato
websocket_test.clj
(ns hato.websocket-test (:require [clojure.test :refer :all] [hato.websocket :refer :all] [org.httpkit.server :as http-kit]) (:import (java.nio ByteBuffer) (java.net.http WebSocket) (java.util.concurrent ExecutionException))) (defn byte-buffer->byte-array "Converts a...
null
https://raw.githubusercontent.com/gnarroway/hato/ef829066afdaf458dd0299609e20162e65d32380/test/hato/websocket_test.clj
clojure
(ns hato.websocket-test (:require [clojure.test :refer :all] [hato.websocket :refer :all] [org.httpkit.server :as http-kit]) (:import (java.nio ByteBuffer) (java.net.http WebSocket) (java.util.concurrent ExecutionException))) (defn byte-buffer->byte-array "Converts a...
e0bf54d22c19a6e915c274320bdd7045f2f169455bb0a688410dec8545520777
andreas/ocaml-fdb
fuzz_tuple.ml
let rec tuple_to_crowbar = let open Crowbar in lazy ( list ( choose [ const `Null; map [bytes] (fun x -> `Bytes x); map [bytes] (fun x -> `Unicode x); map [unlazy tuple_to_crowbar] (fun x -> `Nested x); map [int] (fun x -> `Int x); map [int64] (fun x -> `Int...
null
https://raw.githubusercontent.com/andreas/ocaml-fdb/5d7b1056aed119f262e519487330225859dcf7b8/test/fuzz_tuple.ml
ocaml
let rec tuple_to_crowbar = let open Crowbar in lazy ( list ( choose [ const `Null; map [bytes] (fun x -> `Bytes x); map [bytes] (fun x -> `Unicode x); map [unlazy tuple_to_crowbar] (fun x -> `Nested x); map [int] (fun x -> `Int x); map [int64] (fun x -> `Int...
ef7a9c287d2f074f89ec143f0ab8b9f1c3f147a1e6993e2eae74b1862c740af0
jjmeyer0/gt
grammare.ml
open Grammar open Trie open Elist open Estring module Grammare = struct type highlights = string * (string * string list) list;; type symbole = string * bool (* true iff terminal *);; type element = Esymbol of symbole | Eoption of element list list | Erepetition of element list list * string (* ...
null
https://raw.githubusercontent.com/jjmeyer0/gt/c0c7febc2e3fd532d44617f663b224cc0b9c7cf2/src/grammare.ml
ocaml
true iff terminal left/right >=n name start symbol line comment the unit trie is for whether or not terminals are in the AST not a terminal ======================================================== Start of Grammare to Grammar =======================================================...
open Grammar open Trie open Elist open Estring module Grammare = struct type highlights = string * (string * string list) list;; type element = Esymbol of symbole | Eoption of element list list type productione = Productione of string * string * element list * element list list option;; type lexcl...
2abace41e6d761d58df4f856792e8579073ad71cfdcfdad439781cb66e071f5f
informatimago/lisp
prompter.lisp
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER" (:use "COMMON-LISP") (:use "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME") (:documentation "This package installs functions to be called before the REPL prompt is displayed.") (:export "ADD-PROMPT-FUNCTION" "REMOVE-PROMPT-FUNCTION" "LIST-PROM...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/small-cl-pgms/irclog-prompter/prompter.lisp
lisp
and the prompt is displayed by emacs. Therefore this feature must be implemented in emacs. We still hook in the prompt for *inferior-lisp*, and for the normal case (terminal): For ccl, we cannot use the *read-loop-function* since once we're inside the loop, this hook is not used anymore (it's used when starting ...
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER" (:use "COMMON-LISP") (:use "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME") (:documentation "This package installs functions to be called before the REPL prompt is displayed.") (:export "ADD-PROMPT-FUNCTION" "REMOVE-PROMPT-FUNCTION" "LIST-PROM...
5b8936b7c1186e3f362fbec5768582979083a14cbe26d0ffcfb3477a2c330c64
racket/games
hash.rkt
#lang racket/base (provide make-immutable-hash/list-init hash-set hash-ref hash-map) (define (make-immutable-hash/list-init [init '()]) (make-immutable-hash (map (λ (x) (cons (car x) (cadr x))) init)))
null
https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/chat-noir/hash.rkt
racket
#lang racket/base (provide make-immutable-hash/list-init hash-set hash-ref hash-map) (define (make-immutable-hash/list-init [init '()]) (make-immutable-hash (map (λ (x) (cons (car x) (cadr x))) init)))
31d8363f4019aae21da4c9c48231b753b075e68a4ccab7981c4ea014e718f40d
s0kil/000-rip
Sessions.hs
module Web.Controller.Sessions where import Web.Controller.Prelude import Web.View.Sessions.New import qualified IHP.AuthSupport.Controller.Sessions as Sessions instance Controller SessionsController where action NewSessionAction = Sessions.newSessionAction @User action CreateSessionAction = Sessions.createSe...
null
https://raw.githubusercontent.com/s0kil/000-rip/00eea161cf522cc9618195c83661914453ab210f/Web/Controller/Sessions.hs
haskell
module Web.Controller.Sessions where import Web.Controller.Prelude import Web.View.Sessions.New import qualified IHP.AuthSupport.Controller.Sessions as Sessions instance Controller SessionsController where action NewSessionAction = Sessions.newSessionAction @User action CreateSessionAction = Sessions.createSe...
e633834928f579b0ad84a62ced40a62f5208f626c60e8e188e9fad171d04ce86
vinted/kafka-elasticsearch-tool
ops.clj
(ns ops (:require [ops.es-to-es :as es-to-es] [ops.es-to-kafka :as es-to-kafka] [ops.es-to-ndjson :as es-to-ndjson] [ops.kafka-to-es :as kafka-to-es] [ops.kafka-to-kafka :as kafka-to-kafka] [ops.kafka-to-ndjson :as kafka-to-ndjson] [ops.krp-to-nd...
null
https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/281de24d51cbd2a7ad78e3c1d13a4619b786210d/src/ops.clj
clojure
(ns ops (:require [ops.es-to-es :as es-to-es] [ops.es-to-kafka :as es-to-kafka] [ops.es-to-ndjson :as es-to-ndjson] [ops.kafka-to-es :as kafka-to-es] [ops.kafka-to-kafka :as kafka-to-kafka] [ops.kafka-to-ndjson :as kafka-to-ndjson] [ops.krp-to-nd...
868c1434815bb3032f6b98d9b8f52f2efcf313ebaa707aaf2b3bfe11d8e2ecc7
hallettj/dot-xmonad
Queries.hs
# LANGUAGE NamedFieldPuns # module Custom.Queries ( isOnCurrentWorkspace , isOnWorkspace ) where import Control.Monad.Reader.Class (ask) import Control.Monad.State.Class (get) import XMonad (Query, WorkspaceId, XState(..), liftX) import XMonad.StackSet (current, findTag, tag, workspace) isOnWorkspace :: Worksp...
null
https://raw.githubusercontent.com/hallettj/dot-xmonad/4a05291b43fd12632264961e51aa93823e22eaeb/home/.xmonad/lib/Custom/Queries.hs
haskell
# LANGUAGE NamedFieldPuns # module Custom.Queries ( isOnCurrentWorkspace , isOnWorkspace ) where import Control.Monad.Reader.Class (ask) import Control.Monad.State.Class (get) import XMonad (Query, WorkspaceId, XState(..), liftX) import XMonad.StackSet (current, findTag, tag, workspace) isOnWorkspace :: Worksp...
61940e92a780bdb40e1f4eb8443d44d5805c8cae888a1d15b3c9461a3269ae48
macourtney/drift
test_config.clj
(ns drift.test-config (:import [java.io File]) (:use clojure.test drift.config) (:require [test-helper :as test-helper] [config.migrate-config :as migrate-config])) (deftest test-find-config-namespace (is (find-config-namespace))) (deftest test-find-config (let [config-map (find-config)] (is...
null
https://raw.githubusercontent.com/macourtney/drift/b5cf735ab41ff2c95b0b1d9cf990faa342353171/test/drift/test_config.clj
clojure
(ns drift.test-config (:import [java.io File]) (:use clojure.test drift.config) (:require [test-helper :as test-helper] [config.migrate-config :as migrate-config])) (deftest test-find-config-namespace (is (find-config-namespace))) (deftest test-find-config (let [config-map (find-config)] (is...
f03faa715ef85782ea0cd591dc1118284cb64cbce2f629f2ec382afda1887cb3
kupl/MicSE
res.ml
(* Result of MicSE *) open! Core (******************************************************************************) (******************************************************************************) Common (*****************************************************...
null
https://raw.githubusercontent.com/kupl/MicSE/1c928a94406bfd3b75523e74a568fc55b99263f0/lib/res.ml
ocaml
Result of MicSE **************************************************************************** **************************************************************************** **************************************************************************** ***********************************************************************...
open! Core Common module MVSet = Set.Make (Tz.MichVCC_cmp) module MFSSet = Set.Make (Tz.MFSet) Map of module MCIMap = Map.Make (Tz.MichCutInfo_cmp) Set of module QIDSet = Set.Make (Tz.QId_cmp) Map of module QIDMap = Map.Make (Tz.QId_cmp) mod...
fd23acd6b07a6d21de46155bfa8c3f1e9c4c2790bb5394149c509e821efde4b6
tokenrove/m68k-assembler
ast.lisp
;;; Abstract Syntax Tree-ish tools for m68k-assembler. ;;; ;;; Julian Squires / 2005 ;;; (in-package :m68k-assembler) ;;;; PARSE TREE MANIPULATORS ;;; XXX Not the most efficient way to get a list of operands, but I am ;;; getting tired. (defun extract-operands (parse-tree) (labels ((inner-fn (parse-tree) (le...
null
https://raw.githubusercontent.com/tokenrove/m68k-assembler/6c3bc3e62da890bb34da856c8c72a6a7d1650eaa/ast.lisp
lisp
Abstract Syntax Tree-ish tools for m68k-assembler. Julian Squires / 2005 PARSE TREE MANIPULATORS XXX Not the most efficient way to get a list of operands, but I am getting tired. Addressing mode simplifiers. XXX could use some work. If this is a register list of a single register, return just the register. ...
(in-package :m68k-assembler) (defun extract-operands (parse-tree) (labels ((inner-fn (parse-tree) (let ((list)) (dolist (x parse-tree) (when (consp x) (when (eql (car x) 'operand) (push (cadr x) list)) (when (eql (car x) 'operands) (setf list (nconc (inner-fn x) list))))) ...
84a9eb3c661eaeb6fa7ffaf5483ef1d57aac00fcc36f2c3745ea7e85a45a9a65
2600hz/kazoo
kazoo_data_maintenance.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc @author %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_data/src/kazoo_data_maintenance.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2012 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_data_maintenance). -include("kz_data.hrl"). -export([flush/0]). -export([flush_data_pl...
a6b6e1d649f1a3f52147686b3daddb440a4b949dc22275c8c125cef22559914e
music-suite/music-preludes
Basic.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # ------------------------------------------------------------------------------------ -- | Copyright : ( c ) 2012 -- -- License : BSD-style -- Maintainer : -- Stability : exper...
null
https://raw.githubusercontent.com/music-suite/music-preludes/2512b7dba62b4adadd04c01772046a3c09be72d7/src/Music/Prelude/Basic.hs
haskell
# LANGUAGE DeriveDataTypeable # ---------------------------------------------------------------------------------- | License : BSD-style Stability : experimental A basic music representation. ----------------------------------------------------------------------------------- open, play, openAnd...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # Copyright : ( c ) 2012 Maintainer : Portability : non - portable ( TF , ) module Music.Prelude.Basic ( module Music.Pitch, module Music.Dynamics, module Music.Articulation, module Music.Par...
c15731f6f19277f7e4823d73c52629dbc16694700abb0bb6d4e4643e14d399f5
bgamari/ghc-debug
Stack.hs
module GHC.Debug.Decode.Stack ( decodeStack ) where import Data.Word import qualified Data.ByteString as BS import Data.Binary.Get as B import GHC.Debug.Types import Control.Monad import Data.Coerce decodeStack :: Monad m => (RawClosure -> m StgInfoTableWithPtr) -- ^ How to decode the info table fo...
null
https://raw.githubusercontent.com/bgamari/ghc-debug/a72e75449df0833eaaccd9ae67948aabb6b3da38/common/src/GHC/Debug/Decode/Stack.hs
haskell
^ How to decode the info table for the stack frame ^ How to decode the bitmap for the stack frame at a given offset MP: If you trigger this case, then the decoding logic might already work but I have never encountered a stack frame with this type to test it. You might also need to modify `stub.cpp` but that shoul...
module GHC.Debug.Decode.Stack ( decodeStack ) where import Data.Word import qualified Data.ByteString as BS import Data.Binary.Get as B import GHC.Debug.Types import Control.Monad import Data.Coerce decodeStack :: Monad m -> RawStack -> m StackFrames decodeStack decodeInfoTable getBitma...
6090ee9968f83cc8ff7a997e7087c58cde2a79c602612c0ac4dac34772e77630
ml4tp/tcoq
extraargs.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/ltac/extraargs.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Spiwack: Primitive for retroknowle...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Tacexpr open Names open ...
b99979f2cbcb865c58074a80d48220782a22f294cbff2411c03bc1227e052d63
appleshan/cl-http
package.lisp
-*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : cl - user ; -*- ( C ) Copyright 1997 , ( ) . ;;; All Rights Reserved. ;;; ;;; ;;;------------------------------------------------------------------- ;;; ;;; Basic substrate for information retrieval tasks. ;;; (in-package :cl-user) ;;...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lambda-ir/package.lisp
lisp
Base : 10 ; Mode : lisp ; Package : cl - user ; -*- All Rights Reserved. ------------------------------------------------------------------- Basic substrate for information retrieval tasks. advise the lisp environment of the presence of W3P
( C ) Copyright 1997 , ( ) . (in-package :cl-user) (pushnew :lambda-ir *features*) (defpackage lambda-ir (:use future-common-lisp http) (:nicknames lr information-retrieval-substrate) (:import-from http "SET-MASK-BIT-P" "WITH-SERVER-LINE-BUFFER") (:export "%CREATE-UNNAMED-OBJECT" "%TOKE...
f4526ee9f0718dfcec7662e34c2849e1555f2770b7e880fdb9cda4d839d03b61
workframers/artemis
github_token.clj
(ns example.github-token) (defmacro github-token [] (slurp (clojure.java.io/resource ".github-token")))
null
https://raw.githubusercontent.com/workframers/artemis/c67a7891b51b299e974cce6f01f7db9e45dee754/examples/common/example/github_token.clj
clojure
(ns example.github-token) (defmacro github-token [] (slurp (clojure.java.io/resource ".github-token")))
ff6b19208c500aeb2b4437d006d3c9fb9e4d540d1df5b1ff815046d47a184b98
mcorbin/meuse
filesystem.clj
(ns meuse.store.filesystem "Manipulates the crate files in the filesystem." (:require [meuse.path :as path] [meuse.store.protocol :refer [ICrateStore]] [exoscale.ex :as ex] [clojure.java.io :as io])) (defn crate-file-path "Get the path to the crate file on disk." [base-path ...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/store/filesystem.clj
clojure
todo: refactor: should take name and version and not raw-metadata
(ns meuse.store.filesystem "Manipulates the crate files in the filesystem." (:require [meuse.path :as path] [meuse.store.protocol :refer [ICrateStore]] [exoscale.ex :as ex] [clojure.java.io :as io])) (defn crate-file-path "Get the path to the crate file on disk." [base-path ...
145ee6659347c05939ee552020f90aa62d3ce3ce691272be8b7ab31499b7748f
nrolland/helloNixShebang
stackNostackageKO.hs
#!/usr/bin/env stack -- stack --resolver lts-14.20 script --package type-level-sets -- this used to fail as a script with -- Local packages are not allowed when using the script command. Packages found: -- type-level-sets-0.8.7.0 -- but could be launched as -- stack --resolver lts-9.21 runghc --package http-c...
null
https://raw.githubusercontent.com/nrolland/helloNixShebang/48e3d243f15214c82f77f17d5ee15a730b92b383/old/stackNostackageKO.hs
haskell
stack --resolver lts-14.20 script --package type-level-sets this used to fail as a script with Local packages are not allowed when using the script command. Packages found: type-level-sets-0.8.7.0 but could be launched as stack --resolver lts-9.21 runghc --package http-conduit --package type-level-sets --...
#!/usr/bin/env stack # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # module Main where import Data.Type.Set (Set(..), Proxy(..)) class Get a s where get :: Set s -> a get (Ext a _) = a ...
2ca97d64c944bf105058ce98cbeea640ccdcf330a339765d8bd3dbb260649ebc
jixiuf/helloerlang
uuid.erl
%%%------------------------------------------------------------------- @author 纪秀峰 < > %%% @doc 应该是生成 n个长度为m的不重复字符串 %%% @end Created : 2012 - 09 - 20 11:50 by 纪秀峰 < > %%%------------------------------------------------------------------- -module(uuid). -export([write_uuid/3,uuid/2]). %%生成20万16位的uuid写到指定文件中 %% uui...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/uuid.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- 生成20万16位的uuid写到指定文件中 uuid:write_uuid(200000,16,"/tmp/ab"). uuid:uuid(3,16)=["uYOukkku8YEuGpN1","8u8uOEkkOEk8GTXR","8Y88ukYOuOEOQTNn"]
@author 纪秀峰 < > 应该是生成 n个长度为m的不重复字符串 Created : 2012 - 09 - 20 11:50 by 纪秀峰 < > -module(uuid). -export([write_uuid/3,uuid/2]). write_uuid(Count,Len,File)-> {ok,F}=file:open(File,[write]), lists:foreach(fun(UUid)->file:write(F,[UUid,"\n"]) end,uuid(Count,Len)), file:close(F) . uuid(Count,Len)-> Seed...
13fc679ca743c552812d99122195074ef1be8694e168ee6f924f35a5ef2d1e42
arttuka/reagent-material-ui
broadcast_on_personal_outlined.cljs
(ns reagent-mui.icons.broadcast-on-personal-outlined "Imports @mui/icons-material/BroadcastOnPersonalOutlined 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])) (de...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/broadcast_on_personal_outlined.cljs
clojure
(ns reagent-mui.icons.broadcast-on-personal-outlined "Imports @mui/icons-material/BroadcastOnPersonalOutlined 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])) (de...
67b3de1a89dcead8409e82476bf1925b80e8811da7772cfca215f102b50d09a4
tonymorris/geo-gpx
VersionL.hs
module Data.Geo.GPX.Lens.VersionL where import Data.Lens.Common class VersionL a where versionL :: Lens a String
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Lens/VersionL.hs
haskell
module Data.Geo.GPX.Lens.VersionL where import Data.Lens.Common class VersionL a where versionL :: Lens a String
979437f20ac8ea0596b9f97a6feaa5b46ccbf36a67c5f1496c0f2b29e9c9d49d
simplegeo/erlang
epp.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/src/epp.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(epp). An Erlang code preprocess...
62986c88c5cbac9f9c99cc5fdcc9d862713c25b64f390bb094dcf5b85744e2f8
ifigueroap/racket-quickcheck
info.rkt
#lang info (define name "rackunit")
null
https://raw.githubusercontent.com/ifigueroap/racket-quickcheck/902eb30fa8f5c0df7910df22c1442ff866b3920d/rackunit/info.rkt
racket
#lang info (define name "rackunit")