_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
caccdeef6f17adb8ad276deb539669b22985818b382d38ec196b6322cbd97285
SimulaVR/godot-haskell
RootMotionView.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.RootMotionView (Godot.Core.RootMotionView.get_animat...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/RootMotionView.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.RootMotionView (Godot.Core.RootMotionView.get_animat...
044393e7373ac075d55e03c3223335d47cb2456ee3699751dfaa2fcbed8984e6
bananu7/Hate
Shapes.hs
module Hate.Graphics.Api.Shapes where import Hate.Graphics.Types import Hate.Math -- |Moves the drawn primitive. Note that order of operations matters. translate :: Vec2 -> DrawRequest -> DrawRequest translate p d = d { transformation = newT } where oldT = transformation d newT = oldT .*. posit...
null
https://raw.githubusercontent.com/bananu7/Hate/4aa4ec0cf1e9bcb32d8cc807ab2ee092807c7ddb/src/Hate/Graphics/Api/Shapes.hs
haskell
|Moves the drawn primitive. Note that order of operations matters. |Scales the drawn primitive. |Rotates the drawn primitive in the Z axis (keeps it flat).
module Hate.Graphics.Api.Shapes where import Hate.Graphics.Types import Hate.Math translate :: Vec2 -> DrawRequest -> DrawRequest translate p d = d { transformation = newT } where oldT = transformation d newT = oldT .*. positionToMatrix4 p scaled :: Vec2 -> DrawRequest -> DrawRequest scaled ...
818f7336f1af3e962ccd67b25265b1ddcf02bdade72e880f50822a4175e6c968
mirage/ocaml-cohttp
cohttp_curl_lwt.ml
{ { { Copyright ( c ) 2014 * Copyright ( c ) 2014 Anil Madhavapeddy < > * * 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 . * * ...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/938c8084214b1997f5f66d51eacde75da3508315/cohttp-lwt-unix/bin/cohttp_curl_lwt.ml
ocaml
{ { { Copyright ( c ) 2014 * Copyright ( c ) 2014 Anil Madhavapeddy < > * * 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 . * * ...
fd7ec56f644c63ab164b6cc809c6640af7de67aaafbe0144d39874257af0d866
robrix/sequoia
ForAll.hs
# LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # module Sequoia.Calculus.ForAll ( -- * Universal quantification UniversalIntro(..) , forAllR' -- * Connectives , module Sequoia.Connective.ForAll ) where import Prelude hiding (init) import Sequoia.Calculus.Context import Sequoia.Calculus.Core imp...
null
https://raw.githubusercontent.com/robrix/sequoia/e4fae1100fa977a656f2fc654762f23d4448ad76/src/Sequoia/Calculus/ForAll.hs
haskell
* Universal quantification * Connectives -------------------------------------- -------------------------------------------------------------- --------------------------------------------------------------
# LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # module Sequoia.Calculus.ForAll UniversalIntro(..) , forAllR' , module Sequoia.Connective.ForAll ) where import Prelude hiding (init) import Sequoia.Calculus.Context import Sequoia.Calculus.Core import Sequoia.Calculus.Negation import Sequoia.Calcul...
ec8ebd6c0664bbaaaa60998434b2a2634cda88aa332641e57a1c13d29a40bc96
purescript/purescript
Declarations.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TemplateHaskell # -- | -- Data types for modules and declarations -- module Language.PureScript.AST.Declarations where import Prelude import Protolude.Exceptions (hush) import Codec.Serialise (Serialise) import Control.DeepSeq (NFData) import Data.Functor.Identity import D...
null
https://raw.githubusercontent.com/purescript/purescript/042150325abf842064877ce9268fbce8df029e64/src/Language/PureScript/AST/Declarations.hs
haskell
# LANGUAGE DeriveAnyClass # | Data types for modules and declarations | A map of locally-bound names in scope. | Holds the data necessary to do type directed search for typed holes ^ An Environment captured for later consumption by type directed search ^ The identifiers that fully satisfy the subsumption check ...
# LANGUAGE TemplateHaskell # module Language.PureScript.AST.Declarations where import Prelude import Protolude.Exceptions (hush) import Codec.Serialise (Serialise) import Control.DeepSeq (NFData) import Data.Functor.Identity import Data.Aeson.TH import qualified Data.Map as M import Data.Text (Text) import qualifie...
02b1f1ec9e257c3f2517c65b4e167179e292d8cd6563f94ea34098d89ddcad6f
slyrus/mcclim-old
delegating-buffer.lisp
;;; -*- mode: lisp -*- ;;; ( c ) copyright 2005 by ( ) ;;; ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Drei/delegating-buffer.lisp
lisp
-*- mode: lisp -*- This library is free software; you can redistribute it and/or either This library 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 License along with this li...
( c ) copyright 2005 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Library General Public Free Software Foundation , Inc....
deadf639a35306bf2fc01e2a97027361203368a6474a028d74d63462f1977811
sgbj/MaximaSharp
segmnt.lisp
;******************************************************************************* ;* * * copyright ( c ) 1988 kent state univ . kent , ohio 44242 * ;* ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/contrib/gentran/segmnt.lisp
lisp
******************************************************************************* * * * * ******************************************************************************* ...
* copyright ( c ) 1988 kent state univ . kent , ohio 44242 * (when (null (fboundp 'wrs)) (load "convmac.lisp")) (declare-top (special *gentran-dir tempvartype* tempvarname* tempvarnum* genstmtno* genstmtincr* *symboltable* *instk* *stdin* *currin* *outstk* *stdout* *currout* *outchanl* ...
8087e99206fea3fa0e240a1600345184292c2d1a166da019579ef47d55dd8b27
WhatsApp/eqwalizer
eqwater_lists.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(eqwater_lists). -compile([export_all, nowarn_export_all]). -spec occ_list_01 ([integer()]...
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9dfd6209060284495a8e71411866f7fccfbcc6c1/eqwalizer/test_projects/eqwater/src/eqwater_lists.erl
erlang
the LICENSE file in the root directory of this source tree. Not supported Could be supported later
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(eqwater_lists). -compile([export_all, nowarn_export_all]). -spec occ_list_01 ([integer()] | [atom()]) -> [integer()]. occ_list_01(L = [H | _]) when is_in...
91db7d89f97f46b1c40cebe7267f9d11a757bca5b7b714112dfbff9195a2986b
xapi-project/xen-api-libs
netdev.mli
* Copyright ( C ) 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 described in fi...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/netdev/netdev.mli
ocaml
* Interface to the domain 0 network stack. * Enumerates possible network backend types. * Linux Bridge based networking * Vswitch based networking * Possible operations on each network backend type. * The type of network backend. * Add a bridge. * Remove a bridge. * List all bridges. * Query the existance of a...
* Copyright ( C ) 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 described in fi...
bfb54f10f1dbd4305cf457c3db17ecc4fb31ab818624f2e73e452405c8fe3827
channable/vaultenv
KeyMapSpec.hs
# LANGUAGE ScopedTypeVariables # module KeyMapSpec where import Data.Text (Text) import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import qualified Data.HashMap.Internal.Strict as HM import qualified KeyMap as KM mapFirst :: (a->b) -> [(a,c)] -> [(b,c)] mapFirst _ [] = [] mapFirst f ((x,...
null
https://raw.githubusercontent.com/channable/vaultenv/4cd7431d4c51d01b1e93dbd613de2668fb922489/test/KeyMapSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # module KeyMapSpec where import Data.Text (Text) import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import qualified Data.HashMap.Internal.Strict as HM import qualified KeyMap as KM mapFirst :: (a->b) -> [(a,c)] -> [(b,c)] mapFirst _ [] = [] mapFirst f ((x,...
ec92b4089494d74776e83ddf2bf074c1a6f9745c2263e1ced9712a2ba9ea5d75
sgbj/MaximaSharp
dspenc.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/dspenc.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...
ac21231a1dc9afc67d05ebbcd74a05b8d6dbc692f80ecb91e9ef157ef9f37d80
patricoferris/ocaml-multicore-monorepo
attack.ml
open Microtime let cycles = 1000 let length = 32 let range = [| "0"; "1"; "2"; "3"; "4"; "5"; "6"; "7"; "8"; "9"; "a"; "b"; "c"; "d"; "e"; "f"; |] external random_seed : unit -> int array = "caml_sys_random_seed" let pp_int_array ppf arr = Fmt.pf ppf "[|" ; for i = 0 to pred (Array.length arr) do Fmt.pf ppf "%d;...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/eqaf/attack/attack.ml
ocaml
open Microtime let cycles = 1000 let length = 32 let range = [| "0"; "1"; "2"; "3"; "4"; "5"; "6"; "7"; "8"; "9"; "a"; "b"; "c"; "d"; "e"; "f"; |] external random_seed : unit -> int array = "caml_sys_random_seed" let pp_int_array ppf arr = Fmt.pf ppf "[|" ; for i = 0 to pred (Array.length arr) do Fmt.pf ppf "%d;...
1ace4b57f39c66c9f403225f9b7783ed8ae39f4c9b58d3dec574ebfb362c85e2
finnsson/hs2graphviz
Test.hs
{-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-} module Hs2Graphviz.Test where import Hs2Graphviz.Internals import System.Environment (getArgs) import System.IO (FilePath) import Control.Monad (filterM) import System.Directory (doesFileExist) -- for test import Test.Framework.TH import Test.Framework.Providers.H...
null
https://raw.githubusercontent.com/finnsson/hs2graphviz/64969b6552c8408c5079e29c999c8fa968e7a08d/src/Hs2Dot/Test.hs
haskell
# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell # for test "node0" [ label = "<f0> 0x10ba8| <f1>" shape = "record" ];
module Hs2Graphviz.Test where import Hs2Graphviz.Internals import System.Environment (getArgs) import System.IO (FilePath) import Control.Monad (filterM) import System.Directory (doesFileExist) import Test.Framework.TH import Test.Framework.Providers.HUnit import Test.HUnit import Test.Framework (defaultMain) impor...
ded7acf4776528269cc0c7e6450393664391dca51a8882ebe1f08791bebcbe38
kmicinski/htltl2mc
main.mli
(** The main driver program for the model checker. *) val main : unit -> unit
null
https://raw.githubusercontent.com/kmicinski/htltl2mc/5b949db7f3d849d3f9b943f84c3ce065ccfaa7e3/src/main.mli
ocaml
* The main driver program for the model checker.
val main : unit -> unit
bd1bf98b53538e82aa85a923d108adac628655781def68be820693bccdf72b94
getbridge/bridge-server-src
gateway_gamqp.erl
Gateway Global AMQP - Initializes and maintains Node - Global AMQP Connection . % Can be asked for the connection with a call. -module(gateway_gamqp). -behaviour(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(stat...
null
https://raw.githubusercontent.com/getbridge/bridge-server-src/51b527690e6b8b9e567082587841dbebda0a9b33/src/gateway_gamqp.erl
erlang
Can be asked for the connection with a call. --------------------------- Gen Server Implementation --------------------------
Gateway Global AMQP - Initializes and maintains Node - Global AMQP Connection . -module(gateway_gamqp). -behaviour(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {connection}). -include_lib("amqp_client/inc...
45884856108f11b618f000b45aafbf559be05e4e74e6dae00ffb0f190991033e
copton/ocram
callgraph.hs
import Control.Monad.State data Stmt = Stmt | NestedStmt [Stmt] | Call Int data FunDef = FunDef Int Stmt data TranslUnit = TranslUnit [FunDef] example = TranslUnit([ FunDef 1 Stmt , FunDef 2 (NestedStmt [Call 1]) ]) class Visitor a where handleFunctionDefinition :: FunDef -> a -> a data UserState = User...
null
https://raw.githubusercontent.com/copton/ocram/c7166eab0187868a52a61017c6d3687e5a1a6162/try/visitor/callgraph.hs
haskell
import Control.Monad.State data Stmt = Stmt | NestedStmt [Stmt] | Call Int data FunDef = FunDef Int Stmt data TranslUnit = TranslUnit [FunDef] example = TranslUnit([ FunDef 1 Stmt , FunDef 2 (NestedStmt [Call 1]) ]) class Visitor a where handleFunctionDefinition :: FunDef -> a -> a data UserState = User...
d85ce589bdf5a0d6f52e2f4d19868762aaf11b7db5bfcd5a993f88f50b338e60
NickCellino/nbb-comments
dynamo_repo.cljs
(ns dynamo-repo (:require ["@aws-sdk/client-dynamodb" :as dynamo] ["uuid" :as uuid] [promesa.core :as p] [cljs-bean.core :as bean] [repo])) (defn add-dynamo-comment [client comment-table-name payload] (let [cmd-input {:TableName comment-table-name ...
null
https://raw.githubusercontent.com/NickCellino/nbb-comments/5688f682e48dfd3675d5625a41c6b03305207cd4/src/dynamo_repo.cljs
clojure
(ns dynamo-repo (:require ["@aws-sdk/client-dynamodb" :as dynamo] ["uuid" :as uuid] [promesa.core :as p] [cljs-bean.core :as bean] [repo])) (defn add-dynamo-comment [client comment-table-name payload] (let [cmd-input {:TableName comment-table-name ...
6075d45463360affea252162adb4520f12279a281e3612d27f57d8743fbf672b
awolven/cl-vulkan
descriptor-set-layout.lisp
Copyright 2019 , 2020 ;; ;; 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, d...
null
https://raw.githubusercontent.com/awolven/cl-vulkan/dd64af0ceb57cfc4aedbd3ba8d3340e2e922e16f/src/descriptor-set-layout.lisp
lisp
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 EXPRESS OR IMPLIE...
Copyright 2019 , 2020 " 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 included in all copies or substantial portions of the Software . THE ...
ecad6bc212cd1a9c1fd0c300efecf5a711df84ac08cd803e7814169148cc31ad
CryptoKami/cryptokami-core
Logic.hs
# LANGUAGE TypeFamilies # -- | Wallets, accounts and addresses management logic module Pos.Wallet.Web.Methods.Logic ( MonadWalletLogic , MonadWalletLogicRead , getWallet , getWallets , getAccount , getAccounts , createWalletSafe , newAccount , newAccoun...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/src/Pos/Wallet/Web/Methods/Logic.hs
haskell
| Wallets, accounts and addresses management logic -------------------------------------------------------------------------- Getters -------------------------------------------------------------------------- BE CAREFUL: this function has complexity O(number of used and change addresses) TODO No WALLET with id ... ...
# LANGUAGE TypeFamilies # module Pos.Wallet.Web.Methods.Logic ( MonadWalletLogic , MonadWalletLogicRead , getWallet , getWallets , getAccount , getAccounts , createWalletSafe , newAccount , newAccountIncludeUnready , newAddress , newAddres...
578756c3e9e9851bf85ff22f643ce901f2e1277d03640635e2fa60d4f971cd06
jlouis/etorrent_core
etorrent_dotdir.erl
-module(etorrent_dotdir). @doc Functions to access the .etorrent directory . %% @end %% exported functions -export([make/0, torrents/0, copy_torrent/1, read_torrent/1, torrent_path/1, info_path/1, info_hash/1, read_info/1, write_info/2]). %% pr...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent_dotdir.erl
erlang
@end exported functions private functions include files @doc Ensure that the dotfile directory exists. @end @doc List all available torrent files. The torrent files are identified by their info hashes. This is more correct than trusting that all torrent files has been assigned a unique filename. @end to be ...
-module(etorrent_dotdir). @doc Functions to access the .etorrent directory . -export([make/0, torrents/0, copy_torrent/1, read_torrent/1, torrent_path/1, info_path/1, info_hash/1, read_info/1, write_info/2]). -export([exists/1]). -include_lib(...
1e3e9dc4c152dc5c50824d5b41c4824d76d47e7655c3caa9d64f27ae5c3b7d2d
xapi-project/xen-api
session_check.mli
exception Non_master_login_on_slave val check_local_session_hook : (__context:Context.t -> session_id:[`session] Ref.t -> bool) option ref val is_local_session : Context.t -> [`session] Ref.t -> bool val check : intra_pool_only:bool -> session_id:[`session] Ref.t -> action:string -> unit
null
https://raw.githubusercontent.com/xapi-project/xen-api/20b0574fa0f60c72b5a8eeafbc84bb485ebb6c22/ocaml/xapi/session_check.mli
ocaml
exception Non_master_login_on_slave val check_local_session_hook : (__context:Context.t -> session_id:[`session] Ref.t -> bool) option ref val is_local_session : Context.t -> [`session] Ref.t -> bool val check : intra_pool_only:bool -> session_id:[`session] Ref.t -> action:string -> unit
92319fb41c978947def96a9ecfd003febcacd0cc550a1ddf94bbd1f733202f6b
input-output-hk/plutus
Eval.hs
-- editorconfig-checker-disable-file {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StrictData # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module PlutusLedgerApi.Common.Eval ( EvaluationError (..) , EvaluationContext (..) , AsScriptDecodeError...
null
https://raw.githubusercontent.com/input-output-hk/plutus/bb9b5a18c26476fbf6b2f446ab267706426fec3a/plutus-ledger-api/src/PlutusLedgerApi/Common/Eval.hs
haskell
editorconfig-checker-disable-file # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # ^ An error from the evaluator itself ^ A deserialisation error ^ An error indicating a version tag that we don't support TODO: make this error more informative when we have more information about what went wrong ^ An e...
# LANGUAGE StrictData # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module PlutusLedgerApi.Common.Eval ( EvaluationError (..) , EvaluationContext (..) , AsScriptDecodeError (..) , LogOutput , VerboseMode (..) , evaluateScriptRestricting , evaluateScriptCounting ...
62c127feb6949a4bf7fb819f3b4322ff1b07a315389c6e141ed7f4bf970c9872
myuon/quartz-hs
SpecTypeCheck.hs
# LANGUAGE QuasiQuotes # module Language.Quartz.SpecTypeCheck where import Control.Error import Language.Quartz import Language.Quartz.AST import Language.Quartz.Parser import Language.Quartz.Transform import Language.Quartz.TypeCheck import Test.Ta...
null
https://raw.githubusercontent.com/myuon/quartz-hs/998edb502443d80cfe300730885de25bc7d15b08/test/Language/Quartz/SpecTypeCheck.hs
haskell
# LANGUAGE QuasiQuotes # module Language.Quartz.SpecTypeCheck where import Control.Error import Language.Quartz import Language.Quartz.AST import Language.Quartz.Parser import Language.Quartz.Transform import Language.Quartz.TypeCheck import Test.Ta...
b4e875b004d21baaf2650ad399bbc57435979a882415e90833f64011c23eff3e
mbj/stratosphere
RulesSourceProperty.hs
module Stratosphere.NetworkFirewall.RuleGroup.RulesSourceProperty ( module Exports, RulesSourceProperty(..), mkRulesSourceProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.NetworkFirewall.Rule...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/networkfirewall/gen/Stratosphere/NetworkFirewall/RuleGroup/RulesSourceProperty.hs
haskell
# SOURCE # # SOURCE # # SOURCE #
module Stratosphere.NetworkFirewall.RuleGroup.RulesSourceProperty ( module Exports, RulesSourceProperty(..), mkRulesSourceProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosph...
dd5a7310b7cba44c69fd4b6ce3414c4870cea28fb2dca9fb97f5b9f310fbd245
Helium4Haskell/helium
Constants.hs
module Helium.Utils.QualifiedTypes.Constants where import Top.Types --------------------------------------------------------- -- Qualified base types which are defined in LvmLang.core Since we use qualified types now , all references to intType , charType , stringType , floatType and boolType should be changed ...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Utils/QualifiedTypes/Constants.hs
haskell
------------------------------------------------------- Qualified base types which are defined in LvmLang.core
module Helium.Utils.QualifiedTypes.Constants where import Top.Types Since we use qualified types now , all references to intType , charType , stringType , floatType and boolType should be changed to these intQualType, charQualType, stringQualType, floatQualType, boolQualType :: Tp intQualType = TCon "LvmLang...
b4e0c21dfe345b3a5edb77ff48653e991572aa22196d2eb9d93e391f758c91fd
erwanor/binbin
binbin.mli
type t val init : int -> t val size : t -> int val take : int -> t -> t val make : int -> t -> t val map : (t -> t) -> t -> t val mapi : (int -> t -> t) -> t -> t val dmap : (t -> t -> t) -> t -> t -> t val foldr : (t -> 'a -> 'a) -> t -> 'a -> 'a val foldl : ('a -> t -> 'a) -> 'a -> t -> 'a val flip : t -> t...
null
https://raw.githubusercontent.com/erwanor/binbin/0124fdc7838314963d302eb6c89e802c4bbdb7d0/lib/binbin.mli
ocaml
* * TODO: * think about float support * functorize
type t val init : int -> t val size : t -> int val take : int -> t -> t val make : int -> t -> t val map : (t -> t) -> t -> t val mapi : (int -> t -> t) -> t -> t val dmap : (t -> t -> t) -> t -> t -> t val foldr : (t -> 'a -> 'a) -> t -> 'a -> 'a val foldl : ('a -> t -> 'a) -> 'a -> t -> 'a val flip : t -> t...
261cfb46bed33459c30f529fa957f11f0802e81c9ad4ee6ae494d15d66c442f1
tlaplus/tlapm
p_fmt.ml
* proof / fmt.ml --- proofs ( pretty printing ) * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * proof/fmt.ml --- proofs (pretty printing) * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) START dflags * * " proof " goals when printing proofs ( ...
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/proof/p_fmt.ml
ocaml
proof_nl end pp_force_newline ff () ; assumptions negation of old goal step name hidden fact that it is true negation of old goal + new assumption step name definition and fact hidden fact that it is true step name definition and fact new context negation of old goal step name definition hidd...
* proof / fmt.ml --- proofs ( pretty printing ) * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * proof/fmt.ml --- proofs (pretty printing) * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) START dflags * * " proof " goals when printing proofs ( ...
52b247325480f4427058c43ec77a047ec7d8baea74db6ba6e758151d42b9d352
ml4tp/tcoq
table.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/plugins/extraction/table.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** S The main tables: constants, induct...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Dec...
848887a7da7940caa413a7be976e85c42b6655b13ea8e4817cc8b951f01c6e10
kitlang/kit
Metadata.hs
# LANGUAGE DeriveGeneric # module Kit.Ast.Metadata where import Data.Hashable import GHC.Generics import Kit.Ast.Value import Kit.Str data Metadata = Metadata {metaName :: Str, metaArgs :: [MetaArg]} deriving (Eq, Generic, Show) data MetaArg = MetaIdentifier Str | MetaLiteral ValueLiteral deriving (Eq, Generi...
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/src/Kit/Ast/Metadata.hs
haskell
"promote" allows base types to be used as their abstract type "demote" allows abstract types to unify strictly with their base type
# LANGUAGE DeriveGeneric # module Kit.Ast.Metadata where import Data.Hashable import GHC.Generics import Kit.Ast.Value import Kit.Str data Metadata = Metadata {metaName :: Str, metaArgs :: [MetaArg]} deriving (Eq, Generic, Show) data MetaArg = MetaIdentifier Str | MetaLiteral ValueLiteral deriving (Eq, Generi...
b57a453c608c68b6eb1195c3c20149a76353d09566e4ae30b4963dfab84f970a
sqd/araneaSS
Stats.hs
module Stats ( Stats, StatsC, newStats, clearStats, newStatsC, getStats ) where import Data.Conduit import qualified Data.IntMap as M import Control.Concurrent.MVar import Control.Monad.Trans import Data.ByteString as BS import Common type Stats = MVar (M.IntMap Integer) type StatsC ...
null
https://raw.githubusercontent.com/sqd/araneaSS/f573a27a94b48587456d0622b27e2e53589b8217/Stats.hs
haskell
module Stats ( Stats, StatsC, newStats, clearStats, newStatsC, getStats ) where import Data.Conduit import qualified Data.IntMap as M import Control.Concurrent.MVar import Control.Monad.Trans import Data.ByteString as BS import Common type Stats = MVar (M.IntMap Integer) type StatsC ...
73a49908461ed8461dc55f10c088927af2a7dca884dd22218fe12d9f8820200f
jrm-code-project/LISP-Machine
condit.lisp
This stuff copied from SYS2;LMMAC . -*-Mode : LISP ; Base:8 -*- * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * This file is pointed to by the Lisp Machine manual . The idea is that you load this file into a Maclisp compiler to get these macros in ;;; place so that you can write c...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/sys2/condit.lisp
lisp
LMMAC . -*-Mode : LISP ; Base:8 -*- place so that you can write conditional code. The IF-IN-MACLISP/IF-IN-LISPM conditionals have to do with not breaking THESE ARE CONDITIONAL ON WHICH SYSTEM IS EXECUTING THEM. THESE ARE CONDITIONAL ON WHICH SYSTEM RESULT IS INTENDED "FOR ". THIS IS THE SAME AS WHICH SYSTEM IS "IN"...
* * ( c ) Copyright 1980 Massachusetts Institute of Technology * * This file is pointed to by the Lisp Machine manual . The idea is that you load this file into a Maclisp compiler to get these macros in the environment when compiling . The optimizers in COMPAT take over these functions when compilin...
a9bb6cef4422fa39f587a2a63ca1f13a91085fba7f24eda6cd993f174e4cd4b3
wjrforcyber/SystemT
Tests.hs
# LANGUAGE NumericUnderscores # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Lang.L6.Tests (unitTests, propertyTests, exampleTests) where import Data.Maybe import Lang.L6.Eval.EEval as EE import . L6.Eval . IEval as IE import Lang.L6.Examples import Lang.L6.Syntax.Extrinsic as E import ....
null
https://raw.githubusercontent.com/wjrforcyber/SystemT/6e3248a2f734ac86c7fc3b7d407ce1a7e3c66048/tests/Lang/L6/Tests.hs
haskell
IE.eval (I.EIf I.ETrue (I.ESucc I.EZero) (I.ESucc (I.ESucc I.EZero))) @?= I.VSucc I.VZero
# LANGUAGE NumericUnderscores # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Lang.L6.Tests (unitTests, propertyTests, exampleTests) where import Data.Maybe import Lang.L6.Eval.EEval as EE import . L6.Eval . IEval as IE import Lang.L6.Examples import Lang.L6.Syntax.Extrinsic as E import ....
1a89c9fafd28f3651975df371d951c4b135d09ac0ce104def5c2535cb9474ed0
ejgallego/coq-serapi
ser_retroknowledge.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/ser_retroknowledge.mli
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 _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2018 MINES...
e6f8cd4a5f37f85c12ee3d319fabe743543c7b7c649b60351013c1c8b240081e
futurice/haskell-mega-repo
Reports.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -f...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/reports-app/src/Futurice/App/Reports.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # # OPTIONS_GHC -fconstraint-solver-iterations=0 -fprint-potential-instances # --------------------------------------------------------------------...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # module Futurice.App.Reports (defaultMain) where import Control.Lens (each) import Data.Aeson (object, (.=)) import Data.List (isSuffixOf) import Futuqu ...
f7ffc3180ecaff599070afedc06f76918e6beded428223ec7772cc14c896b202
compiling-to-categories/concat
Chain.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE CPP # # LANGUAGE InstanceSigs # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE Scop...
null
https://raw.githubusercontent.com/compiling-to-categories/concat/49e554856576245f583dfd2484e5f7c19f688028/examples/src/ConCat/Chain.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs # | Category of linear operation sequences (forall a b. j a b -> k a b) -> (forall a b. Chain j a b -> Chain k a b) where go :: forall a b. Chain j a b -> Chain k a b go (op :< ops) = f op :< go ops We could reverse in toList or sho...
# LANGUAGE CPP # # LANGUAGE InstanceSigs # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # ...
dbaa6446fc756e91bfb2465c8d8798edacc007eec68f8bcb3f3b7399ee347bae
janestreet/merlin-jst
browse_misc.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/src/analysis/browse_misc.ml
ocaml
FIXME: the use of [Exported] here is wrong... The compiler should export that information. Typemod.simplify_signature
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
cf7d821d87f381a3383b03660f265aeec0280e175d37ada6f420187deb181e2d
SimulaVR/godot-haskell
ColorRect.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.ColorRect (Godot.Core.ColorRect.get_frame_color, ...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/ColorRect.hs
haskell
# NOINLINE bindColorRect_get_frame_color # | The fill color. @ @ | The fill color. @ @ | The fill color. @ @ | The fill color. @ @
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.ColorRect (Godot.Core.ColorRect.get_frame_color, ...
efc4a276f95b1b4f2a0c71ec19fbfadabaf5ef9e2289d0be199944b6569e6b13
MinaProtocol/mina
chain_reliability_test.ml
open Core open Integration_test_lib module Make (Inputs : Intf.Test.Inputs_intf) = struct open Inputs open Engine open Dsl open Test_common.Make (Inputs) TODO : find a way to avoid this type alias ( first class module signatures restrictions make this tricky ) type network = Network.t type node = Netw...
null
https://raw.githubusercontent.com/MinaProtocol/mina/3afb634a6105e62c8dfe763603ede739f243703b/src/app/test_executive/chain_reliability_test.ml
ocaml
open Core open Integration_test_lib module Make (Inputs : Intf.Test.Inputs_intf) = struct open Inputs open Engine open Dsl open Test_common.Make (Inputs) TODO : find a way to avoid this type alias ( first class module signatures restrictions make this tricky ) type network = Network.t type node = Netw...
aef047111fe952976353b0ad85646825e6de26772be0ea9a4df381b3b1721ed4
xvw/preface
invariant.mli
(** Building a {!module:Preface_specs.Invariant} *) * { 1 Using the minimal definition } Build a { ! module - type : Preface_specs . INVARIANT } using { ! module - type : Preface_specs . Invariant . WITH_INVMAP } . Standard method , using the minimal definition of a contravariant functor to d...
null
https://raw.githubusercontent.com/xvw/preface/a779f01bd04eda10ad6b27a1be9c8811ef1e9716/lib/preface_make/invariant.mli
ocaml
* Building a {!module:Preface_specs.Invariant}
* { 1 Using the minimal definition } Build a { ! module - type : Preface_specs . INVARIANT } using { ! module - type : Preface_specs . Invariant . WITH_INVMAP } . Standard method , using the minimal definition of a contravariant functor to derive its full API . Build a {!module-type:Pref...
430f8481cf72697330644dde56dc0e8f4f069165baa53965fd2716032c226fb6
esl/escalus
escalus_ct.erl
-module(escalus_ct). %% @doc This module abstracts away the calls to Common Test. %% %% The module doesn't try to simulate all of them as, in general, %% the user should be aware whether the code he/she writes is run %% within a Common Test suite or not. %% %% Where applicable functions return false if Common Test is ...
null
https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/src/escalus_ct.erl
erlang
@doc This module abstracts away the calls to Common Test. The module doesn't try to simulate all of them as, in general, the user should be aware whether the code he/she writes is run within a Common Test suite or not. Where applicable functions return false if Common Test is not available and the value of the ...
-module(escalus_ct). -export([add_log_link/3, fail/1, get_config/1, log_stanza/3, log_error/2]). -define(APPNAME, escalus). -include_lib("common_test/include/ct.hrl"). -spec add_log_link(any(), any(), any()) -> ok | false. add_log_link(Heading, File, Type) -> is_ct_available...
860c89ac302b3968ec27f88c7d47073336c9a9c27414ade895aef04950e4e4b9
hexlet-codebattle/battle_asserts
operation_suggestion.clj
(ns battle-asserts.issues.operation-suggestion (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["games" "math"]) (def description {:en "Write a function that takes three numbers (first operand, second operand and result) and return string if they should be added, subtracted or mul...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/04c496b4932bb2d8f5db7be218adea98dd979e69/src/battle_asserts/issues/operation_suggestion.clj
clojure
(ns battle-asserts.issues.operation-suggestion (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["games" "math"]) (def description {:en "Write a function that takes three numbers (first operand, second operand and result) and return string if they should be added, subtracted or mul...
2af81bc367df3772577c204d1b0709d8ade02703770503558c89163f7c35ef4f
picty/parsifal
pac.ml
open Parsifal open BasePTypes open PTypes open Asn1PTypes open Asn1Engine type align = unit let parse_align n input = (*Printf.printf "ALIGN: %d\n" input.cur_offset;*) drop_bytes ((n - (input.cur_offset mod n)) mod n) input (* FIXME: duplicated *) type 'a cspe = 'a let parse_cspe n parse_fun input = parse_asn1 (...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/kerby/pac.ml
ocaml
Printf.printf "ALIGN: %d\n" input.cur_offset; FIXME: duplicated Ugly Windows time conversion FILETIME should be transformed into usable time repr. Custom print of date TODO: Throw an exception? Custom function to split using sep Ugly split for UTF16 strings, we remove \x00 char and hope it works spec doe...
open Parsifal open BasePTypes open PTypes open Asn1PTypes open Asn1Engine type align = unit let parse_align n input = drop_bytes ((n - (input.cur_offset mod n)) mod n) input type 'a cspe = 'a let parse_cspe n parse_fun input = parse_asn1 (C_ContextSpecific, true, T_Unknown n) parse_fun input let dump_cspe n dump_f...
975c38d2fad80179cbad342386caa7d3d17c1b6b3024fbba181080deb83814f8
ghc/packages-Cabal
cabal.test.hs
import Test.Cabal.Prelude main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ do Do n't run this test unless the GHC is sufficiently recent -- to not ship boot old-time/old-locale skipUnless =<< ghcVersionIs (>= mkVersion [7,11]) Do n't run this test on GHC 8.2 , which ships with Cabal 2.0 ,...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewBuild/T4375/cabal.test.hs
haskell
to not ship boot old-time/old-locale we had the full Hackage index, we'd try it.)
import Test.Cabal.Prelude main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ do Do n't run this test unless the GHC is sufficiently recent skipUnless =<< ghcVersionIs (>= mkVersion [7,11]) Do n't run this test on GHC 8.2 , which ships with Cabal 2.0 , which is not eligible for old - style Cus...
1f9ca872c65fb37a0d8a7b9f2fd2814de71a47392c98390291159a2ac3901bae
ice1000/Kt2Dart
Strings.hs
# LANGUAGE ApplicativeDo # module Strings where import Control.Applicative import Control.Monad import Parsers import LexicalStructure import {-# SOURCE #-} Expressions stringTemplateP :: Parser String stringTemplateP = do charP '"' e <- option0 [] $ some stringTemplateElementP reservedLP [ '"' ] return $ '...
null
https://raw.githubusercontent.com/ice1000/Kt2Dart/be47a9ce7ad8edd242c06e9c53a1e253ac5d5a4a/src/Strings.hs
haskell
# SOURCE #
# LANGUAGE ApplicativeDo # module Strings where import Control.Applicative import Control.Monad import Parsers import LexicalStructure stringTemplateP :: Parser String stringTemplateP = do charP '"' e <- option0 [] $ some stringTemplateElementP reservedLP [ '"' ] return $ '"' : join e ++ [ '"' ] stringTemp...
b7b7ce6c55a3988d3a8ff9ef98e180ed7e643ab1079e6956fa610d99f10ec21c
TorXakis/TorXakis
LPEfunc.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} --------------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpe/src/LPEfunc.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Stability : experimental --------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- -- import -----------...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} Module : LPEfunc Copyright...
2ac079654af132e3deae5ecbda022021f3269c560545ccc2507e8dc157342c95
brendanhay/amazonka
ListWorkloads.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-wellarchitected/gen/Amazonka/WellArchitected/ListWorkloads.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated List workloads. Paginated. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | Input to list all workloads. /See:/ 'newListWorkloads' smart constructor. | The maximum number of results to...
# 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...
97cf816133de078869affb0f5390f5bc75e9ffbbb7fb64d3c6ddc58fc707da88
aesiniath/unbeliever
Notify.hs
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK prune #-} {- | Helpers for watching files for changes and taking action in the event of a change. -} module Core.Program.Notify ( waitForChange ) where import Control.Concurrent.MVar (newEmptyMVar, putMVar, readMVar) import Control.Monad.IO.Class (liftIO)...
null
https://raw.githubusercontent.com/aesiniath/unbeliever/a315a894c580b72ca32b3157518c6ba4653d9381/core-program/lib/Core/Program/Notify.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_HADDOCK prune # | Helpers for watching files for changes and taking action in the event of a change. Ideally we'd just set up inotifies on these individual files, but that doesn't work when programs like vim move the original file, save a new one, then delete the renamed o...
module Core.Program.Notify ( waitForChange ) where import Control.Concurrent.MVar (newEmptyMVar, putMVar, readMVar) import Control.Monad.IO.Class (liftIO) import Core.Data.Structures import Core.Program.Execute import Core.Program.Logging import Core.Program.Unlift import Data.Foldable (foldrM) import System....
a6df139304b408470dd41e0c4ab3f96d00ef60622ba5d5dc79cbe9db323ce3fe
zed-throben/erlangeos
erleos_cmd.erl
-module(erleos_cmd). -compile(export_all). vprint(Fmt,Param)-> Verbose = get(verbose), if Verbose == true -> io:format(Fmt,Param); true -> [] end. vprint(Fmt)-> Verbose = get(verbose), if Verbose == true -> io:format(Fmt); true -> [] end. init()-> erleos:start(), apply_config(), addLibraries(). main()...
null
https://raw.githubusercontent.com/zed-throben/erlangeos/44e50e442f5d396c69ae90db530b0b60b01d692a/src/erleos_cmd.erl
erlang
io:format("CmdLine = ~p\n",[CmdLine]), io:format("CmdLine = ~s",[Cmdline]), Res = os:cmd(Cmdline), io:format("~s\n",[Res]), io:format("no arguments.\n"). code:add_path("ebin"), APath = filename:absname(RPath), io:format("deps path = ~s(~s)\n",[RPath,APath])
-module(erleos_cmd). -compile(export_all). vprint(Fmt,Param)-> Verbose = get(verbose), if Verbose == true -> io:format(Fmt,Param); true -> [] end. vprint(Fmt)-> Verbose = get(verbose), if Verbose == true -> io:format(Fmt); true -> [] end. init()-> erleos:start(), apply_config(), addLibraries(). main()...
3a09c3945616b46b337713d3719ea77c2711326450c5931533b9f4e5a76ce3a0
sondresl/AdventOfCode
17.hs
import Data.Maybe import Control.Lens import Data.List.Extra data State = S { _step :: Int , _next :: Int , _ix :: Int , _buffer :: [Int] } deriving Show simulate :: State -> State simulate (S s next ix xs) = S s next' ix' xs' where ...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/a460af1866077639e0c58947354d750d1b96975c/2017/Haskell/17.hs
haskell
import Data.Maybe import Control.Lens import Data.List.Extra data State = S { _step :: Int , _next :: Int , _ix :: Int , _buffer :: [Int] } deriving Show simulate :: State -> State simulate (S s next ix xs) = S s next' ix' xs' where ...
d5933ab18403e4dfaf73e3aabc04e78d664666d0df82aa3899999d8bd5da1917
Enecuum/Node
Extra.hs
{-# LANGUAGE PackageImports #-} module Control.Monad.Extra (module X, tryMR, tryML, tryM, timeout) where import Control.Monad import qualified "extra" Control.Monad.Extra as X import Control.Concurrent.Async (race) import Enecuum.Prelude tryMR :: MonadCatch m => ...
null
https://raw.githubusercontent.com/Enecuum/Node/3dfbc6a39c84bd45dd5f4b881e067044dde0153a/src/Control/Monad/Extra.hs
haskell
# LANGUAGE PackageImports #
module Control.Monad.Extra (module X, tryMR, tryML, tryM, timeout) where import Control.Monad import qualified "extra" Control.Monad.Extra as X import Control.Concurrent.Async (race) import Enecuum.Prelude tryMR :: MonadCatch m => m t -> (t -> m ()) -> m () tryMR...
d5507127e34acc6e27cbe77955e0cdaeadc5f6f809a670302ab4c4fa9a281f56
caradoc-org/caradoc
main.ml
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/main.ml
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
aa6b50b35a867ae33cf6c4b0d4d2e5f556ba10e207a0eb90ae3ac790e188c1ad
LargeMan/Haskell-SkipList
SkipList.hs
# LANGUAGE RecordWildCards # # LANGUAGE NamedFieldPuns # module SkipList (insert, delete, get, contains, skiplist, Node(..), SkipList(..)) where import Data.List (intercalate) import System.Random (randomIO, randoms, next, mkStdGen, StdGen) data Node a = Node { height :: Int, value :: a, top :: Node a, ...
null
https://raw.githubusercontent.com/LargeMan/Haskell-SkipList/486b6950dd7e269bb3505aefaf8106a72cddd382/SkipList.hs
haskell
might be useful later and will not affect ordering at all TODO: make a full visualization of a node tree instance (Show a) => Show (Node a) where show None = "None" show (Node{..}) = do let x = "|\nV" a list builder for level_harvest returns each height + value of nodes of that height gets all n...
# LANGUAGE RecordWildCards # # LANGUAGE NamedFieldPuns # module SkipList (insert, delete, get, contains, skiplist, Node(..), SkipList(..)) where import Data.List (intercalate) import System.Random (randomIO, randoms, next, mkStdGen, StdGen) data Node a = Node { height :: Int, value :: a, top :: Node a, ...
99fe60c1fda6170982bae17c2ec580c65241218887b71bec495ef013f46ccaed
NethermindEth/horus-checker
Std.hs
module Horus.Expr.Std ( Function (..) , stdNames , binArithNames , compareNames , binLogicNames ) where import Data.Constraint ((\\)) import Data.GADT.Compare (GCompare (..), GEq (..), GOrdering (..)) import Data.Singletons (SingI) import Data.Text (Text) import Type.Reflection (typeRep, (:~:) (Refl)) imp...
null
https://raw.githubusercontent.com/NethermindEth/horus-checker/b4ce60c7739a0d12dab6c9b2ff87719b321f6200/src/Horus/Expr/Std.hs
haskell
module Horus.Expr.Std ( Function (..) , stdNames , binArithNames , compareNames , binLogicNames ) where import Data.Constraint ((\\)) import Data.GADT.Compare (GCompare (..), GEq (..), GOrdering (..)) import Data.Singletons (SingI) import Data.Text (Text) import Type.Reflection (typeRep, (:~:) (Refl)) imp...
eb3ccfbb06cdc908a17cd9c11756d3bbe6250dbb95da2043025f1b2c0ee117b4
pokepay/aws-sdk-lisp
cloudformation.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/cloudformation (:use) (:use-reexport #:aws-sdk/services/cloudformation/api))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/cloudformation.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/cloudformation (:use) (:use-reexport #:aws-sdk/services/cloudformation/api))
a13e8a73704d67ec11e069d210609b18557bcbf04d432d1d6063d0a21f0ab493
trevorbernard/cljzmq-examples
msreader.clj
;; Reading from multiple sockets ;; This version uses a simple recv loop (ns zguide.msreader (:require [zeromq.zmq :as zmq])) (defn -main [] (let [context (zmq/zcontext)] (with-open [receiver (doto (zmq/socket context :pull) (zmq/connect "tcp:5557")) subscriber (doto...
null
https://raw.githubusercontent.com/trevorbernard/cljzmq-examples/d76df4b1f07749efa566c4bf8bdd4ec3ca0b26a6/src/zguide/msreader.clj
clojure
Reading from multiple sockets This version uses a simple recv loop
(ns zguide.msreader (:require [zeromq.zmq :as zmq])) (defn -main [] (let [context (zmq/zcontext)] (with-open [receiver (doto (zmq/socket context :pull) (zmq/connect "tcp:5557")) subscriber (doto (zmq/socket context :sub) (zmq/connect "tcp...
8893331f219075f95fa397b3863ceda0a50a246d0bd6e7124536324b50ccbf13
joearms/ezwebframe
ezwebframe_demos.erl
-module(ezwebframe_demos). -export([start/0]). %% This demo assumes that all your code %% the code paths to ezwebframe and simple_demo are correct start() -> io:format("a simple_demo of websockets....~n"), Port = 1456, io:format("Load the page :~p/ in your browser~n",[Port]), ezwebframe:start_link(fun...
null
https://raw.githubusercontent.com/joearms/ezwebframe/9eb320ff61d4dc7b0885f700414e56b7554788bf/demos/ezwebframe_demos.erl
erlang
This demo assumes that all your code the code paths to ezwebframe and simple_demo are correct dispatch maps names in the HTML onto fixed paths
-module(ezwebframe_demos). -export([start/0]). start() -> io:format("a simple_demo of websockets....~n"), Port = 1456, io:format("Load the page :~p/ in your browser~n",[Port]), ezwebframe:start_link(fun dispatch/1, Port). dispatch(F) -> F1 = dispatch1(F), io:format("ezwebframe_demos::dispatc...
5bcb12a445b9554e9ab47d87154a1aa7cf379c326eb1c02ec4a783d711034717
binaryage/cljs-devtools
hints.cljs
(ns devtools.hints (:require-macros [devtools.compiler :refer [check-compiler-options!]] [devtools.oops :refer [unchecked-aget]]) (:require [devtools.prefs :refer [pref]] [devtools.context :as context] [cljs.stacktrace :as stacktrace])) cljs.stacktrace does not play wel...
null
https://raw.githubusercontent.com/binaryage/cljs-devtools/d07fc6d404479b1ddd32cecc105009de77e3cba7/src/lib/devtools/hints.cljs
clojure
Question: How much time have you lost staring at "Cannot read property 'call' of null" kind of errors? --------------------------------------------------------------------------------------------------------------------------- The idea is to try enhance error object's .stack and .message fields with additional inf...
(ns devtools.hints (:require-macros [devtools.compiler :refer [check-compiler-options!]] [devtools.oops :refer [unchecked-aget]]) (:require [devtools.prefs :refer [pref]] [devtools.context :as context] [cljs.stacktrace :as stacktrace])) cljs.stacktrace does not play wel...
0dee7eef2bf4a280b23fee4d9e5f30b82af4fe21457ef54bfc0af14ec7286465
pirapira/coq2rust
printmod.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/printing/printmod.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * false iff the module is an element...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names val printable_bod...
76e809ec9f08e9ff4be905d0d7dc62728b17d71d9b6394687499e7e82af17098
techascent/tech.datatype
datetime_test.clj
(ns tech.v2.datatype.datetime-test (:require [tech.v2.datatype :as dtype] [tech.v2.datatype.datetime :as dtype-dt] [tech.v2.datatype.datetime.operations :as dtype-dt-ops] [tech.v2.datatype.functional :as dfn] [tech.v2.tensor :as dtt] [clojure.test :refer [de...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/test/tech/v2/datatype/datetime_test.clj
clojure
test math on packed types I really don't expect tensors to be used with date time objects but regardless the basic expectations of these things (like functions that take a tensor return a tensor) all need to be respected. Also, it has to print without exception Fails if the host machine timezone is UTC :-). Works othe...
(ns tech.v2.datatype.datetime-test (:require [tech.v2.datatype :as dtype] [tech.v2.datatype.datetime :as dtype-dt] [tech.v2.datatype.datetime.operations :as dtype-dt-ops] [tech.v2.datatype.functional :as dfn] [tech.v2.tensor :as dtt] [clojure.test :refer [de...
1e6f833091a2dd93a7603a1b2d5dcf0eac482125e9886a7f959a82a5ad391af1
manuel-serrano/bigloo
alibrary.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Module / alibrary.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : S...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/d315487d6a97ef7b4483e919d1823a408337bd07/comptime/Module/alibrary.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The compiler library clause compilation */ *===========================...
* ... /prgm / project / bigloo / / comptime / Module / alibrary.scm * / * Author : * / * Creation : Sat Feb 28 10:20:55 1998 * / * Last change : Fri Dec 3 16:47:21 2021 ( serrano ) * / * Copyrigh...
e29413d62cc0b040e636c4918e88389f78cf5418c7c728cef04f3c7ee02583be
umber-lang/umber
literal.mli
open Import type t = | Int of int | Float of float | Char of Uchar.t | String of Ustring.t [@@deriving compare, equal, hash, sexp, variants] include Comparable.S with type t := t include Hashable.S with type t := t val typ : t -> Type.Concrete.t
null
https://raw.githubusercontent.com/umber-lang/umber/f3947abf74478f3d8bae9d2876302dd35478ec13/src/literal.mli
ocaml
open Import type t = | Int of int | Float of float | Char of Uchar.t | String of Ustring.t [@@deriving compare, equal, hash, sexp, variants] include Comparable.S with type t := t include Hashable.S with type t := t val typ : t -> Type.Concrete.t
fab4dbd709ce04d7e346c852f6e5f47a1ccf2a7a9d357c8cf2e3d72d99978af4
LCBH/UKano
lemma.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/lemma.ml
ocaml
*************************************** Simplification of queries into lemmas **************************************** The function [simplify_lemmas pi_st] considers the queries of [pi_st] and simplifies the lemmas accordingly into implied lemmas. For equivalence queries, a lemma is transformed into a restrict...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
9fd42f50297eb971118c3561ea7c1bf7968c637d14b91a30b82fbfd1f56cf85d
simmone/racket-simple-xlsx
bar-chart-test.rkt
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require "../../../../lib/lib.rkt") (require"../../../../xl/charts/bar-chart.rkt") (require"../../../../xl/charts/lib.rkt") (require racket/runtime-path) (define-runtim...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/xl/charts/bar-chart/bar-chart-test.rkt
racket
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require "../../../../lib/lib.rkt") (require"../../../../xl/charts/bar-chart.rkt") (require"../../../../xl/charts/lib.rkt") (require racket/runtime-path) (define-runtim...
2808864ebfdb664a4232d1eb7f90e31d140791770af7d0ebd283d14f942bbaab
mihaiolteanu/lyrics
package.lisp
package.lisp (defpackage #:lyrics (:use #:cl :drakma :sqlite :defmemo) (:import-from :alexandria :if-let) (:import-from :alexandria :mappend) (:import-from :alexandria :random-elt) (:import-from :alexandria :shuffle) (:import-from :bordeaux-threads :make-thread) (:import-from :cl-ppcre :regex-replace) ...
null
https://raw.githubusercontent.com/mihaiolteanu/lyrics/1ceffca07f4a78f28d60609a939be4594a79b8ea/package.lisp
lisp
package.lisp (defpackage #:lyrics (:use #:cl :drakma :sqlite :defmemo) (:import-from :alexandria :if-let) (:import-from :alexandria :mappend) (:import-from :alexandria :random-elt) (:import-from :alexandria :shuffle) (:import-from :bordeaux-threads :make-thread) (:import-from :cl-ppcre :regex-replace) ...
2531cce090043108bd8ae37089f752b9cac6d2f0bd9102a4037fe9a85ccbf178
lambdamikel/OntoLisp
http-stream.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : OWL - SYNTAXES ; Base : 10 -*- (in-package :owl-syntaxes) ;;; ;;;; http-stream.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; The Original Software is OntoLisp ( NOSA ): A Semantic Web F...
null
https://raw.githubusercontent.com/lambdamikel/OntoLisp/d8646f986ec59aa0dd643bf685be318f44b5ff52/ontolisp-0.9/http-stream.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : OWL - SYNTAXES ; Base : 10 -*- http-stream.lisp -------------------------------------------------------------------------------------- All Rights Reserved. This program is licensed under the terms of the GNU Lesser General Public License however that a pream...
(in-package :owl-syntaxes) The Original Software is OntoLisp ( NOSA ): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp Copyright ( c ) 2007 - 2010 and Racer Systems GmbH & Co. KG Contributor(s ): ( mailto: mailto: ) as published by the Free ...
5cb91b0fc727aae1f21e573e344ab1561143f585cb751d30424d66dad6297676
leo-project/leofs
leo_large_object_put_handler.erl
%%====================================================================== %% Leo Gateway / Large Object PUT Handler %% Copyright ( c ) 2012 - 2018 Rakuten , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
null
https://raw.githubusercontent.com/leo-project/leofs/4ff701e0f4a4cf39a968dbe078b9c2412a22f995/apps/leo_gateway/src/leo_large_object_put_handler.erl
erlang
====================================================================== Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permis...
Leo Gateway / Large Object PUT Handler Copyright ( c ) 2012 - 2018 Rakuten , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF...
6a409a82191673665fb2ae2d04f322584a4ced1088281a46c87366591a1e41f3
Et7f3/ocalc
nouveau_lexer.mli
type operateur = Plus | Moins | Fois | Division | Exposant | Definition type token = Erreur | EOI | Blanc | Digit of string | Identifiant of string | Affectation | Parenthese_ouvrante | Parenthese_fermante | Separateur_unite | Separateur_liste | Souligne | Operateur of operateur val extraire_b...
null
https://raw.githubusercontent.com/Et7f3/ocalc/667da625676829307fc59542906ed2075fe818bd/src/noyau/nouveau_lexer.mli
ocaml
type operateur = Plus | Moins | Fois | Division | Exposant | Definition type token = Erreur | EOI | Blanc | Digit of string | Identifiant of string | Affectation | Parenthese_ouvrante | Parenthese_fermante | Separateur_unite | Separateur_liste | Souligne | Operateur of operateur val extraire_b...
98cffd830aa0228f4b608343a967df77628ff0e11f048b25ef3ba534126a3e1b
tekul/broch
WaiTest.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - missing - signatures # module WaiTest where import qualified Blaze.ByteString.Builder as Builder import Control.Arrow (second) import Control.Monad (when, unless) import Control.Monad.IO.Class (liftIO) import qualified Control.Monad.Trans.State as ST impo...
null
https://raw.githubusercontent.com/tekul/broch/885ace4652cad4dcd806c8c31c1a59bf6a9a3337/tests/WaiTest.hs
haskell
# LANGUAGE OverloadedStrings # The wai-test module by itself only supports simple request testing, so this adds cookie handling and access to the previous response.
# OPTIONS_GHC -fno - warn - missing - signatures # module WaiTest where import qualified Blaze.ByteString.Builder as Builder import Control.Arrow (second) import Control.Monad (when, unless) import Control.Monad.IO.Class (liftIO) import qualified Control.Monad.Trans.State as ST import Data.Aeson (encode, Result(..), ...
c806ee091164905596dcd2690364b8b33f875bc45aa020abb9af66a18e9b995d
axelarge/advent-of-code
day03.clj
(ns advent-of-code.y2015.day03 (:require [advent-of-code.support :refer :all])) (def input (get-input 2015 3)) (defn positions [moves] (->> moves (map {\^ [0 -1] \v [0 1] \< [-1 0] \> [1 0]}) (reductions (partial mapv +) [0 0]))) (defn solve1 [input] (count (set (positions input)))) (defn solve2...
null
https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/src/advent_of_code/y2015/day03.clj
clojure
(ns advent-of-code.y2015.day03 (:require [advent-of-code.support :refer :all])) (def input (get-input 2015 3)) (defn positions [moves] (->> moves (map {\^ [0 -1] \v [0 1] \< [-1 0] \> [1 0]}) (reductions (partial mapv +) [0 0]))) (defn solve1 [input] (count (set (positions input)))) (defn solve2...
a9b01eaf3638dfc99935f7fe380b30d1cf6229c96e7538a7b584da29002baded
DSiSc/why3
simplify_formula.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/transform/simplify_formula.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Ident open Term open Decl let attrset = Sattr.of_list [Term.asym_split] let rec fmla_simpl f = le...
e56fed7faec21c092fe459d3ca23101b726f8e3ff85faf484dac22fb301e3fc9
8c6794b6/guile-tjit
jit-code-t.scm
;;;; File: jit-code-t.scm ;;;; ;;;; Generated from "/usr/include/lightning.h" ;;; Enum values of ;;; (define-syntax jit-code-data (identifier-syntax 0)) (define-syntax jit-code-live (identifier-syntax 1)) (define-syntax jit-code-align (identifier-syntax 2)) (define-syntax jit-code-save (identifier-syntax 3)) (def...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/system/vm/native/jit-code-t.scm
scheme
File: jit-code-t.scm Generated from "/usr/include/lightning.h" C macro -> Scheme procedure Word size specific aliases
Enum values of (define-syntax jit-code-data (identifier-syntax 0)) (define-syntax jit-code-live (identifier-syntax 1)) (define-syntax jit-code-align (identifier-syntax 2)) (define-syntax jit-code-save (identifier-syntax 3)) (define-syntax jit-code-load (identifier-syntax 4)) (define-syntax jit-code-name (identifie...
7fffb17ae335180d721b9d3090a431962abe89902ccf4a28d75f88272c3a16db
ocaml-flambda/ocaml-jst
pr6985_ok.ml
(* TEST flags = " -w -a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) module Foo (Bar : sig type a = private [> `A ] end) (Baz : module type of struct include Bar end) = struct end module Bazoinks = struct type a = [ `A ] end module Bug = Foo(Bazoinks)(Bazoinks)
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/typing-modules-bugs/pr6985_ok.ml
ocaml
TEST flags = " -w -a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output
module Foo (Bar : sig type a = private [> `A ] end) (Baz : module type of struct include Bar end) = struct end module Bazoinks = struct type a = [ `A ] end module Bug = Foo(Bazoinks)(Bazoinks)
aaeb9f8b13cb09ea4cc2ede63b4dba742e3c443b3275a4f761a9fd74ce649101
wdebeaum/step
verify.lisp
;;;; ;;;; W::verify ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::verify (wordfeats (W::morph (:forms (-vb) :nom w::verification))) (SENSES ((meta-data :origin task-learning :entry-date 20050817 :change-date nil :comments nil) (LF-PARENT ONT::evaluate) ;scrutiny) (SEM (F...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/verify.lisp
lisp
W::verify scrutiny) scrutiny)
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::verify (wordfeats (W::morph (:forms (-vb) :nom w::verification))) (SENSES ((meta-data :origin task-learning :entry-date 20050817 :change-date nil :comments nil) (SEM (F::Aspect F::unbounded) (F::Time-span F::extended)) (TEMPL AGEN...
38a754cebae668d69bc72367e232b33ed85961d99ab7fa7350566b44f38ecfdb
Porges/email-validate-hs
Main.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # {-# LANGUAGE OverloadedStrings #-} module Main where import Control.Exception (evaluate) import Control.Monad (forM_) import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as BS import Data.List (isInfixOf) import Data.Maybe (Maybe(..), isNothi...
null
https://raw.githubusercontent.com/Porges/email-validate-hs/f434bfb23771b81c4d36a447ccd7e2b23e62eb1a/tests/Main.hs
haskell
# LANGUAGE OverloadedStrings # Properties Examples items below here are invalid according to other RFCs (or opinions) , invalid "foobar@192.168.0.1" `why` "ip need to be []" , invalid "first.last@[12.34.56.789]" `why` "Can\'t be interpreted as IPv4 so IPv6 tag is missing" , invalid "first.last@[::12.34.56.78]" `wh...
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # module Main where import Control.Exception (evaluate) import Control.Monad (forM_) import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as BS import Data.List (isInfixOf) import Data.Maybe (Maybe(..), isNothing, fromJust) import Data.Monoid ((...
1a5be0aabda73b8a4b5e6bcb5cc467d35a5a8d420539842ccaf2b893d453d07a
totalperspective/oolon
schema.cljc
(ns oolon.schema) (def type-map {:keyword :db.type/keyword :string :db.type/string :boolean :db.type/boolean :long :db.type/long :bigint :db.type/bigint :float :db.type/float :double :db.type/double :bigdec :db.type/bigdec :ref :db.type/ref :instant :db.type/instant ...
null
https://raw.githubusercontent.com/totalperspective/oolon/a457d2a2d440a25f663bd0508a95e6877eae6f81/src/cljc/oolon/schema.cljc
clojure
(ns oolon.schema) (def type-map {:keyword :db.type/keyword :string :db.type/string :boolean :db.type/boolean :long :db.type/long :bigint :db.type/bigint :float :db.type/float :double :db.type/double :bigdec :db.type/bigdec :ref :db.type/ref :instant :db.type/instant ...
f0f0e2d49adc02969b4ab16906b841d9addc64bb63fbf5c348e77670f0328f77
georgegarrington/Syphon
Definition.hs
# LANGUAGE TupleSections # module Parse.Definition where import Control.Monad.Reader import Text.Megaparsec hiding (sepBy) import Text.Megaparsec.Char import AST.Definition import AST.Expression import AST.Type import AST.Pattern import Parse.Expression import Parse.Type import Parse.Pattern import Parse.Util impor...
null
https://raw.githubusercontent.com/georgegarrington/Syphon/402a326b482e3ce627a15b651b3097c2e09e8a53/src/Parse/Definition.hs
haskell
Not sure if this is too much backtracking, seems okay Look at that, parser with integrated type inference :O partially applied let expression which is in scope of the next where let definition , which in turn is in scope of the next where let definition and so on , until one large nested let expression has been built...
# LANGUAGE TupleSections # module Parse.Definition where import Control.Monad.Reader import Text.Megaparsec hiding (sepBy) import Text.Megaparsec.Char import AST.Definition import AST.Expression import AST.Type import AST.Pattern import Parse.Expression import Parse.Type import Parse.Pattern import Parse.Util impor...
e0d6439cebbbeb66afe89eb4c0d58c9b1055e6f38b4d539579bb59a1a01d2369
buildsome/buildsome
IORef.hs
module Lib.IORef (atomicModifyIORef_, atomicModifyIORef'_) where import Data.IORef import Prelude.Compat atomicModifyIORef_ :: IORef a -> (a -> a) -> IO () atomicModifyIORef_ ioref f = atomicModifyIORef ioref (\x -> (f x, ())) atomicModifyIORef'_ :: IORef a -> (a -> a) -> IO () atomicModifyIORef'_ ioref f = atomicM...
null
https://raw.githubusercontent.com/buildsome/buildsome/479b92bb74a474a5f0c3292b79202cc850bd8653/src/Lib/IORef.hs
haskell
module Lib.IORef (atomicModifyIORef_, atomicModifyIORef'_) where import Data.IORef import Prelude.Compat atomicModifyIORef_ :: IORef a -> (a -> a) -> IO () atomicModifyIORef_ ioref f = atomicModifyIORef ioref (\x -> (f x, ())) atomicModifyIORef'_ :: IORef a -> (a -> a) -> IO () atomicModifyIORef'_ ioref f = atomicM...
e2f7d3fc3f7341957c800038f87b58eab7d7dc5ebb6fb081e263cc9f44034ba4
thephoeron/quipper-language
Classical.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== import Quipper circuit :: (Bit, Qubit) -> Circ (...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/tests/Classical.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ======================================================================
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the import Quipper circuit :: (Bit, Qubit) -> Circ (Qubit, Qubit) circuit (b,q) = do qnot_at q `controlled` b r <- prepare b gate_W_at q r return (q,r) main = print_simple Preview circuit
9a5322ee28ad1e3a0c26972e25f2d4f6fcd86f6c4a6555678dd3c439410eae65
atolab/apero-core
sys.ml
include Stdlib.Sys let argv = match !Dynload.ref with | None -> Stdlib.Sys.argv | Some array -> array
null
https://raw.githubusercontent.com/atolab/apero-core/6e8b9bb8383de641396463fb4e5685b7f135755c/lib/sys.ml
ocaml
include Stdlib.Sys let argv = match !Dynload.ref with | None -> Stdlib.Sys.argv | Some array -> array
c5a91426741f36b48af2ec1f51ee461098f93e3f8bdf37c823dfac69105888d4
lmj/lfarm
unwind-protect.lisp
Copyright ( c ) 2013 , . 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 c...
null
https://raw.githubusercontent.com/lmj/lfarm/f7ba49f1ec01fb99a7aeb8f18e245a44411c361b/lfarm-common/unwind-protect.lisp
lisp
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 following disclaimer. * Redistributions in binary...
Copyright ( c ) 2013 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR T...
9977703ecb701885c6f8b2b20ad1ee33dcec828cd37ad18c8c758a867c78df32
yav/haskore-vintage
Haskore.hs
module Haskore(module Haskore.Loader) where import Haskore.Loader
null
https://raw.githubusercontent.com/yav/haskore-vintage/eceac0157a1509e3beb6a13e780de62c8f8a0150/src/Haskore.hs
haskell
module Haskore(module Haskore.Loader) where import Haskore.Loader
d0bae5cad58460e0ed68cb7de8854174ece5ea72a7854d6c681d0e0f4cef05f3
SKA-ScienceDataProcessor/RC
GCF.hs
# LANGUAGE CPP , ScopedTypeVariables , FlexibleInstances , TypeSynonymInstances , DeriveGeneric , DeriveDataTypeable , BangPatterns # CPP , ScopedTypeVariables , FlexibleInstances , TypeSynonymInstances , DeriveGeneric , DeriveDataTypeable , ...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS4/dna-programs/Kernel/GPU/GCF.hs
haskell
Get parameters Generate GCF kernel Copy to center of overo grid, fft and transpose Now extract oversampling kernels Reduce DEBUG peek hnormp >>= print Make sure parameters make sense Number of GCFs to generate Allocate GCFs, generate lookup table TODO: This is probably not the best way to select w values? P...
# LANGUAGE CPP , ScopedTypeVariables , FlexibleInstances , TypeSynonymInstances , DeriveGeneric , DeriveDataTypeable , BangPatterns # CPP , ScopedTypeVariables , FlexibleInstances , TypeSynonymInstances , DeriveGeneric , DeriveDataTypeable , ...
fef2f06ac05573fbae7a3c1546d139ea04ae5957642bd54a5a35dba4872a3e58
zotonic/cowmachine
cowmachine_req.erl
@author < > 2016 - 2019 %% %% @doc Request functions for cowmachine. @reference See more information related to Cowboy HTTP server for Erlang / OTP at < a href=" / ninenines / cowboy">Cowboy</a > . %% @end Copyright 2016 - 2019 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ...
null
https://raw.githubusercontent.com/zotonic/cowmachine/7c96143c2dc26d36ba620c21b6c891a2fcabdccc/src/cowmachine_req.erl
erlang
@doc Request functions for cowmachine. @end you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the L...
@author < > 2016 - 2019 @reference See more information related to Cowboy HTTP server for Erlang / OTP at < a href=" / ninenines / cowboy">Cowboy</a > . Copyright 2016 - 2019 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an "...
112a4229b53d16fc7eba077486125cc98ffb2f2661f779077452fbe0edff6c07
avh4/elm-format
BinaryOperatorPrecedence.hs
module ElmFormat.AST.BinaryOperatorPrecedence (parseElm0_19, parsePrecedence, Tree(..), Precedence(..), Associativity(..)) where import ElmFormat.AST.Shared import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Data.Text (Text) data Tree op e = Leaf e | Bra...
null
https://raw.githubusercontent.com/avh4/elm-format/57f77ee0a667869ceed3a61a0f4eeaca56a3964f/elm-format-lib/src/ElmFormat/AST/BinaryOperatorPrecedence.hs
haskell
From #L68-L89 From #L41 From #L46-L50 -yard_algorithm
module ElmFormat.AST.BinaryOperatorPrecedence (parseElm0_19, parsePrecedence, Tree(..), Precedence(..), Associativity(..)) where import ElmFormat.AST.Shared import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Data.Text (Text) data Tree op e = Leaf e | Bra...
79df203e309d111e4c429b5d02af0a628846a3091a4c2f11dc786e6af733c8cd
rumblesan/improviz
Types.hs
module Gfx.Types where import Data.Yaml ( FromJSON(..) ) data Colour = Colour !Float !Float !Float !Float deriving (Eq, Show) instance FromJSON Colour where parseJSON v = do (r, g, b, a) <- parseJSON v return $ Colour (r / 255) (g / 255) (b / 255) (a / 255)
null
https://raw.githubusercontent.com/rumblesan/improviz/c1c09b225d4380763bcf30df216a52a57fea78af/src/Gfx/Types.hs
haskell
module Gfx.Types where import Data.Yaml ( FromJSON(..) ) data Colour = Colour !Float !Float !Float !Float deriving (Eq, Show) instance FromJSON Colour where parseJSON v = do (r, g, b, a) <- parseJSON v return $ Colour (r / 255) (g / 255) (b / 255) (a / 255)
0a3e019326230f4f86147a68b3a8a73b085337d0ee68f7e6f39a0032b157ffe2
unisonweb/unison
Prelude.hs
module Unison.Prelude ( module X, readUtf8, safeReadUtf8, safeReadUtf8StdIn, writeUtf8, uncurry4, reportBug, tShow, wundefined, -- * @Maybe@ control flow onNothing, onNothingM, whenNothing, whenNothingM, whenJust, whenJustM, eitherToMaybe, maybeToEi...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/lib/unison-prelude/src/Unison/Prelude.hs
haskell
* @Maybe@ control flow * @Either@ control flow | Like 'fold' but for Alternative. | Like 'foldMap' but for Alternative. | E.g. @@ @@ | Strictly read an entire file decoding UTF8. Converts \r\n -> \n on windows. | Strictly read from a handle, decoding UTF8, or failing if not valid UTF8 Converts \r\n -> \n on...
module Unison.Prelude ( module X, readUtf8, safeReadUtf8, safeReadUtf8StdIn, writeUtf8, uncurry4, reportBug, tShow, wundefined, onNothing, onNothingM, whenNothing, whenNothingM, whenJust, whenJustM, eitherToMaybe, maybeToEither, altSum, altMap, ...
f93f06e119a790d6e0b4cfd7c1cf6481068a77a292d8ce44d6154fc08b8d1d64
tlehman/sicp-exercises
count-change-verbose.scm
; Count Change (define (count-change amount) (cc amount 5)) ; (f a b) -> (f b c), evaluating to (f b c) (define (display-edge f a b c d) (begin (display "\"") (display `(f ,a ,b)) (display "\" -> \"") (display `(f ,c ,d)) (display "\"\n") (f c d))) (define (cc amount kinds-of-coins)...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/count-change-verbose.scm
scheme
Count Change (f a b) -> (f b c), evaluating to (f b c)
(define (count-change amount) (cc amount 5)) (define (display-edge f a b c d) (begin (display "\"") (display `(f ,a ,b)) (display "\" -> \"") (display `(f ,c ,d)) (display "\"\n") (f c d))) (define (cc amount kinds-of-coins) (cond ((= amount 0) 1) ((or (< amount 0) (= kinds-of-co...
4212e4f57273d97b0009910b2c05e33720dd2b2cf7f6c30abbc96d2a713a40b1
gfngfn/SATySFi
prePath.mli
open LengthInterface open GraphicBase type t val start : point -> t val line_to : point -> t -> t val bezier_to : point -> point -> point -> t -> t val terminate : t -> path val close_with_line : t -> path val close_with_bezier : point -> point -> t -> path val starting_point : t -> point val current_point : ...
null
https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/backend/prePath.mli
ocaml
open LengthInterface open GraphicBase type t val start : point -> t val line_to : point -> t -> t val bezier_to : point -> point -> point -> t -> t val terminate : t -> path val close_with_line : t -> path val close_with_bezier : point -> point -> t -> path val starting_point : t -> point val current_point : ...
70414aefdfde3b2cac94fd9b68cce2de8a2c7fd8acff1e4fb1a751a0d19545ef
typelead/eta
Monad.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Control.Monad Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- S...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/libraries/base/Control/Monad.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Monad License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable with some useful operations on monads. * Functor and monad classes * Fun...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 The ' Functor ' , ' ' and ' MonadPlus ' classes , module Control.Monad ( Functor(fmap) , Monad((>>=), (>>), return, fail) , MonadPlus(mzero, mplus) , mapM , mapM_ , forM...
613e6c4793d3b512a9b12e2e308aae167197e0375e24e63b52daecbb39adc937
rtoy/ansi-cl-tests
loop6.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Nov 10 21:13:04 2002 ;;;; Contains: Tests for LOOP-AS-HASH forms (in-package :cl-test) (defparameter *loop.6.alist* '((a . 1) (b . 2) (c . 3))) (defparameter *loop.6.alist.2* '(("a" . 1) ("b" . 2) ("c" . 3))) (defparameter *loop.6.alist.3* '(((a1 . a2)...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/loop6.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for LOOP-AS-HASH forms (defparameter *loop.6.hash.4* (let ((table (make-hash-table :test #'equalp))) table)) being {each | the} {hash-value | hash-values | hash-key | hash-keys} {in | of } Test that explicit calls to macroexpand in subforms are done in the correct envir...
Author : Created : Sun Nov 10 21:13:04 2002 (in-package :cl-test) (defparameter *loop.6.alist* '((a . 1) (b . 2) (c . 3))) (defparameter *loop.6.alist.2* '(("a" . 1) ("b" . 2) ("c" . 3))) (defparameter *loop.6.alist.3* '(((a1 . a2) . 1) ((b1 . b2) . 2) ((c1 . c2) . 3))) (defparameter *loop.6.hash....
35959c91ac8f61a39e6b5eec40626f11a7500fe294a74e6f57103f75554ecaff
S8A/htdp-exercises
ex012.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-beginner-reader.ss" "lang")((modname ex012) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex012.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-beginner-reader.ss" "lang")((modname ex012) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none ...
8cad9dc5e70e7ffc534ad3955580c11f2d75731523b845374ce4414b489de27e
fulcro-legacy/semantic-ui-wrapper
ui_breadcrumb_divider.cljs
(ns fulcrologic.semantic-ui.collections.breadcrumb.ui-breadcrumb-divider (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/collections/Breadcrumb/BreadcrumbDivider" :default BreadcrumbDivider])) (def ui-breadcrumb-divider "A divider sub-component for Breadcrumb c...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/breadcrumb/ui_breadcrumb_divider.cljs
clojure
(ns fulcrologic.semantic-ui.collections.breadcrumb.ui-breadcrumb-divider (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/collections/Breadcrumb/BreadcrumbDivider" :default BreadcrumbDivider])) (def ui-breadcrumb-divider "A divider sub-component for Breadcrumb c...
45c492acb45a81ba335fa7cc07a016fa9f2e54ee7ab5a232b21812bfb37e2929
basho/riak_kv
riak_kv_wm_ping.erl
%% ------------------------------------------------------------------- %% riak_kv_wm_ping : simple Webmachine resource for availability test %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); y...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_wm_ping.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
riak_kv_wm_ping : simple Webmachine resource for availability test Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distribute...
60a6fb2fed3989a6ca7cfbe74cee0789292ac627bdc2146ba5feea6d070a7d47
tari3x/csec-modex
piptree.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/proverif1.84/src/piptree.mli
ocaml
Untyped front-end Terms Functions defined by reduction rules Nounif Clauses Processes Declarations
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
3385111ac4b585be4528645a131eca2ba141b5615518d0fc3ac9a12567d2bdc6
stchang/macrotypes
generic.rkt
#lang turnstile (require turnstile/typedefs) (begin-for-syntax (define-generic-type-method get-datatype-def #:default #f)) (define-type Type : Type) (define-type Nat : Type #:implements get-datatype-def 1) (begin-for-syntax (require rackunit) (define Nat+ ((current-type-eval) #'Nat)) (check-false (get-dataty...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-test/tests/turnstile/generic.rkt
racket
#lang turnstile (require turnstile/typedefs) (begin-for-syntax (define-generic-type-method get-datatype-def #:default #f)) (define-type Type : Type) (define-type Nat : Type #:implements get-datatype-def 1) (begin-for-syntax (require rackunit) (define Nat+ ((current-type-eval) #'Nat)) (check-false (get-dataty...
3db73dad01b3c612b45889eff651fbc86508b1111403f9c15ed387bfcae7121a
jordanthayer/ocaml-search
wted_astar.ml
* Weighted A * search algorithm as through the search interface - July 2009 Weighted A* search algorithm as through the search interface Jordan Thayer - July 2009 *) type 'a node = { Data Payload wf: float; (* Search order w/ a weighted heuristic value *) f : float; (* T...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/best_first/wted_astar.ml
ocaml
Search order w/ a weighted heuristic value Total cost of a node Cost of reaching a node Depth of node in tree. Root @ 0 Position info for dpq * takes a function to be applied to the data payload such as the goal-test or the domain heuristic and wraps it so that it can be applied to the entire ...
* Weighted A * search algorithm as through the search interface - July 2009 Weighted A* search algorithm as through the search interface Jordan Thayer - July 2009 *) type 'a node = { Data Payload } let wrap f = (fun n -> f n.data) let unwrap_sol s = match s with Limit.Nothing ->...
f11ae27c0a651fcc15a9058eafef340176bef9bff0fac5549875b8951e5a901e
tweag/HaskellR
Mutable.hs
-- | Copyright : ( C ) 2013 Amgen , Inc. 2016 Tweag I / O Limited . -- -- Vectors that can be passed to and from R with no copying at all. These vectors are wrappers over SEXP vectors used by for vectors is -- allocated from the R heap, and in such way that they can be converted to a ' SEXP ' b...
null
https://raw.githubusercontent.com/tweag/HaskellR/e6b4ba0ddea32975df644fa1f9581881575ee7dc/inline-r/src/Data/Vector/SEXP/Mutable.hs
haskell
| Vectors that can be passed to and from R with no copying at all. These allocated from the R heap, and in such way that they can be converted to Like "Data.Vector.Storable.Mutable" vectors, the vector type in this module for maintainging lengths and slice offsets. If you're keeping a very large and calling 'fr...
Copyright : ( C ) 2013 Amgen , Inc. 2016 Tweag I / O Limited . vectors are wrappers over SEXP vectors used by for vectors is a ' SEXP ' by simple pointer arithmetic ( see ' toSEXP ' ) . adds one extra level of indirection and a small amount of storage overhead number of tiny vectors in memo...
65955b27c539c7b1ac112da906a46b3d02e2b23a5d6cfc781379e09c221e30f6
elbrujohalcon/witchcraft
timer_check.erl
-module(timer_check). -export([start/0, notify/1, notify/2, stop/0, loop/0, fail/0]). -spec start() -> true. start() -> P = spawn(?MODULE, loop, []), erlang:register(?MODULE, P). -spec loop() -> ok. loop() -> receive stop -> ok; {T, X} -> io:format("~p: ~p~n", [calendar:local_time(), X]), ...
null
https://raw.githubusercontent.com/elbrujohalcon/witchcraft/050e91f028a50874347fea9dc552a0e0a056018f/src/timer_check.erl
erlang
-module(timer_check). -export([start/0, notify/1, notify/2, stop/0, loop/0, fail/0]). -spec start() -> true. start() -> P = spawn(?MODULE, loop, []), erlang:register(?MODULE, P). -spec loop() -> ok. loop() -> receive stop -> ok; {T, X} -> io:format("~p: ~p~n", [calendar:local_time(), X]), ...
6337a30d97194f954071abf6fd0517848a3ab196a90cae0d71d4e77ea6b67ae0
monadbobo/ocaml-core
word_size.ml
type t = W32 | W64 let num_bits = function W32 -> 32 | W64 -> 64 let word_size = match Sys.word_size with | 32 -> W32 | 64 -> W64 | _ -> failwith "unknown word size" ;;
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/word_size.ml
ocaml
type t = W32 | W64 let num_bits = function W32 -> 32 | W64 -> 64 let word_size = match Sys.word_size with | 32 -> W32 | 64 -> W64 | _ -> failwith "unknown word size" ;;
d03ebaefcde0a2cae1df293250b1d6a6537b86cbf234b26b00382ac7a7ed674c
ailisp/Graphic-Forms
mock-objects.lisp
(in-package :graphic-forms.uitoolkit.tests) (defconstant +max-widget-size+ 5000) (defconstant +default-container-width+ 300) (defconstant +default-container-height+ 200) (defvar *default-hwnd* (cffi:make-pointer #xFFFFFFFF)) ;;; ;;; stand-in for a window, used as parent of mock-widget ;;; (defclass mock...
null
https://raw.githubusercontent.com/ailisp/Graphic-Forms/1e0723d07e1e4e02b8ae375db8f3d65d1b444f11/src/tests/uitoolkit/mock-objects.lisp
lisp
stand-in for a window, used as parent of mock-widget stand-in for widgets that would be children of windows, to be organized via layout managers infrastructure for item-manager unit tests
(in-package :graphic-forms.uitoolkit.tests) (defconstant +max-widget-size+ 5000) (defconstant +default-container-width+ 300) (defconstant +default-container-height+ 200) (defvar *default-hwnd* (cffi:make-pointer #xFFFFFFFF)) (defclass mock-container (gfw:layout-managed) ((location :accessor locati...