_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
629a5d36fa4d9b8fc304593768c72a442bfef12e2e7a8aa9b490ac74bd0672f4
may-liu/qtalk
ejb_server.erl
-module(ejb_server). -behaviour(gen_server). -define(SERVER, ?MODULE). -include("logger.hrl"). %% ------------------------------------------------------------------ %% API Function Exports %% ------------------------------------------------------------------ -export([start_link/1]). %% -----------------------------...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/ejb_server.erl
erlang
------------------------------------------------------------------ API Function Exports ------------------------------------------------------------------ ------------------------------------------------------------------ ------------------------------------------------------------------ -------------------------...
-module(ejb_server). -behaviour(gen_server). -define(SERVER, ?MODULE). -include("logger.hrl"). -export([start_link/1]). gen_server Function Exports -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state,{cowboy_opts,http_port}). start_link(Opts) -> ...
e3fa71d57c0c81a8f8c319ca9f92c38bd8e14418847317b0a551e92947ce2852
ucsd-progsys/nate
balloon.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/jpf/balloon.mli
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...
5edff74b395268361708ab9f644e33ba8cd5e510c8a21bb71064f72273edc0ac
mikpe/pdp10-tools
ld_symtab.erl
-*- erlang - indent - level : 2 -*- %%% symbol table for pdp10 - elf - ld Copyright ( C ) 2020 %%% This file is part of pdp10 - tools . %%% pdp10 - tools 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 Foun...
null
https://raw.githubusercontent.com/mikpe/pdp10-tools/99216b63317fe5b5ac18f1a0d3c81b464f8b8f40/erlang/apps/ld/src/ld_symtab.erl
erlang
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Build Symbol Tables ========================================================= Scan all segments, which ...
-*- erlang - indent - level : 2 -*- symbol table for pdp10 - elf - ld Copyright ( C ) 2020 This file is part of pdp10 - tools . pdp10 - tools 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 , eit...
5cfca49e9ca19eddea9a38ad84767914ec3c5cdd0bac47012180c713ea7dd745
AdRoll/rebar3_hank
global_rejector.erl
%%% @doc This module is used by test_app_SUITE -module(global_rejector). -behaviour(hank_rule). -export([analyze/2, ignored/2]). %% @doc All files are wrong!! analyze(ASTs, _) -> [#{file => File, line => 1, text => "global_rejector", pattern => undefined} || {File, _} <- ASTs]. -spec i...
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/6a67d1c6f60241d9102a509152d322021da0ad15/test/global_rejector.erl
erlang
@doc This module is used by test_app_SUITE @doc All files are wrong!!
-module(global_rejector). -behaviour(hank_rule). -export([analyze/2, ignored/2]). analyze(ASTs, _) -> [#{file => File, line => 1, text => "global_rejector", pattern => undefined} || {File, _} <- ASTs]. -spec ignored(hank_rule:ignore_pattern(), term()) -> boolean(). ignored(_Pattern, _I...
a4ec5bf8f9d9c950717ff39b0e0be8c8f193ef65edb5f003a56d9f88b0147e85
cubicle-model-checker/cubicle
global.ml
open Ast let global_system = ref { t_globals = []; t_arrays = []; t_from = []; t_init = [],[]; t_invs = []; t_cands = []; t_unsafe = [],SAtom.empty; t_forward = []; t_arru = [||]; t_alpha = [],[||]; t_trans = []; t_deleted = false; t_nb = 0; t_nb_father = 0; t_glob_proc = []; t_from_for...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/why/extraction/global.ml
ocaml
open Ast let global_system = ref { t_globals = []; t_arrays = []; t_from = []; t_init = [],[]; t_invs = []; t_cands = []; t_unsafe = [],SAtom.empty; t_forward = []; t_arru = [||]; t_alpha = [],[||]; t_trans = []; t_deleted = false; t_nb = 0; t_nb_father = 0; t_glob_proc = []; t_from_for...
aedf2ede5669e2330ac22b17a906ad0aeee84c6d006ac98c4fcc05412d4ed15f
andrewthad/quickcheck-classes
Bits.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Bits ( #if MIN_VERSION_base(4,7,0) bitsLaws #endif ) where import Data.Bits import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import qualified Data.Set as S impor...
null
https://raw.githubusercontent.com/andrewthad/quickcheck-classes/0fc6c0602bc6875cdbde34cbdbcf229a175af62f/quickcheck-classes-base/src/Test/QuickCheck/Classes/Bits.hs
haskell
# LANGUAGE BangPatterns # | Tests the following properties: [/Conjunction Idempotence/] @n .&. n ≡ n@ [/Disjunction Idempotence/] @n .|. n ≡ n@ [/Double Complement/] @complement (complement n) ≡ n@ [/Set Bit/] @setBit n i ≡ n .|. bit i@ [/Clear Bit/] [/Complement Bit/] [/Clear Zero/] [/Set Zero/] ...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Bits ( #if MIN_VERSION_base(4,7,0) bitsLaws #endif ) where import Data.Bits import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import qualified Data.Set as S import Test.QuickCheck.Classes.Inte...
2bd3fcf7fdd438eb47793b222ff6f39c4df66e0c71a362acf094bc0593fb00c2
OCamlPro/ocamlexc
listextra.mli
(***********************************************************************) (* *) (* Ocamlexc *) (* *) , projet Cris...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/typing/listextra.mli
ocaml
********************************************************************* Ocamlexc ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . val split3: ('a * 'b * 'c) list -> 'a list * 'b list * 'c list val sub: 'a -> 'a list -> 'a list val map3: ('a -...
e013fc5f669d5511f555ad8ab55e19516b14dcb709d314019fbbfa27b79f7a2f
Lovesan/doors
authentication.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- Copyright ( C ) 2010 - 2011 , < > ;;; 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 lim...
null
https://raw.githubusercontent.com/Lovesan/doors/12a2fe2fd8d6c42ae314bd6d02a1d2332f12499e/security/authentication.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do...
Copyright ( C ) 2010 - 2011 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-packag...
6c09f1a2e9f621d294ba96b43cbaf9e4f46967f9ccc52abebbd9874fabafed35
grin-compiler/ghc-wpc-sample-programs
Main.hs
module Main where import Idris.AbsSyntax import Idris.ElabDecls import Idris.Main import Idris.Options import IRTS.CodegenJavaScript import IRTS.Compiler import System.Environment import System.Exit data Opts = Opts { inputs :: [FilePath] , output :: FilePath } ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/idris-1.3.3/codegen/idris-codegen-javascript/Main.hs
haskell
module Main where import Idris.AbsSyntax import Idris.ElabDecls import Idris.Main import Idris.Options import IRTS.CodegenJavaScript import IRTS.Compiler import System.Environment import System.Exit data Opts = Opts { inputs :: [FilePath] , output :: FilePath } ...
2f4045efb48e2cf3fc0a754795fcfc852e1f0ba522cad0d2368ff168266f5209
weavejester/cljfmt
test_runner.cljs
(ns cljfmt.test-runner (:require [cljs.nodejs :as nodejs] [cljs.test :refer-macros [run-tests]] [cljfmt.core-test :as ct])) (nodejs/enable-util-print!) (defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m] (when (pos? (:fail m)) (js/process.exit 1))) (defn -main [] (ru...
null
https://raw.githubusercontent.com/weavejester/cljfmt/dd51b319ff58d34f5920da2a9e2dde26949c2165/cljfmt/test/cljfmt/test_runner.cljs
clojure
(ns cljfmt.test-runner (:require [cljs.nodejs :as nodejs] [cljs.test :refer-macros [run-tests]] [cljfmt.core-test :as ct])) (nodejs/enable-util-print!) (defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m] (when (pos? (:fail m)) (js/process.exit 1))) (defn -main [] (ru...
46f5cab7d8c37ccd84a8cdc4fdbb17da5131cd7688e695771ea2b714f0d47de1
ocsigen/lwt
lwt_mutex.mli
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) (** Cooperative locks for mutual exclusion *) type t (** Type of Lwt mutexes *) val create : unit -> t (** [create ()] creates a new mutex, which is initially unlocked *) val l...
null
https://raw.githubusercontent.com/ocsigen/lwt/9943ba77a5508feaea5e1fb60b011db4179f9c61/src/core/lwt_mutex.mli
ocaml
* Cooperative locks for mutual exclusion * Type of Lwt mutexes * [create ()] creates a new mutex, which is initially unlocked * [locked mutex] returns whether [mutex] is currently locked * [is_empty mutex] returns [true] if they are no thread waiting on the mutex, and [false] otherwise * [with_lock lock f] i...
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t val create : unit -> t val lock : t -> unit Lwt.t * [ lock mutex ] the mutex , that is : - if the mutex is unlocked , then it is marked as locked and { !...
6444c5f87a74b9fccbb6799a55e3a96d698eb0d6f6f38a470ce9401a97ea1c99
liqula/react-hs
LambdaFBAnn.hs
{-# LANGUAGE Strict #-} module LambdaFBAnn ( FBAnn(..) , annoFBAnn , annoFBAnnNonRecursive , applyAtAndAnno , renameConflicting , renameLambdas ) where import qualified Data.Map.Strict as Map import Data.Map.Strict (Map) import Data.Maybe import qualified Data.Set as Set import ...
null
https://raw.githubusercontent.com/liqula/react-hs/204c96ee3514b5ddec65378d37872266b05e8954/react-hs-examples/lambda/src/LambdaFBAnn.hs
haskell
# LANGUAGE Strict # -----------------------------------------------------------------------------
module LambdaFBAnn ( FBAnn(..) , annoFBAnn , annoFBAnnNonRecursive , applyAtAndAnno , renameConflicting , renameLambdas ) where import qualified Data.Map.Strict as Map import Data.Map.Strict (Map) import Data.Maybe import qualified Data.Set as Set import Data.Set (Set) im...
17ccbe890bb7201fa82fbbcfb0089ec22b2c3f3921a64cd8fed433d78ff700f2
well-typed-lightbulbs/ocaml-esp32
parsecmmaux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tools/parsecmmaux.ml
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 type error = Unbound of string exception Error of error let tbl_ident = (Hashtbl.create 57 : (stri...
06b9270cc274f5fc2a9b0cf54f824a1cb8d6d2a5ef877c0ab9952f94a4bb1059
racket/plai
mutator0.rkt
#lang plai/mutator
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/tests/gc/bad-mutators/mutator0.rkt
racket
#lang plai/mutator
df5209f8840fbf98171b96c88c9b6b9ec2c7b75629208d39ad025616c7572a87
yrashk/ocaml-traits
ord.mli
* [ ] defines primitives for { { : } total order } over type [ t ] In order for a module to implement [ ] , it has to conform to the { ! T } signature , which implies conformance to { ! . T } total order} over type [t] In order for a module to implement [Ord], it has to conform to the {!...
null
https://raw.githubusercontent.com/yrashk/ocaml-traits/460f43f37c2ffc9b138fde434e6b787dffab9070/lib/ord.mli
ocaml
Type being compared * Compares values [x] and [y] with module [M] and returns an ordering, left to right
* [ ] defines primitives for { { : } total order } over type [ t ] In order for a module to implement [ ] , it has to conform to the { ! T } signature , which implies conformance to { ! . T } total order} over type [t] In order for a module to implement [Ord], it has to conform to the {!...
8c6c5770101a7782859e0ad60c1f53fdd067bac307afd2c053ba2ccfa53e9c23
issuu/ocaml-zmq
test.ml
module Test = Zmq_deferred_test.Test.Make(Zmq_lwt__Deferred) let () = Test.run (fun f -> Lwt_main.run (f ()))
null
https://raw.githubusercontent.com/issuu/ocaml-zmq/f1aad60f136529f45543a08a2f42c63d716e4e8f/zmq-lwt/test/test.ml
ocaml
module Test = Zmq_deferred_test.Test.Make(Zmq_lwt__Deferred) let () = Test.run (fun f -> Lwt_main.run (f ()))
169e723c7590ddeef9836b833d60be0f9a696b5e98abb252164d583fba0b54ab
input-output-hk/cardano-ledger
LedgerState.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # -- | -- Module : LedgerState -- Description : Operational Rules -- This module implements the operation rules for treating transactions ( ' Tx ' ) as state transformations on a ledger state ( ' LedgerState ' ) , -- as sp...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/ac405a977557a7c58ce1cf69d3c2a0bf148cf19f/eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState.hs
haskell
| Module : LedgerState Description : Operational Rules as specified in /A Simplified Formal Specification of a UTxO Ledger/. deprecated * Validation * Epoch boundary * Decay * Remove Bootstrap Redeem Addresses # DEPRECATED emptyDState "Use `def` instead" # # DEPRECATED unWitHashes "Remove this function" ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # This module implements the operation rules for treating transactions ( ' Tx ' ) as state transformations on a ledger state ( ' LedgerState ' ) , module Cardano.Ledger.Shelley.LedgerState ( AccountState (..), DPState (..),...
72efdb85d09534e2347b6c684b599ff90970860278db1a17233e6426f3a0c5a3
rd--/hsc3
crackle.help.hs
-- crackle crackle ar 1.95 * 0.2 -- crackle ; modulate chaos parameter crackle ar (line kr 1.0 2.0 3 RemoveSynth) * 0.2 ---- ; drawings Sound.Sc3.Plot.plot_ugen1 0.01 (crackle ar 1.95) Sound.Sc3.Plot.plot_ugen1 0.025 (crackle ar (line kr 1.0 2.0 0.025 DoNothing))
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/crackle.help.hs
haskell
crackle crackle ; modulate chaos parameter -- ; drawings
crackle ar 1.95 * 0.2 crackle ar (line kr 1.0 2.0 3 RemoveSynth) * 0.2 Sound.Sc3.Plot.plot_ugen1 0.01 (crackle ar 1.95) Sound.Sc3.Plot.plot_ugen1 0.025 (crackle ar (line kr 1.0 2.0 0.025 DoNothing))
70c54001daf88d65dedad607e758849642d7456cde3ce3ba510202f5f6ec8f8a
balint99/sfpl
Internal.hs
# LANGUAGE LambdaCase , RankNTypes , RecordWildCards , TupleSections # -- | Internal logic for elaboration. module SFPL.Elab.Internal where import Control.Arrow import Control.Monad import Control.Monad.Trans.Maybe import qualified Data.HashMap.Lazy as M import SFPL.Base import SFPL.Elab.Class import SFPL.Elab.Contex...
null
https://raw.githubusercontent.com/balint99/sfpl/7cf8924e6f436704f578927ce2904e45caa76725/app/SFPL/Elab/Internal.hs
haskell
| Internal logic for elaboration. -------------------------------------- Operator precedence ---------------------------------------------------------- Helpers -------------------------------------- Lookup -------------------------------------- Errors -------------------------------------- Managing context | Bin...
# LANGUAGE LambdaCase , RankNTypes , RecordWildCards , TupleSections # module SFPL.Elab.Internal where import Control.Arrow import Control.Monad import Control.Monad.Trans.Maybe import qualified Data.HashMap.Lazy as M import SFPL.Base import SFPL.Elab.Class import SFPL.Elab.Context import SFPL.Elab.Error import SFPL....
51838a27a8d3eec81acf5b2cc672d24325aad8071ec84b241767c7d9493be879
debug-ito/wild-bind
JustWindowMain.hs
{-# LANGUAGE OverloadedStrings #-} module Main ( main ) where import Data.Monoid (mempty) import Control.Exception (throw) import System.Environment (getArgs) import WildBind (Binding, as, binds, defOption, on, optBindingHook, optCatch, ...
null
https://raw.githubusercontent.com/debug-ito/wild-bind/ef65370ded4f9687fed554107df4cc58247943de/wild-bind-indicator/eg/JustWindowMain.hs
haskell
# LANGUAGE OverloadedStrings #
module Main ( main ) where import Data.Monoid (mempty) import Control.Exception (throw) import System.Environment (getArgs) import WildBind (Binding, as, binds, defOption, on, optBindingHook, optCatch, ...
47994e47594af7ae9d18d80b4a2b1bdf94cc534c80ef8c2f89cc50a81840db59
kind2-mc/kind2
dummy.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/3462ce3aecd930f6f9e955477a04943fdef9f422/src/dead_code/dummy.ml
ocaml
while true do () done
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
cd0d0e64546aa16bc28b515497781a5ee1e37a884d2355f7afb8d827c101ac16
melisgl/mgl-pax
docstring.lisp
(in-package :mgl-pax) (declaim (special *table-of-contents-stream*)) ;;; Normalize indentation of docstrings as described in (METHOD () ;;; (STRING T)) DOCUMENT-OBJECT. (defun strip-docstring-indentation (docstring &key (first-line-special-p t)) (let ((indentation (docstring-indentation docstring ...
null
https://raw.githubusercontent.com/melisgl/mgl-pax/849ae416216e3ff32b4a016f48de2e8a7fc43ba0/src/document/docstring.lisp
lisp
Normalize indentation of docstrings as described in (METHOD () (STRING T)) DOCUMENT-OBJECT. Return the minimum number of leading spaces in non-blank lines generic functions complicate things.
(in-package :mgl-pax) (declaim (special *table-of-contents-stream*)) (defun strip-docstring-indentation (docstring &key (first-line-special-p t)) (let ((indentation (docstring-indentation docstring :first-line-special-p first-line-special-p))) (values (with-output-to-s...
20980e1248b2d75f017bfa179d31bca4b5ab724225da88b74f72da5a308301d7
stabilized/clojurescript
test.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/stabilized/clojurescript/f38f141525576b2a89cde190f25f9cf2fc4c418a/src/clj/cljs/test.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 . (ns cljs.test (:require [cljs.env :as env] [cljs.analyzer :as ana] [cljs.analyzer.api :as ana-api] [clojure.template :as temp])) Utilities for assertions (defn function? "Returns true if argument is a function or a symbol that re...
643b65837599bd261a72ba44979133cf089dd042de9fb5c81a510c822b252fbd
abdulapopoola/SICPBook
4.19.scm
#lang racket It is very difficult to implement 's approach . A scenario that ;; might work for the exercise would require scanning the definitions and then executing the pure assignments first ( e.g. ( define a 5 ) ) ;; before executing more complex procedures. ;; While this might work for this exercise, it'll f...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%204/4.1/4.19.scm
scheme
might work for the exercise would require scanning the definitions before executing more complex procedures. While this might work for this exercise, it'll fail for mutual recursion -> i.e. procedures defined in terms of each other.
#lang racket It is very difficult to implement 's approach . A scenario that and then executing the pure assignments first ( e.g. ( define a 5 ) )
ef09fffa23c4d9df83d6ce2a2f9f983c832b55644b88b82fa07a1eda75e24666
unisonweb/unison
Welcome.hs
{-# LANGUAGE OverloadedStrings #-} module Unison.CommandLine.Welcome where import Data.Sequence (singleton) import System.Random (randomRIO) import Unison.Codebase (Codebase) import qualified Unison.Codebase as Codebase import Unison.Codebase.Editor.Input import Unison.Codebase.Editor.RemoteRepo (ReadRemoteNamespace ...
null
https://raw.githubusercontent.com/unisonweb/unison/bcaa0eb006ff906cfca694afe40366bffe664761/unison-cli/src/Unison/CommandLine/Welcome.hs
haskell
# LANGUAGE OverloadedStrings # Can transition to [Base, Author, Finished] Can transition to [Base, Author, Finished, PreviouslyOnboarded]. Can transition to [Author, Finished] Can transition to [Finished]
module Unison.CommandLine.Welcome where import Data.Sequence (singleton) import System.Random (randomRIO) import Unison.Codebase (Codebase) import qualified Unison.Codebase as Codebase import Unison.Codebase.Editor.Input import Unison.Codebase.Editor.RemoteRepo (ReadRemoteNamespace (..), ReadShareRemoteNamespace (..)...
936fa552bd36e34454274efa47305d193589c4e4b0f9218bf0a1b19513955999
mu-chaco/ReWire
MiniISA.hs
# OPTIONS_GHC -fwarn - incomplete - patterns # module MiniISA where import Prelude hiding (not,or,and) import Control.Monad.Resumption.Reactive import Control.Monad.State hiding (when) import Control.Monad.Identity hiding (when) -- begin primitive boilerplate data Bit = Zero | One deriving Show notBit One = Zero no...
null
https://raw.githubusercontent.com/mu-chaco/ReWire/a8dcea6ab0989474988a758179a1d876e2c32370/cruft/MiniISA.hs
haskell
begin primitive boilerplate end primitive boilerplate
# OPTIONS_GHC -fwarn - incomplete - patterns # module MiniISA where import Prelude hiding (not,or,and) import Control.Monad.Resumption.Reactive import Control.Monad.State hiding (when) import Control.Monad.Identity hiding (when) data Bit = Zero | One deriving Show notBit One = Zero notBit Zero = One eqBit One One ...
1c2d1aab435542d49a09bdd6e6eed8e69fecc7d243ef4a2390e99fe7225fb249
exercism/haskell
Clock.hs
module Clock (addDelta, fromHourMin, toString) where import Text.Printf (printf) newtype Clock = Clock { unClock :: Int } deriving (Eq) addDelta :: Int -> Int -> Clock -> Clock addDelta h m (Clock a) = fromInt (a + h * 60 + m) fromInt :: Int -> Clock fromInt n = Clock (n `mod` (24 * 60)) fromHourMin :: Int -> Int -...
null
https://raw.githubusercontent.com/exercism/haskell/ae17e9fc5ca736a228db6dda5e3f3b057fa6f3d0/exercises/practice/clock/.meta/examples/success-standard/src/Clock.hs
haskell
module Clock (addDelta, fromHourMin, toString) where import Text.Printf (printf) newtype Clock = Clock { unClock :: Int } deriving (Eq) addDelta :: Int -> Int -> Clock -> Clock addDelta h m (Clock a) = fromInt (a + h * 60 + m) fromInt :: Int -> Clock fromInt n = Clock (n `mod` (24 * 60)) fromHourMin :: Int -> Int -...
511ebcd5b6e8c56bb7cd2a72442a8c89de458efd0ab69ab62cf521f6d6156bd5
project-oak/hafnium-verification
AnnotatedField.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/nullsafe/AnnotatedField.mli
ocaml
* Representation of a declared class field with nullsafe-specific data * Looks up for a field declaration and, in case of success, converts it to [t]
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
7b6aeeff61435778c4cc9fc06faa392786d103c140bd2ccc5b0901dfe138e5f5
moonpolysoft/dynomite
membership.erl
%%%------------------------------------------------------------------- %%% File: membership.erl @author < > [ ] 2008 @doc Membership process keeps track of dynomite node membership . %%% Maintains a version history. %%% %%% @end %%% @since 2008 - 03 - 30 by %%%--------------------------...
null
https://raw.githubusercontent.com/moonpolysoft/dynomite/a5618dcbe17b16cefdc9c567f27a1f4445aee005/elibs/membership.erl
erlang
------------------------------------------------------------------- File: membership.erl Maintains a version history. @end ------------------------------------------------------------------- API gen_server callbacks ==================================================================== API ============...
@author < > [ ] 2008 @doc Membership process keeps track of dynomite node membership . @since 2008 - 03 - 30 by -module(membership). -author(''). -behaviour(gen_server). -export([start_link/3, start_link/2, join_node/2, remove_node/1, nodes_for_partition/1, replica_nodes/1, servers_for_...
af9176328a71edd49ba569f58bf171c86bb9263dcaff1067dc8e00798a69d6e6
mzp/bs-lwt
test_lwt_io.ml
Lightweight thread library for OCaml * * Module Test_lwt_io * Copyright ( C ) 2009 * * 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 , with linking exceptions ; ...
null
https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/tests/unix/test_lwt_io.ml
ocaml
Helpers for [establish_server] tests. Using a pipe because it is easy and has no file system consequences. Make it possible to do arithmetic on file descriptors. Dreams can come true! Hacky is_closed functions that attempt to read from/write to the channels to see if they are closed. Without the ...
Lightweight thread library for OCaml * * Module Test_lwt_io * Copyright ( C ) 2009 * * 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 , with linking exceptions ; ...
750b384831fd440848694cb80061f8babccf0f863393d1d3b7544ba348197b57
clklein/decompose-plug
txt-to-tex.rkt
#lang racket/base (require racket/cmdline racket/match) (define txt-files (command-line #:program "txt-to-tex.rkt" #:args args args)) (define max-line-width 86) ;; txt-to-tex : string[path] -> void reads in the file , munges the contents to be latex - friendly , and then writes it out . (define (...
null
https://raw.githubusercontent.com/clklein/decompose-plug/5bb1acff487d055386c075581b395eb3cfdc12e9/aplas2011/txt-to-tex.rkt
racket
txt-to-tex : string[path] -> void txt-to-tex-name : string -> string converts the name of a file from its .txt to its latex name go!
#lang racket/base (require racket/cmdline racket/match) (define txt-files (command-line #:program "txt-to-tex.rkt" #:args args args)) (define max-line-width 86) reads in the file , munges the contents to be latex - friendly , and then writes it out . (define (txt-to-tex file) (define tex-file (...
576f6585b88ac8e2e5370acf197f98660ed51ef2d4b8bd765fc890881dee5a11
startalkIM/ejabberd
ejabberd_receiver.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_receiver.erl Author : < > %%% Purpose : Socket receiver for C2S and S2S connections Created : 10 Nov 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free softwa...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/ejabberd_receiver.erl
erlang
---------------------------------------------------------------------- File : ejabberd_receiver.erl Purpose : Socket receiver for C2S and S2S connections 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...
Author : < > Created : 10 Nov 2003 by < > ejabberd , Copyright ( C ) 2002 - 2016 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 of the GNU General Public License along ...
15b9ddaa8368615e01353458aaa38d06d57cb78e21e7a7cbe7fde7eb9244d93b
Nike-Inc/hal
Internal.hs
# LANGUAGE CPP # | Module : AWS.Lambda . . Internal Description : Internal HTTP related machinery for talking to the AWS Lambda Custom Runtime interface . Copyright : ( c ) Nike , Inc. , 2018 License : : , Stability : stable Module : AWS.Lambda.RuntimeClient.Internal Descriptio...
null
https://raw.githubusercontent.com/Nike-Inc/hal/d2142ea440b1f8bada32825925d95fc90593c22b/src/AWS/Lambda/RuntimeClient/Internal.hs
haskell
If we got an event but our requestId is invalid/missing, there's no hope of meaningful recovery Return the interesting components Helpers (mostly) for Headers Note: Does not allow whitespace TODO: There must be a better way to do this An empty array means we successfully decoded, but nothing was there and our ...
# LANGUAGE CPP # | Module : AWS.Lambda . . Internal Description : Internal HTTP related machinery for talking to the AWS Lambda Custom Runtime interface . Copyright : ( c ) Nike , Inc. , 2018 License : : , Stability : stable Module : AWS.Lambda.RuntimeClient.Internal Descriptio...
f43e8d0a0933fce2510c549d69c380c6d826598ac684e3559dce7bc3d6015f4e
yoriyuki/Camomile
locale.mli
Copyright ( C ) 2003 (* This library 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 ; either version 2 of the License , or ( at your option ) any later version . As a special exception ...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/public/locale.mli
ocaml
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License may link, statically or dynamically, a "work that uses this library" with a publicly distributed version of this library to produce an executable file containing portions of this lib...
Copyright ( C ) 2003 as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . As a special exception to the GNU Library General Public License , you additional requirements listed in clause 6 of the GNU Library General we mean either the ...
243022361da51f52c6cdacd322aa64e6fa9d93035872f823106c84b56f2df1ee
bitemyapp/esqueleto
ExprParser.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | This is an internal module. This module may have breaking changes without -- a corresponding major version bump. If you use this module, please open an -- issue with your use-case so we can safely support it. module Database.Esqueleto.Internal.ExprPa...
null
https://raw.githubusercontent.com/bitemyapp/esqueleto/cd16b2b22fab92b8a658f95a37e9eebfcdfbae42/src/Database/Esqueleto/Internal/ExprParser.hs
haskell
# LANGUAGE OverloadedStrings # | This is an internal module. This module may have breaking changes without a corresponding major version bump. If you use this module, please open an issue with your use-case so we can safely support it. a guarantee that the access will look something like: @ escape-char [characte...
# LANGUAGE RecordWildCards # module Database.Esqueleto.Internal.ExprParser where import Prelude hiding (takeWhile) import Control.Applicative ((<|>)) import Control.Monad (void) import Data.Attoparsec.Text import Data.Set (Set) import qualified Data.Set as Set import Data.Text (Text) import qualified Data.Text as Te...
567ca0b8f8e69deafcea22c0677137745792be6e7936dd149cb8f9c0e3273d01
OCamlPro/ocp-build
buildOCPPrint.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/buildOCPPrint.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file val output_project : out_channel -> BuildOCPTypes.package -> unit
11b54abbdb0ffa2abca461622da223a17ec66c2f5def21a41b5519689ac33580
kind2-mc/kind2
hashconsStrong.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/691e929d20f6d5ca317a7f6b6438a9c56bb0670f/src/utils/hashconsStrong.ml
ocaml
Changes from the original version: - Hashconsing of pairs node and prop - Added compare, equal and hash functions - Using arrays instead of weak arrays - Added find function Equality based on tags Hashing based on stored hash Generate a new tag Array of buckets: each bucket is an array of value...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
63c323a8a734a6fdbaefd8625861d64a3dad649dc7347de5f974410f8b6527b3
gildor478/ocaml-gettext
gettextCamomile.ml
(**************************************************************************) (* ocaml-gettext: a library to translate messages *) (* *) Copyright ( C ) 2003 - 2008 < > (* ...
null
https://raw.githubusercontent.com/gildor478/ocaml-gettext/9b7afc702bccace9a544b8efa2a28bc2b13371ed/src/lib/gettext-camomile/gettextCamomile.ml
ocaml
************************************************************************ ocaml-gettext: a library to translate messages This library is free softw...
Copyright ( C ) 2003 - 2008 < > License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version ; You should have received a copy of the GNU Lesser General Public License along with this library ; if not ,...
55c179d477c693e3d7fd0e134cd1f5788dd5c41f0ca017aadba8afd0ada0d221
3b/cl-opencl-3b
particle-gl.lisp
particle system using OpenCL and OpenGL ;;; run opencl-opengl-examples:particles, click to add particle ;;; systems, space to clear running systems, esc to quit ;;; might need to adjust *particles-per-click*, or point size in ;;; glut:display method depending on hardware performance ;;; not really finished, and o...
null
https://raw.githubusercontent.com/3b/cl-opencl-3b/b40781e3d049d59ce3bba02ec6e55be708996d53/examples/particle-gl.lisp
lisp
run opencl-opengl-examples:particles, click to add particle systems, space to clear running systems, esc to quit might need to adjust *particles-per-click*, or point size in glut:display method depending on hardware performance not really finished, and only slightly optimized... todo: based on presence of ...
particle system using OpenCL and OpenGL be smarter about picking device when there are more than one : pick use optional 1.1 clCreateEventFromGLsyncKHR if available (in-package #:opencl-opengl-examples) (defparameter *program-source* " __kernel void particles(__global float4* pos, __global float4* v, fl...
9d2a53a919f2b61ec4816fc0a53644cd209a2aa64bf8da668d07b511704664e6
nobrakal/asak
monad_error.ml
This file is part of asak . * * Copyright ( C ) 2019 IRIF / OCaml Software Foundation . * * asak is distributed under the terms of the MIT license . See the * included LICENSE file for details . * * Copyright (C) 2019 IRIF / OCaml Software Foundation. * * asak is distributed under the terms of the ...
null
https://raw.githubusercontent.com/nobrakal/asak/c1aaf985815563edd2463f8fe18e2d790f955f05/src/monad_error.ml
ocaml
This file is part of asak . * * Copyright ( C ) 2019 IRIF / OCaml Software Foundation . * * asak is distributed under the terms of the MIT license . See the * included LICENSE file for details . * * Copyright (C) 2019 IRIF / OCaml Software Foundation. * * asak is distributed under the terms of the ...
c824a2ec1c5bffd626ece9fe15692a7cd9a4abd96cbfcd2cf00f2c01cdd84127
SimulaVR/godot-haskell
VehicleWheel.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.VehicleWheel (Godot.Core.VehicleWheel.get_brake, ...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VehicleWheel.hs
haskell
__Note:__ The simulation does not take the effect of gears into account, you will need to add logic for this if you wish to simulate gears. A negative value will result in the wheel reversing. __Note:__ The simulation does not take the effect of gears into account, you will need to add logic for this ...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.VehicleWheel (Godot.Core.VehicleWheel.get_brake, ...
c8938088668872c161ecdeedaee16933003d47b8fdb7a20ceb481150198f0427
haskell-repa/repa
Vector.hs
module Data.Array.Repa.Vector ( Vector , S , N -- * Construction , Distro(..) , vstream , vstreamWith , vstreamOfChain , vchain , vchainWith -- * Computation , Compute(..) -- * Conversion , vfromUnboxed ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector-old/chains/Data/Array/Repa/Vector.hs
haskell
* Construction * Computation * Conversion * Projections * Replicate * Flatten * Append * Indexed * Folds * Maps * Scans * Pack and Filter * Combine Computation ---------------------------------------------------------------- | Computation of array elements, using a computation method appropriate to th...
module Data.Array.Repa.Vector ( Vector , S , N , Distro(..) , vstream , vstreamWith , vstreamOfChain , vchain , vchainWith , Compute(..) , vfromUnboxed , vfromListUnboxed , vtoList , vlength , vi...
efc8a96623c38d40088c7621bc667fe5fbab175df6fccfdf0176b1558a3443a6
racket/drracket
number-snip.rkt
#lang racket/base (require framework racket/class racket/snip) (define snip-class (send (get-the-snip-class-list) find (format "~s" `(lib "number-snip.ss" "drscheme" "private")))) (provide snip-class) ;; this is here because there may be old number snips ;; out there that still...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket/drscheme/private/number-snip.rkt
racket
this is here because there may be old number snips out there that still point to this file
#lang racket/base (require framework racket/class racket/snip) (define snip-class (send (get-the-snip-class-list) find (format "~s" `(lib "number-snip.ss" "drscheme" "private")))) (provide snip-class)
323df8b34437e60cb46b7e814892d498d0cb1af226571b47284df32cea3723d6
TheLortex/mirage-monorepo
test_returning_errno.ml
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 open Ctypes mod...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ocaml-ctypes/tests/test-returning-errno/test_returning_errno.ml
ocaml
Test the binding to "stat".
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 open Ctypes mod...
1380d51b89dd32ae5c931753e5399bf4b72d0bf6c1bfc040797d89d491f29261
zyrolasting/racket-koans
pattern-matching.rkt
#lang racket (require rackunit) (struct pos (x y z)) (with-handlers ([exn:misc:match? (lambda (e) (fail "At least one pattern does not match"))]) (check-equal? (match "?" [#\a 'one] [#\b 'two] [#\c 'three]) 'three "Matching on literals") (check-equal? (match "?" [(list ...
null
https://raw.githubusercontent.com/zyrolasting/racket-koans/09acc058244ed88d7addd434677426cd8580bb3c/koans/pattern-matching.rkt
racket
#lang racket (require rackunit) (struct pos (x y z)) (with-handlers ([exn:misc:match? (lambda (e) (fail "At least one pattern does not match"))]) (check-equal? (match "?" [#\a 'one] [#\b 'two] [#\c 'three]) 'three "Matching on literals") (check-equal? (match "?" [(list ...
5ce79abd3454e511ee164de948d4634a493a8aca63192e4be3a938ae90efb8a7
abtv/tech-radar
preprocessor.clj
(ns tech-radar.components.preprocessor (:require [tech-radar.services.preprocessor :refer [run]] [com.stuartsierra.component :as component] [clojure.core.async :refer [chan close!]] [taoensso.timbre :as timbre] [environ.core :refer [env]] [tech-radar.utils.s...
null
https://raw.githubusercontent.com/abtv/tech-radar/167c1c66ff2cf7140fe1de247d67a7134b0b1748/src/clj/tech_radar/components/preprocessor.clj
clojure
(ns tech-radar.components.preprocessor (:require [tech-radar.services.preprocessor :refer [run]] [com.stuartsierra.component :as component] [clojure.core.async :refer [chan close!]] [taoensso.timbre :as timbre] [environ.core :refer [env]] [tech-radar.utils.s...
dd177351621150fb305b79463aeeae2dc7fb8b521dfcc6e72f89bc16a9c5fe69
systemd/erlang-sd_notify
sd_notify_test.erl
-module(sd_notify_test). -include_lib("eunit/include/eunit.hrl"). sd_notify_basic_test_() -> {ok, CWD} = file:get_cwd(), FakeNotifyUnixSockName = CWD ++ "/fake-sock-" ++ integer_to_list(erlang:phash2(make_ref())), {ok, FakeNotifyUnixSock} = gen_udp:open(0, [{ifaddr, {local, FakeNotifyUnixSockName}}, {active, false...
null
https://raw.githubusercontent.com/systemd/erlang-sd_notify/44dae67291d51b9aa3147722e83a7e6cb089a7ca/test/sd_notify_test.erl
erlang
-module(sd_notify_test). -include_lib("eunit/include/eunit.hrl"). sd_notify_basic_test_() -> {ok, CWD} = file:get_cwd(), FakeNotifyUnixSockName = CWD ++ "/fake-sock-" ++ integer_to_list(erlang:phash2(make_ref())), {ok, FakeNotifyUnixSock} = gen_udp:open(0, [{ifaddr, {local, FakeNotifyUnixSockName}}, {active, false...
d6dbbca0898dfab96b749dec399bdf19806ecaf08ebb566e310483e48af216ed
atgreen/lisp-openshift
swank-scl.lisp
;;; -*- indent-tabs-mode: nil; outline-regexp: ";;;;+" -*- ;;; Scieneer Common Lisp code for SLIME . ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; (in-package :swank-backend) ;;; swank-mop (import-swank-mop-symbols :clos '(:slot-definition-documentation)) (defu...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/slime-20120407-cvs/swank-scl.lisp
lisp
-*- indent-tabs-mode: nil; outline-regexp: ";;;;+" -*- This code has been placed in the Public Domain. All warranties are disclaimed. swank-mop TCP server Sockets Ignore character conversion errors. Without this the communication channel is prone to lockup if a character conversion error occurs. Stream...
Scieneer Common Lisp code for SLIME . (in-package :swank-backend) (import-swank-mop-symbols :clos '(:slot-definition-documentation)) (defun swank-mop:slot-definition-documentation (slot) (documentation slot t)) SCL only supports the : spawn communication style . (defimplementation preferred-communicati...
c34a5434fd20ebc26809704a9a94e87067295eba21e657314de7e6dd4d4ac85e
jfeser/castor
ast.ml
open Core type meta = < > module Binop = struct type t = | Eq | Lt | Le | Gt | Ge | And | Or | Add | Sub | Mul | Div | Mod | Strpos [@@deriving compare, equal, hash, sexp] end module Unop = struct type t = Not | Day | Month | Year | Strlen | ExtractY | Extrac...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/ast.ml
ocaml
open Core type meta = < > module Binop = struct type t = | Eq | Lt | Le | Gt | Ge | And | Or | Add | Sub | Mul | Div | Mod | Strpos [@@deriving compare, equal, hash, sexp] end module Unop = struct type t = Not | Day | Month | Year | Strlen | ExtractY | Extrac...
90a554e34c53e191a82907df746d9718c196c598c8dca0101ea299f8695a8578
bsansouci/bsb-native
lexer.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/lex/lexer.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . val main: Lexing.lexbuf -> Parser.token...
ef0b504f32d8b815aabf01ad3c03804d5c2d2ea27a1488cf888e4c059c4fceb2
scrive/hpqtypes
FromRow.hs
# LANGUAGE TypeApplications # module Database.PostgreSQL.PQTypes.FromRow ( FromRow(..) , fromRow' ) where import Data.Functor.Identity import Foreign.C import Foreign.Marshal.Alloc import Foreign.Ptr import Foreign.Storable import qualified Control.Exception as E import qualified Data.ByteString.Unsafe as BS ...
null
https://raw.githubusercontent.com/scrive/hpqtypes/5b652645d5fdebbec8dbd1a68583fbcb8dfe5d93/src/Database/PostgreSQL/PQTypes/FromRow.hs
haskell
| Convert base (libpqtypes) type to destination type. | 'verifyPQTRes' specialized for usage in 'fromRow'. -------------------------------------- | More convenient version of 'fromRow' that allocates 'PGerror' by itself. | Extract SQL row from 'PGresult' and convert it into a tuple. ^ Source result. ^ Local error...
# LANGUAGE TypeApplications # module Database.PostgreSQL.PQTypes.FromRow ( FromRow(..) , fromRow' ) where import Data.Functor.Identity import Foreign.C import Foreign.Marshal.Alloc import Foreign.Ptr import Foreign.Storable import qualified Control.Exception as E import qualified Data.ByteString.Unsafe as BS ...
76973d13aece94d227d2a4013b0116d501bc2c94d5ed58b1d46c657cf4a489e4
ocsigen/ocsimore
ocsimore_appl.ml
let appl_ref : ( module Eliom_registration . App ) option ref = ref None let appl = Eliom_common.lazy_site_value_from_fun ( fun ( ) - > match ! appl_ref with | None - > failwith " you must register an eliom application before registering a service " | Some a - > a ) let = ...
null
https://raw.githubusercontent.com/ocsigen/ocsimore/8eeaf043ed6f1f167a96cbdc5f72a5225d9516d5/src/site/server/ocsimore_appl.ml
ocaml
let appl_ref : ( module Eliom_registration . App ) option ref = ref None let appl = Eliom_common.lazy_site_value_from_fun ( fun ( ) - > match ! appl_ref with | None - > failwith " you must register an eliom application before registering a service " | Some a - > a ) let = ...
caccd971383afe3be017464499bb23bb85870578a87a0ce92861a8596266cf1a
mzp/coq-ruby
subtac_coercion.ml
-*- compile - command : " make -C .. / .. " -*- (************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/contrib/subtac/subtac_coercion.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Disallow equalities on arities fa...
-*- compile - command : " make -C .. / .. " -*- v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
8ba57baf9e58b0b19c87a137217160959120030d0e68a0c0fe8e86231b0d6ff4
nikita-volkov/hasql
Decoders.hs
-- | -- A DSL for declaration of result decoders. module Hasql.Decoders ( -- * Result Result, noResult, rowsAffected, singleRow, -- ** Specialized multi-row results rowMaybe, rowVector, rowList, -- ** Multi-row traversers foldlRows, foldrRows, -- * Row Row, c...
null
https://raw.githubusercontent.com/nikita-volkov/hasql/0dda3e587a4d076b2ca9524b29a3ac4b1863eabe/library/Hasql/Decoders.hs
haskell
| A DSL for declaration of result decoders. * Result ** Specialized multi-row results ** Multi-row traversers * Row * Nullability * Value * Array * Composite
module Hasql.Decoders Result, noResult, rowsAffected, singleRow, rowMaybe, rowVector, rowList, foldlRows, foldrRows, Row, column, NullableOrNot, nonNullable, nullable, Value, bool, int2, int4, int8, float4, float8, numeric, ...
6e53434d3911ef7f546dfd3b46a518b1326a68514dddc310a87c15e7428b791e
rabbitmq/rabbitmq-common
rabbit_authn_backend.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_authn_backend). -include("rabbit....
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-common/67c4397ffa9f51d87f994aa4db4a68e8e95326ab/src/rabbit_authn_backend.erl
erlang
Check a user can log in, given a username and a proplist of authentication information (e.g. [{password, Password}]). If your backend is not to be used for authentication, this should always refuse access. Possible responses: {ok, User} Authentication succeeded, and here's the user record. {error, Error}...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_authn_backend). -include("rabbit.hrl")....
1df7ff99b408da448a79605dc01308d853ce6a860786b61da9061fddf75e91af
chef/chef-server
chef_wm_cookbook_version.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- %% ex: ts=4 sw=4 et @author < > @author < > @author < > Copyright 2012 - 2014 Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you ...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_wm/src/chef_wm_cookbook_version.erl
erlang
ex: ts=4 sw=4 et Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. chef_wm beh...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- @author < > @author < > @author < > Copyright 2012 - 2014 Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain ...
1835fb96f5af2476c2038f389b432843178dc3c878b462246f21545615123368
taezos/real-world-yesod
User.hs
{-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Handler.User where -- real-world-yesod import Api.Model.User import Api.User import Import postUserRegisterR :: Handler Value postUserRegisterR = do createUser <- requireCheck...
null
https://raw.githubusercontent.com/taezos/real-world-yesod/cd861b6f414fa389eec8fff5ac21f7d0312f9f94/src/Handler/User.hs
haskell
# LANGUAGE RecordWildCards # real-world-yesod
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Handler.User where import Api.Model.User import Api.User import Import postUserRegisterR :: Handler Value postUserRegisterR = do createUser <- requireCheckJsonBody @Handler @( UserWrapper CreateUser ) currentTi...
9c5bc9d9ab4db3482da2b8c206b5f9d779a6482b0d4209577735c8563e936ac6
mathematical-systems/clml
blas-lapack-common.lisp
(in-package :mkl.blas-lapack-common) ;;;; type definitions (cffi:defctype blas-int #+blas-use-64bit-int :int64 #-blas-use-64bit-int :int32) Spec of function name conventions (define-constant +precision-definitions+ '((:single . (:abbrev "S" :cffi-type :float)) (:double . (:abbrev "D" :cffi-type :...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/addons/blas-lapack-ffi/src/blas-lapack-common.lisp
lisp
type definitions defblas clean up deflapack
(in-package :mkl.blas-lapack-common) (cffi:defctype blas-int #+blas-use-64bit-int :int64 #-blas-use-64bit-int :int32) Spec of function name conventions (define-constant +precision-definitions+ '((:single . (:abbrev "S" :cffi-type :float)) (:double . (:abbrev "D" :cffi-type :double)) (:compl...
3d3164390eb04e75a92f8bb7443e2718b870c3f2a820c2cfe31382a031fe1276
mrnugget/scheme_x86
test-immediate-constants.scm
(add-tests-with-string-output "booleans" [#t => "#t\n"] [#f => "#f\n"]) (add-tests-with-string-output "nil list" [() => "()\n"]) (add-tests-with-string-output "characters" [#\tab => "#\\tab\n"] [#\newline => "#\\newline\n"] [#\return => "#\\return\n"] [#\space => "#\\space\n"] [#\! => "#\\!\n"...
null
https://raw.githubusercontent.com/mrnugget/scheme_x86/2a02cde1e482bc4be73ad460c97d643a4ea0e2e0/src/tests/test-immediate-constants.scm
scheme
=> "#\\;\n"]
(add-tests-with-string-output "booleans" [#t => "#t\n"] [#f => "#f\n"]) (add-tests-with-string-output "nil list" [() => "()\n"]) (add-tests-with-string-output "characters" [#\tab => "#\\tab\n"] [#\newline => "#\\newline\n"] [#\return => "#\\return\n"] [#\space => "#\\space\n"] [#\! => "#\\!\n"...
b0a333b0d473ecb04e8c74e1c599e73e2aba1efa8139f81069464a76a544367e
circleci/compojure-appengine-sample
project.clj
(defproject compojure-app "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.8.0"] [compojure "1.5.1"] [ring/ring-defaults "0.2.1"]] :plugins [[lein-ring "0.9.7"]] :ring {:handler compojure-app.h...
null
https://raw.githubusercontent.com/circleci/compojure-appengine-sample/e0afa1aa130219de43a9ef46d3cda8576f8202fd/project.clj
clojure
(defproject compojure-app "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.8.0"] [compojure "1.5.1"] [ring/ring-defaults "0.2.1"]] :plugins [[lein-ring "0.9.7"]] :ring {:handler compojure-app.h...
5dbe0628259557b2a952f433d767855dfa34316e6b9fe8a8ad98e9f9e1d46542
cnuernber/dtype-next
datatype_test.clj
(ns tech.v3.datatype-test (:require [clojure.test :refer [deftest is testing]] [tech.v3.datatype :as dtype] [tech.v3.datatype.nio-buffer :as nio-buffer] [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.casting :as casting] [tech.v3.parallel.for...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/f3f0a64a05b6fdaa9322733a55a43934640e2e60/test/tech/v3/datatype_test.clj
clojure
It is important that raw copy can work with a lazy sequence of double buffers where the same buffer is being filled for ever member of the lazy sequence. This is an easy optimization to make that cuts down the memory usage when reading from datasets by a fairly large amount. Note the input ary is being reused. Now im...
(ns tech.v3.datatype-test (:require [clojure.test :refer [deftest is testing]] [tech.v3.datatype :as dtype] [tech.v3.datatype.nio-buffer :as nio-buffer] [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.casting :as casting] [tech.v3.parallel.for...
367256709bf9794af569fe3fcc2cd0b3b48d7c1021548a734c2507d2117b9922
eeng/shevek
conversion_test.cljs
(ns shevek.schemas.conversion-test (:require-macros [cljs.test :refer [deftest testing is]]) (:require [shevek.asserts :refer [without?]] [shevek.schemas.conversion :refer [designer->report report->designer]] [shevek.lib.time :as t])) (defn designer [fields] (merge {:report {:cube "c"} ...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/cljs/shevek/schemas/conversion_test.cljs
clojure
(ns shevek.schemas.conversion-test (:require-macros [cljs.test :refer [deftest testing is]]) (:require [shevek.asserts :refer [without?]] [shevek.schemas.conversion :refer [designer->report report->designer]] [shevek.lib.time :as t])) (defn designer [fields] (merge {:report {:cube "c"} ...
b0a0d597c584a2f599c0b53139678ed296334449f64a61ce9713f88074b2be3e
BillHallahan/G2
Config.hs
# LANGUAGE CPP # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} module G2.Liquid.Inference.Config ( Progress (..) , Progresser (..) , ProgresserM (..) , MaxSi...
null
https://raw.githubusercontent.com/BillHallahan/G2/249cde48a004821a9f202197b83192ec0da8ec57/src/G2/Liquid/Inference/Config.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------- ----------------------------- ^ Gives an extra budget for maximum ce number ^ Gives an extra budget for the depth limit ^ An int to increment to get fresh names ----------------------------- Configurations ----------------------------- ^ If true, generat...
# LANGUAGE CPP # # LANGUAGE MultiParamTypeClasses # module G2.Liquid.Inference.Config ( Progress (..) , Progresser (..) , ProgresserM (..) , MaxSize (..) ...
d0e98fa6f4764673dcafb5a1b89e4dc793f25a160b1e274f3f698a0e61145246
capsjac/opengles
Proc.hs
# LANGUAGE CPP , Unsafe , UnliftedFFITypes , MagicHash , UnboxedTuples # module Graphics.OpenGLES.Base.Proc (glGetProcAddress) where import Foreign import Foreign.C.String import GHC.Base (realWorld#) import GHC.CString (unpackCString#) import GHC.IO (IO (IO)) import GHC.Ptr (Ptr(..)) import System.IO.Unsafe (un...
null
https://raw.githubusercontent.com/capsjac/opengles/23b78e5d1b058349a778a49310d867164ea1a529/src/Graphics/OpenGLES/Base/Proc.hs
haskell
| void *dlsym(void *handle, const char *symbol); * Retrieve OpenGL (ES) and EGL Extension Entries it exposes lots of things to further inlining. /Very unsafe/. In particular, you should do no memory allocation inside an 'inlinePerformIO' block. # INLINE [0] glGetProcAddress #
# LANGUAGE CPP , Unsafe , UnliftedFFITypes , MagicHash , UnboxedTuples # module Graphics.OpenGLES.Base.Proc (glGetProcAddress) where import Foreign import Foreign.C.String import GHC.Base (realWorld#) import GHC.CString (unpackCString#) import GHC.IO (IO (IO)) import GHC.Ptr (Ptr(..)) import System.IO.Unsafe (un...
229efdd77f90da40c0da2257abb45ef5976bcaf3971dfe6b3a69621b281ea406
xmonad/xmonad-contrib
RandomBackground.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Actions . RandomBackground -- Description : Start terminals with a random background color. Copyright : ( c ) 2009 translation to by -- License : BSD3-style (see LICENSE) -- ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/3058d1ca22d565b2fa93227fdde44d8626d6f75d/XMonad/Actions/RandomBackground.hs
haskell
--------------------------------------------------------------------------- | Description : Start terminals with a random background color. License : BSD3-style (see LICENSE) Maintainer : <> Stability : unstable Portability : unportable An action to start terminals with a random background color -...
Module : XMonad . Actions . RandomBackground Copyright : ( c ) 2009 translation to by module XMonad.Actions.RandomBackground ( randomBg', randomBg, RandomColor(HSV,RGB) ) where import XMonad(X, XConf(config), XConfig(terminal), io, spawn, MonadIO, a...
b05f09637b7e8bbb2a650973946dc5f4d3119e30db123abfb2aa98853776f09f
kelamg/HtDP2e-workthrough
ex273.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex273) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex273.rkt
racket
about the language level of this file in a form that our tools can easily process. [X Y] [X -> Y] [List-of X] -> [List-of Y] produces a new list with fn applied to all items of l X X -> Y applies fn both arguments
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex273) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (check-expect (fold-map add1 '(3 5 7)) '(4 6 8)) (de...
eb8b0924c8de55f074ead9e1e693ee52e7353a184c5784c37570cae06cf9b352
kronkltd/jiksnu
group_actions.clj
(ns jiksnu.modules.admin.actions.group-actions (:require [jiksnu.modules.core.actions.group-actions :as actions.group])) (defn index [& options] (apply actions.group/index options)) (defn create [params] (actions.group/create params)) (defn delete [group] (actions.group/delete group)) (defn show [gr...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/admin/actions/group_actions.clj
clojure
(ns jiksnu.modules.admin.actions.group-actions (:require [jiksnu.modules.core.actions.group-actions :as actions.group])) (defn index [& options] (apply actions.group/index options)) (defn create [params] (actions.group/create params)) (defn delete [group] (actions.group/delete group)) (defn show [gr...
f6983f41262ead33a698624f0426ebebffd89664db1aa3a4156b7369782e748b
Commonfare-net/macao-social-wallet
debug.clj
(ns freecoin.handlers.debug (:require [liberator.core :as lc] [freecoin.params :as param] [freecoin.utils :as utils])) (lc/defresource echo [request] :allowed-methods [:get] :available-media-types ["text/html"] :handle-ok (utils/pretty request) ) (lc/defresource version [request] ...
null
https://raw.githubusercontent.com/Commonfare-net/macao-social-wallet/d3724d6c706cdaa669c59da439fe48b0373e17b7/src/freecoin/handlers/debug.clj
clojure
:handle-ok #(util/pretty (::data %)) :handle-create #(::data %))
(ns freecoin.handlers.debug (:require [liberator.core :as lc] [freecoin.params :as param] [freecoin.utils :as utils])) (lc/defresource echo [request] :allowed-methods [:get] :available-media-types ["text/html"] :handle-ok (utils/pretty request) ) (lc/defresource version [request] ...
eb194220f4392a083157024369ec85db54ca33423cb64385ded69b6cf88fd85c
jarmitage/jarmlib
Shorthands.hs
-- Common ac = accelerate c = choose deg = degrade degBy = degradeBy ev = every fa = fast fE = foldEvery g = gain i = id m = mute o = orbit oa = offadd r = run rg = range rgx = rangex seg = segment sl = slow sp = speed str = striate str' = striate' u = up ...
null
https://raw.githubusercontent.com/jarmitage/jarmlib/853f6d18ab32630397be91ea89846d55e59e3d70/tidal/lib/Shorthands.hs
haskell
Common Continous functions
ac = accelerate c = choose deg = degrade degBy = degradeBy ev = every fa = fast fE = foldEvery g = gain i = id m = mute o = orbit oa = offadd r = run rg = range rgx = rangex seg = segment sl = slow sp = speed str = striate str' = striate' u = up Transitio...
0fefb6306a666fd2c87d24059a4ee9c64e08bbcaa4606e843244de8cd85ffc1c
haskellfoundation/error-message-index
ViewPatternExpr.hs
module ViewPatternExpr where h = sqrt
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/346a33d83662c25da2fe0badec5e5fc6244107a8/message-index/messages/GHC-66228/view-pattern-expr/after/ViewPatternExpr.hs
haskell
module ViewPatternExpr where h = sqrt
274a25a0b566306ef3e108fe0ce62315a23e4e3e2a5ba37a56b24ba4dc1e1fcb
haskell-repa/repa
Undefined.hs
module Data.Array.Repa.Repr.Undefined ( X, Array (..)) where import Data.Array.Repa.Base import Data.Array.Repa.Shape import Data.Array.Repa.Eval -- | An array with undefined elements. -- -- * This is normally used as the last representation in a partitioned array, -- as the previous partitions are e...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Repr/Undefined.hs
haskell
| An array with undefined elements. * This is normally used as the last representation in a partitioned array, as the previous partitions are expected to provide full coverage. | Undefined array elements. Inspecting them yields `error`. # INLINE linearIndex #
module Data.Array.Repa.Repr.Undefined ( X, Array (..)) where import Data.Array.Repa.Base import Data.Array.Repa.Shape import Data.Array.Repa.Eval data X instance Source X e where data Array X sh e = AUndefined !sh deepSeqArray _ x = x # INLINE deepSeqArray # extent (AUndefined sh) ...
d6a9d7129528938ec0049728c8df4f3863fbc72e5a15da204e33130cb14e69cc
ssor/erlangDemos
websocket_handler.erl
%% Feel free to use, reuse and abuse the code in this file. -module(websocket_handler). -behaviour(cowboy_http_handler). -behaviour(cowboy_websocket_handler). -export([init/3, handle/2, terminate/2]). -export([websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3]). init(_Any, _Req, _Opts) ->...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy/test/websocket_handler.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(websocket_handler). -behaviour(cowboy_http_handler). -behaviour(cowboy_websocket_handler). -export([init/3, handle/2, terminate/2]). -export([websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3]). init(_Any, _Req, _Opts) -> {upgrade, protocol, cowboy_websocket}. handle(_Req, _Stat...
76e5b3464f9b42d36c2852a44ed58ffd7818236839d78a45faa240b9841b4c81
spechub/Hets
QuickCheck.hs
# LANGUAGE FlexibleInstances # | Module : ./CASL / QuickCheck.hs Description : QuickCheck model checker for CASL.CFOL Copyright : ( c ) , Uni Bremen 2007 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable ( v...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/CASL/QuickCheck.hs
haskell
sentences determining the set of terms for a sort definitions of predicates and operations currently evaluated items, for avoiding infinite recursion ^ logical part containing the input Sign and axioms and possibly goals that have been proved earlier as additional axioms ^ configuration to use ^ True ...
# LANGUAGE FlexibleInstances # | Module : ./CASL / QuickCheck.hs Description : QuickCheck model checker for CASL.CFOL Copyright : ( c ) , Uni Bremen 2007 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable ( v...
649cb70f707f7911cdac004e0c85856ecbbc80544832788daabe0df302a7af10
thierry-martinez/clangml
kmp.mli
module type WORD = sig type t type letter val letter_equal : letter -> letter -> bool val length : t -> int val unsafe_get : t -> int -> letter end module type S = sig type word type letter val find : word -> letter Seq.t -> int Seq.t end module Make (Word : WORD) : S with type word = Word.t...
null
https://raw.githubusercontent.com/thierry-martinez/clangml/de5dffeae98a9bef9934a8d272f077b307bec73f/tools/norm_extractor/kmp.mli
ocaml
module type WORD = sig type t type letter val letter_equal : letter -> letter -> bool val length : t -> int val unsafe_get : t -> int -> letter end module type S = sig type word type letter val find : word -> letter Seq.t -> int Seq.t end module Make (Word : WORD) : S with type word = Word.t...
443d549db29bc0ff3d6b814da91a42fd5f7ac7458d4cadc49bcaad1036851c4b
jaked/ocamljs
jslib_ast.mli
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * 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 Softwar...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jslib/jslib_ast.mli
ocaml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * 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 Softwar...
19b40c9e8bb4760de97ae227990ab5754e45781ebf23d8aa6645b9a9e71a9d25
ygrek/mldonkey
bTOptions.ml
Copyright 2001 , 2002 b52_simon :) , b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the Lic...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/bittorrent/bTOptions.ml
ocaml
Generate client_uid
Copyright 2001 , 2002 b52_simon :) , b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the Lic...
ef91ed91a8c752ad47baaadb72e5276373e32852a7d6e7a9d73de6620e6e0794
raml-org/api-modeling-framework
json.cljc
(ns api-modeling-framework.parser.syntax.json #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) #?(:clj (:require [clojure.core.async :refer [<! >! go chan] :as async] [clojure.string :as string] [cemerick.url :as url] [api-modeling-framewor...
null
https://raw.githubusercontent.com/raml-org/api-modeling-framework/34bb3b6c3e3f91b775e27f8e389e04eb2c36beb7/src/api_modeling_framework/parser/syntax/json.cljc
clojure
let's see if libraries haven't been processed yet If they have been processed, we will have a map instead of a string we recur until we have resolved all references we recur until we have resolved all references
(ns api-modeling-framework.parser.syntax.json #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) #?(:clj (:require [clojure.core.async :refer [<! >! go chan] :as async] [clojure.string :as string] [cemerick.url :as url] [api-modeling-framewor...
ea759457d781ad0fdacd285fc8c6496609d9bace6e4425ca83fb7751ad592441
unclebob/AdventOfCode2020
core.clj
(ns day14.core) (defn -main [& args] (println "Hello World"))
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2020/fc4ba9ad042cbcc48dfa5947373ab46b750d89e5/day14/src/day14/core.clj
clojure
(ns day14.core) (defn -main [& args] (println "Hello World"))
1a6447083358cf27f943a2f078274931b38d485125c3850d9bd3e1fc08ff7492
SimulaVR/godot-haskell
EditorInterface.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Tools.EditorInterface (Godot.Tools.EditorInterface.edit_r...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Tools/EditorInterface.hs
haskell
| Returns the current path being viewed in the @FileSystemDock@. | Returns the current path being viewed in the @FileSystemDock@. | Returns the main editor control. Use this as a parent for main screens. __Note:__ This returns the main editor control containing the whole editor, not the 2D or 3D viewports spe...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Tools.EditorInterface (Godot.Tools.EditorInterface.edit_r...
ab0b24398c0c6fed30aa1b163f52b6aae8b1d43d4fb9e2859c69093243340699
craigl64/clim-ccl
minima-stream-classes.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - UTILS ; Base : 10 ; Lowercase : Yes -*- ;; See the file LICENSE for the full license governing this code. ;; (in-package :clim-utils) " Copyright ( c ) 1991 , 1992 Symbolics , Inc. All rights reserved . " ;;; Disgusting but apparently effective.....
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/utils/minima-stream-classes.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLIM - UTILS ; Base : 10 ; Lowercase : Yes -*- See the file LICENSE for the full license governing this code. Disgusting but apparently effective...
(in-package :clim-utils) " Copyright ( c ) 1991 , 1992 Symbolics , Inc. All rights reserved . " (setf (find-class 'fundamental-stream) (find-class 'minima-internals::stream)) (setf (find-class 'fundamental-input-stream) (find-class 'minima-internals::input-stream)) (setf (find-class 'fundamental-output...
5b943c666c83cbe3c7105cdd4faf3c6899b322e967b681e5ce22da5616e02f72
scrintal/heroicons-reagent
x_mark.cljs
(ns com.scrintal.heroicons.solid.x-mark) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/x_mark.cljs
clojure
(ns com.scrintal.heroicons.solid.x-mark) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 ...
690fb753025b322b510d875402fddb71fb46633f15ba01a9e178d324455268d5
Leofltt/Kairos
Clock.hs
module Test.Clock where import Test.Hspec ( hspec, describe, it, shouldBe ) import Kairos.Clock import Control.Concurrent.STM ( readTVarIO ) clockTest :: IO () clockTest = hspec $ do describe "Time Signature test" $ do it "should be able to create a time signature" $ do newTS 120 4 0 `shouldBe...
null
https://raw.githubusercontent.com/Leofltt/Kairos/0ffaba6f043b5774626a26f924256857de533d4b/test/Test/Clock.hs
haskell
todo : implement tests for other functions
module Test.Clock where import Test.Hspec ( hspec, describe, it, shouldBe ) import Kairos.Clock import Control.Concurrent.STM ( readTVarIO ) clockTest :: IO () clockTest = hspec $ do describe "Time Signature test" $ do it "should be able to create a time signature" $ do newTS 120 4 0 `shouldBe...
baafd8755e6e7230769339e2baf82e8de06eea036a9be9bb894881ebdc5e55ec
charlieg/Sparser
completion.lisp
-*- Package : co ; Base : 10 ; Syntax : Common - Lisp -*- (in-package :co) ;;; BBN Technologies ;;; A Division of BBN Corporation ;;; Copyright ;;; All Rights Reserved 1999 ;;; ;;; THIS FILE CONTAINS THE CODE THAT COMPUTES THE COMPLETE SET OF EFFECTIVE SLOTS AT A CONCEPT , GIVEN THAT ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/lisp/sfl/completion.lisp
lisp
Base : 10 ; Syntax : Common - Lisp -*- A Division of BBN Corporation Copyright All Rights Reserved THIS FILE CONTAINS THE CODE THAT COMPUTES THE COMPLETE SET OF EFFECTIVE SLOTS The complete set of effective slots at a concept is found, by finding, for each relevant role, the most specific slot ...
(in-package :co) BBN Technologies 1999 AT A CONCEPT , GIVEN THAT CONCEPT 'S DEFINED SLOTS AND ITS PARENTS . any completion is done . It is possible for a DEFINED SLOT not to be included in the completed set of SLOTS . CONCEPT - DEFINING of the slot . SLOTS are the completed set of slots...
71e2015dd66f3becf33e0f6d3562978f8f0c20d254509d2339bc31cfbcb3012f
clojure/core.async
project.clj
(defproject org.clojure/core.async "0.1.0-SNAPSHOT" :description "Facilities for async programming and communication in Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :parent [org.clojure/pom.contrib "1.0.0"] :dependencies [[org.clojure/clojure "1.10.0"] ...
null
https://raw.githubusercontent.com/clojure/core.async/ad5c0475346a0ef36e6a8623cc1d3c1b6439ef96/project.clj
clojure
(defproject org.clojure/core.async "0.1.0-SNAPSHOT" :description "Facilities for async programming and communication in Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :parent [org.clojure/pom.contrib "1.0.0"] :dependencies [[org.clojure/clojure "1.10.0"] ...
312db104b638faacc5f23408d097ed4649fa6e722b4e0e9b9666be511d70715d
hoon0612/Lisp-in-OCaml
lexer_tester.ml
open Lexer let print_token = function | Parser.Int i-> print_endline ("NUMBER " ^ string_of_int i) | Parser.Float f-> print_endline ("FLOAT " ^ string_of_float f) | Parser.Opener -> print_endline ("OPEN " ^ "(") | Parser.Closer -> print_endline ("CLOSE " ^ ")") | Parser.Symbol s-> print_endline ("SYMBOL " ...
null
https://raw.githubusercontent.com/hoon0612/Lisp-in-OCaml/498ace173018af8f7772b3db803872e76b5902cf/lexer_tester.ml
ocaml
open Lexer let print_token = function | Parser.Int i-> print_endline ("NUMBER " ^ string_of_int i) | Parser.Float f-> print_endline ("FLOAT " ^ string_of_float f) | Parser.Opener -> print_endline ("OPEN " ^ "(") | Parser.Closer -> print_endline ("CLOSE " ^ ")") | Parser.Symbol s-> print_endline ("SYMBOL " ...
af39a52f3d10abca6d8b20a5d976b518ac6109f02962d85ca5935244d640bc3c
ucsd-progsys/nate
frx_fit.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_fit.mli
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...
a5fe071212b5fc041e99bba3f828b6c0d496bb91e24c9cbb81e68879166be049
erlangonrails/devdb
fix_queue.erl
2009 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing,...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/fix_queue.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2009 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : fix_queue.erl 906 2010 - 07 - 23 14:09:20Z schuett $ -module(fix_queue). -author('...
c704cab1403098b37489e56cd18a7171d024e65407091f8fec2d717416717ab7
jbracker/supermonad
Type.hs
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/monad-param/Type.hs
haskell
Note: The current approach to records is to ensure that the fields are ordered lexicographically by field name. This means that the subexpressions of a record constructor may be reordered. That in turn could affect the semantics of a program if any of these subexpressions have side effects. Thus, at present, the s...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
cc9f470e2955a32117afd4de447e96a9b530b1f3a515f31d39ac8882242e1438
lspector/Clojush
evaluate.clj
(ns clojush.evaluate (:use [clojush util pushstate random globals individual meta-errors interpreter simplification mod_metrics] clojush.pushgp.genetic-operators) (:require [clojure.math.numeric-tower :as math] [clj-random.core :as random])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/evaluate.clj
clojure
calculate the solution rates (only called from pushgp) evaluate individuals calculated later calculated later input is a single element (numbers, string , etc) input is a vector of varying length Assign errors and history to i
(ns clojush.evaluate (:use [clojush util pushstate random globals individual meta-errors interpreter simplification mod_metrics] clojush.pushgp.genetic-operators) (:require [clojure.math.numeric-tower :as math] [clj-random.core :as random])) (defn calculate-hah-solution-rates [pop-agents {:k...
45162cadfbf385a619da71767407ae5c0d00342979ed59223e11e7360dfe3c4e
clj-kondo/clj-kondo
clojure_data_xml_test.clj
(ns clj-kondo.clojure-data-xml-test (:require [babashka.fs :as fs] [clj-kondo.core :as clj-kondo] [clj-kondo.test-utils :refer [lint! #_assert-submaps]] [clojure.test :refer [deftest is testing]] [clojure.tools.deps.alpha :as deps])) (deftest alias-uri-test (is (empty? (lint! " (ns foo (:requ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/2105db5082397edf1fe6672f013c2efcdb418f45/test/clj_kondo/clojure_data_xml_test.clj
clojure
org.clojure/clojure {:mvn/version "1.9.0"}
(ns clj-kondo.clojure-data-xml-test (:require [babashka.fs :as fs] [clj-kondo.core :as clj-kondo] [clj-kondo.test-utils :refer [lint! #_assert-submaps]] [clojure.test :refer [deftest is testing]] [clojure.tools.deps.alpha :as deps])) (deftest alias-uri-test (is (empty? (lint! " (ns foo (:requ...
9c2fafd4304385b5cdc481354ed7c1b941fd252e50e1ddf2a885dc1731a5966f
disteph/cdsat
top_level.mli
(************************************) Main entry point for Psyche runs (************************************) val collect_sort : string list -> string list val treatprimitives : unit -> (string -> unit) * (unit -> unit)
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/top-level/top_level.mli
ocaml
********************************** **********************************
Main entry point for Psyche runs val collect_sort : string list -> string list val treatprimitives : unit -> (string -> unit) * (unit -> unit)
34f7e066e3712a15c2e9089fccd63e4d921aa12dadb00edbf9c503afa989f470
hiroshi-unno/coar
dotprod_.ml
let make_array n i = assert (0 <= i && i < n); 0 let rec dotprod n v1 v2 i sum = if i >= n then sum else (dotprod n v1 v2 (i+1) (sum + v1 i + v2 i); dotprod n v1 v2 (i+1) (sum + v1 i + v2 i)) let main n m z = let v1 = make_array n in let v2 = make_array n in if z=0 then (dotprod n v1 v2 z z; ()) else ()...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/benchmarks/OCaml/safety/tacas2015/dotprod_.ml
ocaml
let make_array n i = assert (0 <= i && i < n); 0 let rec dotprod n v1 v2 i sum = if i >= n then sum else (dotprod n v1 v2 (i+1) (sum + v1 i + v2 i); dotprod n v1 v2 (i+1) (sum + v1 i + v2 i)) let main n m z = let v1 = make_array n in let v2 = make_array n in if z=0 then (dotprod n v1 v2 z z; ()) else ()...
b05741e5e2315c629847698fe214a5f6cc25c0204025409c7f108e7ea1f53bd0
naoiwata/sicp
q-1.22.scm
;; ;; @author naoiwata SICP Chapter1 ;; q-1.22 ;; p28 copy (define (square n) (* n n)) (define (smallest-divisor n) (find-divisor n 2)) (define (find-divisor n a) (cond ((< n (square a)) n) ((divisors? n a) a) (else (find-divisor n (+ a 1))))) (define (divisors? n a) (= (remainder n a) 0)) (define (...
null
https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter1/q-1.22.scm
scheme
@author naoiwata q-1.22 question copy solution test discussion on more large number -> このアルゴリズムでは、nに対する増加の速度はΘ(√n)だと推測される。 -> 実験結果は、nに対して√n倍ずつ増加しているので仮説が正しいことが確認された。 ref : -126-testing-for-primality.html END
SICP Chapter1 p28 copy (define (square n) (* n n)) (define (smallest-divisor n) (find-divisor n 2)) (define (find-divisor n a) (cond ((< n (square a)) n) ((divisors? n a) a) (else (find-divisor n (+ a 1))))) (define (divisors? n a) (= (remainder n a) 0)) (define (prime? n) (= n (smallest-divisor n)...
d937d963568ae9dde06effabd46e3b7ba78f62a9028a31162741da973e679a99
fpottier/mpri-2.4-projet-2022-2023
Real.ml
open CReal type real = t let zero, one, two, of_int, of_float = zero, one, two, of_int, of_float let minus_one = of_int (-1) let (+.), (-.), ( *.) = add, sub, mul let sin, cos, exp = sin, cos, exp We use a low precision in the following , so as speed up computations and avoid false alarms . The p...
null
https://raw.githubusercontent.com/fpottier/mpri-2.4-projet-2022-2023/1ce08cadfb3a8ec8bc72609bc82873b29d2ce241/src/Real.ml
ocaml
1e-2 is a bit greater than twice 4^{-precision}
open CReal type real = t let zero, one, two, of_int, of_float = zero, one, two, of_int, of_float let minus_one = of_int (-1) let (+.), (-.), ( *.) = add, sub, mul let sin, cos, exp = sin, cos, exp We use a low precision in the following , so as speed up computations and avoid false alarms . The p...
c9dfc47c3b8f7d39c0db993e46911b0c9614a09625b5c67bf6cc53e2c15b1878
yurug/ocaml4.04.0-copatterns
typetexp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/typetexp.ml
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 Misc open Parsetree open Typedtree open Types open Ctype exception Already_bound t...
16146e462689abf5ed92c5198a6859543f7b039049d6288c7406cb8d80c9feba
tamarin-prover/tamarin-prover
Hamlet.hs
{-# LANGUAGE CPP #-} # LANGUAGE FlexibleInstances # # LANGUAGE PatternGuards # {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeSynonymInstances #-} # OPTIONS_GHC -fno - warn - orphans # | Module : Web . Hamlet Description : Haml...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/c78c7afd3b93b52dd4d2884952ec0fc273832a0d/src/Web/Hamlet.hs
haskell
# LANGUAGE CPP # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE TypeSynonymInstances # , rootDiffTpl #if MIN_VERSION_time(1,5,0) import Data.Time.Format #else import System.Locale #endif import System.Locale Templates | Simple t...
# LANGUAGE FlexibleInstances # # LANGUAGE PatternGuards # # OPTIONS_GHC -fno - warn - orphans # | Module : Web . Hamlet Description : Hamlet templates . Copyright : ( c ) 2011 License : GPL-3 Maintainer : < > Stability : experimental Portability : non...
315ba656f5bc55a94848af07af0d94bd4bc90a6505d92dce0c4dc3db3f30074c
tweag/ormolu
nested-explicit-imports-out.hs
import qualified MegaModule as M ( Either, Monad ( return, (>>), (>>=) ), (<<<), (>>>), )
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/import/nested-explicit-imports-out.hs
haskell
import qualified MegaModule as M ( Either, Monad ( return, (>>), (>>=) ), (<<<), (>>>), )
5add12abc03a507dc8135d53727212bc49db6f02eb1fe617b13980b63247440a
fyquah/hardcaml_zprize
roots.mli
(** Forward and inverse roots of unity within the Goldilocks field. *) * forward.(i ) is the [ 2^i th root of unity ] . That is index [ 5 ] is the [ 2 ^ 5 = 32nd ] root of unity . Raising it to the power [ 32 ] will yield [ 1 ] . That is index [5] is the [2^5 = 32nd] root of unity. Raising it to the p...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/hardcaml_ntt/src/roots.mli
ocaml
* Forward and inverse roots of unity within the Goldilocks field. * inverse.(i) is the [1 / 2^i th root of unity]
* forward.(i ) is the [ 2^i th root of unity ] . That is index [ 5 ] is the [ 2 ^ 5 = 32nd ] root of unity . Raising it to the power [ 32 ] will yield [ 1 ] . That is index [5] is the [2^5 = 32nd] root of unity. Raising it to the power [32] will yield [1]. *) val forward : Gf.Z.t array val inverse...
4cee160aefe7f10b0c3a711db042b9d72dee29dad557cf8980e7398cb309408c
morpheusgraphql/morpheus-graphql
Test.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Case.LowercaseTypeName.Test ( test,...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/b025f1b6e9f449145a1df2c3282492a2111624d5/morpheus-graphql-client/test/Case/LowercaseTypeName/Test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Case.LowercaseTypeName.Test ( test, ) where import Data.Morpheus.Cl...
c2ba1f5ed889e52d5db2ea619fea43ef3ea918cf540c8d2524242ccc51382914
8c6794b6/haskell-sc-scratch
Exception.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . Exceptions used thrown from heap . Module : $Header...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Data/bsb-heap/Data/BsbHeap/Exception.hs
haskell
# LANGUAGE DeriveDataTypeable # | Exception used thrown during operation of heap. ^ Heap is empty ^ Invalid indexing in internal tree
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . Exceptions used thrown from heap . Module : $Header$ CopyRight : (c) 8c6794b6 License...