_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
97bad2bf405a24d7f663f2705394537fe3fce74e6abb9b89e2e8d3c09f408ddd
bgusach/exercises-htdp2e
ex-252.rkt
#lang htdp/isl (require 2htdp/image) (require test-engine/racket-tests) # # # Constants (define emt (empty-scene 100 100)) (define dot (circle 3 "solid" "red")) # # # Data Definitions # # # Functions ; [List-of Number] -> Number (check-expect (product '(1 2 3 4)) (* 1 2 3 4)) (define (product l) (fold2 l *...
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/3-abstraction/ex-252.rkt
racket
[List-of Number] -> Number [List-of Posn] -> Image Places a dot for each posn on top of an empty image [List-of A] [A B -> B] -> B Posn Image -> Image
#lang htdp/isl (require 2htdp/image) (require test-engine/racket-tests) # # # Constants (define emt (empty-scene 100 100)) (define dot (circle 3 "solid" "red")) # # # Data Definitions # # # Functions (check-expect (product '(1 2 3 4)) (* 1 2 3 4)) (define (product l) (fold2 l * 1) ) (check-expect (ima...
4a35fa51c7f1f6a9da537f5f32bd12db895a89025e27ea9d898bf01ce203b5fd
janestreet/merlin-jst
pprintast.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/00f0a2c961fbf5a968125b33612d60224a573f40/upstream/ocaml_flambda/parsing/pprintast.ml
ocaml
************************************************************************ OCaml Fabrice L...
, OCamlPro , University of Pennsylvania Copyright 2007 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Original Code from Ber - metaocaml , modified...
80ea79873cd5a99de3be342b50a8dd03278b56aa18295ddcfe935f431a27236d
psilord/option-9
sparks.lisp
(in-package :option-9) #+option-9-debug (declaim (optimize (safety 3) (space 0) (speed 0) (debug 3))) (defmethod sparks ((ent entity)) (+ (initial-sparks ent) (random (additional-sparks ent))))
null
https://raw.githubusercontent.com/psilord/option-9/44d96cbc5543ee2acbdcf45d300207ef175462bc/sparks.lisp
lisp
(in-package :option-9) #+option-9-debug (declaim (optimize (safety 3) (space 0) (speed 0) (debug 3))) (defmethod sparks ((ent entity)) (+ (initial-sparks ent) (random (additional-sparks ent))))
3d8b64e46877d0e61cd110dbab2cd4a2ad0c0d103134dc2a4f26cb0df0fc64e9
srdqty/talc-3.0
coff.mli
(**********************************************************************) ( c ) , , September 1998 , all rights reserved . (**********************************************************************) (* Coff * Outputs coff format object files. *) open Objf...
null
https://raw.githubusercontent.com/srdqty/talc-3.0/df83dd5ff0e2b189b13280ddae233d8277199350/talx86/coff.mli
ocaml
******************************************************************** ******************************************************************** Coff * Outputs coff format object files. write_coff outfile coff_file Writes the data from the coff_file structure to outfile.
( c ) , , September 1998 , all rights reserved . open Objfile;; type coff_file;; make_coff outfilename objfile Creates a COFF file object from the given objfile . Creates a COFF file object from the given objfile. *) val make_coff : string...
c31f2779c21449cd6bfec5ae5ffaa4f937693171080b5b4d6a2b0db2e3a76d4c
tcsprojects/ocaml-sat-solvers
minisatwrapper.mli
open Satwrapper;; open Minisat;; class minisatSolverFactory: object inherit solverFactory method description: string method identifier: string method short_identifier: string method copyright: string method url: string method new_timed_instance: Timing.timetable -> abstractSolver end
null
https://raw.githubusercontent.com/tcsprojects/ocaml-sat-solvers/2c36605fb3e38a1bee41e079031ab5b173794910/src/minisat/minisatwrapper.mli
ocaml
open Satwrapper;; open Minisat;; class minisatSolverFactory: object inherit solverFactory method description: string method identifier: string method short_identifier: string method copyright: string method url: string method new_timed_instance: Timing.timetable -> abstractSolver end
0b1aaf6a2bf898a964eb63a65a5870b2d73896f5c3ffde96bf2736f12f5d03ef
fortytools/holumbus
DocIdMap.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # -- ---------------------------------------------------------------------------- | Module : Holumbus . Index . Common . DocIdMap Copyright : Copyright ( C ) 2013 , , ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Index/Common/DocIdMap.hs
haskell
# LANGUAGE DeriveDataTypeable # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------------------------------------------------ ------------------------------------------------------------ ...
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # | Module : Holumbus . Index . Common . DocIdMap Copyright : Copyright ( C ) 2013 , , License : MIT Maintainer : ( ) Stability : experimental Portability : none portable DocId maps ...
4d2abdf243daeb50792bc8a64722a20a5f0b15aa938cec4e32eeb1bada5fad12
thepower/tpnode
httpapi_playground.erl
-module(httpapi_playground). -include("include/tplog.hrl"). -export([h/3]). -import(tpnode_httpapi,[answer/1, answer/2]). h(<<"OPTIONS">>, _, _Req) -> {200, [], ""}; h(<<"GET">>, [<<"tx">>,<<"construct">>], _Req) -> answer(#{ result => <<"ok">>, text => <<"POST here tx">>, example => #{ kind => ...
null
https://raw.githubusercontent.com/thepower/tpnode/6212422bc9061d44d150ef2d777d6e694396ed15/apps/tpnode/src/httpapi_playground.erl
erlang
-module(httpapi_playground). -include("include/tplog.hrl"). -export([h/3]). -import(tpnode_httpapi,[answer/1, answer/2]). h(<<"OPTIONS">>, _, _Req) -> {200, [], ""}; h(<<"GET">>, [<<"tx">>,<<"construct">>], _Req) -> answer(#{ result => <<"ok">>, text => <<"POST here tx">>, example => #{ kind => ...
12289ea98c111bcb00d6bf61a347d3e05f77b9a97e3c644c054a65325d781286
LambdaHack/LambdaHack
KeyBindings.hs
{-# LANGUAGE RankNTypes #-} -- | Verifying, aggregating and displaying binding of keys to commands. module Game.LambdaHack.Client.UI.KeyBindings ( keyHelp, okxsN ) where import Prelude () import Game.LambdaHack.Core.Prelude import qualified Data.EnumMap.Strict as EM import qualified Data.Map.Strict as M import q...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/84cda1ca86056bbda0ca2dfc10f63260a82b73c5/engine-src/Game/LambdaHack/Client/UI/KeyBindings.hs
haskell
# LANGUAGE RankNTypes # | Verifying, aggregating and displaying binding of keys to commands. | Produce a set of help/menu screens from the key bindings. When the intro screen mentions KP_5, this really is KP_Begin, but since that is harder to understand we assume a different, non-default state of NumLock in the h...
module Game.LambdaHack.Client.UI.KeyBindings ( keyHelp, okxsN ) where import Prelude () import Game.LambdaHack.Core.Prelude import qualified Data.EnumMap.Strict as EM import qualified Data.Map.Strict as M import qualified Data.Text as T import Game.LambdaHack.Client.UI.Content.Input import G...
f528578baa3c8fcafe53c2edfa12c3394686366879ac2a166e03b5df14dfe512
poroh/ersip
ersip_sdp_bandwidth.erl
%%% Copyright ( c ) 2018 , 2021 Dmitry Poroh %%% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %%% SDP bandwidth %%% -module(ersip_sdp_bandwidth). -export([new/0]). -export([tias/1, ct/1, as/1, experimental/2, parse/1, a...
null
https://raw.githubusercontent.com/poroh/ersip/1a406433c80fb21bb15ec45bfec3ce3d98aaaa52/src/sdp/ersip_sdp_bandwidth.erl
erlang
All rights reserved. =================================================================== Types =================================================================== =================================================================== API =================================================================== ===========...
Copyright ( c ) 2018 , 2021 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . SDP bandwidth -module(ersip_sdp_bandwidth). -export([new/0]). -export([tias/1, ct/1, as/1, experimental/2, parse/1, assemble/1 ]). -export_type([...
42edf787c3868ef198868e086cbff10693b1b7d3a92ece8212afb4becf425a4e
basho/riak_sysmon
riak_sysmon_app.erl
Copyright ( c ) 2011 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 %% a copy of the License at %% %% -2.0 %% %% Unless required by app...
null
https://raw.githubusercontent.com/basho/riak_sysmon/0ab94b3186ff67501b833543f0c3f52be5b7ca7a/src/riak_sysmon_app.erl
erlang
Version 2.0 (the "License"); you may not use this file 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 License for the specific language governing permissions and limitations under the License. allow multiple parties/process...
Copyright ( c ) 2011 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @doc ...
1ee3b4bb56b27e5bd39cf833c41c96b931f441d3b143732f7a4b4f289c148dc5
skanev/playground
19-tests.scm
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../19.scm") (define (test-machine) (make-machine '(a) '() '(start (assign a (const 1)) (assign a (const 2)) (assign a (const 3)) (a...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/tests/19-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../19.scm") (define (test-machine) (make-machine '(a) '() '(start (assign a (const 1)) (assign a (const 2)) (assign a (const 3)) (a...
35133433d52304d7e055516ae0da140bab4af72e20e167d229046d0b0644fb77
emqx/ekka
ekka_guid_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 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 of the L...
null
https://raw.githubusercontent.com/emqx/ekka/70f2250e5e968e0c1da64e5b4733c5eb0eb402de/test/ekka_guid_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 ) 2019 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(ekka_guid_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eunit/incl...
6eb1e41cc725d5eece9c4addf37a5ceaa07a34862937760e0e6f48647822644d
spurious/sagittarius-scheme-mirror
uri.scm
(import (rnrs) (sagittarius) (rfc uri) (srfi :64 testing)) (test-begin "RFC URI tests") Test cases are from Gauche (test-equal "encode" "abc%3C%20%3E%20%22%20%23%25%7B%7C%7D%5C%5E" (uri-encode-string "abc< > \" #%{|}\\^")) (test-equal "encode (noescape)" ".a%21%2Ap" (uri-encode-string ".a!*p" :noescape...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/rfc/uri.scm
scheme
normal path failure path for strict parser empty base-path case
(import (rnrs) (sagittarius) (rfc uri) (srfi :64 testing)) (test-begin "RFC URI tests") Test cases are from Gauche (test-equal "encode" "abc%3C%20%3E%20%22%20%23%25%7B%7C%7D%5C%5E" (uri-encode-string "abc< > \" #%{|}\\^")) (test-equal "encode (noescape)" ".a%21%2Ap" (uri-encode-string ".a!*p" :noescape...
ed0833918d05942df5bdec030ae39b1de96fc8d30eee0b4216e2348b57d4b37e
rtoy/ansi-cl-tests
call-next-method.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 31 11:18:15 2003 ;;;; Contains: Tests of CALL-NEXT-METHOD (in-package :cl-test) Tests where there is no next method are in no-next-method.lsp (defgeneric cnm-gf-01 (x) (:method ((x integer)) (cons 'a (call-next-method))) (:method ((x rational)) (con...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/call-next-method.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of CALL-NEXT-METHOD Check that call-next-method passes along multiple values correctly Call next method has indefinite extent call-next-method goes up the list of applicable methods the current method Neither rebinding nor setq affects the arguments passed by (call-next-met...
Author : Created : Sat May 31 11:18:15 2003 (in-package :cl-test) Tests where there is no next method are in no-next-method.lsp (defgeneric cnm-gf-01 (x) (:method ((x integer)) (cons 'a (call-next-method))) (:method ((x rational)) (cons 'b (call-next-method))) (:method ((x real)) (cons 'c (call-ne...
175d4bd9b0b40ed2d2daaf735594f76c438f3c202faf8021cf903beb32cc1a10
rzezeski/try-try-try
rts.erl
%% @doc Interface into the Real Time Statistics application. -module(rts). -include("rts.hrl"). -include_lib("riak_core/include/riak_core_vnode.hrl"). -export([ ping/0, entry/2, get/2, set/3, append/3, incr/2, incrby/3, sadd/3 ]). %%%====...
null
https://raw.githubusercontent.com/rzezeski/try-try-try/c5d99f29fb3380f8653efdd1aa6a8f52143a9717/2011/riak-core-the-vnode/rts/src/rts.erl
erlang
@doc Interface into the Real Time Statistics application. =================================================================== API =================================================================== @doc Pings a random vnode to make sure communication is functional @doc Process an entry. TODO: Coordinator to provi...
-module(rts). -include("rts.hrl"). -include_lib("riak_core/include/riak_core_vnode.hrl"). -export([ ping/0, entry/2, get/2, set/3, append/3, incr/2, incrby/3, sadd/3 ]). ping() -> DocIdx = riak_core_util:chash_key({<<"ping">>, term_t...
5cbf4525cd3c76f2fede4d9cc2d378911a85bbbaf1135ae491d2f3e224108190
bennguvaye/flu
dss.ml
let pi = 4. *. atan 1.;; let a_incr a i = a.(i) <- a.(i) + 1 let a_decr a i = a.(i) <- a.(i) - 1 let foi = float_of_int module type PARS = sig val n : float val r0 : float val e : float val etaN1 : float val etaN2 : float val g1 : float val g2 : float val nu : float val q ...
null
https://raw.githubusercontent.com/bennguvaye/flu/5dbae212405b74917ee91392684fd2ee10ab1e58/src/dss.ml
ocaml
get i in case bad sink
let pi = 4. *. atan 1.;; let a_incr a i = a.(i) <- a.(i) + 1 let a_decr a i = a.(i) <- a.(i) - 1 let foi = float_of_int module type PARS = sig val n : float val r0 : float val e : float val etaN1 : float val etaN2 : float val g1 : float val g2 : float val nu : float val q ...
18b9ec8cc0bc75d946d753fb3bc83813a613575343c90bfde51c2fa4f191441f
rsnikhil/Forvis_RISCV-ISA-Spec
ReadHexFile.hs
module ReadHexFile (readHexFile) where -- ================================================================ This code is adapted from MIT 's riscv - semantics repo -- This module implements a function that reads a hex-memory file -- and returns a memory (i.e., list of (addr, byte)). -- =============================...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v1/src/ReadHexFile.hs
haskell
================================================================ This module implements a function that reads a hex-memory file and returns a memory (i.e., list of (addr, byte)). ================================================================ Project imports None ================================================...
module ReadHexFile (readHexFile) where This code is adapted from MIT 's riscv - semantics repo Standard Haskell imports import System.IO import Data.Word import Data.Bits import Numeric (showHex, readHex) Read a Mem - Hex file ( each datum should represent one byte ) readHexFile :: FilePath -> IO [(Int, W...
5e8f4d52dda0d4f5cd42307d038906d4a9287d03de6598956ad7136604b7e909
fccm/glMLite
lesson2.ml
This code was created by 99 If you 've found this code useful , please let me know . The full tutorial associated with this file is available here : ( OCaml version by ) This code was created by Jeff Molofee '99 If you've found this code useful, please let me know. The full tutorial associa...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/nehe-examples/lesson2.ml
ocaml
Module For The OpenGL Library Module For The GLu Library Module For The GLUT Library A general OpenGL initialization function. Sets all of the initial parameters. We call this right after our OpenGL window is created. Enables Clearing Of The Depth Buffer Enables Depth Testing Enables Smooth Color Shadin...
This code was created by 99 If you 've found this code useful , please let me know . The full tutorial associated with this file is available here : ( OCaml version by ) This code was created by Jeff Molofee '99 If you've found this code useful, please let me know. The full tutorial associa...
411e8517a088d10c04abbc663bae49a5c86875c32349924dbce0686afa6f08e8
slepher/astranaut
astranaut_traverse_SUITE.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2020 , %%% @doc %%% %%% @end Created : 6 Jul 2020 by < > %%%------------------------------------------------------------------- -module(astranaut_traverse_SUITE). -compile(export_all). -compile(nowarn_export_all)....
null
https://raw.githubusercontent.com/slepher/astranaut/95445ee8de492ead2cd9d9671095e251e902986b/test/astranaut_traverse_SUITE.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- -------------------------------------------------------------------- Info = [tuple()] @end -------------------------------------------------------------------- ---------...
@author < > ( C ) 2020 , Created : 6 Jul 2020 by < > -module(astranaut_traverse_SUITE). -compile(export_all). -compile(nowarn_export_all). -include("do.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). @spec suite ( ) - > Info suite() -> [{timetrap,{se...
e98cfd0e408bb2ccc5b971fd49c64d7b43024438bc2cf06897207566866500a4
tolysz/prepare-ghcjs
Buffer.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.IO.Buffer Copyright : ( c ) The University of Glasgow 2008 -- License : see libraries/base/LICENSE...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/base/GHC/IO/Buffer.hs
haskell
# OPTIONS_GHC -funbox-strict-fields # --------------------------------------------------------------------------- | Module : GHC.IO.Buffer License : see libraries/base/LICENSE Maintainer : Stability : internal Buffers used in the IO system ------------------------------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2008 Portability : non - portable ( GHC Extensions ) module GHC.IO.Buffer ( Buffer(..), BufferState(..), CharBuffer, CharBufElem, newByteBuffer, newCharBuffer, newBuffer, emptyBuff...
ad6e56db0d94b8ed6c4d2fd462de20beb62d084b596d2c8c3640b3844cc8423c
scrintal/heroicons-reagent
globe_asia_australia.cljs
(ns com.scrintal.heroicons.mini.globe-asia-australia) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6.5 6.326a6.52 6.52 0 01-1.5.174 6...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/globe_asia_australia.cljs
clojure
(ns com.scrintal.heroicons.mini.globe-asia-australia) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6.5 6.326a6.52 6.52 0 01-1.5.174 6...
fd72238bd6cc9d93b4db52d69670fde4b70f3a867b68af778ef58b55a6f1fc6e
hammerlab/prohlatype
distances.ml
(** Measure distances between different alleles from (at the moment) parsed Multiple Sequence Alignment files. *) open Util module Trie_distances = struct let init_trie elems = let open Nomenclature in list_fold_ok elems ~init:Trie.empty ~f:(fun trie s -> parse s >>= fun (_gene, (allele_resolutio...
null
https://raw.githubusercontent.com/hammerlab/prohlatype/3acaf7154f93675fc729971d4c76c2b133e90ce6/src/lib/distances.ml
ocaml
* Measure distances between different alleles from (at the moment) parsed Multiple Sequence Alignment files. Trie_distances Weighted_per_segment Reference
open Util module Trie_distances = struct let init_trie elems = let open Nomenclature in list_fold_ok elems ~init:Trie.empty ~f:(fun trie s -> parse s >>= fun (_gene, (allele_resolution, suffix_opt)) -> Ok (Trie.add allele_resolution suffix_opt trie)) let f ~targets ~candidates = let op...
8ae45ce718e902d0c2a6cc963a1c60144dc9bb3f034b0fbd5a12e4c43ae15ef0
ocurrent/ocurrent
s.ml
* The subset of the Current API that the RPC system needs . This is duplicated here to avoid making RPC clients depend on the " current " service implementation package . This is duplicated here to avoid making RPC clients depend on the "current" service implementation package. *) module type CURRE...
null
https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/lib_rpc/s.ml
ocaml
* The subset of the Current API that the RPC system needs . This is duplicated here to avoid making RPC clients depend on the " current " service implementation package . This is duplicated here to avoid making RPC clients depend on the "current" service implementation package. *) module type CURRE...
d4a304f84210ef91bca345be91257f7380316aade6e786bcb84d0fb21ce7f1b3
v-kolesnikov/sicp
2_51.clj
(ns sicp.chapter02.2-51 (:require [sicp.chapter02.2-46 :refer [make-vect]] [sicp.chapter02.2-50 :refer [rotate-counterclockwise-180 rotate-counterclockwise-270 transform-painter]])) (defn beside [left-painter right-painte...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/src/sicp/chapter02/2_51.clj
clojure
(ns sicp.chapter02.2-51 (:require [sicp.chapter02.2-46 :refer [make-vect]] [sicp.chapter02.2-50 :refer [rotate-counterclockwise-180 rotate-counterclockwise-270 transform-painter]])) (defn beside [left-painter right-painte...
2bee169a398816cfb9e6aa12ad6fcf3e708b16924bd44abc2455b66cfb1b01af
uber/queryparser
Parser.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- 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, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6015e8f273f4498326fec0315ac5580d7036f8a4/dialects/vertica/src/Database/Sql/Vertica/Parser.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 ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
6bfcaa23d5a9d7944177db076f28b242c8b1d3a4e8dee96b85ba502d35c3ca74
kolmodin/binary
Get.hs
# LANGUAGE CPP , OverloadedStrings , ExistentialQuantification , BangPatterns # #if defined(__GLASGOW_HASKELL__) && !defined(__HADDOCK__) #include "MachDeps.h" #endif module Main where import Control.DeepSeq import Control.Exception (evaluate) import Criterion.Main import qualified Data.ByteString as S import qualif...
null
https://raw.githubusercontent.com/kolmodin/binary/bccbece2e254813f86e0a04f71d9ca3cea68b3bf/benchmarks/Get.hs
haskell
Defs. # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNP...
# LANGUAGE CPP , OverloadedStrings , ExistentialQuantification , BangPatterns # #if defined(__GLASGOW_HASKELL__) && !defined(__HADDOCK__) #include "MachDeps.h" #endif module Main where import Control.DeepSeq import Control.Exception (evaluate) import Criterion.Main import qualified Data.ByteString as S import qualif...
c15d8b1e5930d1f8d26c963b84c3e141ac54cb061aad4b966d9269d5c389ddf8
rems-project/cerberus
location_ocaml.ml
open Lexing type cursor = | NoCursor | PointCursor of Lexing.position | RegionCursor of Lexing.position * Lexing.position type raw = | Loc_unknown | Loc_other of string | Loc_point of Lexing.position (* start, end, cursor *) | Loc_region of Lexing.position * Lexing.position * cursor | Loc_regions ...
null
https://raw.githubusercontent.com/rems-project/cerberus/55581472e8225630c70e3e819f4cb6e39357c768/util/location_ocaml.ml
ocaml
start, end, cursor TODO: need to sort the regions [with_cursor_from loc1 loc2] makes a new (region location) with the region from loc1 and the cursor from loc2 if there is one, otherwise uses the beginning of loc2 as the cursor (if possible) assuming pos_fname are the same `String str The cursor position ...
open Lexing type cursor = | NoCursor | PointCursor of Lexing.position | RegionCursor of Lexing.position * Lexing.position type raw = | Loc_unknown | Loc_other of string | Loc_point of Lexing.position | Loc_region of Lexing.position * Lexing.position * cursor | Loc_regions of (Lexing.position * Lexing....
23059dbc39474dca079a6a54b65e7a30175088dc881c6f2c34615d3cc0c40321
mfoemmel/erlang-otp
escript.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/escript.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 2007 - 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(escript). -export([script_name/0,...
2a166e7bf7b16a05c6335926f1e0b16a23823517601ecf3086b08fc1a47adbca
HugoPeters1024/hs-sleuth
Unsafe.hs
# LANGUAGE CPP , MagicHash , UnboxedTuples # -- | -- Module : Data.Text.Unsafe Copyright : ( c ) 2009 , 2010 , 2011 -- License : BSD-style -- Maintainer : -- Portability : portable -- -- A module containing unsafe 'Text' operations, for very very careful -- use in heavily tested code. module Data.Text...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.3.2/Data/Text/Unsafe.hs
haskell
| Module : Data.Text.Unsafe License : BSD-style Maintainer : Portability : portable A module containing unsafe 'Text' operations, for very very careful use in heavily tested code. | /O(1)/ A variant of 'head' for non-empty 'Text'. 'unsafeHead' omits the check for the empty case, so there is an obli...
# LANGUAGE CPP , MagicHash , UnboxedTuples # Copyright : ( c ) 2009 , 2010 , 2011 module Data.Text.Unsafe ( inlineInterleaveST , inlinePerformIO , unsafeDupablePerformIO , Iter(..) , iter , iter_ , reverseIter , reverseIter_ , unsafeHead , unsafeTail , lengthWord...
28d98bb70dabbe33ada1aff6e0e5e13811916fac16381f4af2a811db547b18e7
antono/guix-debian
srfi-64.upstream.scm
Copyright ( c ) 2005 , 2006 , 2007 , 2012 , 2013 Per Bothner Added " full " support for Chicken , Gauche , and SISC . , Copyright ( c ) 2005 . Modified for Scheme Spheres by , Copyright ( c ) 2012 . Support for Guile 2 by < > , Copyright ( c ) 2014 . ;; ;; Permission is hereby granted, free of ch...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/srfi/srfi-64.upstream.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( c ) 2005 , 2006 , 2007 , 2012 , 2013 Per Bothner Added " full " support for Chicken , Gauche , and SISC . , Copyright ( c ) 2005 . Modified for Scheme Spheres by , Copyright ( c ) 2012 . Support for Guile 2 by < > , Copyright ( c ) 2014 . files ( the " Software " ) , to deal in the ...
2e4dce4b5ff37eeb86a03ab858f0720fc99b4319e8327f8e9466fc7cc1556c77
LexiFi/dead_code_analyzer
hidden_opt_use.ml
let f ?a ?b x = x let apply (f: ?a:'a -> ?b:'b -> 'c -> 'd) ?a x = f ?a ~b:0 x let () = apply f 2 |> ignore
null
https://raw.githubusercontent.com/LexiFi/dead_code_analyzer/c44dc2ea5ccb13df2145e9316e21c39f09dad506/examples/dir/hidden_opt_use.ml
ocaml
let f ?a ?b x = x let apply (f: ?a:'a -> ?b:'b -> 'c -> 'd) ?a x = f ?a ~b:0 x let () = apply f 2 |> ignore
2441c977beab2f62d9677567f822364439da5d3408d9b03104e32727a160ec7c
SquidDev/illuaminate
illuaminateSemantics.ml
module Control = Control module Global = Global module Pure = Pure module Reference = Reference module Resolve = Resolve module Module_resolve = Module_resolve module Namespace = Namespace module Doc = struct module AbstractSyntax = Doc_abstract_syntax module Comment = Doc_comment module Parser = Doc_parser mo...
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/src/semantics/illuaminateSemantics.ml
ocaml
module Control = Control module Global = Global module Pure = Pure module Reference = Reference module Resolve = Resolve module Module_resolve = Module_resolve module Namespace = Namespace module Doc = struct module AbstractSyntax = Doc_abstract_syntax module Comment = Doc_comment module Parser = Doc_parser mo...
0ec92abff261d72651cc7f39657b53d57e03fddfdddd4b8cfeac95a8f0669ba3
input-output-hk/voting-tools
Registration.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # -- | Handles configuration, which involves parsing command line -- arguments and reading key files. module Config.Registration ( Config(Config) , ConfigEr...
null
https://raw.githubusercontent.com/input-output-hk/voting-tools/4566028444a44518b05e42b5c06da4d6bda1f34c/registration/src/Config/Registration.hs
haskell
# LANGUAGE OverloadedStrings # | Handles configuration, which involves parsing command line arguments and reading key files.
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # module Config.Registration ( Config(Config) , ConfigError , opts , mkConfig , Opts(Opts) , parseOpts , MetadataOutFormat(..) ) where import Cardano.Catalyst.Registrat...
3a8ba61070657e0612447a99ced11f6f097290930b49dd658f8b641def674202
mstewartgallus/hs-callbypushvalue
AsPorcelain.hs
# LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module AsPorcelain (Porcelain, extract) where import Common import Constant import Cps import Data.Text import HasCode import HasConstants import HasData import HasLet import HasStack import HasTerminal import HasTuple import TextShow import qualified Unique extra...
null
https://raw.githubusercontent.com/mstewartgallus/hs-callbypushvalue/d8770b7e9e444e1261901f5ee435fcefb0f7ad75/src/AsPorcelain.hs
haskell
# LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module AsPorcelain (Porcelain, extract) where import Common import Constant import Cps import Data.Text import HasCode import HasConstants import HasData import HasLet import HasStack import HasTerminal import HasTuple import TextShow import qualified Unique extra...
6601167a03f2e19c1d50d35db86b3405bcf25d195bf77ce9afe8cd9b37598198
haskell-opengl/OpenGLRaw
AsyncPixel.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.SGIX.AsyncPixel Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- --------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/SGIX/AsyncPixel.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.SGIX.AsyncPixel License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.SGIX.AsyncPixel ( glGetSGIXAsyncPixel, gl_SGIX_async_pixel, pattern GL_ASYNC_DRAW_PIXELS_SGIX, pattern GL_ASYNC_READ_PIXELS_SGIX, pattern GL_ASYNC_TEX_IMAGE_SGIX, pattern GL_MAX_ASYNC_DRAW_PIXELS_SGIX,...
92306a203268d343ebb7e592629047271cd6fa423cced2d237a755bbcdfdcbcb
RefactoringTools/wrangler
refac_bug_cond.erl
%% @hidden @private -module(refac_bug_cond). -behaviour(gen_refac). -export([input_par_prompts/0, select_focus/1, check_pre_cond/1, selective/0, transform/1, refac_bug_cond/3]). -include("wrangler.hrl"). -spec input_par_prompts() -> [string()]. input_par_prompts() -> []. -spec select_focus(#arg...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/refac_bug_cond.erl
erlang
@hidden only use ?PP when E is a small literal.
@private -module(refac_bug_cond). -behaviour(gen_refac). -export([input_par_prompts/0, select_focus/1, check_pre_cond/1, selective/0, transform/1, refac_bug_cond/3]). -include("wrangler.hrl"). -spec input_par_prompts() -> [string()]. input_par_prompts() -> []. -spec select_focus(#args{}) -> {ok...
f2d65d24b4933041eb11f198a67265a43a29e180685ede6cc4baeba3df0725b9
rmloveland/scheme48-0.53
dump.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Dump and restore ; Unix has special meanings for ETX , FS , DEL , ETB , NAK , DC2 , EOT , EM ( or SUB ? ) , DC3 , , SI , SYN , 3 28 127 23 21 18 4 25 26 19 17 15 22 ; so avoid using them. (define type/null ...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/big/dump.scm
scheme
Dump and restore Unix has special meanings for so avoid using them. length chars length chars char length objects length objects template-info Recursive entry Template case needs to precede vector case Particular dumpers & restorers Pairs ignored Symbols ignored Numbers Note logarithmic recursion this gets re...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ETX , FS , DEL , ETB , NAK , DC2 , EOT , EM ( or SUB ? ) , DC3 , , SI , SYN , 3 28 127 23 21 18 4 25 26 19 17 15 22 (define type/null #\n) (define type/true #\t) (define type/false #\f) (define type/...
8dd1f67b36eed116bcaf08ef14f83afc718bdaa7ca9b138351302c4fbe6ce977
aeolus-project/zephyrus
incompatibilities_of.ml
(****************************************************************************) (* *) This file is part of Zephyrus . (* *) Z...
null
https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/engine/preprocess/incompatibilities_of.ml
ocaml
************************************************************************** (at your option) any later version. ...
This file is part of Zephyrus . Zephyrus 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 Zephyru...
ebc6910b81676b044c64ee6c43118e5096a48a5d23b2ef5da020f3757b755ab6
bdeket/rktsicm
fpf.rkt
#lang racket/base (provide (all-defined-out)) (require (only-in "../rkt/glue.rkt" if make-initialized-list fix:= fix:> fix:< fix:+ int:zero? int:quotient int:-) (only-in "../rkt/define.rkt" define default-object?) "../general/list-utils.rkt" "../general/l...
null
https://raw.githubusercontent.com/bdeket/rktsicm/225a43bc3d9953f9dbbdbfb2fa4a50028a7a41ce/rktsicm/sicm/simplify/fpf.rkt
racket
; start original file An fpf is a sorted list of terms. Each term has exponents and a coefficient. Graded lexicographical order Lexicographical order Converting between flat polynomials and other kinds of expressions cont = (lambda (poly vars) ... )
#lang racket/base (provide (all-defined-out)) (require (only-in "../rkt/glue.rkt" if make-initialized-list fix:= fix:> fix:< fix:+ int:zero? int:quotient int:-) (only-in "../rkt/define.rkt" define default-object?) "../general/list-utils.rkt" "../general/l...
f5327632a7f85e56814136f10f3bd72301e21675fe5e7bdaae106b1cb08e4d57
kupl/LearnML
patch.ml
let iter ((n : int), (f : 'a -> 'a)) : 'b -> 'a = let rec iter_sub ((m : int), (g : 'b -> 'a), (f' : 'a -> 'a)) : 'b -> 'a = match m with | 0 -> fun (__s8 : int) -> __s8 | 1 -> g | _ -> iter_sub (m - 1, fun __s9 -> (g (f' __s9), f')) in iter_sub (n, f, f)
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/iter/sub14/patch.ml
ocaml
let iter ((n : int), (f : 'a -> 'a)) : 'b -> 'a = let rec iter_sub ((m : int), (g : 'b -> 'a), (f' : 'a -> 'a)) : 'b -> 'a = match m with | 0 -> fun (__s8 : int) -> __s8 | 1 -> g | _ -> iter_sub (m - 1, fun __s9 -> (g (f' __s9), f')) in iter_sub (n, f, f)
72204113119e2414a9c13f683aba7bb37de409d189c12ab38322f497230b468b
tonyg/racket-abnf
arithmetic-rules.rkt
#lang abnf expr = term "+" expr / term "-" expr / term term = factor "*" term / factor "/" term / factor factor = "(" expr ")" / num num = *SP *DIGIT *SP SP = %x20 / %x09 / %x0d / %x0a DIGIT = %x30-39
null
https://raw.githubusercontent.com/tonyg/racket-abnf/1079bc5b30a227f52ac00a84dc3fcd539da5f8db/abnf/scribblings/arithmetic-rules.rkt
racket
#lang abnf expr = term "+" expr / term "-" expr / term term = factor "*" term / factor "/" term / factor factor = "(" expr ")" / num num = *SP *DIGIT *SP SP = %x20 / %x09 / %x0d / %x0a DIGIT = %x30-39
27e05e6b60ccc1cf1011c751298d03982888c57d465e1cc4875267c5b61a0cf7
fujita-y/ypsilon
parameters.scm
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. (library (core parameters) (export make-parameter parameterize) (import (core intrinsics) (only (core primitives) make-parameter subr?)) (define-syntax paramete...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/cbd38be6b2a021706cdf93d0e6a2daf1c61d6a8b/stdlib/core/parameters.scm
scheme
See LICENSE file for terms and conditions of use.
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . (library (core parameters) (export make-parameter parameterize) (import (core intrinsics) (only (core primitives) make-parameter subr?)) (define-syntax parameterize-aux (syntax-rules () ((_ () ((save new ...
c84369e6ef210c532cbd6f62ed55719cddd286952fc0cb680856791c1fe12099
seandepagnier/cruisingplot
config.scm
Copyright ( C ) 2010 < > ;; This Program is free software ; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . (declare (unit config)) (use a...
null
https://raw.githubusercontent.com/seandepagnier/cruisingplot/d3d83e7372e2c5ce1a8e8071286e30c2028088cf/config.scm
scheme
you can redistribute it and/or modify it under the terms of the GNU General Public either
Copyright ( C ) 2010 < > version 3 of the License , or ( at your option ) any later version . (declare (unit config)) (use args glut) (define config-file #f) (define (usage) (print "Usage: " (car (argv)) " [options...]") (newline) (print (args:usage opts)) (print "Report bugs to sean at depagnier dot...
9762a05b8f866c0b60d591ed68864928a3c005da3e55bc4ebcc3ec83f35f8f94
ngrunwald/datasplash
examples.clj
(ns datasplash.examples (:require [clojure.string :as str] [clojure.tools.logging :as log] [datasplash [api :as ds] [bq :as bq] [datastore :as dts] [pubsub :as ps] [options :as options :refer [defoptions]]] [clojure.e...
null
https://raw.githubusercontent.com/ngrunwald/datasplash/2275ea15b6c906a234b4455cd94926d8b2d54b41/src/clj/datasplash/examples.clj
clojure
; Port of ; Port of Filter ;; Port of ; Port of ; ; Example showing how to enable support for StandardSQL in your queries querying for words in the DatastoreWordCount ;; Port of PR welcome :) ; You must create the my-subscription and my-transformed-subscription subscriptions, and th...
(ns datasplash.examples (:require [clojure.string :as str] [clojure.tools.logging :as log] [datasplash [api :as ds] [bq :as bq] [datastore :as dts] [pubsub :as ps] [options :as options :refer [defoptions]]] [clojure.e...
477f63a2067011f925b2e1eb835410242f509a2c6bd6714c6a8dca1cac6eb1b6
csabahruska/jhc-components
DataP.hs
module DerivingDrift.DataP where import Name.Name(Name) import FrontEnd.HsSyn data Statement = DataStmt | NewTypeStmt deriving (Eq,Show) data Data = D { name :: Name, -- type name constraints :: [(Class,Var)], vars :: [Var], -- Parameters body :: [Body], derives :: ...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-frontend/src/DerivingDrift/DataP.hs
haskell
type name Parameters derived classes
module DerivingDrift.DataP where import Name.Name(Name) import FrontEnd.HsSyn data Statement = DataStmt | NewTypeStmt deriving (Eq,Show) data Data = D { constraints :: [(Class,Var)], body :: [Body], statement :: Statement } deriving (Eq,Show) data Body = Body { constructor :: Constructor, ...
04f4914d89c5fac206c1d375fcaddbe5dacb7d7d447ceb7c3caa0d6a1f123912
janestreet/bonsai
main.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Animation = Bonsai_experimental_animation module Form = Bonsai_web_ui_form let component = let%sub interpolator_form = Form.Elements.Dropdown.enumerable (module Animation.Interpolator) ~init:`First_item in let%sub text_picker = Form.Elements.Textbox.s...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/animation/main.ml
ocaml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Animation = Bonsai_experimental_animation module Form = Bonsai_web_ui_form let component = let%sub interpolator_form = Form.Elements.Dropdown.enumerable (module Animation.Interpolator) ~init:`First_item in let%sub text_picker = Form.Elements.Textbox.s...
76284201567c714dd596c80db633fbca572ab0157ac285d4cc9c26ea4c4f7640
agda/agda
PartialOrd.hs
{-# LANGUAGE TemplateHaskell #-} module Internal.Utils.PartialOrd ( ISet(ISet) , tests ) where import Agda.Utils.PartialOrd import Data.List ( (\\) ) import Data.Set (Set) import qualified Data.Set as Set import Internal.Helpers ---------------------------------------------------------------------...
null
https://raw.githubusercontent.com/agda/agda/3543ef3df19228012a1ac5be766cc38fd2f65f6a/test/Internal/Utils/PartialOrd.hs
haskell
# LANGUAGE TemplateHaskell # ---------------------------------------------------------------------------- * Properties | We test our properties on integer sets ordered by inclusion. | Auxiliary function: lists to sets = sorted duplicate-free lists. | 'leqPO' is inclusion of the associated 'Ordering' sets...
module Internal.Utils.PartialOrd ( ISet(ISet) , tests ) where import Agda.Utils.PartialOrd import Data.List ( (\\) ) import Data.Set (Set) import qualified Data.Set as Set import Internal.Helpers instance Arbitrary PartialOrdering where arbitrary = arbitraryBoundedEnum newtype ISet = ISet { iset :: Incl...
7e7a01352c847affa264899bfdc7e976eafe7b9e3b91c56825b6848586f574a8
yutopp/rill
os.ml
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/common/os.ml
ocaml
TODO: check is_file/is_dir TODO: fix with linking without linking
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
7a69a3fe82c1bfdd37673e8c74b482946c348d47aea3988900094697ce8e12fd
zcaudate-me/lein-repack
file_info.clj
(ns leiningen.repack.data.file-info (:require [clojure.string :as string])) (defrecord FileInfo [] Object (toString [this] (-> this :path))) (defmethod print-method FileInfo [v w] (.write w (str v)))
null
https://raw.githubusercontent.com/zcaudate-me/lein-repack/1eb542d66a77f55c4b5625783027c31fd2dddfe5/src/leiningen/repack/data/file_info.clj
clojure
(ns leiningen.repack.data.file-info (:require [clojure.string :as string])) (defrecord FileInfo [] Object (toString [this] (-> this :path))) (defmethod print-method FileInfo [v w] (.write w (str v)))
962f320c0ea88184df7466373a1e5db6aca0d88f879815793e9e633981f8b689
lasp-lang/partisan
skeen_3pc.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2019 . 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 %% a copy of the...
null
https://raw.githubusercontent.com/lasp-lang/partisan/fd048fc1b34309d9fa41450434a7e7b3b2fa1fb8/protocols/skeen_3pc.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file 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 License for the specific language governing permissio...
Copyright ( c ) 2019 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(skeen_3pc). -autho...
433736a0863d58f9bda5a965c1d39bb8de22cef3a6d4cd9dd376bc73ccb9a01e
juji-io/datalevin
timeout.cljc
(ns ^:no-doc datalevin.timeout) (def ^:dynamic *deadline* "When non nil, query pr pull will throw if its not done before *deadline* -- as returned by (System/currentTimeMillis) or (.now js/Date)" nil) (defn to-deadline "Converts a timeout in milliseconds (or nil) to a deadline (or nil)." [timeout-in-ms] (so...
null
https://raw.githubusercontent.com/juji-io/datalevin/5fc778fa31a63ad09635b41622d3337275d57efa/src/datalevin/timeout.cljc
clojure
(ns ^:no-doc datalevin.timeout) (def ^:dynamic *deadline* "When non nil, query pr pull will throw if its not done before *deadline* -- as returned by (System/currentTimeMillis) or (.now js/Date)" nil) (defn to-deadline "Converts a timeout in milliseconds (or nil) to a deadline (or nil)." [timeout-in-ms] (so...
24f3d9a42ec63ccc535e72ece718df5006978c629dd3b2a07a65e39967f649a8
lemmaandrew/CodingBatHaskell
make2.hs
From Given 2 int arrays , a and b , return a new array length 2 containing , as much as will fit , the elements from a followed by the elements from b. The arrays may be any length , including 0 , but there will be 2 or more elements available between the 2 arrays . Given 2 int arrays, a and b, return a new ...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Array-1/make2.hs
haskell
From Given 2 int arrays , a and b , return a new array length 2 containing , as much as will fit , the elements from a followed by the elements from b. The arrays may be any length , including 0 , but there will be 2 or more elements available between the 2 arrays . Given 2 int arrays, a and b, return a new ...
8d339d02bbabfd27a61376cf9aed449df99244f79e253efab17e6d5d486e0378
ocamllabs/ocaml-modular-implicits
typedecl.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/typedecl.mli
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 Q Public License version 1.0 . open Types open Format val transl_typ...
b06cd7b8db44183b04de6a59f7a54d0592b2e0a553c99e2b4e7075be071ccdfc
brendanhay/amazonka
TimeRangeType.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/Types/TimeRangeType.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated # COMPLETE TimeRangeType_Event, TimeRangeType_TraceId, TimeRangeType' #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Module : A...
5beb63dcdcdf784f23883842b8dcc965b3e05f40a03228747aff9959cee2080f
ekmett/parsec-parsers
doctests.hs
module Main where import Build_doctests (deps) import Control.Applicative import Control.Monad import Data.List import System.Directory import System.FilePath import Test.DocTest main :: IO () main = getSources >>= \sources -> doctest $ "-isrc" : "-idist/build/autogen" : "-optP-include" : "-optPdist/build/a...
null
https://raw.githubusercontent.com/ekmett/parsec-parsers/b8a53db11df0bbdd2da953e59a9a8abeb893ce0e/tests/doctests.hs
haskell
module Main where import Build_doctests (deps) import Control.Applicative import Control.Monad import Data.List import System.Directory import System.FilePath import Test.DocTest main :: IO () main = getSources >>= \sources -> doctest $ "-isrc" : "-idist/build/autogen" : "-optP-include" : "-optPdist/build/a...
d9842becdbb4d93f43d40cb8d8e600d40088f6da1452611f710e80ef1fef02f2
airalab/habit
Internal.hs
# LANGUAGE TemplateHaskell # -- | -- Module : Web.Bot.Story.Internal Copyright : 2016 - 2017 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -- Story bot implementation. -- module Web.Bot.Story.Internal (storyBot) where import Control.Concurrent ...
null
https://raw.githubusercontent.com/airalab/habit/a3fd757cc5a8dd9086df98ed8658535d063cd49e/src/Web/Bot/Story/Internal.hs
haskell
| Module : Web.Bot.Story.Internal License : BSD3 Maintainer : Stability : experimental Portability : portable Story bot implementation. | Incoming messages will be sended Metrics | Chat ID based message splitter Get a chat id Metrics Lookup chat id in the map Chat exist => story is ru...
# LANGUAGE TemplateHaskell # Copyright : 2016 - 2017 module Web.Bot.Story.Internal (storyBot) where import Control.Concurrent (killThread, ThreadId) import Data.IntMap.Strict as I import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Monad (forever) import qualified Data.Text as T impor...
836f45c9e97bc95bffc21e04964a979ea489c6181ade11b9e131d41bc1f5061d
alesaccoia/festival_flinger
pauses.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ;;; ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/pauses.scm
scheme
;; ; ; Copyright (c) 1996,1997 ;; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this softwar...
(define (Pauses utt) "(Pauses utt) Insert pauses where required." (let ((rval (apply_method 'Pause_Method utt))) (cond (t (Classic_Pauses utt)))) (Pause_optional_deleting_B_X utt)) (define (Classic_Pauses utt) "(Pauses UTT) Predict pause insertion." (let ((words ...
1e70a52bc434cdca464a3ba8ddc20824079aee1ab651187d3459dc91edcc170a
sebsheep/elm2node
Declaration.hs
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # {-# LANGUAGE OverloadedStrings #-} module Parse.Declaration ( Decl(..) , declaration , infix_ ) where import qualified Data.Name as Name import qualified AST.Source as Src import qualified AST.Utils.Binop as Binop import qualified Parse.Expression as E...
null
https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/compiler/src/Parse/Declaration.hs
haskell
# LANGUAGE OverloadedStrings # DECLARATION : = TYPE DECLARATIONS TYPE ALIASES = CUSTOM TYPES = | PORT : INVARIANT: always chomps to a freshline ( ) =
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # module Parse.Declaration ( Decl(..) , declaration , infix_ ) where import qualified Data.Name as Name import qualified AST.Source as Src import qualified AST.Utils.Binop as Binop import qualified Parse.Expression as Expr import qualified Parse.Pattern ...
ca887003b576eb10c67fd1723097b5aeb77cf269e99dd336f3aa94ef357f42b6
tonyg/racket-operational-transformation
main.rkt
#lang racket/base (require "operation.rkt") (require "client.rkt") (require "server.rkt") (provide (all-from-out "operation.rkt")) (provide (all-from-out "client.rkt")) (provide (all-from-out "server.rkt"))
null
https://raw.githubusercontent.com/tonyg/racket-operational-transformation/1960b7f70138a9de6e3ceb2943b8ca46c83d94ae/operational-transformation-lib/operational-transformation/main.rkt
racket
#lang racket/base (require "operation.rkt") (require "client.rkt") (require "server.rkt") (provide (all-from-out "operation.rkt")) (provide (all-from-out "client.rkt")) (provide (all-from-out "server.rkt"))
071ea78fba4dc946bd6df1c30a1030c0220d24c47cd22afda23f5ff79f178b25
nedap/formatting-stack
valid_syntax.clj
(ns valid-syntax)
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/test-resources/valid_syntax.clj
clojure
(ns valid-syntax)
b08c8d9d0e3f9054b0873a75674f7cee11de12b1c0ed61b481481e73d60f80ef
silky/quipper
Classical.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # LANGUAGE FlexibleContexts # -- | This module p...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/quipper/Quipper/Classical.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== | This module provides some operations for low-level manipulation of classical circuits. It is built directly on top of "Quipper.Circ...
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the # LANGUAGE FlexibleContexts # module Quipper.Classical where import other Quipper stuff import Quipper.Generic import Quipper.QData import Quipper.Monad import Quipper.Control import Quipper.Transformer import Data.Map (Map) import qua...
601a9be222c518686bc094bc4cccca753effda55186e8f9da2446c6b655b8b70
digital-asset/ghc
T13075.hs
{-# LANGUAGE BangPatterns #-} module Main where !(Just x) = Nothing main = putStrLn "hi there!"
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_fail/T13075.hs
haskell
# LANGUAGE BangPatterns #
module Main where !(Just x) = Nothing main = putStrLn "hi there!"
b697940926d109c2a088a9d4a2d16f58cdd87465ab81b3e8162f61fe50329fe8
tweag/ormolu
multiple-guards.hs
foo :: Int -> Int foo x | x == 5 = 10 | otherwise = 12 bar :: Int -> Int bar x | x == 5 = foo x + foo 10 | x == 6 = foo x + foo 20 | otherwise = foo 100
null
https://raw.githubusercontent.com/tweag/ormolu/714b98e7f27c7d14ecfd5d2c19443f14d6b9bfc9/data/examples/declaration/value/function/multiple-guards.hs
haskell
foo :: Int -> Int foo x | x == 5 = 10 | otherwise = 12 bar :: Int -> Int bar x | x == 5 = foo x + foo 10 | x == 6 = foo x + foo 20 | otherwise = foo 100
d24b85e4391b37018341052fc8e777dd1f935aca5e02ec2fe46febce0a9550f4
janestreet/krb
krb_result.ml
open! Core type 'a t = ('a, Krb_error.t) Result.t let to_or_error ?context ~info result = Result.map_error result ~f:(fun code -> let krb_error = Krb_error.to_string code ?context ~info in Error.create_s [%message "" ~_:(krb_error : string) (code : int32)]) ;;
null
https://raw.githubusercontent.com/janestreet/krb/1105ba1e8b836f80f09e663bc1b4233cf2607e7b/internal/krb_result.ml
ocaml
open! Core type 'a t = ('a, Krb_error.t) Result.t let to_or_error ?context ~info result = Result.map_error result ~f:(fun code -> let krb_error = Krb_error.to_string code ?context ~info in Error.create_s [%message "" ~_:(krb_error : string) (code : int32)]) ;;
144717e5fde40cd0c17c17cdd35b8b86777fcfbe907ec6af7766d7671f7e87ab
metabase/metabase
http_action.clj
(ns metabase.actions.http-action (:require [cheshire.core :as json] [clj-http.client :as http] [clojure.string :as str] [metabase.driver.common.parameters :as params] [metabase.driver.common.parameters.parse :as params.parse] [metabase.query-processor.error-type :as qp.error-type] [metabase.util ...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/actions/http_action.clj
clojure
might need to Scope childScope = Scope.newChildScope(rootScope); if root-scope can be modified by expression TODO maybe we want to default Agent here? Maybe Origin/Referer?
(ns metabase.actions.http-action (:require [cheshire.core :as json] [clj-http.client :as http] [clojure.string :as str] [metabase.driver.common.parameters :as params] [metabase.driver.common.parameters.parse :as params.parse] [metabase.query-processor.error-type :as qp.error-type] [metabase.util ...
b8059efeef83d21780526a04a55ff0ee34edf1de755384027ea99f2726027bd9
liquidz/iced-nrepl
transport.clj
(ns iced.nrepl.transport) (if (find-ns 'clojure.tools.nrepl) (require '[clojure.tools.nrepl.misc :refer [response-for]] '[clojure.tools.nrepl.transport :as transport]) (require '[nrepl.misc :refer [response-for]] '[nrepl.transport :as transport])) (def send-list-limit 50) (defn send! [msg m] (let...
null
https://raw.githubusercontent.com/liquidz/iced-nrepl/f63ae00385be912196fceb9d26e174cc5d68295a/src/iced/nrepl/transport.clj
clojure
(ns iced.nrepl.transport) (if (find-ns 'clojure.tools.nrepl) (require '[clojure.tools.nrepl.misc :refer [response-for]] '[clojure.tools.nrepl.transport :as transport]) (require '[nrepl.misc :refer [response-for]] '[nrepl.transport :as transport])) (def send-list-limit 50) (defn send! [msg m] (let...
ed9b827f49439a59475f8901588ad1763ff550b2977e6a9ab05e2b129895cdae
valderman/haste-compiler
IntOverflow.hs
# LANGUAGE CPP # module Tests.IntOverflow where import Data.Int #ifdef __HASTE__ type Intish = Int #else type Intish = Int32 #endif # NOINLINE int_max # int_max :: Intish int_max = 0x7fffffff # NOINLINE int_min # int_min :: Intish int_min = -2147483648 # NOINLINE num # num :: IO Intish num = return 1999999999 runT...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/Tests/IntOverflow.hs
haskell
# LANGUAGE CPP # module Tests.IntOverflow where import Data.Int #ifdef __HASTE__ type Intish = Int #else type Intish = Int32 #endif # NOINLINE int_max # int_max :: Intish int_max = 0x7fffffff # NOINLINE int_min # int_min :: Intish int_min = -2147483648 # NOINLINE num # num :: IO Intish num = return 1999999999 runT...
1e49fc748cb7e58d0a560d59d1b257cad834d88c4831efe12736338055a3b9dd
aphyr/clj-antlr
static.clj
(ns clj-antlr.static "Interacts with statically compiled antlr classes." (:require [clojure.reflect :refer [reflect]]) (:import (org.antlr.v4.runtime.tree ParseTreeVisitor))) (defmacro parser "Constructs a parser over a token stream." [parser-class tokens] `(new ~parser-class ~tokens)) (defmacro lex...
null
https://raw.githubusercontent.com/aphyr/clj-antlr/d82f80e4d63341d4e04c81dc01a23321e2a2fc21/src/clj_antlr/static.clj
clojure
Compute all superclass/interface method signatures Take methods on this class And drop any which have corresponding signatures in supers Find the parser context this method accepts Figure out what methods that context uniquely defines Select zero-arities Multiple children Terminal node Descend Make a map out ...
(ns clj-antlr.static "Interacts with statically compiled antlr classes." (:require [clojure.reflect :refer [reflect]]) (:import (org.antlr.v4.runtime.tree ParseTreeVisitor))) (defmacro parser "Constructs a parser over a token stream." [parser-class tokens] `(new ~parser-class ~tokens)) (defmacro lex...
d5e99ebace4447400f9411bf10edd7a1a3b2780600053d34f8d831c4334cc262
schemeorg-community/index.scheme.org
srfi.63.scm
(((name . "array?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "equal?") (signature lambda (obj1 obj2) boolean?) (tags pure)) ((name . "array-rank") (signature lambda (obj) integer?) (tags pure)) ((name . "array-dimnesions") (signature lambda ((array? array)) list?) (tags pure)) ((name . ...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.63.scm
scheme
(((name . "array?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "equal?") (signature lambda (obj1 obj2) boolean?) (tags pure)) ((name . "array-rank") (signature lambda (obj) integer?) (tags pure)) ((name . "array-dimnesions") (signature lambda ((array? array)) list?) (tags pure)) ((name . ...
ee00ee31a9cbe66d170002d80c74d28cb41a585380c32fd52508b6733a0b29e7
lymar/hastache
function.hs
#!/usr/local/bin/runhaskell import Text.Hastache import Text.Hastache.Context import qualified Data.Text.Lazy.IO as TL main = hastacheStr defaultConfig (encodeStr template) (mkStrContext context) >>= TL.putStrLn -- begin example template = "Hello, {{#reverse}}world{{/reverse}}!" context "reverse" = MuLambda ...
null
https://raw.githubusercontent.com/lymar/hastache/cd299ff1ac4c35259fbd333ea7fa9b3c280b9ff9/examples/function.hs
haskell
begin example
#!/usr/local/bin/runhaskell import Text.Hastache import Text.Hastache.Context import qualified Data.Text.Lazy.IO as TL main = hastacheStr defaultConfig (encodeStr template) (mkStrContext context) >>= TL.putStrLn template = "Hello, {{#reverse}}world{{/reverse}}!" context "reverse" = MuLambda (reverse . decode...
a3d5ab754a95755cb2c0934f9388852f620f8f5eecc9bde5b3e1f232aca837af
jafingerhut/dolly
track.clj
Copyright ( c ) , 2012 . 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 ...
null
https://raw.githubusercontent.com/jafingerhut/dolly/6dfe7f3bcd58d81fba7793d214230792b6140ffd/src/dolly/copieddeps/tns/clojure/tools/namespace/track.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. Structure of the namespace tracker map D...
Copyright ( c ) , 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns ^{:author "Stuart Sierra" :doc "Dependency tracker which can compute which namespaces need to be reloaded after files have changed. This is the low-level implementation that re...
af707e57f5cd706eecdc96eeba38f512b8b85b51b2cd712f327b13cc0909e16c
esl/escalus
connection_SUITE.erl
%% @doc Tests for escalus_connection -module(connection_SUITE). -include_lib("exml/include/exml_stream.hrl"). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, groups/0]). -export([wait/1, wait_with_han...
null
https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/test/connection_SUITE.erl
erlang
@doc Tests for escalus_connection Common Test callbacks Test cases The same test but with a helper function Filtered out by Pred, but handled by Handler Accepted by Pred, so not handled Helpers
-module(connection_SUITE). -include_lib("exml/include/exml_stream.hrl"). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, groups/0]). -export([wait/1, wait_with_handler/1, receive_stanza_timeo...
106537d25cb03c91146c47e57c4c2547476f8f4bdd2fe402f780db169437a5db
biscuit-auth/biscuit-haskell
Executor.hs
# LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Spec.Executor (specs) where import Data.Map.Strict as Map import Data.Set as Set import Data.Text (Text, un...
null
https://raw.githubusercontent.com/biscuit-auth/biscuit-haskell/b1863e3e2ce5c431742effb52c9cfeba8433c01a/biscuit/test/Spec/Executor.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # ("1 / 0") @?= Left "Divide by 0"
# LANGUAGE OverloadedLists # module Spec.Executor (specs) where import Data.Map.Strict as Map import Data.Set as Set import Data.Text (Text, unpack) import Numeric.Natural (Natural) i...
e93d154786c3536fa8643202beaf141c01d2300efc661769a0d09fdbc70056ee
racket/typed-racket
pr11686.rkt
#; (exn-pred exn:fail:contract? #rx"shape-check") #lang racket/load (module T typed/racket/shallow (struct: [X] doll ([contents : X])) (define-type RussianDoll (Rec RD (U 'center (doll RD)))) (: f (RussianDoll -> RussianDoll)) (define (f rd) (let ((v (doll-contents (assert rd doll?)))) (asser...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/fail/shallow/pr11686.rkt
racket
(exn-pred exn:fail:contract? #rx"shape-check") #lang racket/load (module T typed/racket/shallow (struct: [X] doll ([contents : X])) (define-type RussianDoll (Rec RD (U 'center (doll RD)))) (: f (RussianDoll -> RussianDoll)) (define (f rd) (let ((v (doll-contents (assert rd doll?)))) (assert v...
924bcef360eb128900cd3b0f0d5661d46dec7658ffffa0ebc981166b1c40b06c
pflanze/chj-schemelib
vectorlib-2.scm
Copyright 2013 - 2017 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require eas...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/math/vectorlib-2.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. COPYPASTE
Copyright 2013 - 2017 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require easy parallel math/vectorlib) XXXX aufraumen nur (define. (Mc.mirror0 m) (letv ((s0 s1) (.sizes m)) ...
eb23367b022bd069e4d09330cef30a3e0e85de4ec5aa8d8f94203d3bed6e11a5
fragnix/fragnix
Data.IntSet.Base.hs
# LANGUAGE Haskell98 # {-# LINE 1 "Data/IntSet/Base.hs" #-} # LANGUAGE CPP # # LANGUAGE MagicHash , BangPatterns , DeriveDataTypeable , StandaloneDeriving # # LANGUAGE Trustworthy # # LANGUAGE TypeFamilies # ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/benchmarks/containers/Data.IntSet.Base.hs
haskell
# LINE 1 "Data/IntSet/Base.hs" # --------------------------------------------------------------------------- | Module : Data.IntSet.Base License : BSD-style Maintainer : Stability : provisional Portability : portable An efficient implementation of integer sets. These modules are intended to ...
# LANGUAGE Haskell98 # # LANGUAGE CPP # # LANGUAGE MagicHash , BangPatterns , DeriveDataTypeable , StandaloneDeriving # # LANGUAGE Trustworthy # # LANGUAGE TypeFamilies # ...
14115617e088cf3534aaf001a8c7fa5e2da6b6c9b9adb56fa059229c1184e12f
curaai/H-R-Tracing
Metal.hs
module Material.Metal where import Hit (HitRecord (HitRecord, hitNormal, hitPoint), Scatterable (..), Scattered (Scattered, scatteredRay)) import Ray (Ray (Ray, direction)) import Sampling (sampleUnitSphere) import ...
null
https://raw.githubusercontent.com/curaai/H-R-Tracing/ad4867763083994c0d482a3e73e5b3de97e20d5c/src/Material/Metal.hs
haskell
module Material.Metal where import Hit (HitRecord (HitRecord, hitNormal, hitPoint), Scatterable (..), Scattered (Scattered, scatteredRay)) import Ray (Ray (Ray, direction)) import Sampling (sampleUnitSphere) import ...
ab48adb207428f23c02d2df7091f0c22ff3da4167a8d84f517c78194af1f4811
ropas/sparrow
arrayBlk.mli
(***********************************************************************) (* *) Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . (* All rights reserved...
null
https://raw.githubusercontent.com/ropas/sparrow/3ec055b8c87b5c8340ef3ed6cde34f5835865b31/src/domain/arrayBlk.mli
ocaml
********************************************************************* All rights reserved. See the LICENSE file for details. ...
Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . This software is distributed under the term of the BSD license . module ArrInfo : sig type t = { offset : Itv.t; size : Itv.t; stride : It...
425246e99253fb25cb105f49e73c149fec490834454e5daae5491f01891278a8
SimulaVR/Simula
Simula.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Plugin.Simula (GodotSimula(..)) where import Plugin.Imports import Data.Maybe import Plugin.Input import Plugin.Input.Grab import Plugin.SimulaControl...
null
https://raw.githubusercontent.com/SimulaVR/Simula/0a6041c73c419a35fc45c028191ac1c32d4c419f/addons/godot-haskell-plugin/src/Plugin/Simula.hs
haskell
# LANGUAGE BangPatterns # className = "Simula" OpenHMD is unfortunately not yet a working substitute for OpenVR UPDATE_ALWAYS Godot requires us to set a default size Add the HMD as a child of the origin node node. Helper function for black texture debugging. From the internet: var img = Image() var te...
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Plugin.Simula (GodotSimula(..)) where import Plugin.Imports import Data.Maybe import Plugin.Input import Plugin.Input.Grab import Plugin.SimulaController import Plugin.Si...
a0f1a2087df90a6cc15faca1bf7923192d2a05d4cefd441e2c85d2985cca4564
input-output-hk/ouroboros-network
MockEnvironment.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NamedFieldPuns # {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # {-# OPTIONS_GHC -Wno-deferred-out-of-scope-variables #-} # OPTIONS_GHC -Wno - incomplete - uni - patterns # ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/679c7da2079a5e9972a1c502b6a4d6af3eb76945/ouroboros-network/test/Test/Ouroboros/Network/PeerSelection/MockEnvironment.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wno-deferred-out-of-scope-variables # Mock environment types | The data needed to execute the peer selection governor in a test with a mock network environment. It contains the data needed to provide t...
# LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module Test.Ouroboros.Network.PeerSelection.MockEnvironment ( PeerGraph (..) , GovernorMockEnvironment (..) , GovernorMockEnvironmentWithoutAsyncDemotion (..) ,...
aa51c81079ffc166a0fb3a04fe16e21063375706011490074caca49363c854e0
xvw/preface
fun.ml
type ('a, 'b) t = 'a -> 'b include Preface_core.Fun module Profunctor = Preface_make.Profunctor.Via_dimap (struct type nonrec ('a, 'b) t = ('a, 'b) t let dimap x y z = y % z % x end) module Strong = Preface_make.Strong.Over_profunctor_via_fst (Profunctor) (struct type nonrec ('a, 'b) t = ('a, 'b...
null
https://raw.githubusercontent.com/xvw/preface/ece0829c9ede3e5a4975df3864edb657b96fe82c/lib/preface_stdlib/fun.ml
ocaml
type ('a, 'b) t = 'a -> 'b include Preface_core.Fun module Profunctor = Preface_make.Profunctor.Via_dimap (struct type nonrec ('a, 'b) t = ('a, 'b) t let dimap x y z = y % z % x end) module Strong = Preface_make.Strong.Over_profunctor_via_fst (Profunctor) (struct type nonrec ('a, 'b) t = ('a, 'b...
cde03d1243c14b2837cb3942e0b68a9582ce185773fcd70cebb3b250e4cfbde3
serokell/fift-asm-dsl
FiftAsm.hs
SPDX - FileCopyrightText : 2019 > -- SPDX - License - Identifier : MPL-2.0 # OPTIONS_GHC -F -pgmF autoexporter # # OPTIONS_GHC -Wno - dodgy - exports # {-# OPTIONS_GHC -Wno-unused-imports #-}
null
https://raw.githubusercontent.com/serokell/fift-asm-dsl/d710e076d4212aa2cce4aa8bb15277d3b09c48af/src/FiftAsm.hs
haskell
# OPTIONS_GHC -Wno-unused-imports #
SPDX - FileCopyrightText : 2019 > SPDX - License - Identifier : MPL-2.0 # OPTIONS_GHC -F -pgmF autoexporter # # OPTIONS_GHC -Wno - dodgy - exports #
3d0dcfdb0e2a985a01622857774e8d64558ba47c233de36a465c9aa656a20b56
vicampo/riposte
cart.rkt
#lang racket/base (require racket/match web-server/http/request-structs web-server/dispatch json (file "common.rkt")) (define (view-cart req cart-id) (response/jsexpr (hasheq 'grand_total 34.58) #:code 200)) (define (add-item-to-cart req cart-id) (match (req...
null
https://raw.githubusercontent.com/vicampo/riposte/0a71e54539cb40b574f84674769792444691a8cf/examples/cart.rkt
racket
#lang racket/base (require racket/match web-server/http/request-structs web-server/dispatch json (file "common.rkt")) (define (view-cart req cart-id) (response/jsexpr (hasheq 'grand_total 34.58) #:code 200)) (define (add-item-to-cart req cart-id) (match (req...
3a8034204da8375f11d4eaeb023f2ddbf60fa758ab71f6902a91f4420284313c
Clojure2D/clojure2d-examples
interval.clj
(ns rt4.in-one-weekend.ch08b.interval (:refer-clojure :exclude [empty]) (:require [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol IntervalProto (contains [interval x]) ;; a <= x <= b ;; introduced due to the bug in the bo...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch08b/interval.clj
clojure
a <= x <= b introduced due to the bug in the book (in the time of writing this code), a < x <= b
(ns rt4.in-one-weekend.ch08b.interval (:refer-clojure :exclude [empty]) (:require [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol IntervalProto (contains- [interval x]) (clamp [interval x])) (defrecord Interval [^double...
f4caba84bdae5ad55a5b75d70f03ec4edaad9089b5d218e3d714d2fd0f4a8c44
jacekschae/learn-reitit-course-files
handlers.clj
(ns cheffy.recipe.handlers (:require [cheffy.recipe.db :as recipe-db] [ring.util.response :as rr] [cheffy.responses :as responses]) (:import (java.util UUID))) (defn list-all-recipes [db] (fn [request] (let [uid "auth0|5ef440986e8fbb001355fd9c" recipes (recipe-db/find-all-...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/25-delete-recipe/src/cheffy/recipe/handlers.clj
clojure
(ns cheffy.recipe.handlers (:require [cheffy.recipe.db :as recipe-db] [ring.util.response :as rr] [cheffy.responses :as responses]) (:import (java.util UUID))) (defn list-all-recipes [db] (fn [request] (let [uid "auth0|5ef440986e8fbb001355fd9c" recipes (recipe-db/find-all-...
eb84aa791add6cef2a6c1ea8406917cd7a24d1bb53f0eb7f9c9b312006b19d77
AppsFlyer/pronto
utils.clj
(ns pronto.utils (:require [clojure.string :as s] [pronto.protos :refer [global-ns]]) (:import [pronto ProtoMap ProtoMapper] [com.google.protobuf Descriptors$FieldDescriptor Descriptors$GenericDescriptor Descriptors$FieldDescriptor$Type GeneratedMessageV3])) (defn javaify [s] (s...
null
https://raw.githubusercontent.com/AppsFlyer/pronto/b7bbbd0a85194073aefd0cf1e8c3189eeae07e01/src/clj/pronto/utils.clj
clojure
return as code so this frame isn't included in the stack trace with the same name but different packages. don't import generated classes created by the lib, as this might lead to collision between different mappers when importing these classes into the global ns clojure.core is not auto-loaded so load it explicit...
(ns pronto.utils (:require [clojure.string :as s] [pronto.protos :refer [global-ns]]) (:import [pronto ProtoMap ProtoMapper] [com.google.protobuf Descriptors$FieldDescriptor Descriptors$GenericDescriptor Descriptors$FieldDescriptor$Type GeneratedMessageV3])) (defn javaify [s] (s...
f25cfb813494921d96dc0d24ebf686c670b334fdcaa07c11eacba6357571bba5
haskell/ghcide
IdeConfiguration.hs
# LANGUAGE DuplicateRecordFields # module Development.IDE.Core.IdeConfiguration ( IdeConfiguration(..) , registerIdeConfiguration , getIdeConfiguration , parseConfiguration , parseWorkspaceFolder , isWorkspaceFile , modifyWorkspaceFolders , modifyClientSettings , getClientSettings ) where import ...
null
https://raw.githubusercontent.com/haskell/ghcide/3ef4ef99c4b9cde867d29180c32586947df64b9e/src/Development/IDE/Core/IdeConfiguration.hs
haskell
| Lsp client relevant configuration details
# LANGUAGE DuplicateRecordFields # module Development.IDE.Core.IdeConfiguration ( IdeConfiguration(..) , registerIdeConfiguration , getIdeConfiguration , parseConfiguration , parseWorkspaceFolder , isWorkspaceFile , modifyWorkspaceFolders , modifyClientSettings , getClientSettings ) where import ...
1affc2c876b3b0b0059dd61fa3ea6debce3a26f1392ab7b7267b4dc39c26396a
janestreet/accessor_base
accessor_staged.ml
open! Base open! Import let staged = [%accessor Accessor.isomorphism ~get:Staged.stage ~construct:Staged.unstage] let unstaged = [%accessor Accessor.invert staged]
null
https://raw.githubusercontent.com/janestreet/accessor_base/8384c29a37e557168ae8a43b2a5a531f0ffc16e4/src/accessor_staged.ml
ocaml
open! Base open! Import let staged = [%accessor Accessor.isomorphism ~get:Staged.stage ~construct:Staged.unstage] let unstaged = [%accessor Accessor.invert staged]
f97c935f7736b38eb1ca89516e8dd98b837d5eb520bbe6df11530ec27fb69a0d
marigold-dev/deku
handlers.ml
open Ocaml_wasm_vm type params = (string * string list) list module Operation_payload = struct include Operation_payload let enc = Data_encoding.Json.convert Operation_payload.encoding end module type HANDLERS = sig type path type body val body_encoding : body Json_encoding.encoding type response v...
null
https://raw.githubusercontent.com/marigold-dev/deku/5d578d6a6124ade1deff4ed88eac71de17a065fd/deku-c/ligo-deku-rpc/handlers.ml
ocaml
Currently we don't support passing tickets to this endpoint so tickets will always be an emtpy array, but we'll include them in this test in case we want to add them in the future TODO: better error messages in Tuna
open Ocaml_wasm_vm type params = (string * string list) list module Operation_payload = struct include Operation_payload let enc = Data_encoding.Json.convert Operation_payload.encoding end module type HANDLERS = sig type path type body val body_encoding : body Json_encoding.encoding type response v...
3f85d26e1e2a294b5610618e43f4d3a4ed5648927a249ce02d24654f9607798c
chris-taylor/aima-haskell
MapColoring.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module AI.Search.Example.MapColoring where import Data.Map (Map, (!)) import qualified Data.Map as M import AI.Search.CSP import AI.Util.Graph (Graph) import AI.Util.Util import qualified AI.Util.Graph as G ---------------------- -- Map Coloring CSP -- -----...
null
https://raw.githubusercontent.com/chris-taylor/aima-haskell/538dcfe82a57a623e45174e911ce68974d8aa839/src/AI/Search/Example/MapColoring.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances # -------------------- Map Coloring CSP -- -------------------- --------------------------------- --------------------------------- --------- Demos -- ---------
module AI.Search.Example.MapColoring where import Data.Map (Map, (!)) import qualified Data.Map as M import AI.Search.CSP import AI.Util.Graph (Graph) import AI.Util.Util import qualified AI.Util.Graph as G data MapColoringCSP v a = MCP { neighboursMC :: Graph String , colorsMC :: [Char] } deriving (Show)...
71feaee06b7373c1aaf96b8c4dfa7104972169b224cf4930c66dd48e97009193
reflex-frp/reflex-native
Style.hs
# LANGUAGE ExplicitNamespaces # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # |Functions for applying " Reflex . Native " style structures to views . module Reflex.UIKit.Style ( -- * Per-view-type functionality applyLabelStyle, applyViewSty...
null
https://raw.githubusercontent.com/reflex-frp/reflex-native/5fb6a07845e4f7c51f97e9c8ce1a48009f341246/reflex-native-uikit/src/Reflex/UIKit/Style.hs
haskell
# LANGUAGE RankNTypes # * Per-view-type functionality * Per-phase functionality (initial / modify) # INLINABLE applyLabelStyle #
# LANGUAGE ExplicitNamespaces # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # |Functions for applying " Reflex . Native " style structures to views . module Reflex.UIKit.Style ( applyLabelStyle, applyViewStyle , initialStyle, modifyStyle ) where import Control.Monad ...
c1df14633a79c5491a89b1845ff1c1d65c5c54c37523ea7409510858ac1bd123
ekmett/unboxed
Int8.hs
# Language NoImplicitPrelude # {-# Language RebindableSyntax #-} {-# Language MagicHash #-} {-# Language KindSignatures #-} {-# Language PolyKinds #-} # Language UnboxedTuples # {-# Language BangPatterns #-} {-# Language DataKinds #-} {-# Language RankNTypes #-} {-# Language TypeSynonymInstances #-} {-# Language Import...
null
https://raw.githubusercontent.com/ekmett/unboxed/2f8bf0c92f3d584c8d154c037ca4c7747b6d9f65/src/Unboxed/Rep/Int8.hs
haskell
# Language RebindableSyntax # # Language MagicHash # # Language KindSignatures # # Language PolyKinds # # Language BangPatterns # # Language DataKinds # # Language RankNTypes # # Language TypeSynonymInstances # # Language ImportQualifiedPost # | exposes detailed names that can be used for RULES # INLINE [1] eqInt8 # #...
# Language NoImplicitPrelude # # Language UnboxedTuples # # OPTIONS_GHC -Wno - orphans # module Unboxed.Rep.Int8 ( module Def.Int8 , eqInt8, neInt8, ltInt8, leInt8, gtInt8, geInt8 , Int8# ) where import Unboxed.Internal.Class import ( succError , predError ) import GHC.Exception import GHC.Int (Int8(..)) i...
3d3962d3d7292e176f676a5f8bf36d45ef60a4dc06097b77e691c7ff73617fe5
ocaml-ppx/ppx
builder_unstable_for_testing.ml
$ Ppx_ast_cinaps.print_builder_ml ( Astlib . Version.of_string " unstable_for_testing " ) open Versions.Unstable_for_testing let module_binding ~loc ~expr ~name = Module_binding.create ~pmb_loc:loc ~pmb_attributes:(Attributes.of_concrete []) ~pmb_expr:expr ~pmb_name:name let value_binding ~loc ~expr ~pat = Value_bindin...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/ast/builder_unstable_for_testing.ml
ocaml
$
$ Ppx_ast_cinaps.print_builder_ml ( Astlib . Version.of_string " unstable_for_testing " ) open Versions.Unstable_for_testing let module_binding ~loc ~expr ~name = Module_binding.create ~pmb_loc:loc ~pmb_attributes:(Attributes.of_concrete []) ~pmb_expr:expr ~pmb_name:name let value_binding ~loc ~expr ~pat = Value_bindin...
3ea8d70ab5b724403db1bec45fadf22a131bf783c2a49835b49248267ef23da6
cl21/cl21
cl21.lisp
(defpackage cl21) (cl:in-package :cl21) (cl:eval-when (:compile-toplevel :load-toplevel :execute) (cl:dolist (#1=#:package-name '(:cl21.core)) (cl:let ((#2=#:package (cl:find-package #1#))) (cl:unless #2# (cl:error "Package \"~A\" doesn't exist." #1#)) (cl:do-external-symbols (#3=#:symbol #2#...
null
https://raw.githubusercontent.com/cl21/cl21/c36644f3b6ea4975174c8ce72de43a4524dd0696/src/cl21.lisp
lisp
(defpackage cl21) (cl:in-package :cl21) (cl:eval-when (:compile-toplevel :load-toplevel :execute) (cl:dolist (#1=#:package-name '(:cl21.core)) (cl:let ((#2=#:package (cl:find-package #1#))) (cl:unless #2# (cl:error "Package \"~A\" doesn't exist." #1#)) (cl:do-external-symbols (#3=#:symbol #2#...
9dee93cc62d590b2f3c46470a6e165f8a5dc28e342148f6b2957abea2b5d5ff6
tqtezos/minter-sdk
Util.hs
{-# OPTIONS_GHC -Wno-redundant-constraints #-} # OPTIONS_GHC -Wno - orphans # module Test.Util ( (-:) , type (:#) , pattern (::<) , pattern SNil , FA2Setup (..) , doFA2Setup , originateFA2 , originateFA2WithGlobalOperators , assertingBalanceDeltas , assertingBalanceDeltas' , balanceOf , mkAllow...
null
https://raw.githubusercontent.com/tqtezos/minter-sdk/6239f6ee8435977085c00c194224d4223386841a/packages/minter-contracts/test-hs/Test/Util.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # * Property-based tests Re-exports | An alias for pair constructor. | Helper type that attaches a name to a numeric type literal. | Pattern-match on a list of fixed size that has some elements in it. Unlike 'Sized.:<', this pattern requires the list to be non-empty via ...
# OPTIONS_GHC -Wno - orphans # module Test.Util ( (-:) , type (:#) , pattern (::<) , pattern SNil , FA2Setup (..) , doFA2Setup , originateFA2 , originateFA2WithGlobalOperators , assertingBalanceDeltas , assertingBalanceDeltas' , balanceOf , mkAllowlistSimpleParam , originateWithAdmin , cle...
d0430f901b25722771b1baa38ddd92bc76c7c91a90c0c6e99cd5631773892adc
mariari/Misc-Lisp-Scripts
chapter5.lisp
(load "chapter1.lisp") (load "chapter3.lisp") (defmacro! defunits% (quantity base-unit &rest units) `(defmacro ,(symb 'unit-of- quantity) (,g!val ,g!un) `(* ,,g!val ,(case ,g!un ((,base-unit) 1) ,@(mapcar (lambda (x) `((,(car x)) ,(cadr x))) ...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/Books/LetOverLambda/chapter5.lisp
lisp
Has issues with accepting a variable
(load "chapter1.lisp") (load "chapter3.lisp") (defmacro! defunits% (quantity base-unit &rest units) `(defmacro ,(symb 'unit-of- quantity) (,g!val ,g!un) `(* ,,g!val ,(case ,g!un ((,base-unit) 1) ,@(mapcar (lambda (x) `((,(car x)) ,(cadr x))) ...
e68acdaf2dfe74cb8ecf84474d2346d3b4f55983d33819b54d28c20de00e1ca8
faylang/fay
T190_C.hs
module T190_C where foo :: String -> Fay () foo x = putStrLn x
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/T190_C.hs
haskell
module T190_C where foo :: String -> Fay () foo x = putStrLn x
8b7878ee42dbea89085a67c196df37f3180f2fece33ef1babb1f1462485cd52b
iu-parfunc/haskell_dsl_tour
L10ConvertClosures.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L10ConvertClosures where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Prog = Expr Expr data Expr = If Expr Expr E...
null
https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/nanopass/course_example/FrameworkHs/GenGrammars/L10ConvertClosures.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L10ConvertClosures where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Prog = Expr Expr data Expr = If Expr Expr Expr | Begin [Expr] Expr | App1 ...
f234f6664f888a6d782b86c6e63c40b0c1d2d56aeb435a33546fa4e3db07496d
yallop/ocaml-ctypes
types.ml
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes module Struct_st...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-unions/stubs/types.ml
ocaml
missing fields adding fields through views (typedefs)
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes module Struct_st...
4660114bb80b99068b093070cc9ff06cfb32884bab4e66db591cb45cfcc2b922
brendanhay/gogol
Delete.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-shopping-content/gen/Gogol/ShoppingContent/Content/Accounts/Delete.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Deletes a Merchant Center sub-account. * Resource ** Constructing a Request | Deletes a Merchant Center sub-account. /See:/ 'newContentAccountsDelete' smart constructor. | V1 error format. | OAuth access token. | The ID o...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...