_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
e30130e49faf6129142dfa0f48685b930fada8f01845ce7074a674dd6c869d84
mirage/cactus
vertex_header_intf.ml
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
null
https://raw.githubusercontent.com/mirage/cactus/3eb2a4abee79bf8f20de5b4b12a57c3421c3e2fe/src/vertex_header_intf.ml
ocaml
* Module for all common metadata.
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
082b80bdcfdf199168da589d23c77a68b7264ea5aa6c01c18ad041e8bb434355
seanhess/robotquest
GameState.hs
module Botland.GameState where import Botland.Types import Control.Monad.State import Control.Monad (when, unless) import Data.Map (Map, insert, delete, lookup, elems, empty) import Data.Maybe (isJust) import Prelude hiding (lookup) -- GAME STATE ------------------------------------------------ type GameState a ...
null
https://raw.githubusercontent.com/seanhess/robotquest/98328579d6bbfad2cd678811a9759c907cf6b268/Botland/GameState.hs
haskell
GAME STATE ------------------------------------------------
module Botland.GameState where import Botland.Types import Control.Monad.State import Control.Monad (when, unless) import Data.Map (Map, insert, delete, lookup, elems, empty) import Data.Maybe (isJust) import Prelude hiding (lookup) type GameState a = State Game a data Game = Game { info :: GameInfo, bots :: Ma...
d319b467e7899378b962112984c7034c1c02a43a1f45cab707a0c228a90c1e2f
chuchao333/6.945
ps4_demo.scm
Problem 4.1 ;; Demonstrate functionality (define ss (lambda x (map square x))) (ss 1 2 3 4) ; (1 4 9 16) (define (ss . x) (map square x)) (ss 1 2 3 4) ; (1 4 9 16) ;; Demonstrate everything still works (define ss (lambda (x y) (* x y))) (ss 3 4) 12 (define (ss x y) (* x y)) (ss 3 4) 12 Problem 4.2 ;; Demonstrate...
null
https://raw.githubusercontent.com/chuchao333/6.945/c50bb28aadf0c3fcda3c8e56b4a61b9a2d582552/ps4/code/ps4_demo.scm
scheme
Demonstrate functionality (1 4 9 16) (1 4 9 16) Demonstrate everything still works Demonstrate functionality -5 -107/4 -7/8 show that count always is 0 with undoable set (a c 1) show that count is always incrementing with permanent set (a c 3) all-odd
Problem 4.1 (define ss (lambda x (map square x))) (ss 1 2 3 4) (define (ss . x) (map square x)) (ss 1 2 3 4) (define ss (lambda (x y) (* x y))) (ss 3 4) 12 (define (ss x y) (* x y)) (ss 3 4) 12 Problem 4.2 (infix "3+2") 5 (infix "3+2-1") 4 (infix "3+2+1-1") 5 (infix "3-2+1") 2 (infix "3+2-1+2-3-4-4") (in...
7064429a0f9770f7e06d59809333916c6df0d15c97b02ad26c7cf062b4fc98c7
input-output-hk/plutus-apps
RequireRedeemer.hs
# LANGUAGE DataKinds # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module PlutusExample.PlutusVersion2.RequireRedeemer ( requireRedeemerScript , requireRedeemerScriptShortBs ) where import Cardano.Api.Shelley (PlutusScript (..), PlutusScriptV2) import Prelude hiding (($), (&&)) impo...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/c1269a7ab8806957cda93448a4637c485352cda5/plutus-example/src/PlutusExample/PlutusVersion2/RequireRedeemer.hs
haskell
serialiseData is a PlutusV2 builtin
# LANGUAGE DataKinds # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module PlutusExample.PlutusVersion2.RequireRedeemer ( requireRedeemerScript , requireRedeemerScriptShortBs ) where import Cardano.Api.Shelley (PlutusScript (..), PlutusScriptV2) import Prelude hiding (($), (&&)) impo...
9a4bcbe0954035e8268b890c265ec93f48b4f61543bf8cae0ce479c34cd65836
rmculpepper/gamble
stxclass.rkt
Copyright ( c ) 2015 Released under the terms of the 2 - clause BSD license . ;; See the file COPYRIGHT for details. #lang racket/base (require racket/base racket/list racket/syntax syntax/parse syntax/id-table (for-template (only-in racket/contract/private/...
null
https://raw.githubusercontent.com/rmculpepper/gamble/a5231e2eb3dc0721eedc63a77ee6d9333846323e/gamble/private/analysis/stxclass.rkt
racket
See the file COPYRIGHT for details. ============================================================ Syntax classes for recognizing observation propagators Suppose contracted function f st (f e ...) => (f* blah e ...) then the f* identifier has a property contract-rename-id-property containing f-ren, where (syntax-lo...
Copyright ( c ) 2015 Released under the terms of the 2 - clause BSD license . #lang racket/base (require racket/base racket/list racket/syntax syntax/parse syntax/id-table (for-template (only-in racket/contract/private/provide contract-ren...
8206dee4bcbf1e8c527b5ea386f7f137901bbf57dedcbf7b5537db41492d79b6
ostinelli/syn
syn_pg.erl
%% ========================================================================================================== Syn - A global Process Registry and Process Group manager . %% The MIT License ( MIT ) %% Copyright ( c ) 2015 - 2022 < > and Neato Robotics , Inc. %% %% Permission is hereby granted, free of charge, t...
null
https://raw.githubusercontent.com/ostinelli/syn/4b5fbc17e8008af2780af61fbf6966c15036741e/src/syn_pg.erl
erlang
========================================================================================================== 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, s...
Syn - A global Process Registry and Process Group manager . The MIT License ( MIT ) Copyright ( c ) 2015 - 2022 < > and Neato Robotics , 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 ...
d38deb74466c7b5043deb568626f0e87639abde8ce1fe707af6b4c664d4444ef
tfausak/github-release
Main.hs
module Main ( module GitHubRelease, ) where import GitHubRelease (main)
null
https://raw.githubusercontent.com/tfausak/github-release/96f552d5957603588c71985100f1f1a5fdc2161f/source/executable/Main.hs
haskell
module Main ( module GitHubRelease, ) where import GitHubRelease (main)
05600b8b417ce4a1c6139d0acc563cc4b97e5b4a8390f970f26e82bb561442a9
erlang/erlide_kernel
coverage.erl
Author : < > Created : 22 - 12 - 2010 %% Description: coverage files %%---------------------------------------------- -module(coverage). %%---------------------------------------------- %% Include files %%---------------------------------------------- -include("coverage.hrl"). %%------------------------------...
null
https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/debugger/erlide_debugger/src/coverage.erl
erlang
Description: coverage files ---------------------------------------------- ---------------------------------------------- Include files ---------------------------------------------- ---------------------------------------------- Exported Functions ---------------------------------------------- ---------------------...
Author : < > Created : 22 - 12 - 2010 -module(coverage). -include("coverage.hrl"). -export([compile/3, compile_dir/1, prepare/2, create_report/2, create_index/2]). compile(Module, Path, Includes) -> IOptions = [{i, Dir} || Dir <- Includes], Options = [{d, 'TEST'} | IOptions], {ok, _M} -> ...
4768d7f61c88098cc16d17c6218ae01758c9c555a7acf62af6e398927da6b814
blindglobe/clocc
utility.lisp
-*- Mode : Lisp ; Package : CLIO - OPEN ; ; Lowercase : T ; Syntax : Common - Lisp -*- ;;;----------------------------------------------------------------------------------+ ;;; | ;;; TEXAS INSTRUMENTS INCORPO...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/clio/utility.lisp
lisp
Package : CLIO - OPEN ; ; Lowercase : T ; Syntax : Common - Lisp -*- ----------------------------------------------------------------------------------+ | TEXAS INSTRUMENTS INCORPORATED ...
, TEXAS 78714 | Copyright ( C ) 1989 , 1990 Texas Instruments Incorporated . | Texas Instruments Incorporated provides this software " as is " without express or | (in-package "CLIO-OPEN") (export '( contact-current-ba...
5ff65d4058d994045f822704a4226a0b038a74668c6da1a9f0abdc92f0027aad
nikita-volkov/rebase
Environment.hs
module Rebase.GHC.Environment ( module GHC.Environment ) where import GHC.Environment
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/Environment.hs
haskell
module Rebase.GHC.Environment ( module GHC.Environment ) where import GHC.Environment
5c8a288162b1af1f6822d602ad20438a3f7bc52c861349b34f57895501c6d802
tweag/lagoon
API.hs
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -2.0 -- Unless required by applicable law or agreed to in writing, software distributed under th...
null
https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/src/interface/src/Lagoon/Interface/API.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , > import qualified Lagoon . Interface . API as API # LANGUAGE DataKinds # # OPTIONS_GHC -fno - warn - orphans # module Lagoon.Interface.API ( ...
ffddf5de4e9641de973f98e0e31468c08f98a4fb34226f7516a79e4c41230f18
iprally/jonotin
core.clj
(ns jonotin.core (:import (org.threeten.bp Duration) (com.google.protobuf ByteString) (com.google.api.gax.batching BatchingSettings) (com.google.api.gax.core InstantiatingExecutorProvider) (com.google.api.core ApiFutureCallback ApiFutures ...
null
https://raw.githubusercontent.com/iprally/jonotin/196a78f80615f42b3c6709312eb5f13a7142b8ff/src/jonotin/core.clj
clojure
(ns jonotin.core (:import (org.threeten.bp Duration) (com.google.protobuf ByteString) (com.google.api.gax.batching BatchingSettings) (com.google.api.gax.core InstantiatingExecutorProvider) (com.google.api.core ApiFutureCallback ApiFutures ...
a5470b803df490a5103dec477349b617adb3447ce08f9b1af602913de5c4310f
kototama/picobit
test-load2.scm
(define (foo x) (display x))
null
https://raw.githubusercontent.com/kototama/picobit/8bdfc092266803bc6b1151177a7e668c9b050bea/tests/test-load2.scm
scheme
(define (foo x) (display x))
3d1b6f723b604dd8fe4b2e9f273895727996a058c82da899b286792d5fddfb61
inria-parkas/sundialsml
cvRoberts_dns_uw.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2007/10/25 20:03:29 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * --------------------------------------------------...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvode/serial/cvRoberts_dns_uw.ml
ocaml
Problem Constants number of equations initial y components scalar relative tolerance vector absolute tolerance components initial time first output time output time factor number of output times number of root functions Call CVodeInit to initialize the integrator memo...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2007/10/25 20:03:29 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * --------------------------------------------------...
323e354051c2b3f0736d54c6b9f4f57926927f7cc46dd0b83c62c45c260aa561
Ericson2314/lighthouse
TexParameter.hs
-- #hide -------------------------------------------------------------------------------- -- | Module : Graphics . Rendering . OpenGL.GL.Texturing . TexParameter Copyright : ( c ) 2002 - 2006 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : ...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/Texturing/TexParameter.hs
haskell
#hide ------------------------------------------------------------------------------ | License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : stable Portability : portable This is a purely internal module for getting\/setting texture parameters. ---------------------...
Module : Graphics . Rendering . OpenGL.GL.Texturing . TexParameter Copyright : ( c ) 2002 - 2006 module Graphics.Rendering.OpenGL.GL.Texturing.TexParameter ( TexParameter(..), texParami, texParamf, texParamC4f, getTexParameteri, combineTexParams, combineTexParamsMaybe ) where import Control.M...
3e834b6fed38fc41294ff905146766c804eb46cbd7969e1414166cc453b82f57
futurice/haskell-mega-repo
Ctx.hs
# LANGUAGE DataKinds # module Futurice.App.Reports.Ctx ( Ctx(..), runIntegrations', ) where import Dashdo.Servant (DashdoAPI) import Futurice.Integrations import Futurice.Postgres import Futurice.Prelude import Futurice.Servant (Cache) import Prelude () import Servant (Server) im...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/reports-app/src/Futurice/App/Reports/Ctx.hs
haskell
----------------------------------------------------------------------------- Context ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Run integrations -----------------------------------------------------------...
# LANGUAGE DataKinds # module Futurice.App.Reports.Ctx ( Ctx(..), runIntegrations', ) where import Dashdo.Servant (DashdoAPI) import Futurice.Integrations import Futurice.Postgres import Futurice.Prelude import Futurice.Servant (Cache) import Prelude () import Servant (Server) im...
7e69c522461a28d8582151ecf47a7cb7084872467e84ba1e368bd7c133c6db75
clash-lang/clash-compiler
ReplaceInt.hs
module ReplaceInt where import Clash.Prelude import Clash.Sized.Vector (replace) import Clash.Explicit.Testbench replace_int :: KnownNat n => Vec n a -> Int -> a -> Vec n a replace_int v i a = replace i a v # NOINLINE replace_int # topEntity :: SystemClockResetEnable => Signal System Int -> Signal S...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/PrimitiveReductions/ReplaceInt.hs
haskell
# NOINLINE topEntity #
module ReplaceInt where import Clash.Prelude import Clash.Sized.Vector (replace) import Clash.Explicit.Testbench replace_int :: KnownNat n => Vec n a -> Int -> a -> Vec n a replace_int v i a = replace i a v # NOINLINE replace_int # topEntity :: SystemClockResetEnable => Signal System Int -> Signal S...
2e6f214b39a3285fee8c052b8baca70cce511055486eb6d762ed744277cbda37
kirkedal/rfun-interp
Preparse.hs
----------------------------------------------------------------------------- -- -- Module : Preparse Copyright : , 2013 -- License : AllRightsReserved -- Maintainer : < > -- Stability : None guaranteed? -- Portability : -- |Preparse for rFun language -- -- Current purpose of this is...
null
https://raw.githubusercontent.com/kirkedal/rfun-interp/c5297be7ab07c92e9d489c642cd987ed646e78c8/src/Core/Preparse.hs
haskell
--------------------------------------------------------------------------- Module : Preparse License : AllRightsReserved Stability : None guaranteed? Portability : Current purpose of this is to generate the function environment and de-sugar the function level pattern matching to case expressio...
Copyright : , 2013 Maintainer : < > |Preparse for rFun language module Core.Preparse where import Core.Ast import qualified Data.Map as M import Data.List (nub) runPreparse :: Program -> FuncEnv runPreparse prog = M.fromList funcEnv where funcEnvSS = programToFuncEnvSS prog funcEnv =...
9ffb2621bc4110e2a682396b1b2b078b3861be0521591ff28349e9a59d8d2c10
lem-project/lem
rust-mode.lisp
(defpackage :lem-rust-mode (:use :cl :lem :lem.language-mode) (:export :*rust-mode-hook* :rust-mode :rust-format-buffer)) (in-package :lem-rust-mode) (defvar *rust-format-on-save* t) (defvar *rust-format-buffer* "rustfmt") (define-editor-variable rust-format-on-save t) (defun tokens (bounda...
null
https://raw.githubusercontent.com/lem-project/lem/26bd2dc10d92a90317d99ac818286371e5da9b14/modes/rust-mode/rust-mode.lisp
lisp
(#\< . #\>) ) (variable-value 'find-definitions-function) 'lem.gtags:find-definitions (variable-value 'find-references-function) 'lem.gtags:find-references
(defpackage :lem-rust-mode (:use :cl :lem :lem.language-mode) (:export :*rust-mode-hook* :rust-mode :rust-format-buffer)) (in-package :lem-rust-mode) (defvar *rust-format-on-save* t) (defvar *rust-format-buffer* "rustfmt") (define-editor-variable rust-format-on-save t) (defun tokens (bounda...
2e34d35e2c34d74b6c87330ae1b4b839a833ef867dc8a999fb7bf10d6e4a2755
input-output-hk/cardano-ledger-byron
NetworkMagic.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Cardano.Chain.Common.NetworkMagic ( NetworkMagic (..) , makeNetworkMagic ) wh...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/src/Cardano/Chain/Common/NetworkMagic.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ # UNPACK # Used for debugging purposes on...
# LANGUAGE LambdaCase # # LANGUAGE TypeApplications # module Cardano.Chain.Common.NetworkMagic ( NetworkMagic (..) , makeNetworkMagic ) where import Cardano.Prelude hiding ((%)) import Data.Aeson (ToJSON) import Formatting (bprint, build, (%)) impo...
b0d961074586d0d1f08e17fced40a0fb67824c5f21127d35c1f4419ae1483674
static-analysis-engineering/codehawk
bCHFunctionSummaryLibrary.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/e8fed9f226abe38578768968279c8242eb21fea9/CodeHawk/CHB/bchlib/bCHFunctionSummaryLibrary.ml
ocaml
chutil bchlib indexed by concatenated pkg names,fname indexed by concatenated pkg names,fname indexed by (dllname,fname) indexed by syscall index indexed by templated name indexed by dll indexed by dll records where summaries were taken from dlls being used reads all summary files from the jars p...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
2bd02360fae2dbc819b03e2c5ad08c6e2fe62e8438bc8c567c7bb371a328c1fd
cstar/erls3
console_events.erl
-module (console_events). -behaviour(gen_event). -export([init/1, handle_event/2, terminate/2]). init(_Args) -> {ok, []}. handle_event(ErrorMsg, State) -> io:format("***Info*** ~p~n", [ErrorMsg]), {ok, State}. terminate(_Args, _State) -> ok.
null
https://raw.githubusercontent.com/cstar/erls3/16f675a30e6866957f7086179fe26648e9432644/src/console_events.erl
erlang
-module (console_events). -behaviour(gen_event). -export([init/1, handle_event/2, terminate/2]). init(_Args) -> {ok, []}. handle_event(ErrorMsg, State) -> io:format("***Info*** ~p~n", [ErrorMsg]), {ok, State}. terminate(_Args, _State) -> ok.
580695b8425686a9c9f62746121590f030dd1e0b8febe535f18a44b713895ba4
benoitc/hackney
hackney_ssl_certificate.erl
%%% -*- erlang -*- %%% This file is part of hackney released under the Apache 2 license . %%% See the NOTICE for more information. %%% @private -module(hackney_ssl_certificate). -include_lib("public_key/include/OTP-PUB-KEY.hrl"). -export( [public_key_info/1 ]). -spec public_key_info(Cert) -> PKI w...
null
https://raw.githubusercontent.com/benoitc/hackney/6e79b2bb11a77389d3ba9ff3a0828a45796fe7a8/src/hackney_ssl_certificate.erl
erlang
-*- erlang -*- See the NOTICE for more information.
This file is part of hackney released under the Apache 2 license . @private -module(hackney_ssl_certificate). -include_lib("public_key/include/OTP-PUB-KEY.hrl"). -export( [public_key_info/1 ]). -spec public_key_info(Cert) -> PKI when Cert :: #'OTPCertificate'{tbsCertificate :: TBSCert}, ...
ff917f539c6db7f91ee703a563530ce2d1ba2d1efefa154655cdfe86b6166aab
byron-network/byron-dex
Types.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE DuplicateRecordFields # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} -- | module Middleware.Dex.Types where import Data....
null
https://raw.githubusercontent.com/byron-network/byron-dex/f234181c96ff50111f516292557359467a35962a/middleware/src/Middleware/Dex/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE OverloadedStrings # | VIEWS | Data type to represent wallet founds.
# LANGUAGE DuplicateRecordFields # # LANGUAGE GeneralizedNewtypeDeriving # module Middleware.Dex.Types where import Data.Aeson.Types (FromJSON, ToJSON, object, parseJSON, toJSON, withObject, (.:), (.=))...
219e4f9b8b6ee64d480abfdc8efe49c28e86875d101e410307ee70912ed08dbb
Haskell-Things/ImplicitCAD
ExtOpenScad.hs
{- ORMOLU_DISABLE -} Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 2015 2016 , ( ) -- Released under the GNU AGPLV3+, see LICENSE -- An executor, which parses openscad code, and executes it. module Graphics.Implicit.ExtOpenScad (runOpenscad) where import Prelude(String, IO, ($), (<$>), pure...
null
https://raw.githubusercontent.com/Haskell-Things/ImplicitCAD/0b3a4544b72074d3df77e8dd3502d05f5db75a21/Graphics/Implicit/ExtOpenScad.hs
haskell
ORMOLU_DISABLE Released under the GNU AGPLV3+, see LICENSE An executor, which parses openscad code, and executes it. | Small wrapper of our parser to handle parse errors, etc.
Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 2015 2016 , ( ) module Graphics.Implicit.ExtOpenScad (runOpenscad) where import Prelude(String, IO, ($), (<$>), pure, either, (.), Applicative, Bool(True)) import Graphics.Implicit.Definitions (SymbolicObj2, SymbolicObj3) import Graphics.Impli...
9ce15b2cd261fce4def22ead06aebc23a231fd9de498bd0708c172e93aa24f47
justinethier/cyclone
test-lib-dep.scm
(import (scheme base) (scheme file) (scheme write) (scheme cyclone libraries) (scheme cyclone pretty-print) ) (define append-dirs '()) (define prepend-dirs '()) (define lib-dep '(scheme cyclone common2)) (pretty-print (list (list '(tmp) (recompile? '(tmp))) (list '(scheme cyclone common) (recompile? '...
null
https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/test-lib-dep.scm
scheme
recompile? :: [symbol] -> boolean Do we need to recompile given library? Never try to recompile installed libraries No obj file, must rebuild obj file out of date Is "path" under given subdirectory "dir"? ")
(import (scheme base) (scheme file) (scheme write) (scheme cyclone libraries) (scheme cyclone pretty-print) ) (define append-dirs '()) (define prepend-dirs '()) (define lib-dep '(scheme cyclone common2)) (pretty-print (list (list '(tmp) (recompile? '(tmp))) (list '(scheme cyclone common) (recompile? '...
5d1526de0cf235ac0e9c9d314f1eafd19a6e8f5f0e3ef6493517437e7c4083b9
srid/rib
MMark.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE Rank2Types #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # -- | Parsing Markdown usin...
null
https://raw.githubusercontent.com/srid/rib/d92d2c1981e2a259535b67e066eb31bdf7c26e0c/rib/src/Rib/Parser/MMark.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE Rank2Types # | Parsing Markdown using the mmark parser. * Parsing * Rendering * Extracting information * Re-exports | Filepath corresponding to the text to be parsed (used only in parse errors) | Text to be parsed | Pure version of `parse` | Filepath corresponding to t...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # module Rib.Parser.MMark parse, parsePure, parseWith, parsePureWith, d...
8113d3239a346aa68156222f593c73faef774c19440c700687ccf42a7a3a7424
fugue/fregot
Builtins.hs
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : experimental Portability : POSIX -} Utilities and a...
null
https://raw.githubusercontent.com/fugue/fregot/c3d87f37c43558761d5f6ac758d2f1a4117adb3e/lib/Fregot/Types/Builtins.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE Rank2Types # # LANGUAGE TypeOperators # takes a number of types and returns the return type. This allows us to do highly granular type checking. The other representation is a deep embedding. This can be used to "print" the type or render the...
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : experimental Portability : POSIX -} Utilities and a...
6e6e11e8b0c19dcbe04f8307299c2b9e63e16a98e8b1b353234c649a3dff34fd
timothypratley/power-turtle
about.cljs
(ns power-turtle.view.about (:require [power-turtle.lesson-markdown :as lm] [soda-ash.core :as sa])) (defn about-page [] [sa/Segment {:style {:min-height "700px" :padding "1em 0em" :vertical true}} [:h1 {:style {:margin-top "3em"}} "Welcome to Power Turtle!"] [:img ...
null
https://raw.githubusercontent.com/timothypratley/power-turtle/b7a9aafd8ed7c5c7b5c19419de0a203e5e5dc288/src/power_turtle/view/about.cljs
clojure
TODO: make this a call to action
(ns power-turtle.view.about (:require [power-turtle.lesson-markdown :as lm] [soda-ash.core :as sa])) (defn about-page [] [sa/Segment {:style {:min-height "700px" :padding "1em 0em" :vertical true}} [:h1 {:style {:margin-top "3em"}} "Welcome to Power Turtle!"] [:img ...
a56939dd63ace3fd21887d60e73bacd37fb32a12aad997254a88d460906b4109
startalkIM/ejabberd
mod_private_mnesia.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc %%% %%% @end Created : 13 Apr 2016 by < > %%%------------------------------------------------------------------- -module(mod_private_mnesia). -behaviour(mod_private). %% API -export([init/2, set_data...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_private_mnesia.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API =================================================================== API =================================================================== =========================...
@author < > ( C ) 2016 , Created : 13 Apr 2016 by < > -module(mod_private_mnesia). -behaviour(mod_private). -export([init/2, set_data/3, get_data/3, get_all_data/2, remove_user/2, import/2]). -include("jlib.hrl"). -include("mod_private.hrl"). -include("logger.hrl"). init(_Host, _Opts) -> mnesia:...
65b360fd563fc83e71c82d76660094935967ac821d7f08fbca91022da9d513f2
outlyerapp/erl-vent
vent_publisher_sup.erl
%%%------------------------------------------------------------------- %% @doc vent publisher supervisor. %% @end %%%------------------------------------------------------------------- -module(vent_publisher_sup). -behaviour(supervisor). -include("vent_internal.hrl"). %% API -export([start_link/0]). %% Supervisor ...
null
https://raw.githubusercontent.com/outlyerapp/erl-vent/9fd0d1352cccb4e525fbc3293f35806b3cf724d4/src/vent_publisher_sup.erl
erlang
------------------------------------------------------------------- @doc vent publisher supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ==================================...
-module(vent_publisher_sup). -behaviour(supervisor). -include("vent_internal.hrl"). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). -spec start_link() -> {ok, pid()}. start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdo...
acb05ef15dcf06b05175d8635215207e9861c0021e2bdfec1f5a6c128caeaec9
lazamar/easy-deploy
Command.hs
module Command ( cmd , run , ignoreResult , safeIO , Command ) where import Control.Exception (catch) import Control.Monad.IO.Class (liftIO) import qualified Control.Monad.Trans.Either as EitherT import Data.Either (either) import ...
null
https://raw.githubusercontent.com/lazamar/easy-deploy/7750f007be4e609a9fd7165c1011a221b23f486a/src/Command.hs
haskell
Create a command to be executed witn "run" Make the command happen Continues a computation even if a cmd fails
module Command ( cmd , run , ignoreResult , safeIO , Command ) where import Control.Exception (catch) import Control.Monad.IO.Class (liftIO) import qualified Control.Monad.Trans.Either as EitherT import Data.Either (either) import ...
0a744431db16e5797932efca332391fc68f99fa3f6ac5411c12a30024061cac4
martinslota/protocell
shared_types.ml
module Generated_code = Generated_code module Protobuf = Protobuf
null
https://raw.githubusercontent.com/martinslota/protocell/62545c7fb63ff76c95449ba015e40e0c3e0d94a5/src/shared/shared_types.ml
ocaml
module Generated_code = Generated_code module Protobuf = Protobuf
7db9b1f001135783e555f6c556c0c12a4360f84408e7ff1522e4cc79615a09e8
jordanthayer/ocaml-search
rev_heuristics.ml
* Reverse Heuristic Search . Searches which apply two sets of heuristics , those looking towards the goal and those looking towards the root . This is used mostly in heuristic correction , assuming that depth , , and what they telly us about the backwards looking heruistics apply to the forward ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/adaptive/rev_heuristics.ml
ocaml
for Dpq * Updates the [q_pos] of node [n], setting it to [i] * returns the current [q_pos] of node [n] * Wraps a function [f] which works on domain data and makes it so that it can be applied to nodes sort by fhat * Determines which of the nodes represents a better solution * Decomposes the solution [s] i...
* Reverse Heuristic Search . Searches which apply two sets of heuristics , those looking towards the goal and those looking towards the root . This is used mostly in heuristic correction , assuming that depth , , and what they telly us about the backwards looking heruistics apply to the forward ...
5dff60a2662a58511a1fcf7c9b189ad3fa2d65b6f05134aa7f6ead5cc8ae3ed3
dfeltey/CompilersFromScratch
SExpr.hs
module SExpr where import CEK data SExpr = AppS SExpr SExpr | LambdaS Name SExpr | BinopS Op SExpr SExpr | VarS Name | ValS Integer | BoolS Bool | IFS SExpr SExpr SExpr | LetS (Name,SExpr) SExpr | PrintS SExpr deriving(Show) d...
null
https://raw.githubusercontent.com/dfeltey/CompilersFromScratch/8fa59d419522fe9e0623fd5a58c3ea2bbb2d1837/SExpr.hs
haskell
module SExpr where import CEK data SExpr = AppS SExpr SExpr | LambdaS Name SExpr | BinopS Op SExpr SExpr | VarS Name | ValS Integer | BoolS Bool | IFS SExpr SExpr SExpr | LetS (Name,SExpr) SExpr | PrintS SExpr deriving(Show) d...
f3494f54761f8a49cda9d52de4b22f6bb40bb1b66dec38a7c3e6fe3e0dae30b3
shterrett/haskell-road
Nats.hs
module Book.Nats where import Data.Ratio data Natural = Z | S Natural deriving (Eq, Show) instance Ord Natural where compare Z Z = EQ compare Z _ = LT compare _ Z = GT compare (S m) (S n) = compare m n instance Enum Natural where succ = S pred Z = Z pred (S n) = n toEnum = fromIntegral fromEnum ...
null
https://raw.githubusercontent.com/shterrett/haskell-road/4af8253fc4475e5689b0ce59da468a3a6c92872e/src/Book/Nats.hs
haskell
module Book.Nats where import Data.Ratio data Natural = Z | S Natural deriving (Eq, Show) instance Ord Natural where compare Z Z = EQ compare Z _ = LT compare _ Z = GT compare (S m) (S n) = compare m n instance Enum Natural where succ = S pred Z = Z pred (S n) = n toEnum = fromIntegral fromEnum ...
ac8a5c27d049ebd08289c4796efef00b4837affb4215b8e831c948dbcce6cc1e
atomvm/atomvm_lib
lora.erl
%% Copyright ( c ) 2021 dushin.net %% All rights reserved. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in wr...
null
https://raw.githubusercontent.com/atomvm/atomvm_lib/0a35b8efc334a97fcc4e23d4d948962160e5fd4d/src/lora.erl
erlang
All rights reserved. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific ...
Copyright ( c ) 2021 dushin.net Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(lora). An SPI driver for the LoRa ( SX127X ) chipset . This module can be used to send and receive messages using LoRa modulation ...
50206964f7c6772ca623af46c99aa5f4429950a3f101dcf7763a22886e1b1cb5
release-project/benchmarks
ant.erl
%% Individual ant: constructs new solution based on pheromone matrix. -module(ant). -include ("types.hrl"). -export([start/4]). M&M - > Merkle & Middendorf : An Ant Algorithm with a new % Pheromone Evaluation Rule for Total Tardiness Problems %% ---------------------------------------------------------------- %% ...
null
https://raw.githubusercontent.com/release-project/benchmarks/55f042dca3a2c680e2967c59edc9636456047bd5/ACO/SMP-DETS-ACO/ant.erl
erlang
Individual ant: constructs new solution based on pheromone matrix. Pheromone Evaluation Rule for Total Tardiness Problems ---------------------------------------------------------------- %% ---------------------------------------------------------------- %% and rounding errors make the sum of pij slightly -------...
-module(ant). -include ("types.hrl"). -export([start/4]). M&M - > Merkle & Middendorf : An Ant Algorithm with a new Strictly , P(i , j ) is equal to Pij / Sigma ; he're we 're calculating both as we go along . Sigma is sum of terms over unscheduled jobs : see M&M {lists:reverse(P), Sigma}; construct_pij([...
f9a2e9ece116b9e461ec674a80e12d4f81070e50b97a61813081ce7f27b75a48
kadena-io/chainweb-node
PactExec.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | Module : Chainweb . Test . Pact Copyright :...
null
https://raw.githubusercontent.com/kadena-io/chainweb-node/ddac7518aa4cdb66973df2d6e2610ac026270d61/test/Chainweb/Test/Pact/PactExec.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | License: See LICENSE file Stability: experimental internal modules update twice resuls in an validaton failures, we have to run each test on a fresh pact environment. Unfortunately, that's a bit slow. --------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Module : Chainweb . Test . Pact Copyright : Copyright © 2018 Kadena LLC . Maintainer : < > Unit test for Pact execution in Chainweb mod...
c7a1d6ffc1b63ceee15c8dac7a6f4fcc299c70c128e2b21d170121558ea9b98a
fluree/db
index_range_test.clj
(ns fluree.db.query.index-range-test (:require [clojure.string :as str] [clojure.test :refer :all] [fluree.db.test-utils :as test-utils] [fluree.db.json-ld.api :as fluree] [fluree.db.util.log :as log] [fluree.db.flake :as flake])) (deftest ^:integration index-range-scans (testing "Various i...
null
https://raw.githubusercontent.com/fluree/db/8a741220c26266517f6e12c1adb5ed445cf591a9/test/fluree/db/query/index_range_test.clj
clojure
(ns fluree.db.query.index-range-test (:require [clojure.string :as str] [clojure.test :refer :all] [fluree.db.test-utils :as test-utils] [fluree.db.json-ld.api :as fluree] [fluree.db.util.log :as log] [fluree.db.flake :as flake])) (deftest ^:integration index-range-scans (testing "Various i...
2a33dfb26e92df951ba11bd39a8357fc35d6a43e37d21eb66fa83eb4c81c723c
backtracking/mlpost
proval.ml
open Mlpost open Command open Path module T = Transform let fig = let f = 7. in let pen = Pen.square ~tr:[ T.yscaled 0.5; T.rotated 40. ] () in let check = jointpath [ (-1.2, 1.2); (0., -2.); (2., 2.); (5., 5.) ] [ JLine; JCurve; JCurve ] in [ fill ~color:Color.black (transform [ T.scaled...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/presentations/proval/proval.ml
ocaml
open Mlpost open Command open Path module T = Transform let fig = let f = 7. in let pen = Pen.square ~tr:[ T.yscaled 0.5; T.rotated 40. ] () in let check = jointpath [ (-1.2, 1.2); (0., -2.); (2., 2.); (5., 5.) ] [ JLine; JCurve; JCurve ] in [ fill ~color:Color.black (transform [ T.scaled...
bef7202956d95761d43e83752f78f8bf7e17bd7a655cddeed2884fb04d79baa3
brendanhay/amazonka
TagResource.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wisdom/gen/Amazonka/Wisdom/TagResource.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Adds the specified tags to the specified resource. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | The tags used to organize, track, or control access for this resource. | The follow...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
7d918d1b21bdd9d9f033411d53a93b720bd0b8205d83f8149647e0745f2ab3d7
xh4/web-toolkit
packages.lisp
(in-package #:common-lisp-user) (defpackage #:trivial-backtrace-test (:use #:common-lisp #:lift #:trivial-backtrace))
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/trivial-backtrace-20190710-git/test/packages.lisp
lisp
(in-package #:common-lisp-user) (defpackage #:trivial-backtrace-test (:use #:common-lisp #:lift #:trivial-backtrace))
0d0fbb32f858a44c0d7f3be50bdb731cc8e152647cf5640433630504a5da59ed
ruHaskell/ruhaskell
Links.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE BlockArguments # module Markup.Links ( linksTemplate ) where import Prelude hiding (div, id) import Control.Monad ((<=<)) import qualified Data.Text.Lazy as Text import Hakyll (Compiler, makeItem) import Hakyll.Web.Template (Te...
null
https://raw.githubusercontent.com/ruHaskell/ruhaskell/63addf7644de7baeb643a89cd73d4f5638164aa1/src/Markup/Links.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE BlockArguments # module Markup.Links ( linksTemplate ) where import Prelude hiding (div, id) import Control.Monad ((<=<)) import qualified Data.Text.Lazy as Text import Hakyll (Compiler, makeItem) import Hakyll.Web.Template (Template, compileTemplateItem) import...
ef5743d1074a0e37cafd2e57a594359516e0bac30fb32127b6724823f17f7d53
runtimeverification/haskell-backend
OrPattern.hs
| Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Internal.OrPattern ( OrPattern, coerceSort, markSimplified, isSimplified, hasSimplifiedChildren, hasSimplifi...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/7379ceb40c2f37dcc81e8eb025f7cb3e8a6dad55/kore/src/Kore/Internal/OrPattern.hs
haskell
| The disjunction of 'Pattern'. | Checks whether all patterns in the disjunction have simplified children. See also: 'Pattern.hasSimplifiedChildren' | Checks whether all patterns in the disjunction have simplified children, ignoring the conditions used to simplify them. See also: 'Pattern.hasSimplifiedChildrenIgn...
| Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Internal.OrPattern ( OrPattern, coerceSort, markSimplified, isSimplified, hasSimplifiedChildren, hasSimplifi...
deef1e0c770e4a6e2919d19d806a17d6d1b5f5666bf07f59ad5fd419b5593634
komadori/HsQML
Objects.hs
# LANGUAGE ScopedTypeVariables , TypeFamilies # ScopedTypeVariables, TypeFamilies #-} module Graphics.QML.Internal.Objects where import Graphics.QML.Internal.BindObj import Graphics.QML.Internal.Marshal import Graphics.QML.Internal.Types import Control.Monad.Trans.Maybe import Data.Tagged i...
null
https://raw.githubusercontent.com/komadori/HsQML/f57cffe4e3595bdf743bdbe6f44bf45a4001d35f/src/Graphics/QML/Internal/Objects.hs
haskell
value dynamically and does not encode it into the static type.
# LANGUAGE ScopedTypeVariables , TypeFamilies # ScopedTypeVariables, TypeFamilies #-} module Graphics.QML.Internal.Objects where import Graphics.QML.Internal.BindObj import Graphics.QML.Internal.Marshal import Graphics.QML.Internal.Types import Control.Monad.Trans.Maybe import Data.Tagged i...
215a94733287888f8eaca794a5280a659da5517aaa781d8f6eb656be6e58a7da
weavejester/ring-reload-modified
hello_world.clj
(ns ring.util.hello-world) (defn handler [request] {:status 200 :headers {"Content-Type" "text/plain"} :body "Hello World"})
null
https://raw.githubusercontent.com/weavejester/ring-reload-modified/efe0b26287226baedb99446e064519971e292bfe/src/ring/util/hello_world.clj
clojure
(ns ring.util.hello-world) (defn handler [request] {:status 200 :headers {"Content-Type" "text/plain"} :body "Hello World"})
b9f36783b54b24985318f355863837912754a7815417c46bfccfadfae4cd7fb0
onaio/hatti
dataview_test.cljs
(ns hatti.views.dataview-test (:require-macros [cljs.test :refer (is deftest testing)]) (:require [chimera.seq :refer [in?]] [cljs.test :as t] [clojure.string :refer [lower-case trim]] [dommy.core :as dommy :refer-macros [sel sel1]] [hatti.shared :as shared] ...
null
https://raw.githubusercontent.com/onaio/hatti/7dc23c1c60b9fc46e1ff5b023eb6c794ebd04773/test/hatti/views/dataview_test.cljs
clojure
INITIAL STATE TESTS add "charts" because the text is "charts" but the view is :chart
(ns hatti.views.dataview-test (:require-macros [cljs.test :refer (is deftest testing)]) (:require [chimera.seq :refer [in?]] [cljs.test :as t] [clojure.string :refer [lower-case trim]] [dommy.core :as dommy :refer-macros [sel sel1]] [hatti.shared :as shared] ...
3bdd4b6edd5b6b955803d3b47c3d0e115e4cdb8d138bc295b6003580f9927f8f
wireapp/wire-server
Internal.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/ce4ecea4ac4894db1dcb3b5079fd9eff3ab726f4/services/federator/src/Federator/Monitor/Internal.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under 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 PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Federator.Monitor.Interna...
c9a1fad0336b806e26e518ed31a60d70c65c7310cad012f9f3fc38d6c5f88cac
finkel-lang/finkel
Main.hs
import Language.Finkel.Preprocess main :: IO () main = defaultPreprocess
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/fnkpp/Main.hs
haskell
import Language.Finkel.Preprocess main :: IO () main = defaultPreprocess
6453e65a021a0b6df4a37b93f9badc77cd1c897857763eb5e65138facfe81119
jeromesimeon/Galax
norm_context.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/normalization/norm_context.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : norm_context.mli , v 1.30 2007/10/16 01:25:34 Module : Description : This module implements the part of the context which is required during the normalization phase . Description: This module impleme...
32b5941cb8859daccafc6f5c6ba3770e22e0f9d1e64b1977d4fa85825d700060
Helium4Haskell/helium
DerivingShow1.hs
data A = A data B = B deriving Show
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/make/DerivingShow1.hs
haskell
data A = A data B = B deriving Show
2ae2fe2f1a66a44a1ee6a472d30dac66bee0308ed945e5b4982d7b8a4730cf3e
uzh/guardian
hacker.ml
module Make (P : Guard.Persistence_s) = struct type t = string * Guardian.Uuid.Actor.t let make s : t = s, Guardian.Uuid.Actor.create () let to_authorizable ?ctx = P.Actor.decorate ?ctx (fun (t : t) : [ `Hacker ] Guard.Authorizable.t -> Guard.Authorizable.make (Guard.ActorRoleSet.of_list [ `Ha...
null
https://raw.githubusercontent.com/uzh/guardian/d6eec2d4009275818f97c8327d137632ff717a5c/test/hacker.ml
ocaml
module Make (P : Guard.Persistence_s) = struct type t = string * Guardian.Uuid.Actor.t let make s : t = s, Guardian.Uuid.Actor.create () let to_authorizable ?ctx = P.Actor.decorate ?ctx (fun (t : t) : [ `Hacker ] Guard.Authorizable.t -> Guard.Authorizable.make (Guard.ActorRoleSet.of_list [ `Ha...
9b34b4784042d0a7e0f46870e10e3afd34fb74642fdb1808076e63ddc1b3f727
Gbury/ocaml-cgroups
CGSubsystem.mli
Copyright ( c ) 2015 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the follo...
null
https://raw.githubusercontent.com/Gbury/ocaml-cgroups/448ec091c3407136e641bcbcc8fc99e4a7376461/subsystems/CGSubsystem.mli
ocaml
Copyright ( c ) 2015 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the follo...
226d8e752aa83d0a28312b37c49a14aefd481c063789fbbaacc26ec0ec101c16
xsc/base64-clj
data.clj
(ns base64-clj-benchmark.data (:use criterium.core)) # # Data (defn random-data ^"[B" [n] (byte-array (take n (map byte (repeatedly #(- (rand-int 256) 128)))))) # # Macro for Main Function (defmacro defbench [id encode-fn decode-fn] `(defn ~id [& args#] (let [d# (random-data 128) ...
null
https://raw.githubusercontent.com/xsc/base64-clj/56a016526cb5ea9e2aed9fd89bc703a5a83c3547/benchmark/base64_clj_benchmark/data.clj
clojure
(ns base64-clj-benchmark.data (:use criterium.core)) # # Data (defn random-data ^"[B" [n] (byte-array (take n (map byte (repeatedly #(- (rand-int 256) 128)))))) # # Macro for Main Function (defmacro defbench [id encode-fn decode-fn] `(defn ~id [& args#] (let [d# (random-data 128) ...
6c068b5d14c4a7485e56eb7bd63e40c51eac8475ba3fcc5bed64ed6fa55415e4
gsakkas/rite
20060422-14:27:16-f2f2d7b30c2ee14f630e6f99b177e544.seminal.ml
exception Unimplemented exception RuntimeTypeError exception DoesNotTypecheck of string (****** Syntax for our language, including types (do not change) *****) type exp = Var of string | Lam of string * typ * exp | Apply of exp * exp | Closure of string * exp * (env ref) | Int of int | Pl...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060422-14%3A27%3A16-f2f2d7b30c2ee14f630e6f99b177e544.seminal.ml
ocaml
***** Syntax for our language, including types (do not change) **** ***** Interpreter for our language (do not change) **** **** helper functions provided to you (do not change) **** ********* examples and testing **********
exception Unimplemented exception RuntimeTypeError exception DoesNotTypecheck of string type exp = Var of string | Lam of string * typ * exp | Apply of exp * exp | Closure of string * exp * (env ref) | Int of int | Plus of exp * exp | If of exp * exp * exp | RecordE of (string * exp)...
a5ca553bd0605cd239559c05772900a5ffb8a6023552b199749ed7cb9758c405
issuu/broen
broen_serializer_json.erl
%%% --------------------------------------------------------------------------------- %%% @doc %%% An example serializer plugin that encodes and deodes broen requests and responses %%% to and form the JSON format. %%% @end %%% --------------------------------------------------------------------------------- -module(bro...
null
https://raw.githubusercontent.com/issuu/broen/7d0e1ad9017b9e9907d924b54c3c63dd1d741c9c/src/broen_serializer_json.erl
erlang
--------------------------------------------------------------------------------- @doc An example serializer plugin that encodes and deodes broen requests and responses to and form the JSON format. @end --------------------------------------------------------------------------------- API -----------------------...
-module(broen_serializer_json). -include_lib("eunit/include/eunit.hrl"). -export([serialize/1, deserialize/2]). @doc Serialize the request into JSON -spec serialize(broen_core:broen_request()) -> {term(), broen_core:content_type()}. serialize(Request) -> MappedReq = maps:map(fun(multipartobj, Val) -> ha...
1ee004b7eb5d66b732fb01416c7fbd4b09213a6f275781d4b29596a3644ffb9c
okuoku/nausicaa
test-ffi-memory-refcount.sps
;;; Part of : / Scheme ;;;Contents: tests for refcount memory allocation Date : Tue Dec 16 , 2008 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2008 - 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...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/tests/test-ffi-memory-refcount.sps
scheme
Contents: tests for refcount memory allocation Abstract 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 your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY ...
Part of : / Scheme Date : Tue Dec 16 , 2008 Copyright ( c ) 2008 - 2010 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License (import (nausicaa) (nausicaa checks) (nausic...
074d89f0d8d48ca728a0ec807f1ed293739aa83b0366a69cad94456c21694ff6
ghcjs/ghcjs
Main.hs
# LANGUAGE BangPatterns , MagicHash # -- The Computer Language Benchmarks Game -- / -- Modified by : 1 ) change from divInt # to uncheckedIShiftRA # 2 ) changed -optc - O to -optc - O3 3 ) added -optc - ffast - math Translation from Clean by Paralleliz...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/nofib/shootout/spectral-norm/Main.hs
haskell
/ Should be compiled with: -threaded -funbox-strict-fields -O2 -fvia-c -optc-O3 -fexcess-precision -optc-ffast-math Should be run with: +RTS -N<number of cores> ---------------------------------------------------------------------- ---------------------------------------------------------------------- m...
# LANGUAGE BangPatterns , MagicHash # The Computer Language Benchmarks Game Modified by : 1 ) change from divInt # to uncheckedIShiftRA # 2 ) changed -optc - O to -optc - O3 3 ) added -optc - ffast - math Translation from Clean by Parallelized by im...
24cc6090a6b12e281045da7626dbde455b41bb327f465be0d2728627893c5098
dundalek/closh
compiler_test.cljc
(ns closh.compiler-test (:require [clojure.test :refer [deftest is are]] [closh.zero.parser] [closh.zero.compiler] [closh.zero.builtin] [closh.zero.core :refer [shx expand expand-partial expand-redirect expand-command]])) #_(comment `(apply ((deref closh.zero.env/*...
null
https://raw.githubusercontent.com/dundalek/closh/b1a7fd310b6511048fbacb8e496f574c8ccfa291/test/closh/compiler_test.cljc
clojure
=== Expansion coercion tests === echo b))))))
(ns closh.compiler-test (:require [clojure.test :refer [deftest is are]] [closh.zero.parser] [closh.zero.compiler] [closh.zero.builtin] [closh.zero.core :refer [shx expand expand-partial expand-redirect expand-command]])) #_(comment `(apply ((deref closh.zero.env/*...
7ca7504f6c1b52437ce1049656d9f458ca5d362b3dbc414953aae352654e3f7c
alanz/ghc-exactprint
T10279.hs
# LANGUAGE TemplateHaskell # module T10279 where import Language.Haskell.TH import Language.Haskell.TH.Syntax NB : rts-1.0 is used here because it does n't change . -- You do need to pick the right version number, otherwise the -- error message doesn't recognize it as a source package ID, -- (This is OK, since it w...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T10279.hs
haskell
You do need to pick the right version number, otherwise the error message doesn't recognize it as a source package ID, (This is OK, since it will look obviously wrong when they try to find the package in their package database.)
# LANGUAGE TemplateHaskell # module T10279 where import Language.Haskell.TH import Language.Haskell.TH.Syntax NB : rts-1.0 is used here because it does n't change . blah = $(conE (Name (mkOccName "Foo") (NameG VarName (mkPkgName "rts-1.0") (mkModName "A"))))
5614180db415455d3689baec4fe7446182b86a9287582e499a7b3becfd082a0f
vito/hummus
Main.hs
# LANGUAGE OverloadedStrings , RankNTypes # module Main where import Control.Monad.Trans import Data.Attoparsec import Prelude hiding (catch) import System.Console.Haskeline import System.Environment (getArgs, getEnv) import System.FilePath ((</>)) import qualified Data.ByteString as BS import Hummus.Types import Hum...
null
https://raw.githubusercontent.com/vito/hummus/308f9f7aaf57b799c81ab902880f024ee6313424/src/Main.hs
haskell
TODO: super hacky
# LANGUAGE OverloadedStrings , RankNTypes # module Main where import Control.Monad.Trans import Data.Attoparsec import Prelude hiding (catch) import System.Console.Haskeline import System.Environment (getArgs, getEnv) import System.FilePath ((</>)) import qualified Data.ByteString as BS import Hummus.Types import Hum...
8e65685988f3c5be4f6b3f882480f0df0d22978f2bb7e3a50b4f604f92e617e5
district0x/district-ui-graphql
typenames.cljs
(ns district.ui.graphql.middleware.typenames (:require [district.ui.graphql.utils :as utils])) (def visit (aget js/GraphQL "visit")) (def gql-sync (aget js/GraphQL "graphqlSync")) (def print-str-graphql (aget js/GraphQL "print")) (defn- field-resolver [root-value args context info] (let [return-type (aget i...
null
https://raw.githubusercontent.com/district0x/district-ui-graphql/9ae6d58e6b200d31c22c97c0c024fe9b3acb97cb/src/district/ui/graphql/middleware/typenames.cljs
clojure
TODO QUESTION How do I know here if I'll be resolving to empty or not since we don't know what resolver will apply deep clone ¯\_(ツ)_/¯
(ns district.ui.graphql.middleware.typenames (:require [district.ui.graphql.utils :as utils])) (def visit (aget js/GraphQL "visit")) (def gql-sync (aget js/GraphQL "graphqlSync")) (def print-str-graphql (aget js/GraphQL "print")) (defn- field-resolver [root-value args context info] (let [return-type (aget i...
3e798114d8e21853b5fe20872f8b57b7b003526c5aa7ff23d930010ac9da8ae6
acl2/acl2
sublis-var-simple.lisp
Utilities that perform substitution ; Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/acl2/acl2/2790a294db676f428d72175afcfa5dfff2b05979/books/kestrel/terms-light/sublis-var-simple.lisp
lisp
See tests in sublis-var-simple-tests.lisp. See proofs in sublis-var-simple-proofs.lisp. See also the built-in function sublis-var. It evaluates ground applications of certain functions: It does not resolve IFs when the test is a constant: certain ground function applications and simplify IFs with constant tes...
Utilities that perform substitution Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2023 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") (include-book "kestrel/utilities/symbol-term-alistp" :dir :sy...
ca23bc280f2232e185a930bac47c87121cfcaa24d85bd90ba2a28f4b243a83e3
xray-tech/xorc-xray
programs.clj
(ns re.boundary.programs (:refer-clojure :exclude [get]) (:require [integrant.core :as ig] [qbits.alia :as alia] [qbits.alia.uuid :as uuid] [re.utils :as utils]) (:import java.nio.ByteBuffer)) (defprotocol Programs (create [this bc]) (get [this id])) (defmethod ig/init-ke...
null
https://raw.githubusercontent.com/xray-tech/xorc-xray/ee1c841067207c5952473dc8fb1f0b7d237976cb/src/re/boundary/programs.clj
clojure
(ns re.boundary.programs (:refer-clojure :exclude [get]) (:require [integrant.core :as ig] [qbits.alia :as alia] [qbits.alia.uuid :as uuid] [re.utils :as utils]) (:import java.nio.ByteBuffer)) (defprotocol Programs (create [this bc]) (get [this id])) (defmethod ig/init-ke...
29d98cd5e28c7470af56e5a92f665fc32ddb34b5d5c2f45fd97d50925cc5088d
philnguyen/soft-contract
match.rkt
#lang racket (require soft-contract/fake-contract) (define f (match-lambda [(cons x y) #:when (> x 4) (add1 x)] [(? number? z) (add1 z)] [(? string? s) (string-length s)] [(vector n s) (string-length s)] [(vector _ _ _) #|DEAD|# (add1 "")])) (provide (contract-out [f ((or/c (or/c string? numb...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/misc/match.rkt
racket
DEAD
#lang racket (require soft-contract/fake-contract) (define f (match-lambda [(cons x y) #:when (> x 4) (add1 x)] [(? number? z) (add1 z)] [(? string? s) (string-length s)] [(vector n s) (string-length s)] (provide (contract-out [f ((or/c (or/c string? number?) (or/c (cons/c (>/c 6) any...
26480f2570a3489b52cc7b79ad97ed8161597b878e3c771402fd3d92606a5b30
ocamllabs/ocaml-modular-implicits
mixing_value_closures_1.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Ga...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/letrec/mixing_value_closures_1.ml
ocaml
********************************************************************* OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2012 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 . type t = A of (int -> int) let test = le...
31803d27589d4d8fc48c061f2a65d24e35286644c8232b86af0ce9656530d4cd
CSVdB/pinky
Internal.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances ...
null
https://raw.githubusercontent.com/CSVdB/pinky/e77a4c0812ceb4b8548c41a7652fb247c2ab39e0/pinky/src/Pinky/Core/LinearAlgebra/Internal.hs
haskell
V . fromJust . Hmatrix.create M . fromJust . Hmatrix.create
# OPTIONS_GHC -Wno - orphans # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances ...
90e50672cd891d1ff1b33b75da5cc8eaa045a2d4544607848a745f410b841e8a
ddmcdonald/sparser
util.lisp
;;; -*- Mode: Lisp; Syntax: COMMON-LISP; Package: DDM-UTIL -*- Copyright ( c ) 2016 SIFT LLC . All Rights Reserved . (in-package :ddm-util) (eval-when (:compile-toplevel :load-toplevel :execute) (use-package :rt)) ;; util (deftest then/else (if t (then nil t) (else t nil)) t) (deftest reintern-symb...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/test/util.lisp
lisp
-*- Mode: Lisp; Syntax: COMMON-LISP; Package: DDM-UTIL -*- util lists strings hash-tables time
Copyright ( c ) 2016 SIFT LLC . All Rights Reserved . (in-package :ddm-util) (eval-when (:compile-toplevel :load-toplevel :execute) (use-package :rt)) (deftest then/else (if t (then nil t) (else t nil)) t) (deftest reintern-symbols (let* ((source (make-package :source)) (dest (make-packa...
f97b976f5a712e674d1ea97860d2f4d82b7ac4fe6816e32420b6637f23f4a74f
nobsun/oi
Setup.hs
module Main where import Distribution.Simple main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/nobsun/oi/3a99630a01debeb3266620580d0e8ffbc0b8042b/Setup.hs
haskell
module Main where import Distribution.Simple main :: IO () main = defaultMain
df15666d2e6a432217f2e3528e2dc3caf4813ebab56246156884ad7ea309861a
tmfg/mmtis-national-access-point
admin_validation.cljs
(ns ote.app.controller.admin-validation (:require [tuck.core :as tuck :refer-macros [define-event]] [tuck.effect :as tuck-effect] [ote.app.state :as state] [ote.localization :refer [tr tr-key]] [ote.communication :as comm] [ote.app.routes :as routes] ...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/cljs/ote/app/controller/admin_validation.cljs
clojure
Validation Load services immediately And start timer post id to publish route close modal and show success flash message
(ns ote.app.controller.admin-validation (:require [tuck.core :as tuck :refer-macros [define-event]] [tuck.effect :as tuck-effect] [ote.app.state :as state] [ote.localization :refer [tr tr-key]] [ote.communication :as comm] [ote.app.routes :as routes] ...
88eb7fb186dea51b52e038eedd8a51a7cd1b65995996c72c75b7fc256b5cc3ed
hasufell/hpath
Errors.hs
-- | Module : System . . RawFilePath . Directory . Errors Copyright : © 2016 -- License : BSD3 -- Maintainer : < > -- Stability : experimental -- Portability : portable -- -- Provides error handling. {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ScopedTypeVariables # module Syst...
null
https://raw.githubusercontent.com/hasufell/hpath/9fcc1890596e5b838bf3be9ed303165fbc692d11/hpath-directory/src/System/Posix/RawFilePath/Directory/Errors.hs
haskell
| License : BSD3 Stability : experimental Portability : portable Provides error handling. # LANGUAGE DeriveDataTypeable # * Types * Exception identifiers * Path based functions * Error handling functions # SOURCE # |Additional generic IO exceptions that the posix functions do not provide. |A type...
Module : System . . RawFilePath . Directory . Errors Copyright : © 2016 Maintainer : < > # LANGUAGE ScopedTypeVariables # module System.Posix.RawFilePath.Directory.Errors ( HPathIOException(..) , RecursiveFailureHint(..) , isSameFile , isDestinationInSource , isRecursiveFai...
49708f63443747c35dc0b16d234f3ff49ceaf77df2e9b261ea9dc037eca0f360
dwayne/eopl3
parser.test.rkt
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/04-ch4/interpreters/racket/CALL-BY-NEED/parser.test.rkt
racket
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
a83eab4c415c2a79b8c0629fd376f5375377ed91c7c6626bac717a27c3ac72fb
abella-prover/abella
abella_doc.ml
* Author : < > * Copyright ( C ) 2022 Inria ( Institut National de Recherche * en Informatique et en Automatique ) * See LICENSE for licensing details . * Author: Kaustuv Chaudhuri <> * Copyright (C) 2022 Inria (Institut National de Recherche * en Informa...
null
https://raw.githubusercontent.com/abella-prover/abella/abbaf8cc42b5fa7e1e551b6e82850efdea2915da/src/abella_doc.ml
ocaml
**************************************************************************** ****************************************************************************
* Author : < > * Copyright ( C ) 2022 Inria ( Institut National de Recherche * en Informatique et en Automatique ) * See LICENSE for licensing details . * Author: Kaustuv Chaudhuri <> * Copyright (C) 2022 Inria (Institut National de Recherche * en Informa...
de8b600e6e777f515c851b792b375291a6e58c503a09a1d2b0d2d91e8ad9ed53
BitGameEN/bitgamex
erlcloud_ecs.erl
@author < > %% @doc An Erlang interface to AWS ECS . %% [ ] %% %% erlcloud_ecs implements the entire 20141113 API except actions use only by EC2 Container Service Agent: %% [] %% [] %% [] %% Method names match ECS operations converted to lower_case_with_underscores . %% %% Required parameters are passed as ...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/erlcloud/src/erlcloud_ecs.erl
erlang
@doc erlcloud_ecs implements the entire 20141113 API except actions use only by EC2 Container Service Agent: [] [] [] Required parameters are passed as function arguments. In addition pass optional parameters. See function documentation for examples. Output is in the form of `{ok, Value}' or `{error, Reas...
@author < > An Erlang interface to AWS ECS . [ ] Method names match ECS operations converted to lower_case_with_underscores . all methods take an options proplist argument which can be used to * ` json ' - The output from ECS as processed by ` jsx : decode ' ECS response except field types . ECS err...
0413a0ea245a544d08c36f3cc986f26799fb244b98038b0252ba131c25f36ff3
facebook/flow
loc.mli
* 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/deb419e628a331176d01200bb8f840aa226868ea/src/parser/loc.mli
ocaml
* [contains loc1 loc2] returns true if [loc1] entirely overlaps [loc2] * [intersects loc1 loc2] returns true if [loc1] intersects [loc2] at all * [lines_intersect loc1 loc2] returns true if [loc1] and [loc2] cover any part of the same line, even if they don't actually intersect. For example, if [loc1] ends a...
* 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...
a85a70595412ce08b1747ae7f95349df2ff27a54bcff106865a5976e3f75f66a
avsm/melange
spl_syntaxtree.ml
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/melange/e92240e6dc8a440cafa91488a1fc367e2ba57de1/tools/spl/spl_syntaxtree.ml
ocaml
Types that can be assigned to state variables should never be present post-typechecking Exit without an error
* Copyright ( c ) 2005 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
4ec35fb048476c295a01aa121f15bc6f1a1edce7159b4d8c6b90f6cea0238055
semerdzhiev/fp-2020-21
04-member.rkt
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да проверим дали х се съдържа в lst (define (member? x lst) (void) ) (define tests (test-suite "member tests" (check-true (member? 2 (range 1 6))) (check-false (member? 22 (range 1 20))) ) ) (run-tests tests 'verbose)
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-b/exercises/04.lists/04-member.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да проверим дали х се съдържа в lst (define (member? x lst) (void) ) (define tests (test-suite "member tests" (check-true (member? 2 (range 1 6))) (check-false (member? 22 (range 1 20))) ) ) (run-tests tests 'verbose)
755b9b128f2ce0832996ce6dc0cc07874762b0eba4ddcd98640591ba86cacfc9
xapi-project/xen-api
xapi_vdi_helpers.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/6c2aadbb44166b389a3bd956c8a6af5787003d68/ocaml/xapi/xapi_vdi_helpers.ml
ocaml
* * @group Storage Check that the number of metadata redo_logs isn't already at the limit. There should never actually be more redo_logs than the limit! Create and plug vbd Enable redo_log and point it at the new device Upgrade database to the local schema. Reindex database to make sure is_valid_ref works....
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
97c297685b04766c1c8207509b4297387ff38727ef7d8a08487251afa3fa4747
sicmutils/sicmutils
user.clj
(ns user (:require [nextjournal.clerk :as clerk] [sicmutils.env])) (comment Activate this line to start the clerk server . (clerk/serve! {:browse? true :port 7778})) (comment ;; call clerk/show on files to be rendered: (clerk/show! "src/sicmutils/calculus/derivative.cljc") (clerk/show! "src...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/da5ab6dbde22ef4795c3db19cc93e75d894324cc/dev/user.clj
clojure
call clerk/show on files to be rendered:
(ns user (:require [nextjournal.clerk :as clerk] [sicmutils.env])) (comment Activate this line to start the clerk server . (clerk/serve! {:browse? true :port 7778})) (comment (clerk/show! "src/sicmutils/calculus/derivative.cljc") (clerk/show! "src/sicmutils/differential.cljc"))
37ddfcb15e4adf5b295f17869c2cd4c2040aff207b8bd5f8addea03ce33252aa
ryanpbrewster/haskell
P029.hs
module Problems.P029 ( solve ) where - - - Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5 : - - 2 ^ 2 = 4 , 2 ^ 3 = 8 , 2 ^ 4 = 16 , 2 ^ 5 = 32 - 3 ^ 2 = 9 , 3 ^ 3 = 27 , 3 ^ 4 = 81 , 3 ^ 5 = 243 - 4 ^ 2 = 16 , 4 ^ 3 = 64 , 4 ^ 4 = 256 , 4 ^ 5...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P029.hs
haskell
module Problems.P029 ( solve ) where - - - Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5 : - - 2 ^ 2 = 4 , 2 ^ 3 = 8 , 2 ^ 4 = 16 , 2 ^ 5 = 32 - 3 ^ 2 = 9 , 3 ^ 3 = 27 , 3 ^ 4 = 81 , 3 ^ 5 = 243 - 4 ^ 2 = 16 , 4 ^ 3 = 64 , 4 ^ 4 = 256 , 4 ^ 5...
9912fcd2ff33130eb932a82ef25b64e64386aaaa2a342dec7b5bedbf2ed3aa8e
fission-codes/fission
Types.hs
| Types related to IPFS module Network.IPFS.Types ( BinPath (..) , CID (..) , mkCID , Name (..) , Opt , Command , RawMessage , Peer (..) , Path (..) , SparseTree (..) , Tag (..) , Timeout (..) , URL (..) , Ignored , Gateway (..) , ErrorBody (..) , Stat (..) , Bytes (..) ) where ...
null
https://raw.githubusercontent.com/fission-codes/fission/fb76d255f06ea73187c9b787bd207c3778e1b559/ipfs/library/Network/IPFS/Types.hs
haskell
| Types related to IPFS module Network.IPFS.Types ( BinPath (..) , CID (..) , mkCID , Name (..) , Opt , Command , RawMessage , Peer (..) , Path (..) , SparseTree (..) , Tag (..) , Timeout (..) , URL (..) , Ignored , Gateway (..) , ErrorBody (..) , Stat (..) , Bytes (..) ) where ...
3e983669031a6e9025ae306470a0c5edaa40c7d9d3c3ce6b804c8cf6b0a9344a
RKlompUU/FPSheet
Main.hs
module Main where import Sheet.Backend.Standard import Sheet.Frontend.Types import Sheet.Frontend.TUI import qualified Language.Haskell.Interpreter as I import qualified Data.Map as M main :: IO () main = do runTUI test :: StateTy C test = do let p0 = (3,4) let p = (1,4) getCell p >>= setText "(\\x -> x + ...
null
https://raw.githubusercontent.com/RKlompUU/FPSheet/fb382ea209e81a49e4c2079f8a17a2dbcaba35a7/exe/Main.hs
haskell
module Main where import Sheet.Backend.Standard import Sheet.Frontend.Types import Sheet.Frontend.TUI import qualified Language.Haskell.Interpreter as I import qualified Data.Map as M main :: IO () main = do runTUI test :: StateTy C test = do let p0 = (3,4) let p = (1,4) getCell p >>= setText "(\\x -> x + ...
2bb26cb69c55538e8cf71d5c110f793f8ebb13c69b323a1a79d886f0168c0571
mzp/scheme-abc
abcInTest.ml
open Base open OUnit open BytesOut open AbcType let ok ?msg x y = OUnit.assert_equal ?msg ~printer:Std.dump x y module A = AbcIn.Make(struct type t = int let of_bytes _ = raise Stream.Failure end) let example name = let ch = open_in_bin @@ Printf.sprintf "%s.abc" name in A.of_bytes...
null
https://raw.githubusercontent.com/mzp/scheme-abc/2cb541159bcc32ae4d033793dea6e6828566d503/swflib/abcInTest.ml
ocaml
int uint double str ns ns_set mn param count return_type param types name flags name item_count items name kind slot_id type_name vindex name super flags count interface iinit trait_count cinit trait_count methodi max_stack local count init scope depth ...
open Base open OUnit open BytesOut open AbcType let ok ?msg x y = OUnit.assert_equal ?msg ~printer:Std.dump x y module A = AbcIn.Make(struct type t = int let of_bytes _ = raise Stream.Failure end) let example name = let ch = open_in_bin @@ Printf.sprintf "%s.abc" name in A.of_bytes...
f37f8975ffd1edce70987347bb71265cc5237d020d3ed6d165b771bcfdd6e3e0
imdea-software/leap
SolverOptions.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/solvers/theory/SolverOptions.mli
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
91f0534611b3f59d0566dd71cf9c27770ee20e2fe037de0da1a94a1a1d163149
tolysz/ghcjs-stack
Lib.hs
module Lib where import Distribution.TestSuite nullt x = Test $ TestInstance { run = return $ Finished (Fail "no reason") , name = "test " ++ show x , tags = [] , options = [] , setOption = \_ _-> Left "No Options" }
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/Cabal/tests/PackageTests/TestSuiteTests/LibV09/Lib.hs
haskell
module Lib where import Distribution.TestSuite nullt x = Test $ TestInstance { run = return $ Finished (Fail "no reason") , name = "test " ++ show x , tags = [] , options = [] , setOption = \_ _-> Left "No Options" }
b4debecc28f9bc2ddddd521e9a2ec0982bfad87a2432ddafee6fb5ed63d37477
id774-2/maeve
foregin-function-call.scm
(define-module foregin-function-call (define (main) (il (call-c-function puts "hello"))))
null
https://raw.githubusercontent.com/id774-2/maeve/a9442c3479b0d575f896b898eb889297f30e1a96/example/foregin-function-call.scm
scheme
(define-module foregin-function-call (define (main) (il (call-c-function puts "hello"))))
af528240b9b2bd2ae7883511979c6c14c8d25244cb0980498cd03bb4310ae14e
cdornan/keystore
KeyStore.hs
module Data.KeyStore ( module Data.KeyStore.CLI , module Data.KeyStore.IO , module Data.KeyStore.Sections , module Data.KeyStore.PasswordManager ) where import Data.KeyStore.CLI import Data.KeyStore.IO import Data.KeyStore.Sections import Data.KeyStore.PasswordManager
null
https://raw.githubusercontent.com/cdornan/keystore/e16103e75cf067baa3a939a1d9e79bd7af6942e7/src/Data/KeyStore.hs
haskell
module Data.KeyStore ( module Data.KeyStore.CLI , module Data.KeyStore.IO , module Data.KeyStore.Sections , module Data.KeyStore.PasswordManager ) where import Data.KeyStore.CLI import Data.KeyStore.IO import Data.KeyStore.Sections import Data.KeyStore.PasswordManager
a58b0b04fe5b991111d79bdb6d46fa607562f243e2ebc81ffc77c5dc76225be4
vikram/lisplibraries
package.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : UFFI -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; Name : package.lisp Purpose : Defines UFFI package Programmer : Date Started : Feb 2002 ;;;; ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/uffi-1.5.17/src/package.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : UFFI -*- ************************************************************************* FILE IDENTIFICATION ************************************************************************* immediate types aggregate types objects string functions function call Libra...
Name : package.lisp Purpose : Defines UFFI package Programmer : Date Started : Feb 2002 This file , part of UFFI , is Copyright ( c ) 2002 - 2005 by (in-package #:cl-user) (defpackage #:uffi (:use #:cl) (:export #:def-constant #:def-foreign-type #:def-type #:nul...
69e78f782471b402b643311362ced39dcf033b90a4ce9501cb695a6df7da0016
LdBeth/keim
appl.lisp
-*- syntax : common - lisp ; package : keim ; base : 10 ; mode : lisp -*- ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; ;; Copyright ( C ) 1993 by AG Siekmann , , ; ; Universitaet des Sa...
null
https://raw.githubusercontent.com/LdBeth/keim/ed2665d3b0d9a78eaa88b5a2940a4541f0750926/keim/prog/term/appl.lisp
lisp
package : keim ; base : 10 ; mode : lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; ; ; All rights reserved. ;; For information about this program...
(in-package :keim) (mod~defmod appl :uses (env keim mod post term type ) :documentation "Applications: applying a function to arguments" :exports ( appl+appl appl~function appl~set-function! appl~arguments appl~set-arguments! appl~create appl~p ...
7ba957d34905f6beb23feb0d2665144b19761a39fcdc29e23dfcaac2e96324ed
lymar/hastache
Hastache.hs
# LANGUAGE ExistentialQuantification , FlexibleInstances , IncoherentInstances , OverloadedStrings # OverloadedStrings #-} -- Module: Text.Hastache Copyright : ( c ) 2011 - 2013 License : BSD3 -- Maintainer: Sergey S Lymar <> -- Stability: experimental -- Portability: ...
null
https://raw.githubusercontent.com/lymar/hastache/cd299ff1ac4c35259fbd333ea7fa9b3c280b9ff9/Text/Hastache.hs
haskell
Module: Text.Hastache Maintainer: Sergey S Lymar <> Stability: experimental Portability: portable Haskell implementation of Mustache templates ^ Variable name ^ Value | Convert to lazy 'Data.Text.Lazy.Text' ^ Directory for search partial templates (@{{> templateName}}@) ^ Partial template files exten...
# LANGUAGE ExistentialQuantification , FlexibleInstances , IncoherentInstances , OverloadedStrings # OverloadedStrings #-} Copyright : ( c ) 2011 - 2013 License : BSD3 | Haskell implementation of Mustache templates See homepage for examples of usage : < > Simplest ex...
79bceda77f6821eec16af8c8558fdc37063fc0464c7849ad7348ebab14240779
bijoutrouvaille/fireward
RuleLang.hs
module RuleLang ( _function, _hasAny, _hasAll, _hasOnly, _allow, _sizeLte, _sizeGte, _sizeBetween, _pathBlock, _enquote, _and, _or, _not ) where import Parser import RuleParser import Error (Error(..)) import Loc (loc, Loc) import Data.List (findIndices, intercalate, stripPrefix) import Data....
null
https://raw.githubusercontent.com/bijoutrouvaille/fireward/61b8284845ea243e67ec0d852123c33f64ea2317/src/RuleLang.hs
haskell
enquote unless already quoted
module RuleLang ( _function, _hasAny, _hasAll, _hasOnly, _allow, _sizeLte, _sizeGte, _sizeBetween, _pathBlock, _enquote, _and, _or, _not ) where import Parser import RuleParser import Error (Error(..)) import Loc (loc, Loc) import Data.List (findIndices, intercalate, stripPrefix) import Data....
0df47ce4bd64ad71b0a1a01454403a2dfe659bbeffe44efa86a37b68c2172013
zelark/AoC-2020
day_14.clj
(ns zelark.aoc-2020.day-14 (:require [clojure.java.io :as io] [clojure.string :as str])) --- Day 14 : Docking Data --- ;; (def input (slurp (io/resource "input_14.txt"))) (defn parse-mask [mask] {:and (Long/parseLong (str/escape mask {\1 \0, \X \1}) 2) :or (Long/parseLong (str/escape...
null
https://raw.githubusercontent.com/zelark/AoC-2020/5417c3514889eb02efc23f6be7d69e29fdfa0376/src/zelark/aoc_2020/day_14.clj
clojure
(ns zelark.aoc-2020.day-14 (:require [clojure.java.io :as io] [clojure.string :as str])) --- Day 14 : Docking Data --- (def input (slurp (io/resource "input_14.txt"))) (defn parse-mask [mask] {:and (Long/parseLong (str/escape mask {\1 \0, \X \1}) 2) :or (Long/parseLong (str/escape mas...
91152e0dc52b1fcc9d07e87e7f4cffd9471ec86ac3058de9615a1614241421fe
d-cent/objective8
comments.clj
(ns objective8.integration.db.comments (:require [midje.sweet :refer :all] [objective8.back-end.domain.comments :as comments] [objective8.utils :as utils] [objective8.back-end.actions :as actions] [objective8.integration.integration-helpers :as ih] [objectiv...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/integration/db/comments.clj
clojure
(ns objective8.integration.db.comments (:require [midje.sweet :refer :all] [objective8.back-end.domain.comments :as comments] [objective8.utils :as utils] [objective8.back-end.actions :as actions] [objective8.integration.integration-helpers :as ih] [objectiv...
ff8a46434cc262097968d8c5671fa13646f1e4a8fd50c840a2ffb6df016f0fa0
c-cube/stimsym
Builtins_advanced.ml
(* This file is free software. See file "license" for more details. *) * { 1 More Advanced Builtins } module E = Expr module B = Builtins module E_tbl = E.Tbl type t = B.t module Sat_solve = struct type form = | And of form array | Or of form array | True | False | Not of form | Atom of E...
null
https://raw.githubusercontent.com/c-cube/stimsym/38c744b5f770b52980abbfe7636a0dc2b91bbeb7/src/core/Builtins_advanced.ml
ocaml
This file is free software. See file "license" for more details. implication for allocating new symbols retrieve atom by index expr -> atom TODO: update once we have typing? convenient representation write file, then invoke `dot` convert to the canonical form normalize Set to List normalize Set to ...
* { 1 More Advanced Builtins } module E = Expr module B = Builtins module E_tbl = E.Tbl type t = B.t module Sat_solve = struct type form = | And of form array | Or of form array | True | False | Not of form | Atom of E.t let not_ = function | True -> False | False -> True |...
a9265dbd8557a8d5c4b3336156878b90102a6b92a57c3711a43e88d493eaa43c
rfkm/zou
aggregator.clj
(ns zou.web.middleware.aggregator (:require [zou.logging :as log] [zou.util :as u] [zou.web.context :as ctx] [zou.web.middleware.dependency :as dep] [zou.web.middleware.proto :as proto])) (defrecord MiddlewareAggregator [middlewares dependency-map configurator inject-c...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/web/src/zou/web/middleware/aggregator.clj
clojure
(ns zou.web.middleware.aggregator (:require [zou.logging :as log] [zou.util :as u] [zou.web.context :as ctx] [zou.web.middleware.dependency :as dep] [zou.web.middleware.proto :as proto])) (defrecord MiddlewareAggregator [middlewares dependency-map configurator inject-c...
bb6feb90d74c764c6d662256a7410bd9b15f197cb7936a63865acd9f864a46cc
bdeket/rktsicm
SR-boost.rkt
#lang racket/base (require rackunit "../../main.rkt" "../helper.rkt" ) (define :c (*c*)) (define the-tests (test-suite "calculus/SR-boost" (check-simplified? (proper-space-interval ((general-boost (up 'vx 'vy 'vz)) (make-4tuple 'ct (up...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/calculus/SR-boost.rkt
racket
Check of the relation between boosts and rotations.
#lang racket/base (require rackunit "../../main.rkt" "../helper.rkt" ) (define :c (*c*)) (define the-tests (test-suite "calculus/SR-boost" (check-simplified? (proper-space-interval ((general-boost (up 'vx 'vy 'vz)) (make-4tuple 'ct (up...
cee30965d2d35fa19405000b644b497885097072c35f2fb651d5e6fb978f7ca6
kozross/mtl-ng
Tell.hs
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # module MTL.Tell ( -- * Type class ApplyTell (..), -- * Derivation helpers ComposeTellOuter (..), ComposeTellInner...
null
https://raw.githubusercontent.com/kozross/mtl-ng/7db0e365e0fa222a6d76e27f28f46b1781b5da9e/src/MTL/Tell.hs
haskell
* Type class * Derivation helpers | Laws If you define only 'tell': * /Tell-tell/: @'tell' x '.>' 'tell' y@ @=@ @'tell' (x '<>' y)@ If you define only 'write': If you define both, then both sets of laws above must hold, and additionally the following, which serve as default definitions: * @'tell'@ @=@ @'...
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # module MTL.Tell ApplyTell (..), ComposeTellOuter (..), ComposeTellInner (..), LiftingTell (..), ) where import D...
8f4fc421cb124f763cd9a660fc02ba7f6e400cb8f421cec3404d18775679bb79
froggey/Mezzano
delimited-continuations.lisp
(in-package :mezzano.delimited-continuations) (eval-when (:compile-toplevel :load-toplevel :execute) (sys.int::%define-type-symbol 'delimited-continuation 'delimited-continuation-p)) (declaim (inline delimited-continuation-p)) (defun delimited-continuation-p (object) (sys.int::%object-of-type-p object sys.i...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/system/delimited-continuations.lisp
lisp
This internal tag is used by continuations that have been resumed normally, not via CALL-WITH-PROMPT, and are not elegible for ABORT-TO-PROMPT. This is bound whenever a continuation barrier must be established. It's not a real variable, just a marker in the special stack. Resuming an existing continuation, reuse t...
(in-package :mezzano.delimited-continuations) (eval-when (:compile-toplevel :load-toplevel :execute) (sys.int::%define-type-symbol 'delimited-continuation 'delimited-continuation-p)) (declaim (inline delimited-continuation-p)) (defun delimited-continuation-p (object) (sys.int::%object-of-type-p object sys.i...
69eca3d64e8e3ccc825498382dcc9bd395f3af6031aa5afd40919ed1aa062225
lmj/lfarm
packages.lisp
(defpackage #:lfarm-ssl (:use :cl) (:export #:ssl-auth-server #:ssl-auth-client)) (in-package #:lfarm-ssl)
null
https://raw.githubusercontent.com/lmj/lfarm/f7ba49f1ec01fb99a7aeb8f18e245a44411c361b/lfarm-ssl/packages.lisp
lisp
(defpackage #:lfarm-ssl (:use :cl) (:export #:ssl-auth-server #:ssl-auth-client)) (in-package #:lfarm-ssl)