_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
1f84450231cc1279cc1a4f79638dcb49c8acae69dc060c7ff5e2e44da728d338
dpiponi/Moodler
divideequals.hs
do mInc <- input "/= " case mInc of Nothing -> return () Just inc -> do let mX = readMaybe inc case mX of Nothing -> return () Just x -> selection >>= mapM_ (\k -> do { v <- getValue k; set k (v/x)})
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/divideequals.hs
haskell
do mInc <- input "/= " case mInc of Nothing -> return () Just inc -> do let mX = readMaybe inc case mX of Nothing -> return () Just x -> selection >>= mapM_ (\k -> do { v <- getValue k; set k (v/x)})
49121bff00079f9a4bbb70fc68d5a44680950f26c83dc37997a276b40e7d797e
Asana/kraken
kraken_tcp_server.erl
%% @doc Generic TCP Server that delegates protocol handling to a callback module that is expected to implement the kraken_tcp_connection behavior . -module(kraken_tcp_server). %%%----------------------------------------------------------------- %%% Exports %%%--------------------------------------------------------...
null
https://raw.githubusercontent.com/Asana/kraken/51c7a2e334b6f40d7e3614b991dd3c877a07e6dc/src/kraken_tcp_server.erl
erlang
@doc Generic TCP Server that delegates protocol handling to a callback module ----------------------------------------------------------------- Exports ----------------------------------------------------------------- Callbacks API ----------------------------------------------------------------- Definitions -----...
that is expected to implement the kraken_tcp_connection behavior . -module(kraken_tcp_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([start_link/4]). -record(state, { Pid of the current acceptor process }). -define(SERVER, ?MODULE). -...
9108ed9722d2743de5c69db9403f453b098a388ea389bbc5f98f2294ed041254
realworldocaml/book
cram_exec.ml
open Import module Sanitizer : sig [@@@ocaml.warning "-32"] module Command : sig type t = { output : string ; build_path_prefix_map : string ; script : Path.t } end val impl_sanitizer : (Command.t -> string) -> in_channel -> out_channel -> unit val run_sanitizer : ?t...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_rules/cram_exec.ml
ocaml
we lose some portability as [$'] isn't posix. This is why we prefer single quotes when possible Nasty hack so that the user doesn't observe the test file while running the test. Eventually, we should just have a way to read the source from outside the sandbox. we only need to restore the test ...
open Import module Sanitizer : sig [@@@ocaml.warning "-32"] module Command : sig type t = { output : string ; build_path_prefix_map : string ; script : Path.t } end val impl_sanitizer : (Command.t -> string) -> in_channel -> out_channel -> unit val run_sanitizer : ?t...
8db251b52e56c36d25fc2bfc9fae2210fb192f0799d3001741da1b086f61f769
commercialhaskell/stack
Main.hs
import StackTest main :: IO () main = do stack ["build", defaultResolverArg, "--dry-run", "http2"] stack ["build", defaultResolverArg, "http2"]
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/3631-build-http2/Main.hs
haskell
import StackTest main :: IO () main = do stack ["build", defaultResolverArg, "--dry-run", "http2"] stack ["build", defaultResolverArg, "http2"]
be3c75a39bb973dbfe939e0bf53e5d7c7a5bb9c85ef650bd07083900ecf0f57b
snapframework/snap-templates
NestTest.hs
# LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE ExistentialQuantification # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # module Main where -...
null
https://raw.githubusercontent.com/snapframework/snap-templates/768db37547fc153ce00160af4bd5b603bfa8b8bb/test/suite/NestTest.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE ExistentialQuantification # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # module Main where import Prelude hiding ((.)) import Control.Lens import Control.Monad.State...
34254a6dfee52d1f1b6c0fdd4ff751d7e817dff53a0fee876742e634aed3ad13
facebookarchive/pfff
foo.ml
open Pervasives let constant = 1 let func x y = x + y let list1_call_qualified = List.map (fun x -> x) [1;2] open List let list2_call_unqualified = map (fun x -> x) [3;4] let global = ref 0 let hglobal = Hashtbl.create 101 let use_global () = incr global let use_hglobal () = Hashtbl.add hglobal 1 true let...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/tests/ml/cmt/foo.ml
ocaml
open Pervasives let constant = 1 let func x y = x + y let list1_call_qualified = List.map (fun x -> x) [1;2] open List let list2_call_unqualified = map (fun x -> x) [3;4] let global = ref 0 let hglobal = Hashtbl.create 101 let use_global () = incr global let use_hglobal () = Hashtbl.add hglobal 1 true let...
f8bca2aa8792c1efa88dab1d73d2e92d8d6acfc9b0e5fb5314649e664ab5d51f
pietervdvn/ALGT
XML.hs
module Utils.XML where import Data.List (intercalate) type Tag = String type XML = String data Attr = BA String Bool | SA String String xmlHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n" instance Show Attr where show (SA n s) = n++"="++show s show (BA n b) = show (SA n $ if b then "true" else...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/Utils/XML.hs
haskell
module Utils.XML where import Data.List (intercalate) type Tag = String type XML = String data Attr = BA String Bool | SA String String xmlHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n" instance Show Attr where show (SA n s) = n++"="++show s show (BA n b) = show (SA n $ if b then "true" else...
7a34ec981e8d18fabe306377a88b94e7596e1ddb5bbb2dc6a0f7a6cb2e67bc41
helium/blockchain-core
blockchain_txn_validator_heartbeat_v1.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Transaction Validator Heartbeat == %% @end %%%------------------------------------------------------------------- -module(blockchain_txn_validator_heartbeat_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -incl...
null
https://raw.githubusercontent.com/helium/blockchain-core/b6aca665dfa1cf5bdf81bf4c410275a463b0cc0c/src/transactions/v1/blockchain_txn_validator_heartbeat_v1.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Transaction Validator Heartbeat == @end ------------------------------------------------------------------- make sure that this validator exists and is staked, and that the transaction height is if chain var set, check for too o...
-module(blockchain_txn_validator_heartbeat_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain_utils.hrl"). -include("blockchain_txn_fees.hrl"). -include("blockchain_vars.hrl"). -include_lib("helium_proto/include/blockchain_txn_validator_heartbeat_v1_pb.hr...
a475a9db0aa4b3d541e4282c54fdf8cf9bf55370a4c62e151407e71f2ef97056
ghcjs/ghcjs-boot
Ptr.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , MagicHash , GeneralizedNewtypeDeriving , AutoDeriveTypeable , StandaloneDeriving # AutoDeriveTypeable, StandaloneDeriving #-} ----------------------------------------------------------------------------- -- | -- Module : Fo...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/Foreign/Ptr.hs
haskell
--------------------------------------------------------------------------- | Module : Foreign.Ptr License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable This module provides typed pointers to foreign data. It is part imported via the "Foreign"...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , MagicHash , GeneralizedNewtypeDeriving , AutoDeriveTypeable , StandaloneDeriving # AutoDeriveTypeable, StandaloneDeriving #-} Copyright : ( c ) The FFI task force 2001 Maintainer : of the Foreign Function Interfac...
b86680ac5c1529b11de835f7e49ae38223b2acb0184b8b21abbd8bf9630d9a33
sternenseemann/spacecookie
EntryPoint.hs
module Main where import Test.Tasty -- library tests import Test.Gophermap -- server executable tests import Test.FileTypeDetection import Test.Integration main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "tests" [ gophermapTests , fileTypeDetectionTests , integrationTests ]
null
https://raw.githubusercontent.com/sternenseemann/spacecookie/c6fb7ad565b59e6dd95caea091075ba44bc16109/test/EntryPoint.hs
haskell
library tests server executable tests
module Main where import Test.Tasty import Test.Gophermap import Test.FileTypeDetection import Test.Integration main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "tests" [ gophermapTests , fileTypeDetectionTests , integrationTests ]
a81a299b5fcdeb4997248f2e4f85b5099049ab1c3bbad1214a38aa1837440b5d
input-output-hk/offchain-metadata-tools
token-metadata-creator.hs
# LANGUAGE ApplicativeDo # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Ty...
null
https://raw.githubusercontent.com/input-output-hk/offchain-metadata-tools/794f08cedbf555e9d207bccc45c08abbcf98add9/token-metadata-creator/app/token-metadata-creator.hs
haskell
# LANGUAGE TypeSynonymInstances # other settings.
# LANGUAGE ApplicativeDo # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # import Cardano...
92cb9e4567acc701c8ac68373f43c55fc5b97d03e2ce54a3ac7557cb10917b53
parapluu/Concuerror
bad_attribute_4.erl
-module(bad_attribute_4). -export([test/0]). -concuerror_options_forced([keep_going, keep_going]). test() -> ok.
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests-real/suites/options/src/bad_attribute_4.erl
erlang
-module(bad_attribute_4). -export([test/0]). -concuerror_options_forced([keep_going, keep_going]). test() -> ok.
4d47bbfc93840f57351f515d3dcb21a65085eb5d9da34a7de072fc0a49f6e370
arclanguage/Clamp
coerce.lisp
;;;; This is an experimental implementation of customizable coercion. (in-package :experimental) (use-syntax :clamp) (defgeneric coerce (obj to) (:documentation "Coerces OBJ to type TO.")) (cl:defmethod coerce (obj to) "Default to cl:coerce." (cl:coerce obj to)) (defmacro defcoerce (from to args &body body) ...
null
https://raw.githubusercontent.com/arclanguage/Clamp/9f165b057a109564cd0e836cf611d1e81e43cb12/experimental/coerce.lisp
lisp
This is an experimental implementation of customizable coercion.
(in-package :experimental) (use-syntax :clamp) (defgeneric coerce (obj to) (:documentation "Coerces OBJ to type TO.")) (cl:defmethod coerce (obj to) "Default to cl:coerce." (cl:coerce obj to)) (defmacro defcoerce (from to args &body body) "Defines a coercer from type FROM to type TO. ARGS is a list of ar...
d98e15b6a1a5463ac596f7e63956df91445a97ddd6234babe00206c8467e4fd0
qiao/sicp-solutions
1.28.scm
(define (expmod base exp m) (define (nontrivial-test x n) (if (and (not (or (= x 1) (= x (- n 1)))) (= (remainder (square x) n) 1)) 0 x)) (cond ((= exp 0) 1) ((even? exp) (remainder (square (nontrivial-test (exp...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter1/1.28.scm
scheme
10 is the number of test cases
(define (expmod base exp m) (define (nontrivial-test x n) (if (and (not (or (= x 1) (= x (- n 1)))) (= (remainder (square x) n) 1)) 0 x)) (cond ((= exp 0) 1) ((even? exp) (remainder (square (nontrivial-test (exp...
6888856ee4273149ca649bc4b58d878b6b941c8d23aebae12962dd126102ca2d
nh2/haskell-cpu-instruction-counter
Main.hs
module Main where import System.CPUInstructionCounter main :: IO () main = do putStrLn $ "This test needs to run as root, or with CAP_SYS_ADMIN," ++ " or with /proc/sys/kernel/perf_event_paranoid <= 2," ++ " otherwise performance counters may not be available." ((), instrs) <- withInstructi...
null
https://raw.githubusercontent.com/nh2/haskell-cpu-instruction-counter/077539f25684ff9bf583204ccae5a1d77d617d1b/test/Main.hs
haskell
Example regression test
module Main where import System.CPUInstructionCounter main :: IO () main = do putStrLn $ "This test needs to run as root, or with CAP_SYS_ADMIN," ++ " or with /proc/sys/kernel/perf_event_paranoid <= 2," ++ " otherwise performance counters may not be available." ((), instrs) <- withInstructi...
72e346302579602097b44ab6e60bd80fc322999f61474a21139b1a2f494eae4f
donaldsonjw/bigloo
intext.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Unsafe / intext.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Tue Jan 18 08:11:58 1994 ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/runtime/Unsafe/intext.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The serialization process does not make hypothesis on word's */ * safe. ...
* serrano / prgm / project / bigloo / runtime / Unsafe / intext.scm * / * Author : * / * Creation : Tue Jan 18 08:11:58 1994 * / * Last change : We d Dec 16 21:36:23 2015 ( serrano ) * / * size . Since 2.8b , the serializati...
cbb77e6e127924fba25fc3f381f7714dc28d4f65926b7da57cd53d99d42302d1
polysemy-research/polysemy-zoo
MTL.hs
# LANGUAGE AllowAmbiguousTypes # module Polysemy.Final.MTL ( module Polysemy.Final , errorToFinal , readerToFinal , stateToEmbed , writerToFinal ) where import Control.Monad.Error.Class hiding (Error) import Control.Monad.Reader.Class import Control.Monad.State.Class import Control.Monad.Writer.Class ...
null
https://raw.githubusercontent.com/polysemy-research/polysemy-zoo/eb0ce40e4d3b9757ede851a3450c05cc42949b49/src/Polysemy/Final/MTL.hs
haskell
--------------------------------------------------------------------------- /Beware/: Effects that aren't interpreted in terms of the final monad will have local state semantics in regards to 'Error' effects interpreted this way. See 'Final'. -------------------------------------------------------------------------...
# LANGUAGE AllowAmbiguousTypes # module Polysemy.Final.MTL ( module Polysemy.Final , errorToFinal , readerToFinal , stateToEmbed , writerToFinal ) where import Control.Monad.Error.Class hiding (Error) import Control.Monad.Reader.Class import Control.Monad.State.Class import Control.Monad.Writer.Class ...
10627bfe9c600e3a9d772abf49f4faf82860aa62383360812f808e350f3e7b28
dcuddeback/clj-pail
partitioner.clj
(ns clj-pail.partitioner "Utilties for defining vertically partitioned Pail structures.") # # Protocol (defprotocol VerticalPartitioner "A protocol for vertically partitioning a PailStructure. Partitioners can be composed to build complex vertical partitioning schemes out of individual partitioners." (make...
null
https://raw.githubusercontent.com/dcuddeback/clj-pail/94cda578d6dec4210037f9a2bfa8f274333e27cb/src/main/clojure/clj_pail/partitioner.clj
clojure
return remaining directories")) ## Testing Hooks necessary data conversions between the protocol functions and what is needed for public consumption. to the partitions, which means that `dirs` won't necessarily be empty.
(ns clj-pail.partitioner "Utilties for defining vertically partitioned Pail structures.") # # Protocol (defprotocol VerticalPartitioner "A protocol for vertically partitioning a PailStructure. Partitioners can be composed to build complex vertical partitioning schemes out of individual partitioners." (make...
88588cd10aca5df916e17c5c083c0cbad22694316f6fb0575f1b64444f0d7b15
coding-robots/iwl
utils.rkt
#lang racket (require mzlib/defmacro) (define-macro (aif test then else) `(let ([it ,test]) (if it ,then ,else))) (provide (all-defined-out))
null
https://raw.githubusercontent.com/coding-robots/iwl/bf13ab3f75aff0fe63c07555a41574e919bb11db/utils.rkt
racket
#lang racket (require mzlib/defmacro) (define-macro (aif test then else) `(let ([it ,test]) (if it ,then ,else))) (provide (all-defined-out))
d530d5ca1336fcc1b47f4810b2d3890d07f64fa31b2472f90c8ace55f0edc242
askvortsov1/hardcaml-mips
cpu.mli
open Hardcaml module I = Hardcaml_arty.User_application.I module O : sig type 'a t = { uart_tx : 'a Hardcaml_arty.Uart.Byte_with_valid.t; ethernet : 'a Hardcaml_arty.User_application.Ethernet.O.t; writeback_data : 'a; writeback_pc : 'a; } [@@deriving sexp_of, hardcaml] end val circuit_impl : Pr...
null
https://raw.githubusercontent.com/askvortsov1/hardcaml-mips/a02b93327780093ddaf01ef6681dd38e77899ed6/lib/cpu.mli
ocaml
open Hardcaml module I = Hardcaml_arty.User_application.I module O : sig type 'a t = { uart_tx : 'a Hardcaml_arty.Uart.Byte_with_valid.t; ethernet : 'a Hardcaml_arty.User_application.Ethernet.O.t; writeback_data : 'a; writeback_pc : 'a; } [@@deriving sexp_of, hardcaml] end val circuit_impl : Pr...
94badbbe8ef41b6761860d6eeb4d95f55718aac1e86690f49c5f789b916679e5
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
GetTreasuryTransactionEntriesId.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation getTreasuryTransactionEntriesId mo...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/GetTreasuryTransactionEntriesId.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation getTreasuryTransactionEntriesId | > GET /v1/treasury/transaction_entries/{id} | Contains all available parameters of this operation (query and path parameters) | Monadic comput...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.GetTreasuryTransactionEntriesId where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualif...
bcb79686af1d97cc75159f148c99babeec4d7ab203c7384acca4d3696cabceba
ocaml/oasis-db
Rating.ml
* Web services to display / register ratings per package @author @author Sylvain Le Gall *) open Lwt open XHTML.M open ODBGettext open Eliom_parameters open Eliom_predefmod.Xhtml open Common module S = Sqlexpr let () = S.register "rating" 1 (fun db -> S.execute db ...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/web/Rating.ml
ocaml
TODO: merge this with mark_opt
* Web services to display / register ratings per package @author @author Sylvain Le Gall *) open Lwt open XHTML.M open ODBGettext open Eliom_parameters open Eliom_predefmod.Xhtml open Common module S = Sqlexpr let () = S.register "rating" 1 (fun db -> S.execute db ...
725d2c2c0f133fbdcfa88b76a4c33071316be18e97949f76595bf77fa90c0f83
peerdrive/peerdrive
peerdrive_ifc_netstore.erl
PeerDrive Copyright ( C ) 2011 < jan DOT kloetzke AT freenet DOT de > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any la...
null
https://raw.githubusercontent.com/peerdrive/peerdrive/94389e2536cc9b1a0c168ec56ba3912910eb0c35/server/apps/peerdrive/src/peerdrive_ifc_netstore.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
PeerDrive Copyright ( C ) 2011 < jan DOT kloetzke AT freenet DOT de > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License -module(peerdrive_ifc_netstore)....
94f7b6f081ad80cc6d9cc4876e0f2973551056276088b57c893a2034d73b8c1d
janestreet/merlin-jst
parser_recover.mli
open Parser_raw module Default : sig val default_loc : Location.t ref end val default_value : 'a MenhirInterpreter.symbol -> 'a type action = | Abort | R of int | S : 'a MenhirInterpreter.symbol -> action | Sub of action list type decision = | Nothing | One of action list | Select of (int -> action ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/0152b4e8ef1b7cd0ddee2873aa1860a971585391/src/ocaml/preprocess/parser_recover.mli
ocaml
open Parser_raw module Default : sig val default_loc : Location.t ref end val default_value : 'a MenhirInterpreter.symbol -> 'a type action = | Abort | R of int | S : 'a MenhirInterpreter.symbol -> action | Sub of action list type decision = | Nothing | One of action list | Select of (int -> action ...
e6f18967828c3e5f6c8ebf409514fd81a9d3a3cdc27da4521e04f437aa8687f4
sibylfs/sibylfs_src
list_array.mli
(****************************************************************************) Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) (* *) (* Permission to use, copy, modify, and/or d...
null
https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_spec/src/list_array.mli
ocaml
************************************************************************** Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright no...
Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNE...
a84e1afc2bec67b8882cb44c4060939a2555f874d3d71807b8e812b2e52c89d7
crosswire/xiphos
postlex.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ...
null
https://raw.githubusercontent.com/crosswire/xiphos/a9283769ef4d0d47f1d09a3ca4138610bb96a46c/win32/festival/lib/postlex.scm
scheme
;; ; ; ; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this software and its documentation without restriction, including ;; without l...
Postlexical rules (define (PostLex utt) "(PostLex utt) Apply post lexical rules to segment stream. These may be almost arbitrary rules as specified by the particular voice, through the postlex_hooks variable. A number of standard post lexical rule sets are provided including reduction, posessives etc. These rule...
e5441c1b240e0cd78cf4412eb723f3064ff74736f2e8404c9fcb04bcf19cade8
mirage/xentropyd
conback.ml
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * Copyright ( c ) 2012 - 14 Citrix Systems Inc * * 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 appea...
null
https://raw.githubusercontent.com/mirage/xentropyd/4705bb2f6c10ae84f842a5c39cd8a513ea8c761a/console/conback.ml
ocaml
* Event channels handlers. * represents an event which 'fired' when the program started * [next channel event] blocks until the system receives an event newer than [event] on channel [channel]. If an event is received while we aren't looking then this will be remembered and the next call to [after] ...
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * Copyright ( c ) 2012 - 14 Citrix Systems Inc * * 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 appea...
a2645705e37d2c16e5aa48e96b673b6a4bf6369f5c3d6bae9b38ae9995dcef51
Helium4Haskell/helium
NoTypeDefInClass.hs
class NoTypeDefInClass a where functionWithoutType a = a
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClassesStatic/NoTypeDefInClass.hs
haskell
class NoTypeDefInClass a where functionWithoutType a = a
ab4575a1a5a7aea1f2b62dd7ffbaadd59cfbbd29a683da2fb587947aef449952
coq/coq
pretype_errors.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/cc78d97f52f85dc6321acc27daa09fb1b62c80fa/pretyping/pretype_errors.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
c4888f960425350c0c3e93cf178418f216b2680227bce6b4a4a40f63a622972c
reborg/fluorine
data.clj
(ns net.reborg.fluorine.data (:require [net.reborg.fluorine.config :refer [fluorine-root]] [clojure.tools.logging :as log] [clojure.java.io :as io] [clojure.edn :as edn] [cheshire.core :as json] )) (defn- fname+ext [file] (when file (let [fname (.getPath file) dot (.lastIndexO...
null
https://raw.githubusercontent.com/reborg/fluorine/58d533646adce8537ca5c57692a0a998f06e1d25/src/net/reborg/fluorine/data.clj
clojure
(ns net.reborg.fluorine.data (:require [net.reborg.fluorine.config :refer [fluorine-root]] [clojure.tools.logging :as log] [clojure.java.io :as io] [clojure.edn :as edn] [cheshire.core :as json] )) (defn- fname+ext [file] (when file (let [fname (.getPath file) dot (.lastIndexO...
81772a36120940b024ee1ccc0f48c1fd4e4fbe2119e0e5d312776659778e22ed
BitGameEN/bitgamex
emysql_conv.erl
@doc conversion routines between Emysql Data types and common formats %%% @end @private -module(emysql_conv). -include("emysql.hrl"). %% Conversion routines -export([ as_dict/1, as_json/1, as_proplist/1, as_record/3, as_record/4 ]). %% @see emysql:as_dict/1 as_dict(Re...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/emysql/src/emysql_conv.erl
erlang
@end Conversion routines @see emysql:as_dict/1 @see emysql:as_proplist/1 @see emysql:as_record/1
@doc conversion routines between Emysql Data types and common formats @private -module(emysql_conv). -include("emysql.hrl"). -export([ as_dict/1, as_json/1, as_proplist/1, as_record/3, as_record/4 ]). as_dict(Res = #result_packet{}) -> dict:from_list(lists:flatten...
7c9ac6989b427519b3160895337049a1bd3cbe2a387087744da7e489eebc6d6d
c-cube/gen
genClone.mli
(* This file is free software, part of gen. See file "license" for more details. *) * { 1 Clonable Generators } Utils to save the internal state of a generator , and restart from this state . This will and should not work on { i any } iterator , but for some of them ( e.g. reading from a file , see...
null
https://raw.githubusercontent.com/c-cube/gen/aad7246045a86a9a5a4684359da89d27cf4069b3/src/genClone.mli
ocaml
This file is free software, part of gen. See file "license" for more details. * Generator of values tied to this copy * Clone the internal state * A generator that can be cloned as many times as required. * Add value at front position c consumed, but not c' * [read filename f] opens [filename] and calls [f g], ...
* { 1 Clonable Generators } Utils to save the internal state of a generator , and restart from this state . This will and should not work on { i any } iterator , but for some of them ( e.g. reading from a file , see { ! IO } ) it makes a lot of sense . @since 0.2.3 Utils to save the int...
7cb0a2dd15a34d847061387caf6d78c59dcc9e14ed151ecb8028d198d4db8ad3
jakemcc/sicp-study
1.34.clj
Exercise 1.34 ; ; What happens if we have the following ; definition of the procedure f and then ; do (f f). ; (defn f [g] (g 2)) (f f) ; (f f) ( f 2 ) ( 2 2 ) < - results in an error since 2 is not a function
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section1.3/1.34.clj
clojure
What happens if we have the following definition of the procedure f and then do (f f). (f f)
Exercise 1.34 (defn f [g] (g 2)) (f f) ( f 2 ) ( 2 2 ) < - results in an error since 2 is not a function
f7c013ddb1b97e40bf59db51927c2e7ce3455906aac26d122693fb4201f054e8
bmeurer/ocaml-experimental
ppparse.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/compiler/ppparse.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
e69679f4a1719a51d38ea5d41947e6d7b07090482a2defb473b6d57165b81cb1
hansroland/reflex-dom-inbits
dom04.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecursiveDo # import Reflex.Dom import qualified Data.Text as T import qualified Data.Map as Map import Data.Monoid ((<>)) main :: IO () main = mainWidget $ do rec dynBool <- toggle False evClick let dynAttrs = attrs <$> dynBool elDynAttr...
null
https://raw.githubusercontent.com/hansroland/reflex-dom-inbits/3bf4ccf43aa45c5df7d3ce42dae38955f657ca33/src/dom04.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecursiveDo # import Reflex.Dom import qualified Data.Text as T import qualified Data.Map as Map import Data.Monoid ((<>)) main :: IO () main = mainWidget $ do rec dynBool <- toggle False evClick let dynAttrs = attrs <$> dynBool elDynAttr "h1" dynAttrs $ text "Changing col...
0d912162928943c7f9b91a5a19565ed76d3c9fe47d375f6a5a1175930906666d
ghc/packages-Cabal
setup.test.hs
import Test.Cabal.Prelude -- Check that preprocessors that generate extra C sources are handled main = setupAndCabalTest $ setup_build ["--enable-tests", "--enable-benchmarks"]
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/PreProcessExtraSources/setup.test.hs
haskell
Check that preprocessors that generate extra C sources are handled
import Test.Cabal.Prelude main = setupAndCabalTest $ setup_build ["--enable-tests", "--enable-benchmarks"]
78cf2b224797dc3d0002b84c91f8fad36a85993f1a08684395b094cabc9ddb1c
rmloveland/scheme48-0.53
record.scm
Copyright ( c ) 1994 by . See file COPYING . ; (make-record 'type-id) ; (record-ref <record> 'type-id 'field-id) ; (record-set! <record> <value> 'type-id 'field-id) (define-polymorphic-scheme-primop make-record allocate (lambda (call) (get-record-type (literal-value (node-ref call 0))))) (define-polymo...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/ps-compiler/prescheme/unused/record.scm
scheme
(make-record 'type-id) (record-ref <record> 'type-id 'field-id) (record-set! <record> <value> 'type-id 'field-id)
Copyright ( c ) 1994 by . See file COPYING . (define-polymorphic-scheme-primop make-record allocate (lambda (call) (get-record-type (literal-value (node-ref call 0))))) (define-polymorphic-scheme-primop record-ref read (lambda (call) (record-field-type (get-record-type-field (get-record-type...
19c746f9e020d43dfdb65c014b91554a25bde677cc17ef9dd7baa0d91e3e4410
TrustInSoft/tis-kernel
cil_const.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/ast_queries/cil_const.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 Copyright ( C ) 2001 - 2003 < > ...
e6e688751d4d5396ddbd0d2b5c97af6bd66733326254f900f1ac0eca13c39d5f
kyleburton/clj-etl-utils
schema.clj
(ns clj-etl-utils.json.schema (:use [clj-etl-utils.lang-utils :only [raise]])) (defn validate [schema json-object] {:ok true}) (defn validate! [schema json-object] (let [res (validate schema json-object)] (if-not (:ok res) (raise "Validation Errors: %s" res)) res)) (defn make-validator! [schem...
null
https://raw.githubusercontent.com/kyleburton/clj-etl-utils/bcc927b3e05464ecac15cf33540c8a99cdd431a8/src/clj_etl_utils/json/schema.clj
clojure
(ns clj-etl-utils.json.schema (:use [clj-etl-utils.lang-utils :only [raise]])) (defn validate [schema json-object] {:ok true}) (defn validate! [schema json-object] (let [res (validate schema json-object)] (if-not (:ok res) (raise "Validation Errors: %s" res)) res)) (defn make-validator! [schem...
ec41c747033521ad341e1448fcc6e921407ed25aebcd3ac82a6e9b504b50fe50
coord-e/mlml
lexer.ml
module Fmt = Tree.Format_string type token = | IntLiteral of int | BoolLiteral of bool | StringLiteral of string | FormatStringLiteral of Fmt.kind list | CharLiteral of char | CapitalIdent of string | LowerIdent of string | InfixSymbol of string | Plus | Minus | Star | Slash | Mod | DoubleA...
null
https://raw.githubusercontent.com/coord-e/mlml/ec34b1fe8766901fab6842b790267f32b77a2861/mlml/lexer/lexer.ml
ocaml
TODO: Implement ASCII escape sequences TODO: Escape % in `read_format_string`
module Fmt = Tree.Format_string type token = | IntLiteral of int | BoolLiteral of bool | StringLiteral of string | FormatStringLiteral of Fmt.kind list | CharLiteral of char | CapitalIdent of string | LowerIdent of string | InfixSymbol of string | Plus | Minus | Star | Slash | Mod | DoubleA...
55ee025011dbb3512d7663fd48a7028bfd307ec7aff180aa8bdb1de8dcdb6710
RefactoringTools/HaRe
A5AST.hs
module A5 where import B5 import C5 import D5 (myFringe) main :: (Tree Int) -> Int main t = (sumSquares (D5.myFringe t)) + (sumSquares (B5.myFringe t))
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/moveDefBtwMods/A5AST.hs
haskell
module A5 where import B5 import C5 import D5 (myFringe) main :: (Tree Int) -> Int main t = (sumSquares (D5.myFringe t)) + (sumSquares (B5.myFringe t))
f19ae55053d1fa11d39977258e78bf4c26f1106371e05e7de6bf93a920d78784
AbstractMachinesLab/caramel
interned_intf.ml
module type S = sig type t val hash : t -> int val equal : t -> t -> bool val compare : t -> t -> Ordering.t val to_dyn : t -> Dyn.t val to_string : t -> string val make : string -> t (** Like [make] except it returns [None] if the string hasn't been registered with [make] previously. *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/interned_intf.ml
ocaml
* Like [make] except it returns [None] if the string hasn't been registered with [make] previously. * Return the list of all existing [t]s.
module type S = sig type t val hash : t -> int val equal : t -> t -> bool val compare : t -> t -> Ordering.t val to_dyn : t -> Dyn.t val to_string : t -> string val make : string -> t val get : string -> t option val all : unit -> t list module Set : sig include Set.S with type elt = t ...
230d600d27e9e07fadb54dcfafdd1f5e5300501ba3a18e51869951c34158d9cb
ocsigen/obrowser
camlinternalMod.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/camlinternalMod.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2004 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : camlinternalMod.ml 8768 2008 ...
3e5124a8f1a8a5f46259aa4775f6a3ee7900388b8aafe9b4f8b8e7ce923513b1
stuartsierra/lazytest
numbers.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/stuartsierra/lazytest/3b0f419ce3d6f259d2ab3cfde475fa491a4db23e/modules/clojure-language-tests/test/clojure/test_clojure/numbers.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . Author : scgilardi ( gmail ) Created 30 October 2008 (ns clojure.test-clojure.numbers (:use lazytest.deftest)) (deftest Coerced-BigDecimal (let [v (bigdec 3)] (are [x] (true? x) (instance? BigDecimal v) (number? v) (decimal? v) ...
d20a5295e99f6cd0a1f708e0af3ddcdd3cbf3b82c23e1113ae3438b99862f9ef
stevebleazard/ocaml-jsonxt
pretty.ml
module type Intf = sig val pretty_print : Format.formatter -> 'a Json_internal.constrained -> unit val pretty_print_to_string : 'a Json_internal.constrained -> string val pretty_print_to_channel : out_channel -> 'a Json_internal.constrained -> unit end module Make(Compliance : Compliance.S) = struct let to_jso...
null
https://raw.githubusercontent.com/stevebleazard/ocaml-jsonxt/fe982b6087dd76ca003d8fbc19ae9a519f54b828/lib/pretty.ml
ocaml
module type Intf = sig val pretty_print : Format.formatter -> 'a Json_internal.constrained -> unit val pretty_print_to_string : 'a Json_internal.constrained -> string val pretty_print_to_channel : out_channel -> 'a Json_internal.constrained -> unit end module Make(Compliance : Compliance.S) = struct let to_jso...
b1914cf9a071d62c4079ab9ac2fa3d79cd06cc0a582477be6c1b0102e56241b8
2600hz-archive/whistle
cecho.erl
%%============================================================================== Copyright 2010 Erlang Solutions Ltd. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% ...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/cecho-0.0.3/src/cecho.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(cecho). -author(''). -behaviour(application). -include("include/cecho.hrl"). -include("include/cecho_commands.hrl"). -export([...
49eefb1c2fc10c7e9767f9a6d1452994e0f92c25d48e4ce53d7904ffb2bfbc3d
SnootyMonkey/Falkland-CMS
collection_create.clj
(ns fcms.integration.rest-api.collection.collection-create (:require [midje.sweet :refer :all] [fcms.lib.resources :refer :all] [fcms.resources.collection :refer :all] [fcms.lib.body :refer (verify-collection-links)] [fcms.lib.rest-api-mock :refer :all] [fcm...
null
https://raw.githubusercontent.com/SnootyMonkey/Falkland-CMS/bd653c23dd458609b652dfac3f0f2f11526f00d1/test/fcms/integration/rest_api/collection/collection_create.clj
clojure
Creating collections with the REST API The system should store newly created valid collections and handle the following scenarios: POST all good - no slug all good - generated slug is different than the provided name all good - generated slug is already used all good - with slug all good - unicode in the body ...
(ns fcms.integration.rest-api.collection.collection-create (:require [midje.sweet :refer :all] [fcms.lib.resources :refer :all] [fcms.resources.collection :refer :all] [fcms.lib.body :refer (verify-collection-links)] [fcms.lib.rest-api-mock :refer :all] [fcm...
88c3070709120b5a8c8a4e87ded248ce6fbd9fccf895b6a7757c7ae527235c1a
drym-org/qi
switch.rkt
#lang racket/base (provide tests) (require qi rackunit rackunit/text-ui (only-in math sqr) (only-in adjutor values->list) racket/function "private/util.rkt") (define tests (test-suite "switch tests" (test-suite "Edge/base cases" (check-equal? (val...
null
https://raw.githubusercontent.com/drym-org/qi/a8bd930eda09e07b8f44fd2e7100b7be96d446ea/qi-test/tests/switch.rkt
racket
#lang racket/base (provide tests) (require qi rackunit rackunit/text-ui (only-in math sqr) (only-in adjutor values->list) racket/function "private/util.rkt") (define tests (test-suite "switch tests" (test-suite "Edge/base cases" (check-equal? (val...
b1b44a8fa26ac09660a7fc5b74cb6333cb1bf372c263cb779dac6d7c5c1607f0
leo-project/leofs
leo_gateway_http_req_handler.erl
%%====================================================================== %% Leo Gateway %% 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 License . You may obtain %% a...
null
https://raw.githubusercontent.com/leo-project/leofs/4ff701e0f4a4cf39a968dbe078b9c2412a22f995/apps/leo_gateway/src/leo_gateway_http_req_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 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 ANY Request Handler ...
02e737231caf1368188dc831716c92dd0d3a7a81ffd04c027dafa4c8047308f3
ocaml-community/obus
uPower_wakeups.ml
* uPower_wakeups.ml * ----------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * uPower_wakeups.ml * ----------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/upower/uPower_wakeups.ml
ocaml
* uPower_wakeups.ml * ----------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * uPower_wakeups.ml * ----------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ...
a3fb76f2a443221881fb338fdb9b29906bd11f51828050ff1b1af97e79a2f392
ekmett/lens
Deque.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE PatternGuards # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # #include "lens-common.h" ----------------------------------------------------------------------------- -- | Module : Control . Lens . Internal . Copyright : ( C ...
null
https://raw.githubusercontent.com/ekmett/lens/3715cb015d7cd5da2a113b7174235d5364f02cd3/src/Control/Lens/Internal/Deque.hs
haskell
# LANGUAGE BangPatterns # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable This module is designed to be imported qualified. --------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE PatternGuards # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # #include "lens-common.h" Module : Control . Lens . Internal . Copyright : ( C ) 2012 - 16 Maintainer : < > module Control.Lens.Internal.Deque ( Deque(..) , size , fromList ...
0d7fb2e00844e304e692b5715c7215e9d68609397df4b6cfd0dae9d4bce32b2b
FlowForwarding/LINC-Switch
linc_us4_oe_meter_tests.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %%...
null
https://raw.githubusercontent.com/FlowForwarding/LINC-Switch/9c28e7c8677c03440a62023292dd700fef0c3420/apps/linc_us4_oe/test/linc_us4_oe_meter_tests.erl
erlang
------------------------------------------------------------------------------ you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(linc_us4_oe_meter_tests). -include_lib("eunit/include/eunit.hrl"). ...
66ccfcec46824738d2da838fea24d03ff71fc5c37419dafd75bfc52411f8267d
coq/coq
coqpp_ast.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/a92bb7dcb56e990bc8b5814b1d12ef4d5ace62ac/coqpp/coqpp_ast.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
a88030e9faf89892738622003f5813ce2c24c57c388ef8c1a87b53c306e222a4
ghcjs/jsaddle-dom
SQLTransaction.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SQLTransaction (executeSql, SQLTransaction(..), gTypeSQLTransaction) where import Prelude ((.), (==), (>>=), return...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SQLTransaction.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SQLTransaction (executeSql, SQLTransaction(..), gTypeSQLTransaction) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read...
32ae4514ace556826f7d62932f75f94e90a3c35c9b902a3d6a92fba6e75be536
aws-beam/aws-erlang
aws_kinesis_video_webrtc_storage.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . -module(aws_kinesis_video_webrtc_storage). -export([join_storage_session/2, join_storage_session/3]). -include_lib("hackney/include/hackney_lib.hrl"). %%================================================================...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_kinesis_video_webrtc_storage.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! ==================================================================== API ==================================================================== as a video producing device for an input channel. If there’s no existing session for the channel, a new streaming session channel...
See -beam/aws-codegen for more details . -module(aws_kinesis_video_webrtc_storage). -export([join_storage_session/2, join_storage_session/3]). -include_lib("hackney/include/hackney_lib.hrl"). @doc Join the ongoing one way - video and/or multi - way audio WebRTC session needs to be created , and the...
02b0f3fa77dba97594a69f09cafe3d18fe061e1ca9adf662683b4d61cbb94587
montelibero-org/veche
TestImport.hs
# LANGUAGE BlockArguments # # LANGUAGE DisambiguateRecordFields # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module TestImport ( module TestImport , module X ) where import ClassyPrelude as X hiding (Handler, decodeUtf8,...
null
https://raw.githubusercontent.com/montelibero-org/veche/a0a97cf465df7c41bcafbfda0574323a4dab5808/veche-web/test/TestImport.hs
haskell
# LANGUAGE OverloadedStrings # Wiping the database This function will truncate all of the tables in your database. 'withApp' calls it before each test, creating a clean environment for each spec to run in. In order to wipe the database, we need to use a connection which has foreign key checks disabled. Foreign k...
# LANGUAGE BlockArguments # # LANGUAGE DisambiguateRecordFields # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeApplications # module TestImport ( module TestImport , module X ) where import ClassyPrelude as X hiding (Handler, decodeUtf8, delete, deleteBy, poll) import Da...
1394dbc053a6ab241b68f4ef13a299c43157fa7d9eea9948a3b387e9c4b47578
mirage/uspf
map.ml
type 'a tag = { name : string; pp : 'a Fmt.t } module Info = struct type 'a t = 'a tag = { name : string; pp : 'a Fmt.t } end include Hmap.Make (Info) let pp_local ppf = function | `String x -> Fmt.(quote string) ppf x | `Dot_string l -> Fmt.(list ~sep:(const string ".") string) ppf l let pp_path ppf { Colomb...
null
https://raw.githubusercontent.com/mirage/uspf/d923cfae1e28a9d92e67b2bceeb24f2adf9086b8/lib/map.ml
ocaml
type 'a tag = { name : string; pp : 'a Fmt.t } module Info = struct type 'a t = 'a tag = { name : string; pp : 'a Fmt.t } end include Hmap.Make (Info) let pp_local ppf = function | `String x -> Fmt.(quote string) ppf x | `Dot_string l -> Fmt.(list ~sep:(const string ".") string) ppf l let pp_path ppf { Colomb...
3847caf8bc565644b586ad67928c62fcbe1131d41163a16d1688d3d0cfc97875
justinmeiners/exercises
3_21.scm
(define (head-ptr q) (car q)) (define (tail-ptr q) (cdr q)) (define (set-head-ptr! q x) (set-car! q x)) (define (set-tail-ptr! q x) (set-cdr! q x)) (define (empty-q? q) (null? (head-ptr q))) (define (make-q) (cons '() '())) (define (insert-q! q x) (let ((new-pair (cons x '()))) (cond ((empty-q? q) ...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/3/3_21.scm
scheme
[->, ->] [a, b, c] So the print function interprets it as a list in the car, and a tail in the cdr ((a b c) a b c)
(define (head-ptr q) (car q)) (define (tail-ptr q) (cdr q)) (define (set-head-ptr! q x) (set-car! q x)) (define (set-tail-ptr! q x) (set-cdr! q x)) (define (empty-q? q) (null? (head-ptr q))) (define (make-q) (cons '() '())) (define (insert-q! q x) (let ((new-pair (cons x '()))) (cond ((empty-q? q) ...
4ea9d40935233fde5293e37e7c2a14f11cc5267899cc33278e4e242be81af90e
fission-codes/fission
Remote.hs
module Fission.CLI.Parser.Remote ( parser , remote ) where import Options.Applicative import Fission.Prelude import Fission.Web.API.Remote as Remote parser :: Parser Remote parser = option remote $ mconcat [ internal , help "Which remote server" ---------- , lon...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/Parser/Remote.hs
haskell
-------- --------
module Fission.CLI.Parser.Remote ( parser , remote ) where import Options.Applicative import Fission.Prelude import Fission.Web.API.Remote as Remote parser :: Parser Remote parser = option remote $ mconcat [ internal , help "Which remote server" , long "remote" ...
c40001c9f6e25b8802cc8cccfba1ef62d0dfa92b2c9cbc868be33b8b6c8900a0
atgreen/lisp-openshift
compilation-interface.lisp
(in-package #:parenscript) (defparameter *js-target-version* 1.3) (defvar *parenscript-stream* nil) (defmacro ps (&body body) "Given Parenscript forms (an implicit progn), compiles those forms to a JavaScript string at macro-expansion time. Expands into a form which evaluates to a string." (let ((printed-forms (...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/parenscript-2.4/src/compilation-interface.lisp
lisp
(in-package #:parenscript) (defparameter *js-target-version* 1.3) (defvar *parenscript-stream* nil) (defmacro ps (&body body) "Given Parenscript forms (an implicit progn), compiles those forms to a JavaScript string at macro-expansion time. Expands into a form which evaluates to a string." (let ((printed-forms (...
8fcf1de0b18fdc6b2425d4b88dc015c73a544ef1e2b2a755cd37eb133d9050b0
jabber-at/ejabberd
ejabberd_cluster_mnesia.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_cluster_mnesia.erl Author : Purpose : Ejabberd clustering management via Created : 7 Oct 2015 by %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you c...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/ejabberd_cluster_mnesia.erl
erlang
---------------------------------------------------------------------- File : ejabberd_cluster_mnesia.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; wi...
Author : Purpose : Ejabberd clustering management via Created : 7 Oct 2015 by ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy...
e1822067d260446f602ced890fc1ffce996ef40a430a8d87bb040fa069cf3324
mbenke/zpf2013
Combinators.hs
module MyParsec2b.Combinators where import MyParsec2b.Prim import Data.Char(isSpace, isDigit) space :: Parser Char space = satisfy isSpace digit :: Parser Char digit = satisfy isDigit <?> "digit" many, many1 :: Parser a -> Parser [a] many p = many1 p <|> return [] many1 p = do { x <- p ; xs <- many p; return (x:xs)...
null
https://raw.githubusercontent.com/mbenke/zpf2013/85f32747e17f07a74e1c3cb064b1d6acaca3f2f0/Code/Parse1/MyParsec2b/Combinators.hs
haskell
module MyParsec2b.Combinators where import MyParsec2b.Prim import Data.Char(isSpace, isDigit) space :: Parser Char space = satisfy isSpace digit :: Parser Char digit = satisfy isDigit <?> "digit" many, many1 :: Parser a -> Parser [a] many p = many1 p <|> return [] many1 p = do { x <- p ; xs <- many p; return (x:xs)...
0f6f7f7be0614abcf3e0977ead48530fee38b99ef93bff8e8a589f68063f2572
MercuryTechnologies/ghc-specter
Runner.hs
module GHCSpecter.Control.Runner ( type Runner, stepControl, stepControlUpToEvent, ) where import Control.Concurrent (forkIO, threadDelay) import Control.Concurrent.STM ( TChan, TVar, atomically, readTVar, writeTChan, writeTVar, ) import Control.Lens ((.~), (^.)) import Control.Monad.Extra (loopM) i...
null
https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/d911e610e0ee0fb43497dad9e762fec2abbf9e08/daemon/src/GHCSpecter/Control/Runner.hs
haskell
TODO: remove this | A single primitive step for the inner loop. See Note [Control Loops]. | What the result means: Left _: continuation in the inner loop. Right (Left _): continuation that waits for a new event in the outer loop Right (Right _): final result as the business logic reaches its end. TODO: Use more ...
module GHCSpecter.Control.Runner ( type Runner, stepControl, stepControlUpToEvent, ) where import Control.Concurrent (forkIO, threadDelay) import Control.Concurrent.STM ( TChan, TVar, atomically, readTVar, writeTChan, writeTVar, ) import Control.Lens ((.~), (^.)) import Control.Monad.Extra (loopM) i...
13b9bcca6ea27800294f96459f3e00969b06d4034cb065028977d3b0e5236bc1
jdreaver/amy
Bidirectional.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # | Test implementation of Complete and Easy Bidirectional Typechecking for Higher - Rank Polymorphism ( Dunfield / Krishnaswami 2013 ) module Amy.TypeChecking.Bidirectional ( Checker , runChecker , inferBindi...
null
https://raw.githubusercontent.com/jdreaver/amy/a0c73f6c02e7d923f1d85c0de89f78dc204dae2f/misc/Bidirectional.hs
haskell
# LANGUAGE OverloadedStrings # Types Expr Context We store context assumptions in a Map for efficiency, but a lot of the typing judgements use the assumptions for scoping. We add this the current binding group or expression, and only fall back to the Map for globally known names? Diverging from the paper i...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # | Test implementation of Complete and Easy Bidirectional Typechecking for Higher - Rank Polymorphism ( Dunfield / Krishnaswami 2013 ) module Amy.TypeChecking.Bidirectional ( Checker , runChecker , inferBindingGroup , inferBinding , checkB...
3c2b52ac5b55f024f70905c7b028b3aea5138a540a3ab6a0da2113f32b51ce9a
hopbit/sonic-pi-snippets
random.sps
# key: rr # point_line: 0 # point_index: 6 # -- rrand(,)
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/syntax/random.sps
scheme
# key: rr # point_line: 0 # point_index: 6 # -- rrand(,)
8e2a9e560aef8cade622005f8805d51de46e4a26cbe29633f108a6e60ea8de33
racket/games
board-size.rkt
#lang racket (define current-board-size (make-parameter 4)) (provide current-board-size)
null
https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/pousse/board-size.rkt
racket
#lang racket (define current-board-size (make-parameter 4)) (provide current-board-size)
c6c4e0a8bcde4724198193ec6cbb930d0a89c42be95bd69a585735fcd94afab8
Atry/Control.Dsl
Empty.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} module Control.Dsl.Empty where import Control.Dsl.PolyCont import Data.Void import qualified Control.Applicative import Prelude hiding ( (>>) ...
null
https://raw.githubusercontent.com/Atry/Control.Dsl/f19da265c8ea537af95e448e6107fa503d5363c2/src/Control/Dsl/Empty.hs
haskell
# LANGUAGE GADTs # # OVERLAPS # | Return an empty @a@, similar to 'Control.Applicative.empty'. This 'empty' function aims to be used as the last statement of a @do@ block.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Control.Dsl.Empty where import Control.Dsl.PolyCont import Data.Void import qualified Control.Applicative import Prelude hiding ( (>>) ...
62900d41dade99c975d30571deb96a2128548ff3f187e30157c837e04648d31e
huangjs/cl
spam.lisp
(in-package :com.gigamonkeys.spam) (defvar *feature-database* (make-hash-table :test #'equal)) (defvar *total-spams* 0) (defvar *total-hams* 0) (defparameter *max-ham-score* .4) (defparameter *min-spam-score* .6) (defparameter *max-chars* (* 10 1024)) (defparameter *corpus* (make-array 1000 :adjustable t :fill-point...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/practicals-1.0.3/Chapter23/spam.lisp
lisp
Due to rounding errors in the multiplication and exponentiation we can't have since it's supposed to represent a probability. Test rig
(in-package :com.gigamonkeys.spam) (defvar *feature-database* (make-hash-table :test #'equal)) (defvar *total-spams* 0) (defvar *total-hams* 0) (defparameter *max-ham-score* .4) (defparameter *min-spam-score* .6) (defparameter *max-chars* (* 10 1024)) (defparameter *corpus* (make-array 1000 :adjustable t :fill-point...
60d4e36fef6777fd27e160065474e79d1e69b93f4f5be69d66e4adecad7cb77a
ghc/testsuite
tcfail050.hs
module ShouldFail where f x = B x
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail050.hs
haskell
module ShouldFail where f x = B x
1e943b72d6c840c11d1e57b77c9c579818be47733125c064197ff1dc85f0b1a4
dzaporozhets/clojure-web-application
user.clj
(ns sample.models.user (:require [clojure.java.jdbc :as sql] [sample.db :refer :all])) (defn create-user [user] (sql/insert! db :users user)) (defn get-user-by-email [email] (sql/query db ["SELECT * FROM users WHERE email = ?", email] {:result-set-fn first})) (defn get-use...
null
https://raw.githubusercontent.com/dzaporozhets/clojure-web-application/8d813fc95080a8ebc9532c0a4067f540f7f91553/src/sample/models/user.clj
clojure
(ns sample.models.user (:require [clojure.java.jdbc :as sql] [sample.db :refer :all])) (defn create-user [user] (sql/insert! db :users user)) (defn get-user-by-email [email] (sql/query db ["SELECT * FROM users WHERE email = ?", email] {:result-set-fn first})) (defn get-use...
053a5d7c0ace6b87e95764323abc265f79b7a7f31e9d25bd8ad2edc0d5f08265
aeternity/enoise
enoise_sym_state_tests.erl
%%%------------------------------------------------------------------- ( C ) 2018 , Aeternity Anstalt %%%------------------------------------------------------------------- -module(enoise_sym_state_tests). -include_lib("eunit/include/eunit.hrl"). noise_XK_25519_ChaChaPoly_Blake2b_test() -> Protocol = enoise_...
null
https://raw.githubusercontent.com/aeternity/enoise/991d7390ea49216f0b170d7b9662b3ff0a925aaa/test/enoise_sym_state_tests.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------
( C ) 2018 , Aeternity Anstalt -module(enoise_sym_state_tests). -include_lib("eunit/include/eunit.hrl"). noise_XK_25519_ChaChaPoly_Blake2b_test() -> Protocol = enoise_protocol:from_name("Noise_XK_25519_ChaChaPoly_BLAKE2b"), SSE0 = enoise_sym_state:init(Protocol), SSD0 = enoise_sym_state:init(Protoco...
5706dcfc320b2ec97cd8c6ea20b3513bcab9de5eb70de96973f48f56eaa60fd3
chumsley/jwacs
package.lisp
package.lisp ;;; ;;; Define the packages used by the jwacs system. ;;; Copyright ( c ) 2005 ;;; See LICENSE for full licensing details. ;; Eventually this may want to be several sub-packages, but let's start simple for now (defpackage :jwacs (:use :cl :cl-ppcre) (:nicknames :jw) (:export #:parse #:pr...
null
https://raw.githubusercontent.com/chumsley/jwacs/c25adb3bb31fc2dc6e8c8a58346949ee400633d7/package.lisp
lisp
Define the packages used by the jwacs system. See LICENSE for full licensing details. Eventually this may want to be several sub-packages, but let's start simple for now
package.lisp Copyright ( c ) 2005 (defpackage :jwacs (:use :cl :cl-ppcre) (:nicknames :jw) (:export #:parse #:process #:build-app #:syntax-error #:missing-import #:main))
3d1ebfe78604453ee1bfb9c583f87b31e9d68951f88b755beaee9645f71c3649
juji-io/datalevin
datomic.clj
(ns datalevin-bench.datomic (:require [clojure.string :as str] [datomic.api :as d] [datomic.btset :as btset] [datalevin-bench.core :as core])) ;; test-db ;; tests (defn- schema-attr [name type & {:as args}] (merge {:db/id (d/tempid :db.part/db) :db/ident name :db/valu...
null
https://raw.githubusercontent.com/juji-io/datalevin/ab421c34b9abee61ef574a57fb1c75f9033fbba2/bench/src-datomic/datalevin_bench/datomic.clj
clojure
test-db tests
(ns datalevin-bench.datomic (:require [clojure.string :as str] [datomic.api :as d] [datomic.btset :as btset] [datalevin-bench.core :as core])) (defn- schema-attr [name type & {:as args}] (merge {:db/id (d/tempid :db.part/db) :db/ident name :db/valueType type :d...
4797322981bfdfca6c8e475a973b8c6ec9a1e9de08533daebd01325d75485ba9
jesperes/aoc_erlang
aoc2016_day17.erl
-module(aoc2016_day17). -behavior(aoc_puzzle). dist/2 is used as a search callback , but does n't use its arguments . -hank([{unnecessary_function_arguments, [{dist, 2}]}]). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module ...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/ec0786088fb9ab886ee57e17ea0149ba3e91810a/src/2016/aoc2016_day17.erl
erlang
Search callbacks
-module(aoc2016_day17). -behavior(aoc_puzzle). dist/2 is used as a search callback , but does n't use its arguments . -hank([{unnecessary_function_arguments, [{dist, 2}]}]). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module ...
bc4d45a570638a5cee7c02a1b4b53769243b17cde30eda2ed64783879ecdf6f7
NelosG/fp-tests
HW0T3_assessor.hs
# LANGUAGE TemplateHaskell # import Control.Monad (unless) import System.Exit (exitFailure) import qualified Test.QuickCheck as QC --------------------------- ------ NAME CHECKING ------ --------------------------- import HW0.T3 (s) import HW0.T3 (k) import HW0.T3 (i) import HW0.T3 (compose) import HW0.T3 (contract)...
null
https://raw.githubusercontent.com/NelosG/fp-tests/b61b687da01f26c3856dd2ae25ab8b42a330981e/hw0/test/T3/HW0T3_assessor.hs
haskell
------------------------- ---- NAME CHECKING ------ ------------------------- ------------------------- ---- TYPE CHECKING ------ ------------------------- ------------------------- ---- PROP CHECKING ------ -------------------------
# LANGUAGE TemplateHaskell # import Control.Monad (unless) import System.Exit (exitFailure) import qualified Test.QuickCheck as QC import HW0.T3 (s) import HW0.T3 (k) import HW0.T3 (i) import HW0.T3 (compose) import HW0.T3 (contract) import HW0.T3 (permute) s' :: (a -> b -> c) -> (a -> b) -> (a -> c) s' = s k' ::...
061f2e08f6e3fb67700a2089d1cd5fea4e19151f8241668190332b7455dea948
phantomics/seed
package.lisp
package.lisp (defpackage #:demo-drawing (:export) (:use #:common-lisp #:cl-who #:seed.sublimate))
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/demo-drawing/package.lisp
lisp
package.lisp (defpackage #:demo-drawing (:export) (:use #:common-lisp #:cl-who #:seed.sublimate))
8b7fe46eda299639a4a4c2fcf81ffab917d5787e3657d9da96e7c13e0d7f38d0
wedesoft/aiscm
pseudo.scm
(use-modules (oop goops) (aiscm magick) (aiscm core) (aiscm image)) (define colors (to-array (map (lambda (i) (rgb (max 0 (- 255 (abs (- (* i 4) (* 1 64 4))))) (max 0 (- 255 (abs (- (* i 4) (* 2 64 4))))) (max 0 (- 255 (abs (-...
null
https://raw.githubusercontent.com/wedesoft/aiscm/2c3db8d00cad6e042150714ada85da19cf4338ad/tests/integration/pseudo.scm
scheme
(use-modules (oop goops) (aiscm magick) (aiscm core) (aiscm image)) (define colors (to-array (map (lambda (i) (rgb (max 0 (- 255 (abs (- (* i 4) (* 1 64 4))))) (max 0 (- 255 (abs (- (* i 4) (* 2 64 4))))) (max 0 (- 255 (abs (-...
ed073aae040665f14a206625ca7f4da1d55ed80f8baf680e32dc26527f2b9e65
nikita-volkov/rerebase
Instances.hs
module Data.Vector.Instances ( module Rebase.Data.Vector.Instances ) where import Rebase.Data.Vector.Instances
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Vector/Instances.hs
haskell
module Data.Vector.Instances ( module Rebase.Data.Vector.Instances ) where import Rebase.Data.Vector.Instances
4eb6a5c30be8f357caa055cea7220759c5fc4a685de9f26fa4236a78d6f5eabc
omnyway-labs/re-crud
events.cljs
(ns re-crud.components.events (:require [re-frame.core :refer [dispatch reg-event-fx reg-event-db]] [goog.string :as gstring] [goog.string.format])) (defn event-name [event-type id] (keyword (gstring/format "crud-%s-%s" event-type (name id)))) (def after-fetch-event-name (partial event-na...
null
https://raw.githubusercontent.com/omnyway-labs/re-crud/2fe9cbcf0a19d8c09a86d9025577e6271e9dd5a3/src/cljs/re_crud/components/events.cljs
clojure
(ns re-crud.components.events (:require [re-frame.core :refer [dispatch reg-event-fx reg-event-db]] [goog.string :as gstring] [goog.string.format])) (defn event-name [event-type id] (keyword (gstring/format "crud-%s-%s" event-type (name id)))) (def after-fetch-event-name (partial event-na...
face3a45e258e639904d68ca761b1d6ce00852e937b5991157be380426aa0b46
rururu/rete4frames
grid3x3-p5.clj
;;; The puzzle is: ;;; * * * 9 7 * * * 5 * * * 6 * * 8 3 * * 1 * * * * * * 4 ;;; 1 * 9 * 6 2 * * * 2 * 6 * * * 9 * 3 * * * 5 9 * 2 * 1 ;;; 8 * * * * * * 4 * * 7 1 * * 9 * * * 4 * * * 3 8 * * * ;;; ;;; The solution is: ;;; 6 8 4 9 7 ...
null
https://raw.githubusercontent.com/rururu/rete4frames/b4c19af125db0918c1cf57240b1dafd768ffc52a/examples/sudoku/grid3x3-p5.clj
clojure
The puzzle is: The solution is: Rules used: Naked Single Locked Candidate Single Line
* * * 9 7 * * * 5 * * * 6 * * 8 3 * * 1 * * * * * * 4 1 * 9 * 6 2 * * * 2 * 6 * * * 9 * 3 * * * 5 9 * 2 * 1 8 * * * * * * 4 * * 7 1 * * 9 * * * 4 * * * 3 8 * * * 6 8 4 9 7 3 1 2 5 9 2 5 6 4 1 8 3 7 3 1 7 2 8 5 6 ...
5a7525f7129f14353ac4c9e8c5b9365a8c4b9c7894ed442ed363d5069e0f3b2d
jcoo092/CML_benchmarks
commstime.rkt
#lang typed/racket/base (require racket/place) ; Simply sends what it receives. This doesn't need to be a place creator, since it should re-use prefix's place. I think. (: ID (-> Place-Channel Place-Channel Void)) (define (ID in out) (place-channel-put out (place-channel-ge...
null
https://raw.githubusercontent.com/jcoo092/CML_benchmarks/05dcab3fce244eff4ce9605df424196d85a73997/TypedRacket/src/commstime.rkt
racket
Simply sends what it receives. This doesn't need to be a place creator, since it should re-use prefix's place. I think. Sends out an initial value, then behaves as ID
#lang typed/racket/base (require racket/place) (: ID (-> Place-Channel Place-Channel Void)) (define (ID in out) (place-channel-put out (place-channel-get in)) (ID in out)) (: run-prefix (-> Integer Place-Channel Place-Channel Void)) (define (run-prefix N in out) (place-channel-put out N) (ID in out)) (: pla...
bae8b3cff11834048e05051cfff0a2d3bf5c1032ac4ee1fe6064dda1a8d8b380
ianmbloom/gudni
Rasterizer.hs
# LANGUAGE TemplateHaskell # ----------------------------------------------------------------------------- -- | -- Module : Graphics.Gudni.OpenCL.Rasterizer Copyright : ( c ) 2019 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : -- Stability : experimental -- P...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/src/Graphics/Gudni/OpenCL/Rasterizer.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Gudni.OpenCL.Rasterizer License : BSD-style (see the file libraries/base/LICENSE) Stability : experimental Portability : portable | The maximum number of stands a tile can contain before it must be spl...
# LANGUAGE TemplateHaskell # Copyright : ( c ) 2019 Maintainer : A constructor for storing an OpenCL state , compiled kernels ( just one right now ) and other metadata . module Graphics.Gudni.OpenCL.Rasterizer ( RasterSpec(..) , specMaxTileSize , specThreadsPerTile , specMaxTilesPerCall , ...
272a70f5b19275dd83c134bd01ab1dce7028e53770a8fba1dcb25a1cc5c21311
haskellfoundation/error-message-index
Main.hs
# LANGUAGE PolyKinds , RankNTypes , ImpredicativeTypes # module Main where import Data.Kind data SameKind :: k -> k -> * foo :: forall k b. (forall (a :: k). SameKind a b) -> () foo = undefined main :: IO () main = pure ()
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-46956/example1/after/Main.hs
haskell
# LANGUAGE PolyKinds , RankNTypes , ImpredicativeTypes # module Main where import Data.Kind data SameKind :: k -> k -> * foo :: forall k b. (forall (a :: k). SameKind a b) -> () foo = undefined main :: IO () main = pure ()
427cdabef412e9f2843f8a0bb94f0174ee68a0ddea72a20ab8444bcab51853cc
mejgun/haskell-tdlib
AddLogMessage.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.AddLogMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Adds a message to TDLib internal log . Can be called synchronously data AddLogMessage = AddLogMessage { -- | Text of a message to lo...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/AddLogMessage.hs
haskell
# LANGUAGE OverloadedStrings # | | | Text of a message to log | The minimum verbosity level needed for the message to be logged; 0-1023
module TD.Query.AddLogMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Adds a message to TDLib internal log . Can be called synchronously data AddLogMessage = AddLogMessage text :: Maybe String, verbosity_level :: Maybe Int } deriving (Eq...
3469817bec7703822f4dddba7d879a6bdef3b68ef61ad4f8222cdff8425f4ac6
dyzsr/ocaml-selectml
parmatch.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/parmatch.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Typedtree open Types val const_compare : constant -> constant -> int * [ const_compa...
49f97d0baf4ba56da11fbfd5fe2e61979d72b44609411a8bcc064bfddc9c99bc
m0cchi/cl-slack
api.lisp
(in-package :cl-slack.api) (defmethod test ((client cl-slack.core:slack-client)) (cl-slack.core:send "api.test" ""))
null
https://raw.githubusercontent.com/m0cchi/cl-slack/019ecb3e9a1605a8671fab85b4e564a257f76a04/src/api.lisp
lisp
(in-package :cl-slack.api) (defmethod test ((client cl-slack.core:slack-client)) (cl-slack.core:send "api.test" ""))
479e71a6d418b2626009b5fc2bb2c5d86eff5a4e45a9ecd3eb508a542eeb9690
lpsmith/bytestring-builder
ASCII.hs
# LANGUAGE CPP # {-# LANGUAGE ScopedTypeVariables, ForeignFunctionInterface #-} #if __GLASGOW_HASKELL__ >= 701 # LANGUAGE Trustworthy # #endif | Copyright : ( c ) 2010 ( c ) 2010 - 2011 -- License : BSD3-style (see LICENSE) -- Maintainer : < > Portability : GHC -- -- Enc...
null
https://raw.githubusercontent.com/lpsmith/bytestring-builder/11340eec8127824318c855758bee4cc3fbf9056a/src/Data/ByteString/Builder/Prim/ASCII.hs
haskell
# LANGUAGE ScopedTypeVariables, ForeignFunctionInterface # License : BSD3-style (see LICENSE) Encodings using ASCII encoded Unicode characters. *** ASCII **** Decimal numbers | Decimal encoding of numbers using ASCII encoded characters. These are the functions currently provided by Bryan O'Sullivans do...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 701 # LANGUAGE Trustworthy # #endif | Copyright : ( c ) 2010 ( c ) 2010 - 2011 Maintainer : < > Portability : GHC module Data.ByteString.Builder.Prim.ASCII ( char7 , int8Dec , int16Dec , int32Dec , int64Dec...
4f84eeac19928f17072a883a984876b0db1803c25174c219b6c6d31ebae9d15a
anurudhp/CPHaskell
e.hs
{-# LANGUAGE Safe #-} import safe Control.Arrow ((>>>)) main :: IO () main = interact $ words >>> head >>> read >>> solve >>> show solve :: Integer -> Integer solve n = product [1 .. n - 1] `div` (n `div` 2)
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/contests/codeforces/1433/e.hs
haskell
# LANGUAGE Safe #
import safe Control.Arrow ((>>>)) main :: IO () main = interact $ words >>> head >>> read >>> solve >>> show solve :: Integer -> Integer solve n = product [1 .. n - 1] `div` (n `div` 2)
ac7f173ae18b448d9152e1af43772c78a81fea08ef2930fbf00e5520a6ade89f
fossas/fossa-cli
ProjectInference.hs
# LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module App.Fossa.ProjectInference ( inferProjectFromVCS, inferProjectCached, inferProjectDefault, saveRevision, mergeOverride, readCachedRevision, InferredProject (..), -- * for testing linesWithoutCR, ) where import...
null
https://raw.githubusercontent.com/fossas/fossa-cli/cb78d00f637d04c77ccd7680bc6ecef809221570/src/App/Fossa/ProjectInference.hs
haskell
* for testing | Infer a default project name from the directory, and a default revision from the current time. Writes `.fossa.revision` to the system temp directory for use by `fossa test` trim milliseconds off, format is yyyy-mm-ddThh:mm:ss[.sss] Removes Windows `\r` from suffix if any like Text.stripPrefix, bu...
# LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module App.Fossa.ProjectInference ( inferProjectFromVCS, inferProjectCached, inferProjectDefault, saveRevision, mergeOverride, readCachedRevision, InferredProject (..), linesWithoutCR, ) where import App.Types import C...
dffb884e04873d4e8cfdd16ecd088289ff7028049fc7eaf03930c476ef299fdb
genya0407/hash-demo
Main.hs
# LANGUAGE ScopedTypeVariables # module Main where import GHC.IO.Handle (hDuplicate, hDuplicateTo) import System.Environment import System.IO import System.Exit import Data.Maybe import Control.Exception import System.Console.Haskeline import Control.Monad.IO.Class (liftIO) import Hash.Parser (parseLine) import Hash....
null
https://raw.githubusercontent.com/genya0407/hash-demo/9a40aed857b98a0cb042b43fc14ce837f4235d93/src/Main.hs
haskell
プロンプトを表示 & 入力行を取得
# LANGUAGE ScopedTypeVariables # module Main where import GHC.IO.Handle (hDuplicate, hDuplicateTo) import System.Environment import System.IO import System.Exit import Data.Maybe import Control.Exception import System.Console.Haskeline import Control.Monad.IO.Class (liftIO) import Hash.Parser (parseLine) import Hash....
47134a853104046ab73a62ec51a1b54911aa1b7404a0adf2d34559b2af0dc87a
gos-k/cl-clblas
clblas-cffi.lisp
This file was automatically generated by SWIG ( ) . ;;; Version 3.0.2 ;;; ;;; Do not make changes to this file unless you know what you are doing--modify the SWIG interface file instead . SWIG wrapper code starts here (in-package :cl-clblas) (cl:defmacro defanonenum (cl:&body enums) "Converts anonymous enums...
null
https://raw.githubusercontent.com/gos-k/cl-clblas/e6ca2aa13dadcdd1f72866ea0b16f72818478cc1/src/clblas-cffi.lisp
lisp
Version 3.0.2 Do not make changes to this file unless you know what you are doing--modify
This file was automatically generated by SWIG ( ) . the SWIG interface file instead . SWIG wrapper code starts here (in-package :cl-clblas) (cl:defmacro defanonenum (cl:&body enums) "Converts anonymous enums to defconstants." `(cl:progn ,@(cl:loop for value in enums for index = 0 then (cl...
79235c6c552c23dddd458e9e8c028a170c4ad132d34db0ffb71a0cc7c31efef5
YoshikuniJujo/test_haskell
ShaderModule.hs
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.ShaderModule (M(..), CreateInfo(..), CreateFlags) where import Gpu.Vulkan.ShaderModule.Internal
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/26379053422a4b42a82fcfabec6751a04fba36f1/themes/gui/vulkan/try-my-vulkan-snd/src/Gpu/Vulkan/ShaderModule.hs
haskell
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.ShaderModule (M(..), CreateInfo(..), CreateFlags) where import Gpu.Vulkan.ShaderModule.Internal
47bc4b36e81e80d747889df61b7a27c4dea1438d1218fa33ad9e8492e3c9d8e7
fission-codes/fission
AWS.hs
module Fission.Web.Server.AWS ( module Fission.Web.Server.AWS.Validate , module Fission.Web.Server.AWS.Types , module Fission.Web.Server.AWS.Route53 ) where import Fission.Web.Server.AWS.Route53 import Fission.Web.Server.AWS.Types import Fission.Web.Server.AWS.Validate
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/AWS.hs
haskell
module Fission.Web.Server.AWS ( module Fission.Web.Server.AWS.Validate , module Fission.Web.Server.AWS.Types , module Fission.Web.Server.AWS.Route53 ) where import Fission.Web.Server.AWS.Route53 import Fission.Web.Server.AWS.Types import Fission.Web.Server.AWS.Validate
85dee1fab02c2fa97220a244bda702f889dd2e11526273090e51e16a015c94c0
ghedamat/reagent-react-router
core.cljs
(ns reagent-react-router.core (:require [reagent.core :as reagent :refer [atom]] [clojure.walk :refer [walk postwalk]] [cljsjs.react-router])) (def Link (reagent/adapt-react-class js/ReactRouter.Link)) (def RouteHandler (reagent/adapt-react-class js/ReactRouter.RouteHandler)) (defn Route...
null
https://raw.githubusercontent.com/ghedamat/reagent-react-router/4eb082847a9fde3a3232f4dbb70e2c96a1435df6/src/reagent_react_router/core.cljs
clojure
(ns reagent-react-router.core (:require [reagent.core :as reagent :refer [atom]] [clojure.walk :refer [walk postwalk]] [cljsjs.react-router])) (def Link (reagent/adapt-react-class js/ReactRouter.Link)) (def RouteHandler (reagent/adapt-react-class js/ReactRouter.RouteHandler)) (defn Route...
4e26e1f795ba92cd559cc457d3918bcf030d4542667f088074359fdeeababada
jimmythompson/halboy
params.clj
(ns halboy.params (:require [clojure.walk :refer [postwalk]] [clojure.set :refer [difference]] [medley.core :refer [map-vals]] [uritemplate-clj.core :refer [uritemplate tokenize parse-token]] [org.bovinegenius.exploding-fish :as uri])) (defn- stringify-params [params] (let [f (fn [x] ...
null
https://raw.githubusercontent.com/jimmythompson/halboy/aef94a2b6a94e63045c369bc7679a7d6fc57b43c/src/halboy/params.clj
clojure
(ns halboy.params (:require [clojure.walk :refer [postwalk]] [clojure.set :refer [difference]] [medley.core :refer [map-vals]] [uritemplate-clj.core :refer [uritemplate tokenize parse-token]] [org.bovinegenius.exploding-fish :as uri])) (defn- stringify-params [params] (let [f (fn [x] ...
110f4ecd16f04b35e9495729d96a98605c36798ae8496551a5561f5cb2990bc0
alan-turing-institute/advent-of-code-2021
day_17.rkt
#lang typed/racket ; for better type inference on map (require typed-map) ; max steps to brute force (define MAX-STEPS : Integer 1000) parse coord part of input e.g. " x=20 .. 30 " , use list as native output of string split (: parse-coord-part (-> String (Listof Integer))) (define (parse-coord-part part) (let...
null
https://raw.githubusercontent.com/alan-turing-institute/advent-of-code-2021/dc79c0855e16e8270cb11ec953038497f366dd99/day-17/racket_lannelin/day_17.rkt
racket
for better type inference on map max steps to brute force deal with Number vs Integer with a cast - this is brittle but will work for our inputs parse input and return target area get x part and y part, removing trailing comma from x-part cast :( only accept positive x and x-max break if theres a hit or if gone...
#lang typed/racket (require typed-map) (define MAX-STEPS : Integer 1000) parse coord part of input e.g. " x=20 .. 30 " , use list as native output of string split (: parse-coord-part (-> String (Listof Integer))) (define (parse-coord-part part) (let ([coords-string : String (second (string-split part "="))]) ...
d8467ead91835186e47852e8bbb5169487d232601b44cfc399d09566147d0365
uw-unsat/leanette-popl22-artifact
x86.rkt
#lang racket (require "../lang.rkt") (provide (all-defined-out) (all-from-out "../lang.rkt")) Intel SDM § 8.2.3.2 , example 8 - 1 " Stores Are Not Reordered with Older Stores " (define-litmus-test test/x86/8-1 (((W X 1) (W Y 1)) ((R Y 1) (R X 0))) #:allowed) Intel SDM § 8.2.3.3 , example 8 - 2 ...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-4/memsynth/litmus/tests/x86.rkt
racket
"Stores Are Transitively Visible" Tests from the x86-TSO model effort ----------------------------------------- Source: A better x86 memory model: x86-TSO (extended version) /~pes20/weakmemory/x86tso-paper.pdf this test is incorrect in the paper; this is the corrected version see errata: /~pes20/weakmemor...
#lang racket (require "../lang.rkt") (provide (all-defined-out) (all-from-out "../lang.rkt")) Intel SDM § 8.2.3.2 , example 8 - 1 " Stores Are Not Reordered with Older Stores " (define-litmus-test test/x86/8-1 (((W X 1) (W Y 1)) ((R Y 1) (R X 0))) #:allowed) Intel SDM § 8.2.3.3 , example 8 - 2 ...
c89dfcef08eca81394f4dd468312b4545b40165587dab6524b441c51ec7fd700
qkrgud55/ocamlmulti
omega07.ml
An attempt at encoding omega examples from the 2nd Central European Functional Programming School : Generic Programming in Omega , by and /~sheard/ An attempt at encoding omega examples from the 2nd Central European Functional Programming School: Generic Programming in Omeg...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/testsuite/tests/typing-gadts/omega07.ml
ocaml
Basic types We do not have type level functions, so we need to use witnesses. Note: it would be nice to be able to handle existentials in let definitions We do not have kinds, but we can encode them as predicates 3.4 Pattern : Witness 3.8 Pattern: Leibniz Equality warning
An attempt at encoding omega examples from the 2nd Central European Functional Programming School : Generic Programming in Omega , by and /~sheard/ An attempt at encoding omega examples from the 2nd Central European Functional Programming School: Generic Programming in Omeg...
c593d32eb6af4e9b5d8df254eb19766d153a631a9c923a626f74f83749f27f6d
dom96/ElysiaBot
PluginUtils.hs
# LANGUAGE DeriveDataTypeable , OverloadedStrings , StandaloneDeriving # module PluginUtils ( Message(..) , MServer(..) , MInfo , RecvFunc , decodeMessage , initPlugin , pluginLoop , awaitResponse , success , sendPID , sendCmdAdd , sendIrcAdd , sendRawMsg , sendPrivmsg ) where import Sys...
null
https://raw.githubusercontent.com/dom96/ElysiaBot/3accf5825e67880c7f1696fc81e3fc449efe3294/src/Plugins/PluginUtils.hs
haskell
-.- End of reading JSON --------------------------------------------------------- End of writing JSON --------------------------------------------------------- |the commands/codes etc. MInfo stores any messages that haven't been parsed. Parse the messages. |raises an error otherwise. |Sends PID information abou...
# LANGUAGE DeriveDataTypeable , OverloadedStrings , StandaloneDeriving # module PluginUtils ( Message(..) , MServer(..) , MInfo , RecvFunc , decodeMessage , initPlugin , pluginLoop , awaitResponse , success , sendPID , sendCmdAdd , sendIrcAdd , sendRawMsg , sendPrivmsg ) where import Sys...
a98df19ae8e38387e676919c90c00960a1edacf0f815150fd421ae7f8b751dcf
ml4tp/tcoq
esubst.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/esubst.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Explicit substitutions * Derived ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * { 6 Explicit substitutions...