_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
8045fbdfed133a46f494e99d86c535bc26de8f0a17c7df3ac0dfe5dc586741c3
ChrisPenner/proton
Reader.hs
module Data.Profunctor.Reader where import Data.Profunctor import Control.Category (Category) import qualified Control.Category as C import Data.Bifunctor (first, second) import Data.Profunctor.Reader.Class import Data.Profunctor.Strong newtype ReaderT r p a b = ReaderT (p (a, r) b) instance Profunctor p => Profunct...
null
https://raw.githubusercontent.com/ChrisPenner/proton/5e73abb67c8abe29e13b9b4a984ba75e5749e4f1/src/Data/Profunctor/Reader.hs
haskell
module Data.Profunctor.Reader where import Data.Profunctor import Control.Category (Category) import qualified Control.Category as C import Data.Bifunctor (first, second) import Data.Profunctor.Reader.Class import Data.Profunctor.Strong newtype ReaderT r p a b = ReaderT (p (a, r) b) instance Profunctor p => Profunct...
7c6a4f43645e79fc81563ab63361bd2f1f2f5ed17ba796a40db75bca0b0ea33b
futurice/haskell-mega-repo
User.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} -- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > -- -- This m...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/planmill-client/src/PlanMill/Types/User.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # | License : BSD3 This module exist to break cycles. There are mutually referencing types: 'User' and 'Team'. * User * Team * Account ------------------------------------------------------------------------...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill.Types.User ( User(..), UserId, Users, userLogin, Team(..), TeamId, Teams, Account (..), AccountId, ...
5119c83bb6f3ac0c69dced92d0e3df210c1e84ad084b65a47a27642e232a2bba
falsetru/htdp
29.3.1.scm
(define (neighbors orig graph) (vector-ref graph orig)) (require rackunit) (require rackunit/text-ui) (define neighbor-using-vector-tests (test-suite "Test for neighbor-using-vector" (test-case "" (define Graph-as-vector (vector (list 1 4) (list 4 5) (list 3) ...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/29/29.3.1.scm
scheme
(define (neighbors orig graph) (vector-ref graph orig)) (require rackunit) (require rackunit/text-ui) (define neighbor-using-vector-tests (test-suite "Test for neighbor-using-vector" (test-case "" (define Graph-as-vector (vector (list 1 4) (list 4 5) (list 3) ...
e5d1be7ee72e5befb6c398b47e8fa0bd892dd985a522b7213591c5d4e9853e5a
marick/Midje
debugging.clj
(ns ^{:doc "Functions for printing indented output for use in debugging."} midje.util.debugging) ;; Typical sequence: ( p+ 1 ) > 1 ( p 2 ) > 2 ( p+ 3 ) > > 3 ( pret 4 ) > > 4 ( p 5 ) > 5 ;; ;; Add more functions as ne...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/src/midje/util/debugging.clj
clojure
Typical sequence: Add more functions as needed. end
(ns ^{:doc "Functions for printing indented output for use in debugging."} midje.util.debugging) ( p+ 1 ) > 1 ( p 2 ) > 2 ( p+ 3 ) > > 3 ( pret 4 ) > > 4 ( p 5 ) > 5 Copied from utilize to remove dependencies . (...
9b9e9270e0d3c06c342ef41f7fc92712451160f5590a0c4b00c12633153f7a73
lmj/cayley-dickson
CayleyDickson.hs
Copyright ( c ) 2015 -- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including -- without limitation the rights to use, copy, modify, merge, publish, dis...
null
https://raw.githubusercontent.com/lmj/cayley-dickson/76bfa107ead61464a5cadee2318feaa13251169b/src/Math/CayleyDickson.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be included EXPRESS OR ...
Copyright ( c ) 2015 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the Software . THE SOFTWARE I...
0c0bd2b5d4e370e97b44bc906485a59cccb3751d83eb78b6d314d22445a0a299
dvv/stable
cowboy_session.erl
%%% ---------------------------------------------------------------------------- %%% %%% @doc Sessions for cowboy. %%% 1 . Insert ` cowboy_session ` middleware somewhere between ` cowboy_router ` and %%% `cowboy_handler` %%% 2 . Add session options to request environment : %%% %%% {session_opts, {SessionImple...
null
https://raw.githubusercontent.com/dvv/stable/4897e4abeec7d3c0cc65f7cfe1e5586c428babc7/src/cowboy_session.erl
erlang
---------------------------------------------------------------------------- @doc Sessions for cowboy. `cowboy_handler` {session_opts, {SessionImplementationModuleName, ImplementationOptions}} E.g.: {session_opts, {cowboy_cookie_session, { cookie name encryption secret cookie time - to - live...
1 . Insert ` cowboy_session ` middleware somewhere between ` cowboy_router ` and 2 . Add session options to request environment : 3 . Access , modify or drop session : { Session , Req2 } = cowboy_session : ) , Req3 = cowboy_session : set(NewSession , Req2 ) , NB : by default setting session is idempo...
d3ceb1a6334dd612c3a278cbce827309a85218a3b19150368e13a4435668dfb8
fccm/glMLite
lesson5.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/lesson5.ml
ocaml
Module For The OpenGL Library Module For The GLu Library Module For The GLUT Library rotation angle for the triangle. rotation angle for the quadrilateral. A general OpenGL initialization function. Sets all of the initial parameters. We call this right after our OpenGL window is created. Enables Clearin...
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...
d93ae22c1f358e1a5eb798453cdc0a5d8620e92d4d7acfdb0face988296fdb1e
noprompt/meander
epsilon_test.cljc
(ns meander.substitute.epsilon-test (:require [clojure.test :as t] [clojure.test.check.clojure-test :as tc.t :include-macros true] [clojure.test.check.generators :as tc.gen :include-macros true] [clojure.test.check.properties :as tc.prop :include-macros true] [meander.s...
null
https://raw.githubusercontent.com/noprompt/meander/8c0e9457befea5eee71a94a6d8726ed5916875dc/test/meander/substitute/epsilon_test.cljc
clojure
(ns meander.substitute.epsilon-test (:require [clojure.test :as t] [clojure.test.check.clojure-test :as tc.t :include-macros true] [clojure.test.check.generators :as tc.gen :include-macros true] [clojure.test.check.properties :as tc.prop :include-macros true] [meander.s...
b8c1170ebe82417d598b8fefb1c91fe8973668cb8bae1435399938aa5d558be8
namin/biohacker
bps-init.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Base : 10 -*- ;;;; --------------------------------------------------------------------------- ;;;; File name: bps-init.lsp System : Building Problem Solvers Version : 1.0 Author : Created : Mar 04 , 1995 Modified : Wednesda...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/utils/bps-init.lisp
lisp
Syntax : Common - Lisp ; Base : 10 -*- --------------------------------------------------------------------------- File name: bps-init.lsp Purpose: To facilitate using the Building Problem Solvers code --------------------------------------------------------------------------- SETUP A ...
System : Building Problem Solvers Version : 1.0 Author : Created : Mar 04 , 1995 Modified : Wednesday , January 3 , 2001 at 15:28:51 by forbus (in-package :cl-user) The BPS package provides a little bundle of utilities that all BPS systems should have access to , so whenever you create a ne...
18444196254588b55fb45be57cd03830c9378653dcd5c3fc121ee88031ee7b3b
ConfigV/ConfigV
IntRel.hs
# LANGUAGE TypeSynonymInstances , FlexibleInstances , InstanceSigs # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} module ConfigV.Learners.IntRel where import ConfigV.Types import qualified ConfigV.Types.Rules as R import ConfigV.Learners.Common import qualified ...
null
https://raw.githubusercontent.com/ConfigV/ConfigV/b22d7d124135ea2c81a2d0b0b430cb577ef86b7a/src/ConfigV/Learners/IntRel.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | We assume that all IRConfigFiles have a set of unique keywords assume socket and port can only only have int relations with each other instead just rebuild the whole map with combineFlips (only happens once so shouldnt be too bad TODO def for when an eq rule ha...
# LANGUAGE TypeSynonymInstances , FlexibleInstances , InstanceSigs # # LANGUAGE MultiParamTypeClasses # module ConfigV.Learners.IntRel where import ConfigV.Types import qualified ConfigV.Types.Rules as R import ConfigV.Learners.Common import qualified Data.Map as M import qualified Data.Text as T import qualified Da...
057f8dfe66f1e1debe8ca0bab36a4e4703608903e867498fe4a8c3d0b3339ba5
quchen/generative-art
Reflection.hs
module Test.Uncategorized.Reflection (tests) where import Data.Foldable import Graphics.Rendering.Cairo as Cairo import Draw import Geometry import Test.TastyAll tests :: TestTree tests = testVisual "Reflection of rays on a mirror" 520 300 "docs/geometry/reflection" $ \_ -> do let mirrorSurface = angledLin...
null
https://raw.githubusercontent.com/quchen/generative-art/47877f7a3c1e7fc272b4c70b4ac1faf1831ed6d6/test/testsuite/Test/Uncategorized/Reflection.hs
haskell
module Test.Uncategorized.Reflection (tests) where import Data.Foldable import Graphics.Rendering.Cairo as Cairo import Draw import Geometry import Test.TastyAll tests :: TestTree tests = testVisual "Reflection of rays on a mirror" 520 300 "docs/geometry/reflection" $ \_ -> do let mirrorSurface = angledLin...
5a22244d5837a69d81ac396be3b0410ce1265aeeba750aabc1f6c2cacbb5e68c
titola/incudine
logger.lisp
Copyright ( c ) 2013 - 2021 ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ;;; (at your option) any later version. ;;; ;;; This program is distri...
null
https://raw.githubusercontent.com/titola/incudine/6bb8bb3bec9bf68a4ddf2dfcaf79e77dc6b99b2a/src/logger.lisp
lisp
This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR...
Copyright ( c ) 2013 - 2021 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 51 Franklin St , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :incudine.util) (define-constant +logger-error+ ...
be2f4767cf8d68b54a0feb23c49f94868767d78823df6760677f724bc42c09f4
hopbit/sonic-pi-snippets
tut14.sps
# key: tut14 # point_line: 0 # point_index: 0 # -- # TUT 14 ------------------------------------------- # LIVE LOOP! To jest kodowanie na żywo live_loop :beats do # sample, def. synth, mod_sine synth, fx sample :loop_amen, amp: 0.5 sleep sample_duration(:loop_amen) end
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/tutorial/tut14.sps
scheme
# key: tut14 # point_line: 0 # point_index: 0 # -- # TUT 14 ------------------------------------------- # LIVE LOOP! To jest kodowanie na żywo live_loop :beats do # sample, def. synth, mod_sine synth, fx sample :loop_amen, amp: 0.5 sleep sample_duration(:loop_amen) end
1e490f725d4cf29778d24cf1e660b9a9060b1159e92f738e721ce49edb2a2cd1
erikd/http-proxy
Util.hs
# LANGUAGE BangPatterns , OverloadedStrings # ------------------------------------------------------------ Copyright : < > -- License : BSD3 ------------------------------------------------------------ module Test.Util where import Blaze.ByteString.Builder import Control.Concurrent.Async import Control.Excepti...
null
https://raw.githubusercontent.com/erikd/http-proxy/fe136a6399fd47f8b8fe15c725aabe5e69337584/test/Test/Util.hs
haskell
---------------------------------------------------------- License : BSD3 ---------------------------------------------------------- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------...
# LANGUAGE BangPatterns , OverloadedStrings # Copyright : < > module Test.Util where import Blaze.ByteString.Builder import Control.Concurrent.Async import Control.Exception hiding (assert) import Control.Monad (forM_, when, unless) import Control.Monad.Trans.Resource (runResourceT) import Data.ByteString (Byt...
5516f561826bdfd7b308415ebb060d752a83d2c11135e6a0a22aac3a0b094231
LeventErkok/sbv
SBVBenchFramework.hs
----------------------------------------------------------------------------- -- | -- Module : Utils.SBVTestFramework Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Various goodies for benchmarking SBV ---------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/9cd3662cb6ae31a95b99570f91ae4639807dc1ab/SBVBenchSuite/Utils/SBVBenchFramework.hs
haskell
--------------------------------------------------------------------------- | Module : Utils.SBVTestFramework License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # | make the string to call executable f...
Copyright : ( c ) Various goodies for benchmarking SBV module Utils.SBVBenchFramework ( mkExecString , mkFileName , module Data.SBV , timeStamp , getDate , dateStamp , benchResultsFile , classifier , overheadClassifier , filterOverhead ) where import qualified Data.Lis...
1c3cacc2923a1e41b6b54a7dbe175f89ca8f5def6f4ff3b0b7cb9f2817c8d2e6
mr/ftp-client
Main.hs
module Main where import Network.FTP.Client import qualified Network.FTP.Client.Conduit as FC import Conduit import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as C import Data.Monoid ((<>)) main :: IO () main = withFTPS "hostname.com" 21 $ \h welcome -> do login h "username" "passwo...
null
https://raw.githubusercontent.com/mr/ftp-client/7329084b8a51fcc2c45eb4d7958de9a1bb598302/example/app/Main.hs
haskell
module Main where import Network.FTP.Client import qualified Network.FTP.Client.Conduit as FC import Conduit import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as C import Data.Monoid ((<>)) main :: IO () main = withFTPS "hostname.com" 21 $ \h welcome -> do login h "username" "passwo...
43b119051fb21ac3c1b93a33dba44dec23ba760630ad3d5c8845d624d4aa09b3
restyled-io/restyled.io
Main.hs
module Main ( main ) where import Restyled.Prelude import Restyled.CLI import Restyled.SyncMarketplace main :: IO () main = do setupCLI runApp syncMarketplace
null
https://raw.githubusercontent.com/restyled-io/restyled.io/e3208b62dfea0916b9760cf8dd73abc7c5f080bb/sync-marketplace/Main.hs
haskell
module Main ( main ) where import Restyled.Prelude import Restyled.CLI import Restyled.SyncMarketplace main :: IO () main = do setupCLI runApp syncMarketplace
268f988970d1921e80f7c0d596bccfdd69c24ebb2be8735311f15c5e9b306424
danr/hipspec
PropT31.hs
module PropT31 where import Prelude(Bool(..)) import Zeno -- Definitions True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True -- Nats data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/testsuite/prod/zeno_version/PropT31.hs
haskell
Definitions Nats Lists Theorem
module PropT31 where import Prelude(Bool(..)) import Zeno True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x * y) (==),(/=) :: Nat...
70ec6a5d15ae6981326d22d96276cfa765a7af05ee5f8eebc8d8d8eba5132358
tych0/haggis
haggis.hs
module Main where import Options.Applicative import Text.Haggis data BloghOpts = BloghOpts { input :: String , output :: String } options :: Parser BloghOpts options = BloghOpts <$> strOption ( long "input" <> metavar "DIR" <> help "Inp...
null
https://raw.githubusercontent.com/tych0/haggis/4258a7451f0e661bf184792a8ebf81eab68aefcb/tools/haggis.hs
haskell
module Main where import Options.Applicative import Text.Haggis data BloghOpts = BloghOpts { input :: String , output :: String } options :: Parser BloghOpts options = BloghOpts <$> strOption ( long "input" <> metavar "DIR" <> help "Inp...
7f82957c3c29cab7279ef203a49c26dd2d59019d88abaef5ba54c638e86152ae
filipesilva/shadow-cljs-devcards
core_spec.cljs
(ns app.core-spec (:require [app.core :refer [app]] [clojure.string :refer [includes?]] [cljs.test :refer-macros [deftest is]])) (deftest app-has-running (is (some #(when (string? %) (includes? % "is running")) (app))))
null
https://raw.githubusercontent.com/filipesilva/shadow-cljs-devcards/6a09329818ec4390493088ff5f05acf0188a95b6/src/app/core_spec.cljs
clojure
(ns app.core-spec (:require [app.core :refer [app]] [clojure.string :refer [includes?]] [cljs.test :refer-macros [deftest is]])) (deftest app-has-running (is (some #(when (string? %) (includes? % "is running")) (app))))
cb721cd9563444049ff6758550273436dbd6606b55cfe4466673f322b0e41718
meagtan/99-lisp-problems
p14-p21.lisp
;;;; More list operations (in-package #:99-lisp-problems) p14 (defun dupli (list) "Duplicate the elements of a list. Example: * (dupli '(a b c c d)) (A A B B C C C C D D)" (when list (cons (car list) (cons (car list) (dupli (cdr list)))))) ;;; p15 (defun repli (l...
null
https://raw.githubusercontent.com/meagtan/99-lisp-problems/82bd35b1c161aaba37306332505700c26721296c/src/01-28%20lists/p14-p21.lisp
lisp
More list operations p15 p16 p17 p18 p19 p20 p21
(in-package #:99-lisp-problems) p14 (defun dupli (list) "Duplicate the elements of a list. Example: * (dupli '(a b c c d)) (A A B B C C C C D D)" (when list (cons (car list) (cons (car list) (dupli (cdr list)))))) (defun repli (list n) "Replicate the elements o...
a82a932d9337a0a80884a6988961edcc3338ff5c01ce01b7c0f09d7ccceaa30d
sgbj/MaximaSharp
d9b0mp.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/d9b0mp.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
4ade811b93fd6f3d9066e84f8df3ea4c7e30228dd1a62ab4f133ab3984777bf9
haskell-foundation/foundation
Text.hs
module Fake.Text ( Text , pack , unpack , length , splitAt , take , any , filter , reverse , decimal , double , decodeUtf8 , toLower , toUpper ) where import Prelude (undefined, Either(..), Char) data Text = Text pack _ = Text unpack :: Text -> [Char] ...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/benchs/Fake/Text.hs
haskell
module Fake.Text ( Text , pack , unpack , length , splitAt , take , any , filter , reverse , decimal , double , decodeUtf8 , toLower , toUpper ) where import Prelude (undefined, Either(..), Char) data Text = Text pack _ = Text unpack :: Text -> [Char] ...
eb3ce9dcd9170061562a9f20a77de77c25dc2e2d580d1f2a2043fdecee6ec3f0
facebook/flow
statement_sig.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/75bb0f7ab5dd6952d9b67cbd02bac1642075c205/src/typing/statement_sig.ml
ocaml
unit arg is required due to recursive modules
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
4f5838fbe9662c693d0d928158975727f6fdb0bae3b4854c58fc6a7fa957ba52
crystodev/cato
policy-info.hs
import Baseutils (capitalized) import Configuration.Dotenv (defaultConfig, loadFile) import Control.Monad (filterM, mapM_, void, when, unless) import Data.Maybe (fromJust, isJust) import Data.Semigroup ((<>)) import Options.Ap...
null
https://raw.githubusercontent.com/crystodev/cato/ae93afe078ffb6d942a5725db07d27d3d896b8a5/app/policy-info.hs
haskell
parsing options list sub folders list files print policy infos print tokens infos for policy
import Baseutils (capitalized) import Configuration.Dotenv (defaultConfig, loadFile) import Control.Monad (filterM, mapM_, void, when, unless) import Data.Maybe (fromJust, isJust) import Data.Semigroup ((<>)) import Options.Ap...
6b1fa3b49559037c3b766fbd65d8653519fbdb6d5b776ae1c54ec41141092f43
russelldb/erlgmail
erlgmail.erl
%%%------------------------------------------------------------------- %%% File : erlgmail.erl @author < > %%% @doc Q n D gen_server email sender using gmail. See the send/n functions below. See the configuration section of the overview for profiles and configuration information. < a href=" / how - to - s...
null
https://raw.githubusercontent.com/russelldb/erlgmail/ee25292e01bcd22e58776d6865685d1e0c77151a/src/erlgmail.erl
erlang
------------------------------------------------------------------- File : erlgmail.erl @doc Q n D gen_server email sender using gmail. See the send/n functions below. See the configuration section of the overview for profiles and configuration information. @version 1 @end -------------------------------------...
@author < > < a href=" / how - to - send - email - via - gmail - using.html">Benjamin Nortier 's 21st C code works blog post < /a > -module(erlgmail). -behaviour(gen_server). -export([start_link/0, send/2, send/3, psend/3, send/4, psend/4, psend/5]). -export([send_html/2, send_html/3, psend_html/3, send_htm...
46cdc81adf8f8bf8e143a283c4fb7614c54fa1915f7ffd4bc6f1a0bcbb55000b
cram2/cram
inverse-matrix-product.lisp
Regression test INVERSE - MATRIX - PRODUCT for GSLL , automatically generated ;; Copyright 2009 , 2010 , 2011 , 2014 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/inverse-matrix-product.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test INVERSE - MATRIX - PRODUCT for GSLL , automatically generated Copyright 2009 , 2010 , 2011 , 2014 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License...
12aefaa0e04e88ccb9f155f0f558b724d32473751471c8e22a19f7a6bf3d65ed
haskellari/lukko
TestProcess.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module Main (main) where import Control.Concurrent (threadDelay) import Control.Exception (bracket) import System.Environment (getArgs) import System.IO (Handle, IOMode (ReadWriteMode), hClose, openFile) im...
null
https://raw.githubusercontent.com/haskellari/lukko/623a257210637b01e928090dccee88410d0b8e90/test/TestProcess.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ----------------------------------------------------------------------------- copy pasted -----------------------------------------------------------------------------
# LANGUAGE CPP # module Main (main) where import Control.Concurrent (threadDelay) import Control.Exception (bracket) import System.Environment (getArgs) import System.IO (Handle, IOMode (ReadWriteMode), hClose, openFile) import qualified Data.ByteString as BS import qualified Data.ByteString....
1af4b39b5ae35321e41b4ebd8bdc0c198540c921bcf972544f936c0860bd3217
clash-lang/clash-compiler
FloatPack.hs
module FloatPack where import Clash.Prelude topEntity :: (Float,Double,BitVector 32,BitVector 64) -> (BitVector 32, BitVector 64, Float, Double) topEntity (f,d,bv32,bv64) = (pack f, pack d, unpack bv32, unpack bv64)
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Floating/FloatPack.hs
haskell
module FloatPack where import Clash.Prelude topEntity :: (Float,Double,BitVector 32,BitVector 64) -> (BitVector 32, BitVector 64, Float, Double) topEntity (f,d,bv32,bv64) = (pack f, pack d, unpack bv32, unpack bv64)
a7149ddfc78b5d63d9dfc4977bce33acb31b0abc3d0d0eda27c04f082484c027
erlyvideo/publisher
shared_object.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2010 %%% @doc shared object support @reference See < a href=" " target="_top"></a > for more information %%% @end %%% %%% This file is part of erlyvideo. %%% %%% erlyvideo is free sof...
null
https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtmp/src/shared_object.erl
erlang
--------------------------------------------------------------------------------------- @doc shared object support @end This file is part of erlyvideo. erlyvideo is free software: you can redistribute it and/or modify (at your option) any later version. erlyvideo is distributed in the hope that it will...
@author < > [ ] 2010 @reference See < a href=" " target="_top"></a > for more information it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License...
1e162353fe5c0a1605671493a29f5aad8d7fa62e3ba04f43e088a2e1a5cbadb0
emqx/emqx-exhook
emqx_extension_hook_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 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/emqx-exhook/906ba8c0ac907414b85738c24c7dbef880da844e/test/emqx_extension_hook_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 ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_extension_hook_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("...
076d500f5bc30af1d788d1936fcdbbcfdfca304b433c98a7abab722f7c093bc3
haskellfoundation/error-message-index
Unlifted.hs
module Unlifted where x = 4
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-48099/unlifted/after/Unlifted.hs
haskell
module Unlifted where x = 4
a83c6d3216512694dd80631bd9a8ffe6b1eeaa41941cd421e12189a55859f79a
thephoeron/black-stone
make.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- ;;;; file: make.lisp Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > ;;;; See LICENSE for additional information. (in-package :cl-user) Deprecate make.lisp -- move build script and CLI to black-stone.lis...
null
https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/make.lisp
lisp
Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- file: make.lisp See LICENSE for additional information. Define current working directory Set up some environment variables Use ``(defsynopsis)'' to define the command line options for your program and order of elements in your help string ``(main)...
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > (in-package :cl-user) Deprecate make.lisp -- move build script and CLI to black-stone.lisp as part of application (require :asdf) We 're setting up a clean environment , so we have to specifically tell where Quicklisp is installed #...
b2398fb0ce629bf7cd166a8b49151c189a6aeb2a2efbd5dd95ec4617b81cf5d7
ChicagoBoss/ChicagoBoss
boss_elixir_compiler_test.erl
%%------------------------------------------------------------------- @author ChicagoBoss Team and contributors , see file in root directory %% @end This file is part of ChicagoBoss project . See file in root directory %% for license information, see LICENSE file in root directory %% @end %...
null
https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/test/boss_elixir_compiler_test.erl
erlang
------------------------------------------------------------------- @end for license information, see LICENSE file in root directory @end @doc -------------------------------------------------------------------
@author ChicagoBoss Team and contributors , see file in root directory This file is part of ChicagoBoss project . See file in root directory -module(boss_elixir_compiler_test). -include_lib("eunit/include/eunit.hrl"). -include("../src/boss/boss_web.hrl").
3a442ce86a105e68dec041a8696d9b4904f930c1e0691889f49c2122d97f9676
Sergeileduc/Edit-comics-GIMP
script-copy-layer-all.scm
Script pour copier l'image originale dans , au sommet , en non visible , et en vérouillé , de TOUTES les images ouvertes dans GIMP (define (script-fu-copy-layer-all) (define images (vector->list (cadr (gimp-image-list)))) (map script-fu-copy-layer images) (gimp-displays-flush) ) (script-fu-register "script-...
null
https://raw.githubusercontent.com/Sergeileduc/Edit-comics-GIMP/0bc1a89784fadbaf2118251dccb297ff76d0712e/scripts/script-copy-layer-all.scm
scheme
SF-IMAGE "Input Image" 0 SF-DRAWABLE "Current Layer" 0
Script pour copier l'image originale dans , au sommet , en non visible , et en vérouillé , de TOUTES les images ouvertes dans GIMP (define (script-fu-copy-layer-all) (define images (vector->list (cadr (gimp-image-list)))) (map script-fu-copy-layer images) (gimp-displays-flush) ) (script-fu-register "script-...
caf001a452a0a8028947895c67b06cda57ea926c77b08c11cd14bd8a787afaf3
input-output-hk/cardano-sl
Rollback.hs
-- | Rollback functionality in Auxx. module Command.Rollback ( rollbackAndDump ) where import Universum import Control.Lens (_Wrapped) import Data.Aeson (encode) import qualified Data.ByteString.Lazy as BSL import Data.List (genericTake) import Formatti...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/auxx/src/Command/Rollback.hs
haskell
| Rollback functionality in Auxx. | Rollback given number of blocks from the DB and dump transactions from it to the given file. It's illegal to rollback 0-th genesis block. We also may load contribute to depth counter.
module Command.Rollback ( rollbackAndDump ) where import Universum import Control.Lens (_Wrapped) import Data.Aeson (encode) import qualified Data.ByteString.Lazy as BSL import Data.List (genericTake) import Formatting (build, int, sformat, string, (%))...
d24d7cd481998f0116fb0c413915d684ffef0a4581948af8af2edba41ddf7a2d
chef/chef-server
oc_chef_wm_named_policy.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- %% ex: ts=4 sw=4 et @author < > Copyright 2015 Chef Software , 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 complia...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_wm/src/oc_chef_wm_named_policy.erl
erlang
ex: ts=4 sw=4 et 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. /policies/:...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- @author < > Copyright 2015 Chef Software , 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 ...
eb5b1186de9052ef538d3d7ab243fb0034e64f21206157fcf3891021190a348e
uw-unsat/leanette-popl22-artifact
riscv-tests.rkt
#lang rosette (require serval/lib/unittest (prefix-in core: serval/lib/core) serval/riscv/interp serval/riscv/objdump serval/riscv/base) (define (run-test testfile) ; (define globalsfile (string->path (string-replace (path->string testfile) ".asm.rkt" ".globals.rkt"))) ; (define mapfile (string->path (s...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/jitterbug/serval/test/riscv-tests/riscv-tests.rkt
racket
(define globalsfile (string->path (string-replace (path->string testfile) ".asm.rkt" ".globals.rkt"))) (define mapfile (string->path (string-replace (path->string testfile) ".asm.rkt" ".map.rkt"))) (define symbols (dynamic-require mapfile 'symbols)) (define globals (dynamic-require globalsfile 'globals))
#lang rosette (require serval/lib/unittest (prefix-in core: serval/lib/core) serval/riscv/interp serval/riscv/objdump serval/riscv/base) (define (run-test testfile) (define instrs (dynamic-require testfile 'instructions)) (define arch (dynamic-require testfile 'architecture)) (define bits (case arch ...
90cc97e7df553a88d97cd858c16f42460491768cb59334b36688fa2b04349a4a
jarvinet/scheme
scratch.scm
(define (simplemap proc seq) (if (null? seq) '() (cons (proc (car seq)) (simplemap proc (cdr seq))))) (define seq '((1 2 3) (4 5 6))) ( 1 4 ) ( ( 2 3 ) ( 5 6 ) ) (define (mymap proc . seqs) (display seqs) (newline) (let ((heads (simplemap car seqs)) (tails (simplemap cdr seqs))) ((d...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/src/scratch.scm
scheme
(define (simplemap proc seq) (if (null? seq) '() (cons (proc (car seq)) (simplemap proc (cdr seq))))) (define seq '((1 2 3) (4 5 6))) ( 1 4 ) ( ( 2 3 ) ( 5 6 ) ) (define (mymap proc . seqs) (display seqs) (newline) (let ((heads (simplemap car seqs)) (tails (simplemap cdr seqs))) ((d...
feea85f5effaef4dff39c626f43e2c699a72e25b2aa35fd6bf6181efff86a1a1
den1k/vimsical
commands.cljc
(ns vimsical.frontend.quick-search.commands (:require [vimsical.frontend.util.content :as util.content] [vimsical.frontend.config :as config] [vimsical.frontend.code-editor.handlers :as code-editor.handlers] [vimsical.frontend.quick-search.handlers :as handlers])) (def commands ...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/frontend/vimsical/frontend/quick_search/commands.cljc
clojure
todo dispatch todo dispatch todo dispatch
(ns vimsical.frontend.quick-search.commands (:require [vimsical.frontend.util.content :as util.content] [vimsical.frontend.config :as config] [vimsical.frontend.code-editor.handlers :as code-editor.handlers] [vimsical.frontend.quick-search.handlers :as handlers])) (def commands ...
c6c0787fe775a01b492f75030f4f3ab4893c6723196898c0964f74e5a3a136a7
coq/coq
tac2extffi.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/4b812ba203b09e30f88e0174cc72abdf5da22e26/plugins/ltac2/tac2extffi.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
c59493c5e39206281dae71201e54e3966b28d89249a225b145a665b0a7b30d45
kdltr/chicken-core
test-finalizers.scm
;;;; test-finalizers.scm NOTE : This may fail , reopen # 1426 if it does (import (chicken format)) (import (chicken gc)) (##sys#eval-debug-level 0) ; disable keeping trace-buffer with frameinfo (define x (list 1 2 3)) (define y (list 4 5 6)) (define x-f #f) (define y-f #f) (begin (set-finalizer! x (lam...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/test-finalizers.scm
scheme
test-finalizers.scm disable keeping trace-buffer with frameinfo This ought to work, see patches/finalizer.closures.diff for a fix that unfortunately disables finalizers in the interpreter (probably due to the different closure representation). (assert (not y-f)) (set! x #f) (gc #t) (assert (not x-f)) (assert (not ...
NOTE : This may fail , reopen # 1426 if it does (import (chicken format)) (import (chicken gc)) (define x (list 1 2 3)) (define y (list 4 5 6)) (define x-f #f) (define y-f #f) (begin (set-finalizer! x (lambda (o) (format #t "Delete: ~A (y: ~a)~%" o y-f) (set! x-f #t))) #t) (begin (set-fi...
e8a6afa8c9059be28ea04b24f1f0e63e8f16f0abac3da6fa5baa72e35e85bafb
SimulaVR/godot-haskell
EditorResourceConversionPlugin.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Tools.EditorResourceConversionPlugin (Godot.Tools.EditorR...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Tools/EditorResourceConversionPlugin.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Tools.EditorResourceConversionPlugin (Godot.Tools.EditorR...
e2efee331ade5c49e1fa98c5efe8704c30c77c03101bea4562509af85893600e
stylewarning/quickutil
strings.lisp
(in-package #:quickutil-utilities.utilities) (defutil string-designator (:version (1 . 0) :category (alexandria types strings)) "A string designator type. A string designator is either a string, a symbol, or a character." #>%%%> (deftype string-designator () %%DOC `(or symbol ...
null
https://raw.githubusercontent.com/stylewarning/quickutil/5adb3463d99095145325c4013117bd08a8f6cac2/quickutil-utilities/utilities/alexandria/strings.lisp
lisp
(in-package #:quickutil-utilities.utilities) (defutil string-designator (:version (1 . 0) :category (alexandria types strings)) "A string designator type. A string designator is either a string, a symbol, or a character." #>%%%> (deftype string-designator () %%DOC `(or symbol ...
088afdaee990879bd245851a22ce640676558d6ab89b9585b6cb50cc1ebb9d4e
phadej/kleene
DFA.hs
# LANGUAGE BangPatterns # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Safe #-} {-# LANGUAGE ScopedTypeVariables #-} # OPTIONS_GHC -fno - warn - orphans # module Kleene.DFA ( DFA (..), -- * Conversions fr...
null
https://raw.githubusercontent.com/phadej/kleene/ebe0117db4b752b2fd558b56905bba9edaafe524/src/Kleene/DFA.hs
haskell
# LANGUAGE Safe # # LANGUAGE ScopedTypeVariables # * Conversions $setup >>> :set -XOverloadedStrings >>> import Data.Foldable (traverse_) >>> import Data.Semigroup (Semigroup (..)) >>> import Algebra.Lattice ((/\)) >>> import Test.QuickCheck ((===)) >>> newtype Smaller a = Smaller a deriving...
# LANGUAGE BangPatterns # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - orphans # module Kleene.DFA ( DFA (..), fromRE, toRE, fromERE, toERE, fromTM, fromTMEquiv, toKleene, toDot, t...
9bce65abe33923693ae7b41c6cecc6e99b05358b574ac53c97b18a2ba368a647
ladderlife/cambo
benchmarks.clj
(ns examples.benchmarks (:require [examples.queries :as queries] [cambo.graph :as graph] [criterium.core :as bench])) ;; benchmark! (comment ;;; APPLICATION SCREEN (doseq [pathsets queries/application-queries] (bench/quick-bench (graph/get queries/full-uwb pa...
null
https://raw.githubusercontent.com/ladderlife/cambo/73b01aee04dc6a8b573783118c43c4d0508a4138/src/examples/benchmarks.clj
clojure
benchmark! APPLICATION SCREEN QUESTIONNAIRE SCREEN
(ns examples.benchmarks (:require [examples.queries :as queries] [cambo.graph :as graph] [criterium.core :as bench])) (comment (doseq [pathsets queries/application-queries] (bench/quick-bench (graph/get queries/full-uwb pathsets {:normalize fal...
6c2d245a7475c0c86d5bf814952dfaef8a13edef44b06fc46a88479ce4450db7
pjstadig/humane-test-output
project.clj
(defproject pjstadig/humane-test-output "0.12.0-SNAPSHOT" :description "Humane test output for clojure.test" :url "-test-output/" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["releases" :clojars]] :test-selectors {:default (complement :intentionally-failing) ...
null
https://raw.githubusercontent.com/pjstadig/humane-test-output/7c4c868aa9d7424248761941cd736ac0a5f4a75b/project.clj
clojure
(defproject pjstadig/humane-test-output "0.12.0-SNAPSHOT" :description "Humane test output for clojure.test" :url "-test-output/" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["releases" :clojars]] :test-selectors {:default (complement :intentionally-failing) ...
6e1f5d770c2ae4e7e6a812f1f0e27a1479d5684b84a5f258957f4772c6c98449
EveryTian/Haskell-Codewars
binary-tree-traversal.hs
-- -tree-traversal module BinaryTreeTraversal ( preOrder , inOrder , postOrder ) where import BinaryTreeTraversal.Types {- data Tree a = Nil | Node (Tree a) a (Tree a) -} 1 . ) Root node , 2 . ) traverse left subtree , 3 . ) traverse right subtree . preOrder :: Tree a -> [a] preOrder Nil = [] preOrder (No...
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/5kyu/binary-tree-traversal.hs
haskell
-tree-traversal data Tree a = Nil | Node (Tree a) a (Tree a)
module BinaryTreeTraversal ( preOrder , inOrder , postOrder ) where import BinaryTreeTraversal.Types 1 . ) Root node , 2 . ) traverse left subtree , 3 . ) traverse right subtree . preOrder :: Tree a -> [a] preOrder Nil = [] preOrder (Node left node right) = [node] ++ preOrder left ++ preOrder right 1 ....
25306720edc77a3001c03e1b25f41fb094a9f330508ce4164a0f0d7b9470da98
ragkousism/Guix-on-Hurd
perl-build-system.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 t...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/build/perl-build-system.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build perl-build-system) #:use-module ((guix build gnu-build-system) #:prefix gnu:) ...
538b9f8fb06e75f7f46ad771ec0826e392c3b8558fae8d5c393c9570917fc4ec
3b/cl-opencl-3b
get.lisp
(in-package #:cl-opencl) (defmacro check-return (form &body handlers) (let ((error-code (gensym))) `(restart-case (let ((,error-code ,form)) (case ,error-code (:success ,error-code) ,@handlers (t (error "OpenCL error ~s from ~s" ,error-code ',(car form))...
null
https://raw.githubusercontent.com/3b/cl-opencl-3b/b40781e3d049d59ce3bba02ec6e55be708996d53/get.lisp
lisp
fixme: figure out if returning same pointer twice is correct, possibly remove-duplicates on it if so? fixme: rewrite using define-info-getter space used and parsing depend on the param, so we error if we get one we don't know about... todo: more specific error? we can't just search here, since we don't want to m...
(in-package #:cl-opencl) (defmacro check-return (form &body handlers) (let ((error-code (gensym))) `(restart-case (let ((,error-code ,form)) (case ,error-code (:success ,error-code) ,@handlers (t (error "OpenCL error ~s from ~s" ,error-code ',(car form))...
c28ec261ec1fb1c8cd87bbd317a1b6afee4325b1faf1406087c52f45618e35cc
NorfairKing/easyspec
Evaluator.hs
module EasySpec.Evaluate.Evaluate.Evaluator ( evaluators , scopeSizeEvaluator , equationsEvaluator , runtimeEvaluator , relevantEquationsEvaluator , relevantFunctionsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Combinators import EasySpec.Evaluate.Evaluate.Ev...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec-evaluate/src/EasySpec/Evaluate/Evaluate/Evaluator.hs
haskell
module EasySpec.Evaluate.Evaluate.Evaluator ( evaluators , scopeSizeEvaluator , equationsEvaluator , runtimeEvaluator , relevantEquationsEvaluator , relevantFunctionsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Combinators import EasySpec.Evaluate.Evaluate.Ev...
65f9bd90363ca4f4fe069d3d279654d53c317fb6e2948aaf4fb2ba730b8b6ef9
serras/cobalt
Record.hs
# LANGUAGE DataKinds , TypeOperators , GADTs , TypeFamilies , PolyKinds # module Record where data Field name ty = Field data Record r where RNil :: Record '[] RCons :: Field name ty -> ty -> Record rest -> Record (Field name ty ': rest) type family Elem x lst where Elem x '[] = False Elem x (x ': r...
null
https://raw.githubusercontent.com/serras/cobalt/cd8df75581a320fcca0d7d11b4b8c1788e8a5f9c/test/typerules/Record.hs
haskell
# LANGUAGE DataKinds , TypeOperators , GADTs , TypeFamilies , PolyKinds # module Record where data Field name ty = Field data Record r where RNil :: Record '[] RCons :: Field name ty -> ty -> Record rest -> Record (Field name ty ': rest) type family Elem x lst where Elem x '[] = False Elem x (x ': r...
7c96cf43308a9404763c67fd78e840f7c36526bcc503d99127ad836b70c9ed43
haskell/haskell-language-server
ProofState.hs
# LANGUAGE CPP # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wno - deprecations # module Wingman.Metaprogramming.ProofState where import Data.Bool (bool) import Data.Functor ((<&>)) import qualified Data.Text as T import Data.Text.P...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/src/Wingman/Metaprogramming/ProofState.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # ^ Render plain 'Text' ^ How to render an annotation ^ How to render the removed annotation
# LANGUAGE CPP # # OPTIONS_GHC -Wno - deprecations # module Wingman.Metaprogramming.ProofState where import Data.Bool (bool) import Data.Functor ((<&>)) import qualified Data.Text as T import Data.Text.Prettyprint.Doc import Data.Text.Prettyprint.Doc.Render.Util....
30463c9e924176eaa0c12e27913e7d213432b2a048e75bcf3abb627ee9f484ab
pfdietz/ansi-test
floor-aux.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Aug 9 08:08:00 2003 ;;;; Contains: Aux. functions used in FLOOR tests (defun floor.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (floor n d)) ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/auxiliary/floor-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Aux. functions used in FLOOR tests Need float tests
Author : Created : Sat Aug 9 08:08:00 2003 (defun floor.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (floor n d)) for (q r) = vals for n2 = (+ (* q d) r) repeat 1000 ...
adac0c430314867a4d18a34de1aa2cf04bbfeb9e0ecdbaf03285958d033c26c4
MLstate/opalang
debugMap.mli
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/ocamllib/libbase/debugMap.mli
ocaml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
d73ac5a5697317be5239b74e600430223626c3c14746cc3dfe1e92b9e9836e55
arttuka/reagent-material-ui
safety_check_rounded.cljs
(ns reagent-mui.icons.safety-check-rounded "Imports @mui/icons-material/SafetyCheckRounded as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def safety-check-roun...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/safety_check_rounded.cljs
clojure
(ns reagent-mui.icons.safety-check-rounded "Imports @mui/icons-material/SafetyCheckRounded as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def safety-check-roun...
2d46f3f09d8c493c741ae729a4b6dfd6367537417daba5734645db9d44d9f6f0
chanshunli/wechat-clj
request.cljs
(ns mini-program-cljs.request (:require-macros [mini-program-cljs.macro :refer [defn-js call-promise-1]]) (:require [mini-program-cljs.util :refer [alert] :as u] [mini-program-cljs.js-wx :refer [js-wx] :as jswx])) (defn set-header [headers] (clj->js (merge {"Content-Type" "application/json; chars...
null
https://raw.githubusercontent.com/chanshunli/wechat-clj/145a99825669b743a09a8565fa1301d90480c91b/mini-program-cljs/src/main/mini_program_cljs/request.cljs
clojure
控制台有请求参数aaa但是没有头部信息aaaa
(ns mini-program-cljs.request (:require-macros [mini-program-cljs.macro :refer [defn-js call-promise-1]]) (:require [mini-program-cljs.util :refer [alert] :as u] [mini-program-cljs.js-wx :refer [js-wx] :as jswx])) (defn set-header [headers] (clj->js (merge {"Content-Type" "application/json; chars...
d4bcdc959ca50ce358e1490bab73a15436e527a88fd51c15a19c1c7229093c95
samply/blaze
validation_spec.clj
(ns blaze.db.node.validation-spec (:require [blaze.anomaly-spec] [blaze.db.node.validation :as validation] [blaze.db.spec] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom])) (s/fdef validation/validate-ops :args (s/cat :tx-ops :blaze.db/tx-ops) :ret (s/nilable ::anom/anomaly))
null
https://raw.githubusercontent.com/samply/blaze/cbf6431a254f347a704f1abe1de4f4fe8a249ac9/modules/db/test/blaze/db/node/validation_spec.clj
clojure
(ns blaze.db.node.validation-spec (:require [blaze.anomaly-spec] [blaze.db.node.validation :as validation] [blaze.db.spec] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom])) (s/fdef validation/validate-ops :args (s/cat :tx-ops :blaze.db/tx-ops) :ret (s/nilable ::anom/anomaly))
8956420d0beea95e166806d9beb986e1de3d0ed7ddf49daf7562f5ca5ccfdfba
dmitryvk/sbcl-win32-threads
destructuring-bind.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/destructuring-bind.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. This declaration-as-assertion should protect us from (DESTRUCTURING-BIND (X . Y) 'NOT-A-LIST ...).
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") (defmacro-mundanely destructuring-bind (lambda-list expression &body body) #!+sb-doc "Bind the var...
f0d8379661a21deeaf3fa02575d399d0ad4a498c7c8eb0534c3e00fbfb1b0a59
CodeJugalbandi/FunctionalProgramming
3_FunctionsAreEntities.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname 3_FunctionsAreEntities) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t const...
null
https://raw.githubusercontent.com/CodeJugalbandi/FunctionalProgramming/2a6bf7f26852077a3e9bc71d508f4c320cd91fc9/melodies/functionsAreEntities/3_FunctionsAreEntities.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname 3_FunctionsAreEntities) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) (require 2htdp/image) (define (draw-circl...
3b0f0429634d33600f796cb6968b2bc91882719eb9597e483cc44f35f0b44b74
MargaretKrutikova/me-learning-erlang
scrabble_score_tests.erl
%% Based on canonical data version 1.1.0 %% This file is automatically generated from the exercises canonical data. -module(scrabble_score_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). '1_lowercase_letter_test'() -> ?assertEqual(1, scrabble_score:score(...
null
https://raw.githubusercontent.com/MargaretKrutikova/me-learning-erlang/501f9256e332f4d48a74098fe49fcde203e53475/scrabble-score/test/scrabble_score_tests.erl
erlang
Based on canonical data version 1.1.0 This file is automatically generated from the exercises canonical data.
-module(scrabble_score_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). '1_lowercase_letter_test'() -> ?assertEqual(1, scrabble_score:score("a")). '2_uppercase_letter_test'() -> ?assertEqual(1, scrabble_score:score("A")). '3_valuable_letter_test'() -...
8ce38cbf50868699a488be738e71255f8301665686b3ff55600e889b53156b32
jeapostrophe/mongodb
basic.rkt
#lang racket/base (require db/mongodb racket/list net/bson "util.rkt" db/mongodb/seq tests/eli-tester) (module+ test (when mongod-p (test (with-mongod (define m (create-mongo)) (test (mongo-db-names m) => (list "local")) ...
null
https://raw.githubusercontent.com/jeapostrophe/mongodb/4fbeb1a577ff9a1b8274045a5741d6670d555ac7/tests/db/mongodb/basic.rkt
racket
#lang racket/base (require db/mongodb racket/list net/bson "util.rkt" db/mongodb/seq tests/eli-tester) (module+ test (when mongod-p (test (with-mongod (define m (create-mongo)) (test (mongo-db-names m) => (list "local")) ...
7729c7949d2cd929068b718ecf007497dbff1a9381ec3ddd7e3eafd9fc2bf833
haskell-jp/makeMistakesToLearnHaskell
wrong-output.hs
main = do input <- getContents putStrLn (unlines (reverse (lines input)))
null
https://raw.githubusercontent.com/haskell-jp/makeMistakesToLearnHaskell/1174d5c6bb82e57622be8033607a4d049e30ae7e/test/assets/4/wrong-output.hs
haskell
main = do input <- getContents putStrLn (unlines (reverse (lines input)))
98836f3f1e21d99918a38f8a6ac1dc479d1046251422cd64c4da637ac7d4328c
graninas/Functional-Design-and-Architecture
Assets.hs
module Andromeda.Assets ( module X ) where import Andromeda.Assets.DeviceDefinitions as X
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/c69e64d61759f4db5d369b816d72f4aeb4d34844/Second-Edition-Manning-Publications/BookSamples/CH03/Section3p3/Andromeda/Assets.hs
haskell
module Andromeda.Assets ( module X ) where import Andromeda.Assets.DeviceDefinitions as X
49d8a919a3f78312092a05f39771e52141355660566f97b57b6d59b9b3e8d5e8
clojerl/clojerl
clojerl_Range_SUITE.erl
-module(clojerl_Range_SUITE). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ new/1 , count/1 , str/1 , is_sequential/1 , hash/1 , chunked/1 ...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/test/clojerl_Range_SUITE.erl
erlang
------------------------------------------------------------------------------ Test Cases ------------------------------------------------------------------------------
-module(clojerl_Range_SUITE). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ new/1 , count/1 , str/1 , is_sequential/1 , hash/1 , chunked/1 ...
ec614bf3ec53c071d339c3f59a0667fe0d10bab991e390d7df771ee7befba0b5
LaurentMazare/ocaml-torch
a2c.ml
Advantage Actor Critic ( A2C ) model . A2C is a synchronous variant of Asynchronous the Advantage Actor Critic ( A3C ) model introduced by DeepMind in See -acktr-a2c/ for a reference python implementation . A2C is a synchronous variant of Asynchronous the Advantage Actor Critic (A3C) mod...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/examples/reinforcement-learning/a2c.ml
ocaml
Advantage Actor Critic ( A2C ) model . A2C is a synchronous variant of Asynchronous the Advantage Actor Critic ( A3C ) model introduced by DeepMind in See -acktr-a2c/ for a reference python implementation . A2C is a synchronous variant of Asynchronous the Advantage Actor Critic (A3C) mod...
01d9c66753de258e8d971f42b5e66ad3228f08c829ac29d9453974dae6c6440d
roman01la/minimax
texture.clj
(ns minimax.assimp.texture (:require [bgfx.core :as bgfx] [clojure.java.io :as io] [minimax.mem :as mem] [minimax.renderer.texture :as t]) (:import (java.nio IntBuffer) (java.util ArrayList) (org.lwjgl.assimp AIScene AITexture) (org.lwjgl.bgfx BGFX) (org.lwjgl...
null
https://raw.githubusercontent.com/roman01la/minimax/f371c199d55a2a219ed7cf5f2dd2e079be99f963/src/minimax/assimp/texture.clj
clojure
(ns minimax.assimp.texture (:require [bgfx.core :as bgfx] [clojure.java.io :as io] [minimax.mem :as mem] [minimax.renderer.texture :as t]) (:import (java.nio IntBuffer) (java.util ArrayList) (org.lwjgl.assimp AIScene AITexture) (org.lwjgl.bgfx BGFX) (org.lwjgl...
3f6ef836824a3d9f6494d4c0afe28613f0016e52e16e2a2afabf9a13606592a0
fragnix/fragnix
Data.Set.Base.hs
# LANGUAGE Haskell98 # {-# LINE 1 "Data/Set/Base.hs" #-} # LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} # LANGUAGE Trustworthy # # LANGUAGE RoleAnnotations # # LANGUAGE TypeFamilies # ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/benchmarks/containers/Data.Set.Base.hs
haskell
# LINE 1 "Data/Set/Base.hs" # # LANGUAGE DeriveDataTypeable, StandaloneDeriving # --------------------------------------------------------------------------- | Module : Data.Set.Base License : BSD-style Maintainer : Stability : provisional Portability : portable An efficient implementation of ...
# LANGUAGE Haskell98 # # LANGUAGE CPP # # LANGUAGE Trustworthy # # LANGUAGE RoleAnnotations # # LANGUAGE TypeFamilies # ...
fbed66d55bc4407efe669597575efc47fffe818599cfd8da7914f57cd93da2c9
mstksg/functor-combinators
Interpret.hs
-- | -- Module : Data.HFunctor.Interpret Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- This module provides tools for working with unary functor combinators -- that represent interpretable schemas. -- These are types @t@...
null
https://raw.githubusercontent.com/mstksg/functor-combinators/9325de0671d95019acedb52fa71ec1d2c45391aa/src/Data/HFunctor/Interpret.hs
haskell
| Module : Data.HFunctor.Interpret License : BSD3 Stability : experimental Portability : non-portable This module provides tools for working with unary functor combinators that represent interpretable schemas. For these, we have: @ 'inject' :: f a -> t f a @ which lets you "lift" an @f a@ i...
Copyright : ( c ) 2019 Maintainer : These are types @t@ that take a functor @f@ and return a new functor @t f@ , enhancing @f@ with new structure and abilities . " running " the that it encodes . The context is required to together two or more different functors . module Data.HFunctor.Interpret (...
b2f4ea5453a6c609cc1d21d43839cc37a6cbf6d0052413563a1805ab4fd7f4c7
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_kcfa3-4.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 ((lambda (f1) (let ((a (f1 #t))) (f1 #f))) (lambda (x1) ((lambda (f2) (let ((b (f2 #t))) (f2 #f))) (lambda (x2) (<change> () (disp...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_kcfa3-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 1 * swaps : 0 * calls to i d fun : 1 ((lambda (f1) (let ((a (f1 #t))) (f1 #f))) (lambda (x1) ((lambda (f2) (let ((b (f2 #t))) (f2 #f))) (lambda (x2) (<change> () (display x2)) ((lambda (f3) (let ((c (f3 #t))) (f3 #f)...
9e3ffe959b3ef3f5033cfdca0d4545d06e01f43e77709b4a8d6fe9495af79aa6
Lambda-Logan/faker
Lorem.hs
| Module : Faker . Lorem Description : Module for generating fake words , sentences and paragraphs Copyright : ( c ) , 2014 - 2018 License : MIT Maintainer : Stability : experimental Portability : POSIX Fake data Module : Faker.Lorem Description : Module...
null
https://raw.githubusercontent.com/Lambda-Logan/faker/8935346192e67631b97c1a52f6644ba5ed48a1a2/src/Faker/Lorem.hs
haskell
* Functions for generate fake words, sentences and paragraphs | Returns random word, i.e. "recusandae" | Returns list of random words with size of provided num, i.e. ["alveus","ademptio","arcus","autem","nihil"] | Returns random character, i.e. 'a' | Returns list of random sentences with size of provided num, | ...
| Module : Faker . Lorem Description : Module for generating fake words , sentences and paragraphs Copyright : ( c ) , 2014 - 2018 License : MIT Maintainer : Stability : experimental Portability : POSIX Fake data Module : Faker.Lorem Description : Module...
e27a8ff831f1378acfe8054b056b4824abcb92e2c986b3fb6364b32690c381a0
mzp/coq-ruby
alpha.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tools/coqdoc/alpha.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : alpha.ml 5920 200...
b8333ee89712c98ce1dc60e09cb0aa451cc31d032c0ffe41e2e23585118bed9e
mukul-rathi/bolt
good_consume_variable.ml
open Core open Print_frontend_ir let%expect_test "Consume linear variable" = print_frontend_ir " class Foo { capability linear Bar; const int f : Bar; const int g : Bar ; const int h : Bar; } void main(){ let x = new Foo(f:4, g:5, h:6); let y = consume x // C...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/ir_gen/good_consume_variable.ml
ocaml
open Core open Print_frontend_ir let%expect_test "Consume linear variable" = print_frontend_ir " class Foo { capability linear Bar; const int f : Bar; const int g : Bar ; const int h : Bar; } void main(){ let x = new Foo(f:4, g:5, h:6); let y = consume x // C...
eb149ff6e3e81a2126a1cf362cabdda9eef7af789cf555ca76fe255a6d22289e
geophf/1HaskellADay
Exercise.hs
# LANGUAGE QuasiQuotes # module Y2017.M12.D11.Exercise where import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.SqlQQ import System.Random below imports available via 1HaskellADay git repository import Store.SQL.Util.Indexed - An exponential probability distribution looks like the attached ima...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2017/M12/D11/Exercise.hs
haskell
} --------------------------------------------------------------- } make sure you do this in bulk, or it make take a while. so, of course, you need a artid -> rndexp -> IxVal mapping function and there you go! ... do we want to create an application of this? This ... IS supposed to be
# LANGUAGE QuasiQuotes # module Y2017.M12.D11.Exercise where import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.SqlQQ import System.Random below imports available via 1HaskellADay git repository import Store.SQL.Util.Indexed - An exponential probability distribution looks like the attached ima...
82ef0c229ef39ec263da7a3a9eba9b9ed31afa96e5b1467ef2edb5bddd7d7fe0
ertugrulcetin/herfi
home.clj
(ns herfi.routes.home (:require [aleph.http :as http] [chime.core :as ch] [clojure.core.async :as a] [clojure.pprint :as pp] [clojure.string :as str] [herfi.character :refer [skills magic-skills]] [herfi.layout :as layout] [herfi.middleware :as middleware] [manifold.deferred :as d]...
null
https://raw.githubusercontent.com/ertugrulcetin/herfi/b5384d56c3e56c29ed82deafc4e56ad19ec12a60/src/clj/herfi/routes/home.clj
clojure
TODO when exception is thrown, flow hangs!
(ns herfi.routes.home (:require [aleph.http :as http] [chime.core :as ch] [clojure.core.async :as a] [clojure.pprint :as pp] [clojure.string :as str] [herfi.character :refer [skills magic-skills]] [herfi.layout :as layout] [herfi.middleware :as middleware] [manifold.deferred :as d]...
ba39e71740ba8d6f4e6a64bb8fd2b051f7a23656a0782762f62977e3e4d05baa
ocaml-sf/learn-ocaml-corpus
sum_number.ml
(* The type [parser] satisfies the monad API: [delay], [return], [>>=]. *) (* [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. *) let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p (...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/parser_combinators/wrong/sum_number.ml
ocaml
The type [parser] satisfies the monad API: [delay], [return], [>>=]. [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. [return a] always succeeds, consumes no input, and returns [a]. [p >>= f] is the sequential compositio...
let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p () cursor) let return (a : 'a) : 'a parser = fun cursor -> NonDet.return (a, cursor) let (>>=) (p : 'a parser) (f : 'a -> 'b parser) : 'b parser = fun cursor -> let open NonDet in p cursor >>= fun (a, cur...
c5a9fdf5ce3a6c538aa66b34080d5022f0ab0257405fc35253cacc8a7f4f547d
haskell/hie-bios
Config.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveFunctor # # LANGUAGE PatternSynonyms # -- | Logic and datatypes for parsing @hie.yaml@ files. module HIE.Bios.Config( readConfig, Config(..), CradleConfig(..), CabalType, pattern CabalType, cabalComponent, StackT...
null
https://raw.githubusercontent.com/haskell/hie-bios/27efc1ef70cb4ce64cd635ec58e985681f34f2ec/src/HIE/Bios/Config.hs
haskell
# LANGUAGE OverloadedStrings # | Logic and datatypes for parsing @hie.yaml@ files. | Configuration that can be used to load a 'Cradle'. A configuration has roughly the following form: @ cradle: cabal: component: "lib:hie-bios" @ ^ Dependencies of a cradle. Dependencies are expected to be relative to th...
# LANGUAGE NamedFieldPuns # # LANGUAGE DeriveFunctor # # LANGUAGE PatternSynonyms # module HIE.Bios.Config( readConfig, Config(..), CradleConfig(..), CabalType, pattern CabalType, cabalComponent, StackType, pattern StackType, stackComponent, stackYaml, CradleType(..), Cal...
0ba2497c61fc4a19221507e415b3c262b1b1b589b17733663e21775cbb90c027
samrushing/irken-compiler
manboy.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (define (A k x1 x2 x3 x4 x5) (define (B) (set! k (- k 1)) (A k B x1 x2 x3 x4)) (if (<= k 0) (+ (x4) (x5)) (B))) (printn (A 10 (lambda () 1) (lambda () -1) (lambda () -1) (lambda () 1) (lambda () 0) ))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/manboy.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (define (A k x1 x2 x3 x4 x5) (define (B) (set! k (- k 1)) (A k B x1 x2 x3 x4)) (if (<= k 0) (+ (x4) (x5)) (B))) (printn (A 10 (lambda () 1) (lambda () -1) (lambda () -1) (lambda () 1) (lambda () 0) ))
d6fb6229c58bf518e094b7b9e7d6d6dc08d38861fe1e7dc006ac3d2496881fe1
avsm/jekyll-format
jekyll_liquid.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/avsm/jekyll-format/ef4f6d2e1cb120f51c22f40f39da25b473cf33eb/src/jekyll_liquid.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
e301645b97632d534a40cf0857649dccc56fbfb4950941ee41f9dff3a8409fd5
huangjs/cl
math.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- (defpackage :hjs.util.math (:use :cl :hjs.meta.macro :iterate :hjs.meta.essential) (:export #:expt-mod #:extremum #:extrema #:n-most-extreme #:pi-1000 #:round-to-digits )) (in-package #:hjs.util.math) ;;;; turbo pi -...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/mylib/math.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- It uses a spigot algorithm. More details in A spigot algorithm
(defpackage :hjs.util.math (:use :cl :hjs.meta.macro :iterate :hjs.meta.essential) (:export #:expt-mod #:extremum #:extrema #:n-most-extreme #:pi-1000 #:round-to-digits )) (in-package #:hjs.util.math) turbo pi -- calculate pi to 1000 decimals > > > fast for the digits of pi , and ...
40baa5dfbebfdc760f6b938182b58a27f9b9a36f510482a4e21616c273bf6338
CryptoKami/cryptokami-core
BlockGen.hs
-- | Block generation. module Command.BlockGen ( generateBlocks ) where import Universum import Control.Monad.Random.Strict (evalRandT) import Data.Default (def) import System.Random (mkStdGen, randomIO) import System.Wlog (logInfo) import Po...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/auxx/src/Command/BlockGen.hs
haskell
| Block generation. tx generation is disalbed for now
module Command.BlockGen ( generateBlocks ) where import Universum import Control.Monad.Random.Strict (evalRandT) import Data.Default (def) import System.Random (mkStdGen, randomIO) import System.Wlog (logInfo) import Pos.AllSecrets (mkAllSecr...
3bd195c914192677238fd364c1d55ef8123a710c76587f2ee09dc7c0bbd6133e
faylang/fay
ReExport1.hs
module ReExport1 where x = 42
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ReExport1.hs
haskell
module ReExport1 where x = 42
2935a44125a07611826e906ca89aa05c0243b6a3fed74ddc8de1035fff64705d
gdamjan/erlang-irc-bot
ircbot_api.erl
-module(ircbot_api). -author(""). -export([new/1, pid/1, connect/1, disconnect/1, reconnect/1]). -export([send_event/2, send_data/2, send_message/4]). -export([privmsg/3, notice/3, join/2, part/2, ping/2, pong/2, nick/2]). -export([add_plugin/3, delete_plugin/3, which_plugins/1]). new(IrcbotRef) -> {?MODULE, Ircb...
null
https://raw.githubusercontent.com/gdamjan/erlang-irc-bot/5e55848177b1e0e0a71d41c516f41d3cfe112784/src/ircbot_api.erl
erlang
-module(ircbot_api). -author(""). -export([new/1, pid/1, connect/1, disconnect/1, reconnect/1]). -export([send_event/2, send_data/2, send_message/4]). -export([privmsg/3, notice/3, join/2, part/2, ping/2, pong/2, nick/2]). -export([add_plugin/3, delete_plugin/3, which_plugins/1]). new(IrcbotRef) -> {?MODULE, Ircb...
4aa46bc08e05b8f720642e1257ae940a286eaffe12aafa6be3bb894232c025ab
yoriyuki/Camomile
pkg.ml
#use "topfind";; #require "topkg-jbuilder.auto";;
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/pkg/pkg.ml
ocaml
#use "topfind";; #require "topkg-jbuilder.auto";;
b65ec3ca6b4388e56cae9241357a375270d64165a07bf212d2a72d73cabf85bd
yogthos/alpha-id
core_test.clj
(ns alpha-id.core-test (:require [clojure.test :refer :all] [alpha-id.core :refer :all])) (deftest a-test (testing "ID generation" (let [num 9007199254740992] (is (= num (decode-16 (encode-16 num)))) (is (= num (decode-32 (encode-32 num)))) (is (= num (decode-64 (encode-64 num))))...
null
https://raw.githubusercontent.com/yogthos/alpha-id/29569f10eced53aaeb38463d532b176916fe4b67/test/alpha_id/core_test.clj
clojure
(ns alpha-id.core-test (:require [clojure.test :refer :all] [alpha-id.core :refer :all])) (deftest a-test (testing "ID generation" (let [num 9007199254740992] (is (= num (decode-16 (encode-16 num)))) (is (= num (decode-32 (encode-32 num)))) (is (= num (decode-64 (encode-64 num))))...
57c01fa27642e2cb67a65f1a49da017e0c6e9464388f0b5e39280f92eb11d53f
reactiveml/rml
main.ml
Js_of_ocaml examples * / * Copyright ( C ) 2008 * * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * TERMS AND CONDITIONS FOR COPYING , DISTRIBUTION AND MODIFICATION * * / * Copyright (C) 2008 Benjamin Canou * * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * TERMS AND C...
null
https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/toplevel-alt/js/js-of-ocaml/examples/minesweeper/main.ml
ocaml
Js_of_ocaml examples * / * Copyright ( C ) 2008 * * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * TERMS AND CONDITIONS FOR COPYING , DISTRIBUTION AND MODIFICATION * * / * Copyright (C) 2008 Benjamin Canou * * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * TERMS AND C...
e52d8f2d4b87a3a6c818dfa02afd05ce566aee66551f32fef23ae2bb6f005f2c
srdqty/talc-3.0
compact.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/srdqty/talc-3.0/df83dd5ff0e2b189b13280ddae233d8277199350/apps/cyclone/tools/lex/compact.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : compact.mli , v 1.1 2000/09/1...
c1abbf9b171b2f8d941756e4944475d7681c204c7ade14f9297e2cf2d5fcdb08
rainyt/ocaml-haxe
float.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/rainyt/ocaml-haxe/9d0ab323c6857d7fe3ce89764a00921eff1a5aaf/ocaml-extern/ocaml/float.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the external neg : float -> float = "%negfloat" e...
1c2fbaf5d7f28598656e88fd2ab5233b702ee10770b1976c5bd56a0eba803cba
facebookarchive/pfff
highlight_code.ml
* * Copyright ( C ) 2010 - 2014 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/h_program-lang/highlight_code.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types helpers ******************************************************************...
* * Copyright ( C ) 2010 - 2014 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file...
f45af4c3ec06c10b97d4f32922f08e62b1741006bbf8dd2dbf60828141ef2de5
igarnier/prbnmcn-dagger
dist.ml
type 'a dist = { sample : RNG.t -> 'a; ll : 'a -> Log_space.t } type 'a kernel = { start : 'a; sample : 'a -> RNG.t -> 'a; ll : 'a -> 'a -> Log_space.t } type 'a t = Stateless of 'a dist | Kernel of 'a kernel let stateless sample ll = Stateless { sample; ll } [@@inline] let kernel start sample ll = Kernel { start...
null
https://raw.githubusercontent.com/igarnier/prbnmcn-dagger/360e196be3e28cbcc67691a1fd68f1cd93743e35/src/dist.ml
ocaml
type 'a dist = { sample : RNG.t -> 'a; ll : 'a -> Log_space.t } type 'a kernel = { start : 'a; sample : 'a -> RNG.t -> 'a; ll : 'a -> 'a -> Log_space.t } type 'a t = Stateless of 'a dist | Kernel of 'a kernel let stateless sample ll = Stateless { sample; ll } [@@inline] let kernel start sample ll = Kernel { start...
170f2a048bc4484ca6490b2007fd73167530e51fc6f1ed157524f22a38a9dbf6
strymonas/strymonas-ocaml
benchmark_c.ml
(* Generating code for C benchmarks *) (* #directory "../lib";; #directory "../lib/backends/Trx";; #directory "../lib/backends/C";; #load "stream.cma";; *) module type cde_ex = module type of Cde_ex module CCodePV = struct include Pk_cde.Make(C_cde) let injg : 'a C_cde.cde -> 'a cde = fun x -> {sta=Global; d...
null
https://raw.githubusercontent.com/strymonas/strymonas-ocaml/b45ab87c62e5bb845ff4a989064f30ed6b468f6d/benchmarks/benchmark_c.ml
ocaml
Generating code for C benchmarks #directory "../lib";; #directory "../lib/backends/Trx";; #directory "../lib/backends/C";; #load "stream.cma";; element of an outer stream advanced and more interesting use of flat_map
module type cde_ex = module type of Cde_ex module CCodePV = struct include Pk_cde.Make(C_cde) let injg : 'a C_cde.cde -> 'a cde = fun x -> {sta=Global; dyn=x} let print_one_array : string -> Format.formatter -> 'a C_cde.tbase -> ('a array cde -> 'b cde) -> unit = fun name ppf tp body -> C_cde.one_a...
e207194b8e034c3478ea049140ae8e336d6cf291b29dc349bbc28162ee5fff38
fwcd/curry-language-server
CodeLens.hs
# LANGUAGE FlexibleInstances , OverloadedStrings # module Curry.LanguageServer.Handlers.CodeLens (codeLensHandler) where Curry Compiler Libraries + Dependencies import qualified Curry.Syntax as CS import qualified Base.Types as CT import Control.Lens ((^.)) import Control.Monad.IO.Class (liftIO) import Control.Mona...
null
https://raw.githubusercontent.com/fwcd/curry-language-server/09a58095248aa0dd6b6a2f23ded5a790f2531d86/src/Curry/LanguageServer/Handlers/CodeLens.hs
haskell
TODO: Move the command identifier ('decl.applyTypeHint') to some central place to avoid repetition.
# LANGUAGE FlexibleInstances , OverloadedStrings # module Curry.LanguageServer.Handlers.CodeLens (codeLensHandler) where Curry Compiler Libraries + Dependencies import qualified Curry.Syntax as CS import qualified Base.Types as CT import Control.Lens ((^.)) import Control.Monad.IO.Class (liftIO) import Control.Mona...
7d4abbaad31f2595becb59a55c94be193960d4414cc1074f8eaea9061722fbbe
ormf/cm
socketserver.lisp
;;; ********************************************************************** Copyright ( C ) 2007 - 2009 , . ;;; This program is free software; you can redistribute it and/or modify it under the terms of the Lisp Lesser Gnu Public License . The text of ;;; this agreement is available at ;;; *********...
null
https://raw.githubusercontent.com/ormf/cm/26843eec009bd6c214992a8e67c49fffa16d9530/src/socketserver.lisp
lisp
********************************************************************** This program is free software; you can redistribute it and/or modify this agreement is available at ********************************************************************** GRAY STREAMS this is a gray stream for standard output t...
Copyright ( C ) 2007 - 2009 , . it under the terms of the Lisp Lesser Gnu Public License . The text of (in-package :cl-user) #+sbcl (use-package :sb-gray) #+clisp (use-package :gray) #+openmcl (import '(ccl::fundamental-character-output-stream ccl::stream-write-char ccl::stream-line-column ccl::s...
f141b0f4148101a1561e575538b26af88cb4487bc8e8beb9b425f4d5748ea835
backtracking/mlpost
mlpost_desc_options.ml
(**************************************************************************) (* *) Copyright ( C ) Johannes Kanig , , and (* *) (* This software is f...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/tools/mlpost_desc_options.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) Johannes Kanig , , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Format open Arg let pdf = ref true let latex_file = ref None let set_latex_file f = if not (S...
cf962e3405ffb9c43db44b82aea37454b7546fd2c68b131455606c5b2466412a
sellout/haskerwaul
Full.hs
module Haskerwaul.Functor.Faithful.Full ( module Haskerwaul.Functor.Faithful.Full -- * extended modules , module Haskerwaul.Functor.Faithful , module Haskerwaul.Functor.Full ) where import Data.Constraint ((:-), Dict, unmapDict) import Data.Functor.Identity (Identity(..)) import Haskerwa...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Functor/Faithful/Full.hs
haskell
* extended modules | [nLab](+and+faithful+functor) | This is truly a functor itself, but its signature doesn't match that required by `Functor`. | The isomorphism induced by a full & faithful functor. | `Dict` is a `FullFaithfulFunctor` between the category of constraints and __Hask__. | `Identity` is a `Fu...
module Haskerwaul.Functor.Faithful.Full ( module Haskerwaul.Functor.Faithful.Full , module Haskerwaul.Functor.Faithful , module Haskerwaul.Functor.Full ) where import Data.Constraint ((:-), Dict, unmapDict) import Data.Functor.Identity (Identity(..)) import Haskerwaul.Functor.Faithful impo...
168dca11c1d5c64ee22043ed05c3a4ecbc02230d7ea3e6344d62656f1f83b154
janestreet/bonsai
interaction.ml
open! Core type 'action t = | Profile : string -> _ t | Change_input : 'a Bonsai.Var.t * 'a -> _ t | Inject : 'action -> 'action t | Advance_clock_by : Time_ns.Span.t -> _ t | Stabilize : _ t | Reset_model : _ t | Many : 'action t list -> 'action t let change_input var value = Change_input (var, value) ...
null
https://raw.githubusercontent.com/janestreet/bonsai/33e9a58fc55ec12095959dc5ef4fd681021c1083/bench/src/interaction.ml
ocaml
open! Core type 'action t = | Profile : string -> _ t | Change_input : 'a Bonsai.Var.t * 'a -> _ t | Inject : 'action -> 'action t | Advance_clock_by : Time_ns.Span.t -> _ t | Stabilize : _ t | Reset_model : _ t | Many : 'action t list -> 'action t let change_input var value = Change_input (var, value) ...
787978bf254c92a2147062dcbf0875a50d4fa5563d7c787e52d0cee631e20e71
xh4/web-toolkit
package.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; package.lisp --- Groveler DEFPACKAGE. ;;; ;;; 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 wi...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cffi_0.20.1/grovel/package.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- package.lisp --- Groveler DEFPACKAGE. 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, sublic...
files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (uiop:define-package #:cffi-grovel (:mix #:cffi-too...
cd73562943b993e85b8e2b8d93563465e67ae8b5bfc6e4c4ce83c2b67f4c3961
fengctor/octune
SamplesGen.hs
module Octune.CodeGen.SamplesGen where import Control.Lens import Control.Monad import Control.Monad.Par import Data.Bits import Data.Int import Data.List import qualified Data.Map.Strict as Map import Data.Maybe import Data.WAVE ...
null
https://raw.githubusercontent.com/fengctor/octune/16dfb308d63ef9bbb3aad0245c61a2fab13c4c88/src/Octune/CodeGen/SamplesGen.hs
haskell
Default amplitude of a wave Multiplier for frequency to go up a semitone {-# INLINE [0] zipWithHom #-} Layer a list of samples over each other Sequence a list of samples, then repeat it a given number of times TODO: Add option to turn memoization on. Many times, variables will not be mentioned more than a ...
module Octune.CodeGen.SamplesGen where import Control.Lens import Control.Monad import Control.Monad.Par import Data.Bits import Data.Int import Data.List import qualified Data.Map.Strict as Map import Data.Maybe import Data.WAVE ...
8eb657ab8c493f4be5e34c1e2c5b5c079b5e3f7e6f3dd4fdd318152e898b4d96
input-output-hk/cardano-ledger
NetworkID.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Examples.NetworkID ( testPoolNetworkId, ) where import Cardano.Ledger.BaseTypes (ProtVer (..), natVersion) import Cardano.Ledger.Shelley (ShelleyEra) import Cardano.Ledger.Shelley.API ( DCert (..), Network (..), PoolCert (...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/e0947b0c2e99ef929d20593be03e199560392f42/eras/shelley/test-suite/test/Test/Cardano/Ledger/Shelley/Examples/NetworkID.hs
haskell
test globals use Testnet test globals use Testnet
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Examples.NetworkID ( testPoolNetworkId, ) where import Cardano.Ledger.BaseTypes (ProtVer (..), natVersion) import Cardano.Ledger.Shelley (ShelleyEra) import Cardano.Ledger.Shelley.API ( DCert (..), Network (..), PoolCert (...
ff2fc76bb2e258a8baee993696c0917ff705872dcd0b533847b2e743a41801bf
seagreen/ian
branching.hs
Module { moduleName = "Main" , moduleSourceFileName = "<string>" , moduleDataLayout = Nothing , moduleTargetTriple = Nothing , moduleDefinitions = [ GlobalDefinition Function { linkage = External , visibility = Default , dllStorageClass = Nothing ...
null
https://raw.githubusercontent.com/seagreen/ian/f245fb68d94299f0e3e12744e9d1549447ad529a/llvm-in-haskell/generated/branching.hs
haskell
Module { moduleName = "Main" , moduleSourceFileName = "<string>" , moduleDataLayout = Nothing , moduleTargetTriple = Nothing , moduleDefinitions = [ GlobalDefinition Function { linkage = External , visibility = Default , dllStorageClass = Nothing ...